-
-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
107 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name = "Pluto" | |
uuid = "c3e4b0f8-55cb-11ea-2926-15256bba5781" | ||
license = "MIT" | ||
authors = ["Fons van der Plas <[email protected]>", "MikoΕaj Bochenski <[email protected]>"] | ||
version = "0.5.0" | ||
version = "0.5.1" | ||
|
||
[deps] | ||
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
document.addEventListener("DOMContentLoaded", () => { | ||
setTimeout(() => { | ||
firebase.initializeApp({ | ||
apiKey: 'AIzaSyC0DqEcaM8AZ6cvApXuNcNU2RgZZOj7F68', | ||
authDomain: 'localhost', | ||
projectId: 'pluto-feedback', | ||
}); | ||
|
||
window.feedbackdb = firebase.firestore(); | ||
|
||
window.feedbackform = document.querySelector("form#feedback") | ||
feedbackform.addEventListener("submit", (e) => { | ||
console.log(e) | ||
|
||
email = prompt("Would you like us to contact you?\n\nEmail: (leave blank to stay anonymous π)") | ||
|
||
|
||
feedbackdb.collection("feedback").add({ | ||
feedback: new FormData(e.target).get("opinion"), | ||
timestamp: firebase.firestore.Timestamp.now(), | ||
email: email ? email : "", | ||
}) | ||
.then(function() { | ||
message = "Submitted. Thank you for your feedback! π" | ||
console.log(message); | ||
alert(message); | ||
}) | ||
.catch(function(error) { | ||
message = "Whoops, failed to send feedback π’\nWe would really like to hear from you! Please got to https://github.com/fonsp/Pluto.jl/issues to report this failure:\n\n" | ||
console.error(message); | ||
console.error(error); | ||
alert(message+error) | ||
}); | ||
|
||
e.preventDefault() | ||
}) | ||
|
||
}, 1000) | ||
}) |
c8830ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register()
c8830ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/11880
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: