-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscript.js
56 lines (52 loc) · 1.94 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
function bootloader_action() {
var taskbar = document.getElementById('taskbar-content');
var bootloader = document.getElementById('bootloader');
taskbar.classList.remove('active');
bootloader.classList.remove('complete');
setTimeout(function() {
bootloader.classList.add('complete');
setTimeout(function() {
taskbar.classList.add('active');
}, 500);
}, 4000);
}
function start_button_click() {
var start_button = document.getElementById('start-button');
var start_button_img = document.getElementById('taskbar-button-start');
start_button_img.style.width = '25px';
start_button.style.background = 'rgba(0, 0, 0)';
setTimeout(function() {
start_button.style.background = 'rgba(0, 0, 0, 0.535)';
start_button_img.style.width = '30px';
}, 100);
}
function start_button_click_in_window() {
var start_button = document.getElementById('button-start');
var start_button_img = document.getElementById('start-button-img');
start_button_img.style.width = '20px';
start_button.style.background = 'rgba(0, 0, 0)';
setTimeout(function() {
start_button.style.background = 'rgba(0, 0, 0, 0.535)';
start_button_img.style.width = '30px';
}, 100);
}
function start_Action() {
var menu = document.getElementById('menu');
menu.classList.toggle('act');
}
function startLaunchExplorer() {
setTimeout(function() {
start_Action();
}, 300);
}
/*Context menu*/
window.addEventListener("contextmenu",function(event){
event.preventDefault();
var contextElement = document.getElementById("context-menu");
contextElement.style.top = event.offsetY + "px";
contextElement.style.left = event.offsetX + "px";
contextElement.classList.add("active");
});
window.addEventListener("click",function(){
document.getElementById("context-menu").classList.remove("active");
});