Check for mime-type and JS fun
This commit is contained in:
9
www/main.js
Normal file
9
www/main.js
Normal file
@ -0,0 +1,9 @@
|
||||
document.getElementById("click-me").addEventListener("click", function() {
|
||||
let output = document.getElementById("output");
|
||||
|
||||
if (output.innerHTML != "") {
|
||||
output.innerHTML = ""
|
||||
} else {
|
||||
document.getElementById("output").innerHTML = "Wow! This actually works.";
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user