-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
26 lines (20 loc) · 895 Bytes
/
main.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
//Constants
const sTopNav = document.getElementById("sTopNav")
const fTopNav = document.getElementById("fTopNav")
const leftArrow = document.getElementById('SL');
const rightArrow = document.getElementById('SR');
const tutorialsLink = document.getElementById("tutorialsLink")
const hiddenContentDiv = document.getElementById("hiddenContentDiv")
const tutorialsDiv = document.getElementById("tutorialsDiv")
const tutorialsHeaderDiv = document.querySelector("tutorialsDiv div.headerDiv")
const tutorialsSearchField = document.querySelector("tutorialsDiv div.headerDiv input[type='search']")
tutorialsLink.onclick = () => {
let divDisplay = tutorialsDiv.style.display
if (divDisplay == `` || divDisplay == `block`) {
tutorialsDiv.style.display = `none`
tutorialsLink.blur()
} else {
tutorialsDiv.style.display = `block`
tutorialsDiv.focus()
}
}