-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
129 lines (103 loc) · 6.38 KB
/
index.html
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="documentRoot" id="documentRoot" href=".">
<meta version="MainOS(host)">
<meta name="theme-color" content="#00ff00">
<meta name="msapplication-TileColor" content="#00ff00">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
<meta name="author" content="Maingron">
<title>MainOS</title>
<link rel="stylesheet" href="style.min.css">
<script src="system/iofsv2.js"></script>
<link rel="shortcut icon" href="img/logo.svg">
<link rel="apple-touch-icon" sizes="72x72" href="img/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="img/apple-icon-114x114.png">
<link rel="manifest" href="manifest.json">
</head>
<body>
<div id="emergencytools" class="emergencytools">
<a id="targetemergencytools" href="#emergencytools"></a>
<a id="untargetemergencytools" href="#"></a>
<script>
function hideEmergencyTools() {
clearTimeout(showLoadingForEmergencyTools);
clearTimeout(targetEmergencyToolsTimeout);
document.getElementById("untargetemergencytools").click();
document.getElementById("emergencytools").style.display = "none";
document.getElementById("emergencytools").setAttribute("disabled", "disabled");
document.getElementById("emergencytools").outerHTML = "";
document.getElementById("emergencytoolsloading").outerHTML = "";
}
var showLoadingForEmergencyTools = setTimeout(function() {
document.getElementById("emergencytoolsloading").style.display = "block";
var loadingProgress = setInterval(function() {
document.getElementById("emergencytoolsloading").querySelector("progress").value += (100 / 6000) ;
}, 100);
}, 2000);
var targetEmergencyToolsTimeout = setTimeout(function() {
document.getElementById("targetemergencytools").click();
clearInterval(loadingProgress);
}, 8000);
</script>
<h2><img src="img/logo.svg" alt=""><span style="color:lightblue">Main</span><span style="color:red">OS</span> Emergency Tools</h2>
<p>If the system didn't boot successfully (Which is probably the case, since you see this box), you can use these tools to try and fix the system.</p>
<p><warn>Warning: Using these tools may reset the system!</warn> Also not all options will work</p>
<p>After you tried anything, ALWAYS click on reload, since there is no automatic reload. Reloading multiple times might be necessary.</p>
<p>Try to: </p>
<button onclick="window.location.reload()">Reload</button>
<button onclick="hideEmergencyTools()">Close Emergency Tools</button>
<br>
<button onclick="this.outerHTML = '<p>You can save the contents of your localStorage dump to a file on your device. It contains all IOfs data. <br>LocalStorage Dump:</p></p><textarea readonly>'+JSON.stringify(localStorage)+'</textarea>'">Show localStorage Dump</button>
<button onclick="run('run')">Open run box</button>
<button onclick="iofs.delete('C:/mainos/system32/ExpectedVersion.txt'); deletefile('C:/mainos/system32/ExpectedVersionnr.txt');">Upgrade through downgrade (old)</button>
<button onclick="" disabled>Upgrade through downgrade (update system variable)</button>
<button onclick="iofs.delete('C:/system/system_variable.txt')">Reset system variable</button>
<button onclick="localStorage.clear()">Reset system (Clear localStorage)</button>
<details>
<summary class="has_hover">Emergency Program Frame</summary>
<p>Here you can enter the path of a program and try to run it. Programs will behave weird</p>
<p>Examples (clickable): </p>
<ul>
<li><a class="has_hover" onclick="document.getElementById('emergencyinput').value = this.innerHTML; document.getElementById('emergencyinput').focus()">Program Files/cmd/exec.html</a></li>
<li><a class="has_hover" onclick="document.getElementById('emergencyinput').value = this.innerHTML; document.getElementById('emergencyinput').focus()">Program Files/settings/exec.html</a></li>
<li><a class="has_hover" onclick="document.getElementById('emergencyinput').value = this.innerHTML; document.getElementById('emergencyinput').focus()">Program Files/Explorer/inner/exec.html</a></li>
<li><a class="has_hover" onclick="document.getElementById('emergencyinput').value = this.innerHTML; document.getElementById('emergencyinput').focus()">Program Files/notepad/exec.html</a></li>
</ul>
<input type="text" id="emergencyinput" placeholder="Program path" onchange="document.getElementById('emergencyframe').src = this.value" onfocus="document.getElementById('emergencyframe').src = this.value">
<iframe src="about:blank" id="emergencyframe"></iframe>
</details>
</div>
<div id="emergencytoolsloading">
<progress value="0"></progress>
</div>
<div class="content">
<div id="background" class="bgck">
<p class="aboutthisversion">
<b id="username"></b><br>
<b class="speak">Welcome to </b><br>
<a>MainOS Version <span style="filter:blur(3px); font-weight: bold;">x.y.z</span><br>Maingron.com</a></p>
</div>
<div id="icons" class="icons">
<button id="icon1" onclick="enterFullscreen()"><img src="#iofs:C:/system/icons/fullscreen.svg">
<p>Toggle Fullscreen</p>
</button>
</div>
<div class="programs"></div>
<taskbar id="taskbar">
<div id="tasklist"></div>
<div id="taskbarright">
<div id="taskbarrighticons">
</div>
<div style="display:table">
<a class="taskbarlanguage"></a>
<a class="taskbartime" id="taskbartime"></a>
</div>
<a class="show-desktop has_hover" title="Show Desktop" onclick="showDesktop('toggle')" onmouseenter="showDesktop('peek')" onmouseout="showDesktop('unpeek')"></a>
</div>
</taskbar>
</div>
<!-- <script src="pwa1.js"></script> -->
</body>
</html>