OLD | NEW |
1 document.getElementById("hamburger").addEventListener("click", function(event) | |
2 { | |
3 event.preventDefault(); | |
4 document.querySelector("nav").classList.toggle("closed"); | |
5 }, false); | |
6 | |
7 document.getElementById("language").addEventListener("change", function() | 1 document.getElementById("language").addEventListener("change", function() |
8 { | 2 { |
9 window.location = this.value; | 3 window.location = this.value; |
10 }, false); | 4 }, false); |
11 | 5 |
12 document.querySelector("#email-me a").addEventListener("click", function(event) | 6 document.querySelector("#email-me a").addEventListener("click", function(event) |
13 { | 7 { |
14 event.preventDefault(); | 8 event.preventDefault(); |
15 document.body.setAttribute("class", "modal"); | 9 document.body.setAttribute("class", "modal"); |
16 }, false); | 10 }, false); |
(...skipping 24 matching lines...) Expand all Loading... |
41 else | 35 else |
42 modal.setAttribute("class", "error"); | 36 modal.setAttribute("class", "error"); |
43 } | 37 } |
44 }; | 38 }; |
45 request.onerror = function() | 39 request.onerror = function() |
46 { | 40 { |
47 document.getElementById("modal").setAttribute("class", "error"); | 41 document.getElementById("modal").setAttribute("class", "error"); |
48 }; | 42 }; |
49 request.send(textbox.name + "=" + encodeURIComponent(textbox.value)); | 43 request.send(textbox.name + "=" + encodeURIComponent(textbox.value)); |
50 }, false); | 44 }, false); |
OLD | NEW |