-
Notifications
You must be signed in to change notification settings - Fork 0
/
scriptOld.js
48 lines (37 loc) · 1.13 KB
/
scriptOld.js
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
const menu = document.getElementById("menu");
// for opening menu
function openNav() {
menu.style.width = "100%";
}
document.addEventListener("click", openNav);
// for closing menu
function closeNav() {
menu.style.width = "0%";
}
document.addEventListener("click", closeNav);
// know more about me
// function myAbout(x) {
// location.href = "#about_me";
// }
// function onHover(x) {
// x.style.backgroundColor = "#5b5858";
// x.style.borderColor = "#5b5858";
// x.style.color = "#ff8800";
// x.style.fontFamily = "'Times New Roman', Times, serif";
// x.style.fontSize = "27.5px";
// }
// function notHover(x) {
// x.style.fontSize = "25px";
// x.style.fontFamily = "monospace";
// x.style.backgroundColor = "#014638";
// x.style.border = "1px solid #014638;"
// x.style.borderRadius = "25px";
// x.style.textDecoration = "none";
// x.style.color = "#fff";
// x.style.padding = "7px 20px";
// }
// justify content
let justifyContent = document.querySelectorAll(".justifyContent");
for (let i = 0; i < justifyContent.length; i++) {
justifyContent[i].style.textAlign = "justify";
}