-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
index.html
450 lines (438 loc) · 20.8 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
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Windows 11 by Rajaniraiyn</title>
<meta name="description" content="A simple Windows 11 experience within browser.">
<link rel="shortcut icon" href="src/icons/favicon.png" sizes="152x152">
<link rel="apple-touch-icon" href="src/icons/favicon.png">
<meta name="theme-color" content="#000"/>
<link rel="manifest" href="manifest.json" />
<meta name="author" content="Rajaniraiyn">
<meta name="robots" content="index, follow">
<meta name="rating" content="safe for kids">
<meta property="og:type" content="website">
<meta property="og:title" content="Windows 11 by Rajaniraiyn">
<meta property="og:url" content="/">
<meta property="og:image" content="https://repository-images.githubusercontent.com/383476453/3a749fd6-31c2-41ef-99ab-3c2d8405311e">
<meta property="og:description" content="A simple Windows 11 experience within browser.">
<link rel="preload" href="src/wallpaper/img100.webp" as="image">
<link rel="preload" href="src/wallpaper/img18.webp" as="image">
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('service-worker.js');
});
}
</script>
<!-- <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> -->
<!-- <link rel="stylesheet" href="src/css/jquery-ui.min.css"> -->
<!-- For Boot Screen -->
<style>
* {
margin: 0;
overflow: hidden;
}
.boot,
.boot-animation {
width: 100vw;
height: 100vh;
background-color: black;
display: flex;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
cursor: none;
}
.boot-animation {
display: none;
filter: brightness(1.34) contrast(1.06);
background-color: white;
}
</style>
<link rel="stylesheet" href="src/css/style.css">
</head>
<body>
<!-- Use this for custom cursor -->
<!--<img src="http://www.rw-designer.com/cursor-extern.php?id=139827" id="mouse" style="position: absolute;transition:none;pointer-events: none;z-index: 10000;" height=35>
<script>
document.body.onmousemove = e => {
document.querySelector("#mouse").style.setProperty("top", e.clientY + 'px');
document.querySelector("#mouse").style.setProperty("left", e.clientX + 'px');
}
</script>-->
<!-- password dialog -->
<div class="passwordDialog">
<div class="userProfile"><img src="src/icons/user.svg" alt="User Profile"></div>
<div class="username">User Name</div>
<div class="sign-in-content">
<div class="sign-in-method active" id="method_1" data-tab-info>
<input type="password" placeholder="PIN" id="passwordField">
<span class="hint">Your password is: 12345</span>
<div class="forgotOption">I forgot my pin</div>
</div>
<div class="sign-in-method" id="method_2" data-tab-info>
<img src="src/others/helloSearching.webp" width="50" style="margin-block-end: 10px;filter:blur(.5px)">
</div>
</div>
<div class="otherSignInOptions">Sign-in options
<div class="sign-in-methods">
<img data-tab-value="#method_1" src="src/icons/dialpad.svg">
<img data-tab-value="#method_2" src="src/icons/eye.svg">
</div>
</div>
<script>
var sIMethods = document.querySelectorAll('[data-tab-value]')
var sIContents = document.querySelectorAll('[data-tab-info]')
sIMethods.forEach(m => {
m.addEventListener('click', () => {
var sITarget = document.querySelector(m.dataset.tabValue);
sIContents.forEach(p => {
p.classList.remove('active')
})
sITarget.classList.add('active');
})
})
</script>
</div>
<!-- Lock Screen Box -->
<div id="lockScreen">
<div id="timeBox">
<span class="time">02:55</span>
<span class="date">Thursday, June 2017</span>
</div>
</div>
<!-- making a power on div and make user click a button so that we can autoplay videos -->
<div class="powerOnBox">
<div class="power-switch" id="powerOnBtn">
<input type="checkbox" />
<div class="button">
<svg class="power-off">
<use xlink:href="#a" class="a" />
<use xlink:href="#b" class="b" />
</svg>
<svg class="power-on">
<use xlink:href="#a" class="a" />
<use xlink:href="#b" class="b" />
</svg>
</div>
</div>
<span style="color: lavender">Click to start the Machine</span>
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol xmlns="http://www.w3.org/2000/svg" id="a" viewBox="0 0 150 150">
<path d="M75 34v24" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="b" viewBox="0 0 150 150">
<circle cx="75" cy="80" r="35" />
</symbol>
</svg>
</div>
<!-- Boot Elements -->
<div class="boot">
<img src="src/others/windowsLogo.svg" alt="Windows Logo" width="70" />
<picture>
<source srcset="src/others/bootLoader.svg">
<img src="src/others/bootLoader.gif" alt="Windows boot loader" width="50" height="50">
</picture>
</div>
<div class="boot-animation">
<!-- does not work in google chrome if the video is not muted.
works in firefox if autoplay permission for the site is granted.
works even on chrome with certain criteria fulfilled:
For more details:
https://developers.google.com/web/updates/2017/09/autoplay-policy-changes -->
<audio preload="auto" width="150" height="150" id="startupAudio">
<source src="src/sounds/Windows Startup.webm" type="audio/webm">
<source src="src/sounds/Windows Startup.mp3" type="audio/mp3">
</audio>
</div>
<!-- EDGE BROWSER -->
<!--
<div id = "browser" class="resizableWindow resizable">
<div class="tittleWindow">
<p>Edge</p>
</div>
<iframe class="frameresizableWindow" src="https://www.bing.com/"></iframe>
</div>
-->
<!-- EDGE BROWSER -->
<div class="desktop">
<div class="desktopIcons">
<!-- desktop icon 1 -->
<figure id="deskcomp">
<img src="src/icons/Computer.png" alt="Windows 11 This PC icon">
<figcaption class="iconName">This PC</figcaption>
</figure>
<!-- desktop icon 2 -->
<figure id="deskvscode" onclick="executeProgram('vscode')">
<img src="src/icons/vscode.png" alt="Visual Studio Code Icon">
<figcaption class="iconName">Visual Studio Code</figcaption>
</figure>
<!-- desktop icon 3 -->
<figure id="deskbrowser" onclick="executeProgram('msedge')">
<!-- <button onclick = "OCBROWSER()" id = "browserbtn" class = "Iconshell"> -->
<img src="src/icons/edge.svg" alt="Microsoft Edge Icon">
<figcaption class="iconName">Microsoft Edge</figcaption>
<!-- </button> -->
</figure>
</div>
</div>
<div class="start">
<div class="search">
<label>
<input type="text" placeholder="Type here to search" id="searchBar">
</label>
</div>
<div class="pinned">
<div class="start-top-elements">
<span>Pinned</span>
<button class="openAll" id="allapps">All apps <img src="src/icons/right.svg" alt="open all apps"
class="smallRight"></button>
</div>
<div class="start-icons">
<figure id="startEdge" onclick="executeProgram('msedge')">
<img src="src/icons/edge.svg" alt="Windows 11 Edge icon">
<figcaption>Edge</figcaption>
</figure>
<figure id="startWord">
<img src="src/icons/word.svg" alt="MS Word icon">
<figcaption>Word</figcaption>
</figure>
<figure id="startExcel" onclick="executeProgram('excel')">
<img src="src/icons/excel.svg" alt="MS Excel icon">
<figcaption>Excel</figcaption>
</figure>
<figure id="startPowerPoint" onclick="executeProgram('powerpoint')">
<img src="src/icons/powerPoint.svg" alt="PowerPoint icon">
<figcaption>PowerPoint</figcaption>
</figure>
<figure id="startMail">
<img src="src/icons/mail.svg" alt="Windows Mail icon">
<figcaption>Mail</figcaption>
</figure>
<figure id="startCalendar">
<img src="src/icons/calender.svg" alt="Windows Calender icon">
<figcaption>Calender</figcaption>
</figure>
<figure id="startStore">
<img src="src/icons/store.png" alt="Windows 11 Microsoft Store icon">
<figcaption>MS Store</figcaption>
</figure>
<figure id="startPhotos">
<img src="src/icons/photos.svg" alt="Windows Photos icon">
<figcaption>Photos</figcaption>
</figure>
<figure id="startOneNote">
<img src="src/icons/oneNote.svg" alt="OneNote icon">
<figcaption>OneNote</figcaption>
</figure>
<figure id="startYourPhone">
<img src="src/icons/yourPhone.svg" alt="Windows Your Phone icon">
<figcaption>Your Phone</figcaption>
</figure>
<figure id="startToDo">
<img src="src/icons/toDo.svg" alt="Microsoft To DO icon">
<figcaption>To Do</figcaption>
</figure>
<figure id="startLinkedIn">
<img src="src/icons/linkedIn.svg" alt="LinkedIn icon">
<figcaption>LinkedIn</figcaption>
</figure>
<figure id="startSettings" onclick="executeProgram('settings')">
<img src="src/icons/settings.svg" alt="Windows 11 Settings icon">
<figcaption>Settings</figcaption>
</figure>
<figure id="startCalci">
<img src="src/icons/calculator.svg" alt="Windows Calculator icon">
<figcaption>Calculator</figcaption>
</figure>
<figure id="startWhiteboard">
<img src="src/icons/whiteboard.png" alt="Windows Whiteboard icon">
<figcaption>Whiteboard</figcaption>
</figure>
<figure id="startSnip">
<img src="src/icons/snipSketch.svg" alt="Windows Snipping Tool icon">
<figcaption>Snipping Tool</figcaption>
</figure>
<figure id="startMovies">
<img src="src/icons/movies.svg" alt="Windows Movies & TV icon">
<figcaption>Movies & TV</figcaption>
</figure>
<figure id="startClock">
<img src="src/icons/clock.svg" alt="Windows Clock icon">
<figcaption>Clock</figcaption>
</figure>
</div>
</div>
<div class="recommended">
<div class="start-top-elements">
<span>Recommended</span>
<button class="openAll">More<img src="src/icons/right.svg" alt="open all apps"
class="smallRight"></button>
</div>
</div>
<div class="others">
<div class="user">
<img src="src/icons/user.png" alt="Windows 11 User icon">
<span>Rajaniraiyn</span>
</div>
<a href="src/redirects/shutdown/logoff.html"><img src="src/icons/shutdown.svg" alt="Windows 11 Shutdown icon" id="shutdown"></a>
</div>
</div>
<div class="taskbar">
<div class="center">
<img src="src/icons/startButton.png" alt="Windows 11 start icon" id="starticon">
<img src="src/icons/search.svg" alt="Windows 11 Search icon" id="searchIcon">
<img src="src/icons/taskView.svg" alt="Windows 11 Task View icon" id="taskviewIcon">
<img src="src/icons/widgets.svg" alt="Windows 11 widgets" id="widgetsIcon">
<img src="src/icons/teams.svg" alt="Microsoft Teams icon" id="teamsIcon">
<img src="src/icons/fileExplorer.png" alt="Windows 11 File Explorer icon" id="filesIcon">
<img src="src/icons/edge.svg" alt="Windows 11 Edge icon" onclick="executeProgram('msedge')" id="edgeIcon">
<img src="src/icons/store.png" alt="Windows 11 Store icon" id="storeIcon">
</div>
<div class="right">
<img src="src/icons/up.svg" alt="Up arrow">
<img src="src/icons/keyboard.svg" alt="Keyboard Meta Keys" id="keyboardOpener">
<div class="action-center-button" onclick="document.getElementById('acCheck').click()">
<input type="checkbox" name="acCheck" id="acCheck" style="display: none;" checked>
<img src="src/icons/wifi.svg" alt="WiFi" id="wifi">
<img src="src/icons/speaker.svg" alt="Speaker">
<img src="src/icons/batteryFull.svg" alt="Battery Full">
</div>
<div class="time-date">
<span></span>
<span></span>
<input type="checkbox" name="ncCheck" id="ncCheck" style="display: none;" checked>
</div>
</div>
</div>
<link rel="stylesheet" href="src/css/actionCenter.css">
<div class="action-center">
<div class="buttons">
<figure>
<div>
<img src="src/icons/wifi.svg" alt="WiFi Icon">
<img src="src/icons/right.svg" alt="Right Icon">
</div>
<figcaption>WiFi</figcaption>
</figure>
<figure>
<img src="src//icons/bluetooth.svg" alt="Bluetooth Icon">
<figcaption>Bluetooth</figcaption>
</figure>
<figure>
<img src="src/icons/airplane.svg" alt="Airplane Icon">
<figcaption>Airplane Mode</figcaption>
</figure>
<figure>
<img src="src/icons/batterySaver.svg" alt="Battery Saver Icon">
<figcaption>Battery Saver</figcaption>
</figure>
<figure>
<img src="src/icons/focusAssist.svg" alt="Focus Assist Icon">
<figcaption>Focus Assist</figcaption>
</figure>
<figure>
<div>
<img src="src/icons/accessability.svg" alt="Accessability Icon">
<img src="src/icons/right.svg" alt="Right Icon">
</div>
<figcaption>Accessability</figcaption>
</figure>
</div>
<div class="sliders">
<div class="brightness">
<img src="src/icons/brightness.svg" alt="Brightness Icon">
<input type="range" min="0" max="100" step="1" value="100">
</div>
<div class="volume">
<img src="src/icons/speaker.svg" alt="Speaker Icon">
<input type="range" min="0" max="100" step="1" value="100">
<img src="src/icons/right.svg" alt="Right Icon">
</div>
</div>
<div class="ac-bottom">
<div class="battery">
<img src="src/icons/batteryFull.svg" alt="Battery Icon">
<span></span>
</div>
<div class="options">
<img src="src/icons/edit.svg" alt="Edit Icon">
<img src="src/icons/options.svg" alt="Options Icon">
</div>
</div>
</div>
<div class="notification-center">
<div class="notifications">
</div>
<div class="calender">
<div class="calender-top">
<span>Calender</span>
<img src="src/icons/down.svg" alt="Down Icon" width="20" height="20">
</div>
</div>
</div>
<div id="context-menu">
<div class="item"><img src="src/icons/view.svg" alt="View"> View <img src="src/icons/right.svg" alt="Right arrow"></div>
<div class="item"><img src="src/icons/sort.svg" alt="Sort"> Sort by <img src="src/icons/right.svg" alt="Right arrow"></div>
<hr>
<div class="item">Refresh</div>
<div class="item"><img src="src/icons/new.svg" alt="New"> New item <img src="src/icons/right.svg" alt="Right arrow"></div>
<hr>
<div class="item"><img src="src/icons/display.svg" alt="Display"> Display settings</div>
<div class="item"><img src="src/icons/personalize.png" alt="Personalize"> Personalize</div>
<hr>
<div class="item"><img src="src/icons/terminal.png" alt="Terminal"> Open in Windows Terminal</div>
<hr>
<div class="item"><img src="src/icons/more.svg" alt="More"> Show more options <img src="src/icons/right.svg" alt="Right arrow"></div>
</div>
<!-- making run dialog -->
<div class="runDialog window">
<div class="runHeader"> <img src="src/icons/runicon.png" alt="run icon" class="runIconSmall"> <span>Run</span>
<div class="optionsWrapper"><img src="src/icons/cross.svg" alt="close" class="windowOptions windowCrosser"></div>
</div>
<div class="runBody">
<div class="runBodyMessage"><img src="src/icons/runicon.png" alt="run Icon" id="runIconBody"><span>Type the name of the program, folder, document or internet resources, and windows will open it for you.</span></div>
<label for="runInputField">Open: </label><input type="text" id="runInputField" autocomplete="off">
</div>
<div class="runFooter">
<button class="disabledButton" id="runOkBtn">Ok</button>
<button>Cancel</button>
<button>Browse...</button>
</div>
</div>
<div class="brightness-overlay"></div>
<div id="keyboard">
<div class="keys" id="keyboardHider">
<img src="src/icons/right.svg" alt="Hide the keyboard" style="transform: rotate(90deg);">
</div>
<div class="keys" data-value="Win" id="winkey">
<img src="src/icons/winkey.svg" alt="" style="filter: invert(1);width: 70%;">
</div>
<div class="keys" data-value="Alt" id="altKey">Alt</div>
<div class="keys" data-value="Ctrl" id="ctrlKey">Ctrl</div>
</div>
<div class="imagesToBePreloaded" style="display: none;"></div>
<!--
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="src/js/jquery-ui.min.js"></script>
<script src="src/js/iframes-apps.js"></script>
-->
<script src="src/js/boot.js"></script>
<script src="src/js/start.js"></script>
<script src="src/js/desktop.js"></script>
<script src="src/js/window.js"></script>
<script src="src/js/run.js"></script>
<script src="src/js/keyboard.js"></script>
<script src="src/js/taskbar.js"></script>
<script src="src/js/notification.js"></script>
<link rel="stylesheet" type="text/css" href="src/css/webapps.css">
<link rel="stylesheet" type="text/css" href="src/css/animations.css">
<script src="src/js/tutorial.js"></script>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@6"></script>
<link rel="stylesheet" href="https://unpkg.com/tippy.js@6/animations/scale.css">
<script src="src/js/tooltip.js"></script>
</body>
</html>