-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
34 lines (34 loc) · 1.07 KB
/
script.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
window.addEventListener('DOMContentLoaded', (event) => {
var menu = document.getElementById("menu");
});
function sleep(sleepDuration){
var now = new Date().getTime();
while(new Date().getTime() < now + sleepDuration){ /* do nothing */ };
}
function showHoverMenu() {
menu.style.display = "block";
}
function hideHoverMenu() {
menu = document.getElementById("menu");
menu.style.display = "none";
sleep(1000);
}
function downloadBTN() {
document.getElementById("downloadsTitle").scrollIntoView( {behavior: "smooth" });
}
function technologyBTN() {
window.open("https://github.com/youtube-blue/youtube-blue-wiki/blob/main/technology.md", "_self");
}
function documentationBTN() {
window.open("https://github.com/youtube-blue/youtube-blue-wiki/blob/main/README.md", "_self");
}
function githubBTN() {
window.open("https://github.com/youtube-blue","_self");
}
function scrollDown() {
document.getElementById("downloadsTitle").scrollIntoView( {behavior: "smooth" });
}
function minimizeMenu() {
//minimizedMenu.style.display="block";
//menu.style.display="none"
}