-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjava.js
33 lines (29 loc) · 1020 Bytes
/
java.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
let menu = document.querySelector("#topitem");
let triangles = document.querySelector("#navbar")
//let javaScript = document.querySelector("#javascript")
let arrow = document.querySelector ("#arrow")
let bars = document.querySelector("#bars");
menu.addEventListener('click', menuUnfolds);
function menuUnfolds() {
//javaScript.classList.add("js");
arrow.classList.toggle("appear");
bars.classList.toggle("change");
console.log("clicked")
let javaScript = document.querySelector('#js');
javaScript.classList.toggle("moveFirst");
let Css = document.querySelector('#css');
Css.classList.toggle("moveCss");
let htMl = document.querySelector('#html');
htMl.classList.toggle("moveHtml");
let know = document.querySelector('#git');
know.classList.toggle("moveKnow");
let pipePiper = document.querySelector('#pp');
pipePiper.classList.toggle("movePipe");
}
/*
function swapBars(){
console.log("bars");
if (state == 'bar'){
myBar.setAttribute("#bars", "")
}
*/