-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.js
More file actions
29 lines (25 loc) · 782 Bytes
/
scripts.js
File metadata and controls
29 lines (25 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function openNav() {
document.getElementById("sidenav").style.width = "250px";
}
function closeNav() {
document.getElementById("sidenav").style.width = "0";
}
function openNav2() {
document.getElementById("customNav").style.width = "250px";
}
function closeNav2() {
document.getElementById("customNav").style.width = "0";
}
function goodDay() {
var time = new Date().getHours();
if (time < 10) {
alert("good morning");
} else if (time < 18) {
alert("good day");
} else {
alert("good evening");
}
}
function dont() {
document.write("<style>body { background-color: #505050; color: #bd2873; text-shadow: 1px 1px black; }</style><h1>why didnt you listen</h1> <hr> <h3>refresh the page</h3>")
}