-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub-tutorials.js
More file actions
39 lines (37 loc) · 1.18 KB
/
Copy pathgithub-tutorials.js
File metadata and controls
39 lines (37 loc) · 1.18 KB
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
// github section - Open
let github_icon = document.querySelector("#github-logo")
let github_section = document.querySelector("#github")
github_icon.addEventListener("click", () => {
github_icon.style.backgroundColor = "grey"
github_icon.style.color = "white"
github_section.style.display = "flex"
// hide hero web
var heroSection = document.querySelector(".hero-section")
heroSection.style.display = "none"
// hide javascript
Js_Icon.style.backgroundColor = ""
Js_Icon.style.color = ""
Javascript_section.style.display = "none"
// hide Python
python_icon.style.backgroundColor = ""
python_icon.style.color = ""
python_section.style.display = "none"
// hide Mongo db
mongo_db_icon.style.backgroundColor = ""
mongo_db_icon.style.color = ""
mongo_db_section.style.display = "none"
// hide C++ hide
c_lang_icon.style.backgroundColor = ""
c_lang_icon.style.color = ""
c_lang_section.style.display = "none"
// hide React hide
react_icon.style.backgroundColor = ""
react_icon.style.color = ""
react_section.style.display = "none"
tl.from("#github h1, #github #language-videos iframe",{
y: 30,
duration: .6,
opacity: 0,
stagger: .3
})
})