-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
43 lines (43 loc) · 1.77 KB
/
index.js
File metadata and controls
43 lines (43 loc) · 1.77 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
40
41
42
43
console.log("%cSTOP!\nIf something is wrong, you can debug it using the Inspect element.\nWebsite: %o", "color: red; background: white", "https://itzgametime-vip.w3spaces.com");
setInterval(() => {
document.querySelector('.taskbar .time').innerHTML = new Date().getHours() + ':' + new Date().getMinutes() + ':' + new Date().getSeconds() + '<br>' + new Date().getMonth() + '/' + new Date().getDay() + '/' + new Date().getFullYear();
}, 1000);
var taskbar = {
startSearch: function() {
document.querySelector(".start").style.display = "block";
},
browser: function() {
document.querySelector(".ms-edge-application").style.display = "block";
},
explorer: function() {
document.querySelector(".file-explorer").style.display = "block";
}
}
var startbuttons = [
document.querySelector(".taskbar .startNow"),
document.querySelector(".taskbar .search")
];
for (var i = 0; i < startbuttons.length; i++) {
startbuttons[i].addEventListener("click", () => {
taskbar.startSearch();
});
startbuttons[i].addEventListener("input", () => {
taskbar.startSearch();
});
}
var browser = document.querySelector(".ms-edge-application");
setTimeout(() => {
document.querySelector(".startup #start").style.display = "block";
}, 3000);
browser.querySelector("#go").addEventListener("click", () => {
let address = browser.querySelector("#web-address");
let website = browser.querySelector("#website");
website.src = address.value;
});
var music = new Audio("Sounds/music.mp3");
document.querySelector(".start .cardMusic #play").addEventListener("click", () => {
music.play();
});
document.querySelector(".start .cardMusic #pause").addEventListener("click", () => {
music.pause();
});