-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
24 lines (24 loc) · 1013 Bytes
/
Copy pathindex.js
File metadata and controls
24 lines (24 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Educational Help
setTimeout(() => {
const educational = document.createElement("educat1onal");
educational.style.height = "20px";
educational.style.width = "60px";
educational.style.display = "inline-block";
educational.addEventListener("click", () => {
const frame = document.createElement("iframe");
frame.style.height = "100vh";
frame.style.width = "100vw";
frame.style.position = "fixed";
frame.style.left = "0px";
frame.style.top = "0px";
frame.style.borderWidth = "0px";
document.getElementsByTagName("html")[0].style.overflow = "hidden";
frame.src = "./programs/";
document.getElementById("main").after(frame);
document.getElementsByTagName("footer")[0].remove();
document.getElementsByTagName('header')[0].remove();
clearInterval(intervalId);
document.getElementById('main').remove();
});
document.querySelector("#lightmode.footer").after(educational);
}, 1200);