-
Notifications
You must be signed in to change notification settings - Fork 0
/
desktop.html
200 lines (193 loc) · 9.54 KB
/
desktop.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html lang="en" onkeyup="esc(event);" onmousemove="screensaverTimeout=200;">
<head>
<!--Sowwyz#1337-->
<meta charset="UTF-8">
<title>Sowwyz</title>
<link rel="stylesheet" href="./Sowwyz/sys/dist/style.css">
<link rel="stylesheet" href="./Sowwyz/sys/dist/desktop.css">
<link rel="shortcut icon" href="./Sowwyz/icons/favicon.png">
<!--Sowwyz#1337-->
<!--JS Librarys-->>
<script src='./Sowwyz/lib/jquery.js'></script>
<script src="./Sowwyz/lib/jquery-ui.js"></script>
<script src='./Sowwyz/lib/masonry.min.js'></script>
</head>
<body>
<!-- Sowwyz#1337 -->
<!-- Sowwyz#1337 -->
<div id="desktopBG" class="desktop">
<div class="desktop__item" ondblclick="startProgram('', 'https://www.bing.com');">
<img class="desktop_icons" src="./Sowwyz/icons/google.png"></img>
<text>Google</text>
</div>
<div class="desktop__item" ondblclick="startProgram('Notepad', '');">
<img class="desktop_icons" src="./applications/Notepad/favicon.png"></img>
<text>Notepad</text>
</div>
<div class="desktop__item" ondblclick="startProgram('', 'http://localhost:8080/?dir=Home');">
<img class="desktop_icons" src="./Sowwyz/icons/files.png"></img>
<text>Files</text>
</div>
<div class="desktop__item" ondblclick="startProgram('Google Docs', '');">
<img class="desktop_icons" src="./applications/Google Docs/favicon.png"></img>
<text>Docs</text>
</div>
<div class="desktop__item" ondblclick="startProgram('Google Slides', '');">
<img class="desktop_icons" src="./applications/Google Slides/favicon.png"></img>
<text>Slides</text>
</div>
<div class="desktop__item" ondblclick="startProgram('Google Sheets', '');">
<img class="desktop_icons" src="./applications/Google Sheets/favicon.png"></img>
<text>Sheets</text>
</div>
<div class="start-menu-fade"></div>
<a id="editDesktopBTN" href="#" onclick="desktopContextMenu(window.innerWidth - 200, 0, true);">☰</a>
<!-- Sowwyz#1337 -->
<!--CONTEXT MENU-->
<ul class="contextMenu" id="desktopContextMenu" style="display:none;">
<strong id="contextMenuTitle"><u>Sowwyz</u></strong>
<br>
<a onclick="editDesktop();">Edit Desktop</a>
<br>
<a onclick="initializeDesktop();">Refresh Desktop</a>
<br>
<a onclick="addFile('file');">New File</a>
<br>
<a onclick="document.getElementById('file-input').click();">Install Apps</a>
<input id="file-input" type="file" name="name" onchange="addApp(this.files)" style="display: none;" />
<br>
<a onclick="$('#all-apps').show()">All Apps</a>
<br>
<a onclick="loadBackground();">New Background</a>
</ul>
<!-- Sowwyz#1337 -->
<div class="start-menu">
<div class="start-menu__list">
<div class="media">
<a class="user-info menu-toggle" href="#" data-menu="user">
<img class="user-info__img media__img" src="./Sowwyz/icons/profile.png">
<div class="user-info__name media__body">
<span id="currentUser">Demo Account</span>
</div>
</a>
<div class="menu" data-menu="user">
<a href="#">Change account picture</a>
<a href="#" onclick="user('lock')">Lock</a>
<a href="#" onclick="user('logout')">Switch User</a>
</div>
<a class="user-info__power menu-toggle" href="#" data-menu="power">
<strong>✲</strong>
<!--Sowwyz#1337-->
</a>
</div>
<!--Sowwyz#1337-->
<div class="menu" data-menu="power">
<a onclick="user('sleep');">Sleep</a>
<a onclick="window.close();" href="#">Power off</a>
<a onclick="location.reload(false);" href="#">Reset</a>
</div>
<!--Sowwyz#1337-->
<ul class="start-menu__recent">
<li>
<a onclick="startProgram('', 'https://www.bing.com');">
<i><img class="icons" src="./Sowwyz/icons/google.png" />Web Browser</i>
</a>
</li>
<li>
<a href="javascript:void(0);" onclick="startProgram('Notepad', '');">
<i><img class="icons" src="./applications/Notepad/favicon.png" />Notepad</i>
</a>
</li>
<li class="start-menu__notepad">
<a onclick="startProgram('', 'http://localhost:8080/?dir=Home');">
<i class="fa fa-pencil" style="display:none;"></i><i><img class="icons" src="./Sowwyz/icons/files.png" />Files</i>
</a>
</li>
</ul>
<a id="all-appsBTN" href="#">
All apps
<i class="fa fa-arrow-right"></i>
</a>
<input type="text" id="search__input" placeholder="search" onkeydown="navigate(event);" spellcheck="false" autocomplete="off" autofocus></input>
</div>
</div>
<!--Sowwyz#1337-->
<!--Sowwyz#1337-->
<ul id="all-apps" style="display: none;">
<button id="allAppsCloseBTN" type="button">exit</button>
<div class="draw__item" onclick="startProgram('', 'https://www.bing.com'); $('#all-apps').hide();">
<button class="deleteBTN">x</button>
<img class="desktop_icons" src="./Sowwyz/icons/google.png"></img><br>
<text>Web Browser</text>
</div>
<div class="draw__item" onclick="startProgram('Notepad', ''); $('#all-apps').hide();">
<button class="deleteBTN">x</button>
<img class="desktop_icons" src="./applications/Notepad/favicon.png"></img><br>
<text>Notepad</text>
</div>
<div class="draw__item" onclick="startProgram('', 'http://localhost:8080/?dir=Home'); $('#all-apps').hide();">
<button class="deleteBTN">x</button>
<img class="desktop_icons" src="./Sowwyz/icons/files.png"></img><br>
<text>Files</text>
</div>
<div class="draw__item" onclick="startProgram('Google Docs', ''); $('#all-apps').hide();">
<button class="deleteBTN">x</button>
<img class="desktop_icons" src="./applications/Google Docs/favicon.png"></img><br>
<text>Docs</text>
</div>
<div class="draw__item" onclick="startProgram('Google Slides', ''); $('#all-apps').hide();">
<button class="deleteBTN">x</button>
<img class="desktop_icons" src="./applications/Google Slides/favicon.png"></img><br>
<text>Slides</text>
</div>
<div class="draw__item" onclick="startProgram('Google Sheets', ''); $('#all-apps').hide();">
<button class="deleteBTN">x</button>
<img class="desktop_icons" src="./applications/Google Sheets/favicon.png"></img><br>
<text>Sheets</text>
</div>
<div class="draw__item" onclick="startProgram('PDF Viewer', ''); $('#all-apps').hide();">
<button class="deleteBTN">x</button>
<img class="desktop_icons" src="./applications/PDF Viewer/favicon.png"></img><br>
<text>PDF Viewer</text>
</div>
<div class="draw__item" onclick="startProgram('Calculator', ''); $('#all-apps').hide();">
<button class="deleteBTN">x</button>
<img class="desktop_icons" src="./applications/Calculator/favicon.png"></img><br>
<text>Calculator</text>
</div>
<div class="draw__item" onclick="startProgram('Camera', ''); $('#all-apps').hide();">
<button class="deleteBTN">x</button>
<img class="desktop_icons" src="./applications/Camera/favicon.png"></img><br>
<text>Camera</text>
</div>
<div class="draw__item" onclick="startProgram('Calender', ''); $('#all-apps').hide();">
<button class="deleteBTN">x</button>
<img class="desktop_icons" src="./applications/Calender/favicon.png"></img><br>
<text>Calender</text>
</div>
</ul>
<!--Sowwyz#1337-->
<div class="taskbar">
<a id="superButton" class="taskbar__item taskbar__item--start" href="javascript:void(0)">
<b>X</b>
</a>
<div class="taskbar__tray">
<span class="wrapper-taskbar" id="appsTray">
</span>
<span class="time" onclick="startProgram('Calender', '');"><p id="timeDisplay"></p></span>
<button id="showdesktopBTN" type="button" onclick="showDesktop();"></button>
</div>
</div>
<!--Sowwyz#1337-->
</div>
<!--Sowwyz#1337-->
</body>
<!--Sowwyz#1337-->
<footer>
<script src="./Sowwyz/sys/dist/desktop.js"></script>
<script src="./Sowwyz/sys/dist/script.js"></script>
</footer>
<!--Sowwyz#1337-->
</html>
<!--Sowwyz#1337-->