Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
guptakushal03 committed Nov 11, 2023
1 parent 318f2b3 commit 6218ce9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
document.addEventListener("DOMContentLoaded", function () {
// Simulate loading delay (you can remove this in a real scenario)
setTimeout(function () {
document.querySelector('.loader-container').style.display = 'none';
document.querySelector('.content').style.display = 'block';
}, 2000);
}, 2000); // Adjust the time as needed
});

var navLinks = document.getElementById("navLinks");
Expand All @@ -12,3 +13,11 @@ function showMenu(){
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("Too lazy to handle forms, but u sure can contact me using my social links!");
}

0 comments on commit 6218ce9

Please sign in to comment.