-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
22 lines (20 loc) · 740 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
document.addEventListener("DOMContentLoaded", function () {
setTimeout(function () {
document.querySelector('.loader-container').style.display = 'none';
document.querySelector('.content').style.display = 'block';
}, 2000);
});
var navLinks = document.getElementById("navLinks");
function showMenu(){
navLinks.style.right = "0";
}
function hideMenu(){
navLinks.style.right = "-200px";
}
function showAlert() {
document.getElementById("name").value = "";
document.getElementById("email").value = "";
document.getElementById("subject").value = "";
document.getElementById("message").value = "";
alert("GitHub doesn't allow handling forms hence this alert message!");
}