-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
233 lines (212 loc) · 18.6 KB
/
Copy pathindex.html
File metadata and controls
233 lines (212 loc) · 18.6 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Desktop</title>
<link rel="stylesheet" href="dist/output.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<script src="script.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/interactjs/dist/interact.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<link rel="stylesheet" href="https://cdn.plyr.io/3.8.3/plyr.css"/>
<script src="https://cdn.plyr.io/3.8.3/plyr.polyfilled.js"></script>
<link rel="icon" type="image/png" href="/assets/favicon/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/assets/favicon/favicon.svg" />
<link rel="shortcut icon" href="/assets/favicon/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png" />
<meta name="apple-mobile-web-app-title" content="sOS" />
<link rel="manifest" href="/assets/favicon/site.webmanifest" />
</head>
<body>
<div id="desktop" class="relative h-screen bg-gradient-to-br from-blue-400 to-purple-500 p-4 select-none overflow-hidden">
<div id="mobile-alert" class="hidden absolute top-1/10 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-3/4 max-w-2xl">
<h3 class="bg-red-600 text-white p-6 rounded shadow-lg text-center text-2xl font-bold">This site is best experienced on a desktop or a laptop.</h3>
</div>
<h1 class="text-white text-7xl absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 hover:scale-110 hover:text-gray-700 transition-all duration-300">sOS</h1>
<div id="taskbar" class="fixed bottom-0 left-0 right-0 bg-gray-800 bg-opacity-75 text-white p-2 flex justify-between items-center">
<div id="start-menu" class="cursor-pointer font-bold border-2 border-gray-400 hover:bg-gray-700 rounded px-9 py-2 transform active:scale-95 transition">Start</div>
<div id="taskbar-widgets" class="flex space-x-4">
<p id="time" class="text-sm cursor-pointer border-2 border-gray-400 rounded px-4 py-2"></p>
<div id="notifications" class="text-sm cursor-pointer border-2 border-gray-400 rounded px-4 py-2">0 Notifications</div>
</div>
</div>
<div id="startMenu" class="hidden fixed bottom-12 left-4 bg-white bg-opacity-90 rounded shadow-lg p-4 w-48 mb-7 ml-6">
<ul>
<li class="py-1 hover:bg-gray-200 cursor-pointer" data-app="notepad"><i class="bi bi-file-earmark-text"></i> Notepad</li>
<li class="py-1 hover:bg-gray-200 cursor-pointer" data-app="camera"><i class="bi bi-camera"></i> Camera</li>
<li class="py-1 hover:bg-gray-200 cursor-pointer" data-app="music"><i class="bi bi-music-note"></i> Music</li>
<li class="py-1 hover:bg-gray-200 cursor-pointer" data-app="calculator"><i class="bi bi-calculator"></i> Calculator</li>
<li class="py-1 hover:bg-gray-200 cursor-pointer" data-app="weather"><i class="bi bi-cloud-sun"></i> Weather</li>
<li class="py-1 hover:bg-gray-200 cursor-pointer" data-app="qrgen"><i class="bi bi-qr-code"></i> QR Gen</li>
<li class="py-1 hover:bg-gray-200 cursor-pointer" data-app="stopwatch"><i class="bi bi-clock"></i> Stopwatch</li>
</ul>
</div>
<div id="rightClickMenu" class="hidden fixed bg-white bg-opacity-90 rounded shadow-lg p-4 w-48 mb-7 ml-6">
<ul>
<li class="py-1 hover:bg-gray-200 cursor-pointer" data-app="notepad"><i class="bi bi-file-earmark-text"></i> Notepad</li>
<li class="py-1 hover:bg-gray-200 cursor-pointer" data-app="camera"><i class="bi bi-camera"></i> Camera</li>
<li class="py-1 hover:bg-gray-200 cursor-pointer" data-app="music"><i class="bi bi-music-note"></i> Music</li>
<li class="py-1 hover:bg-gray-200 cursor-pointer" data-app="calculator"><i class="bi bi-calculator"></i> Calculator</li>
<li class="py-1 hover:bg-gray-200 cursor-pointer" data-app="weather"><i class="bi bi-cloud-sun"></i> Weather</li>
<li class="py-1 hover:bg-gray-200 cursor-pointer" data-app="qrgen"><i class="bi bi-qr-code"></i> QR Gen</li>
<li class="py-1 hover:bg-gray-200 cursor-pointer" data-app="stopwatch"><i class="bi bi-clock"></i> Stopwatch</li>
</ul>
</div>
<div id="shortcutsContainer" class="absolute top-4 left-4 space-y-4">
<div class="shortcut flex flex-col items-center cursor-pointer hover:bg-gray-700 rounded transform active:scale-95 transition" data-app="notepad">
<i class="bi bi-file-earmark-text text-4xl text-white"></i>
<span class="text-white mt-2">Notepad</span>
</div>
<div class="shortcut flex flex-col items-center cursor-pointer hover:bg-gray-700 rounded transform active:scale-95 transition" data-app="camera">
<i class="bi bi-camera text-4xl text-white"></i>
<span class="text-white mt-2">Camera</span>
</div>
<div class="shortcut flex flex-col items-center cursor-pointer hover:bg-gray-700 rounded transform active:scale-95 transition" data-app="music">
<i class="bi bi-music-note text-4xl text-white"></i>
<span class="text-white mt-2">Music</span>
</div>
<div class="shortcut flex flex-col items-center cursor-pointer hover:bg-gray-700 rounded transform active:scale-95 transition" data-app="calculator">
<i class="bi bi-calculator text-4xl text-white"></i>
<span class="text-white mt-2">Calculator</span>
</div>
<div class="shortcut flex flex-col items-center cursor-pointer hover:bg-gray-700 rounded transform active:scale-95 transition" data-app="weather">
<i class="bi bi-cloud-sun text-4xl text-white"></i>
<span class="text-white mt-2">Weather</span>
</div>
<div class="shortcut flex flex-col items-center cursor-pointer hover:bg-gray-700 rounded transform active:scale-95 transition" data-app="qrgen">
<i class="bi bi-qr-code text-4xl text-white"></i>
<span class="text-white mt-2">QR Gen</span>
</div>
<div class="shortcut flex flex-col items-center cursor-pointer hover:bg-gray-700 rounded transform active:scale-95 transition" data-app="stopwatch">
<i class="bi bi-clock text-4xl text-white"></i>
<span class="text-white mt-2">Stopwatch</span>
</div>
<div id="notepad" class="hidden absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[600px] h-[500px] border-2 border-gray-400 rounded shadow-lg">
<div class="window bg-white border border-gray-400 rounded shadow-lg w-full h-full flex flex-col">
<div class="window-header bg-gray-200 p-2 flex justify-between items-center cursor-move">
<span class="font-bold">Notepad</span>
<button class="close-button text-red-500 font-bold hover:rotate-90 hover:scale-125 cursor-pointer transition duration-300">×</button>
</div>
<textarea class="flex-grow p-10 border-t border-gray-400 resize-none" placeholder="Type your notes here..."></textarea>
</div>
</div>
<div id="camera" class="hidden absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[600px] h-[500px] border-2 border-gray-400 rounded shadow-lg">
<div class="window bg-white border border-gray-400 rounded shadow-lg w-full h-full flex flex-col">
<div class="window-header bg-gray-200 p-2 flex justify-between items-center cursor-move">
<span class="font-bold">Camera</span>
<button class="close-button text-red-500 font-bold hover:rotate-90 hover:scale-125 cursor-pointer transition duration-300">×</button>
</div>
<video id="camera-stream" class="flex-grow bg-black" autoplay loop muted>
<source src="">
</video>
</div>
</div>
<div id="music" class="hidden absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[700px] h-[670px] border-2 border-gray-400 rounded shadow-lg">
<div class="window bg-white border border-gray-400 rounded shadow-lg w-full h-full flex flex-col">
<div class="window-header bg-gray-200 p-2 flex justify-between items-center cursor-move">
<span class="font-bold">Music</span>
<button class="close-button text-red-500 font-bold hover:rotate-90 hover:scale-125 cursor-pointer transition duration-300">×</button>
</div>
<div class="flex-grow p-4 flex flex-col overflow-auto">
<h2 class="text-xl font-bold mb-4 text-center">This week's playlist:</h2>
<img src="https://somafm.com/img3/folkfwd-400.jpg" alt="Folk Forward" class="mx-auto mb-4 max-w-full h-auto rounded-lg shadow-lg">
</div>
<div class="p-4 flex flex-col">
<div id="playerContainer" class="w-full mt-auto border-2 border-gray-400 rounded p-2">
<audio id="audio-player" controls>
<source src="https://ice1.somafm.com/folkfwd-128-mp3" type="audio/mpeg">
</audio>
<p class="text-sm mt-2 text-center">Streaming from <a href="https://somafm.com/" target="_blank" class="italic hover:underline">SomaFM</a> - Folk Forward</p>
</div>
</div>
</div>
</div>
<div id="calculator" class="hidden absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[600px] h-[700px] border-2 border-gray-400 rounded shadow-lg">
<div class="window bg-white border border-gray-400 rounded shadow-lg w-full h-full flex flex-col">
<div class="window-header bg-gray-200 p-2 flex justify-between items-center cursor-move">
<span class="font-bold">Calculator</span>
<button class="close-button text-red-500 font-bold hover:rotate-90 hover:scale-125 cursor-pointer transition duration-300">×</button>
</div>
<div class="flex-grow p-4 overflow-auto">
<div id="display" class="text-right h-20 leading-[70px] px-2 py-4 text-2xl border-b border-gray-400"></div>
<div class="grid grid-cols-4">
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">C</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">/</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">*</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">←</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">7</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">8</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">9</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">-</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">4</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">5</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">6</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">+</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">1</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">2</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">3</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">(</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">)</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">0</div>
<div class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-white hover:bg-gray-800 hover:text-white transition-all duration-500">.</div>
<div id="equal" class="calc-btn border border-gray-400 h-24 flex items-center justify-center text-2xl cursor-pointer bg-blue-600 text-white hover:bg-gray-800 transition-all duration-500">=</div>
</div>
</div>
</div>
</div>
</div>
<div id="weather" class="hidden absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[400px] h-[500px] border-2 border-gray-400 rounded shadow-lg">
<div class="window bg-white border border-gray-400 rounded shadow-lg w-full h-full flex flex-col overflow-hidden">
<div class="window-header bg-gray-200 p-2 flex justify-between items-center cursor-move">
<span class="font-bold">Weather</span>
<button class="close-button text-red-500 font-bold hover:rotate-90 hover:scale-125 cursor-pointer transition duration-300">×</button>
</div>
<div class="p-4 flex-shrink-0">
<input type="text" id="cityInput" placeholder="enter city name..." class="w-full p-2 border border-gray-400 rounded">
<button id="searchWeather" class="mt-2 w-full bg-blue-500 text-white p-2 rounded cursor-pointer hover:bg-blue-700 transition duration-300">Search</button>
</div>
<div id="weatherInfo" class="flex-grow p-4 hidden overflow-y-auto">
<h3 id="weatherCity" class="text-2xl font-bold mb-2"></h3>
<p id="weatherTemp" class="text-xl mb-2"></p>
<p id="weatherDescription" class="text-lg mb-2"></p>
<p id="weatherHumidity" class="text-lg mb-2"></p>
<p id="weatherWind" class="text-lg mb-2"></p>
</div>
<div id="weatherError" class="text-red-500 text-center p-2 hidden"></div>
</div>
</div>
<div id="qrgen" class="hidden absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[600px] h-[500px] border-2 border-gray-400 rounded shadow-lg">
<div class="window bg-white border border-gray-400 rounded shadow-lg w-full h-full flex flex-col overflow-hidden">
<div class="window-header bg-gray-200 p-2 flex justify-between items-center cursor-move">
<span class="font-bold">QR Gen</span>
<button class="close-button text-red-500 font-bold hover:rotate-90 hover:scale-125 cursor-pointer transition duration-300">×</button>
</div>
<p class="text-center mt-2">Enter an URL to generate a QR code.</p>
<div class="p-4 flex-shrink-0">
<input type="text" id="qrInput" placeholder="enter URL..." class="w-full p-2 border border-gray-400 rounded">
<button id="generateQR" class="mt-2 w-full bg-blue-500 text-white p-2 rounded cursor-pointer hover:bg-blue-700 transition duration-300">Generate QR Code</button>
</div>
<div id="qrResult" class="flex-grow p-4 flex flex-col items-center justify-center overflow-auto">
<img src="" id="qrImage" class="hidden border-2 border-gray-400 max-w-full max-h-full object-contain">
</div>
</div>
</div>
<div id="stopwatch" class="hidden absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[600px] h-[500px] border-2 border-gray-400 rounded shadow-lg">
<div class="window bg-white border border-gray-400 rounded shadow-lg w-full h-full flex flex-col">
<div class="window-header bg-gray-200 p-2 flex justify-between items-center cursor-move">
<span class="font-bold">Stopwatch</span>
<button class="close-button text-red-500 font-bold hover:rotate-90 hover:scale-125 cursor-pointer transition duration-300">×</button>
</div>
<div class="flex-grow p-4 flex flex-col items-center justify-center">
<div id="stopwatchDisplay" class="text-6xl font-bold mb-8">00:00:00</div>
<div class="flex space-x-4">
<button id="startStopwatch" class="bg-green-500 text-white px-6 py-2 rounded cursor-pointer hover:bg-green-700 transition duration-300">Start</button>
<button id="stopStopwatch" class="bg-red-500 text-white px-6 py-2 rounded cursor-pointer hover:bg-red-700 transition duration-300">Stop</button>
<button id="resetStopwatch" class="bg-gray-500 text-white px-6 py-2 rounded cursor-pointer hover:bg-gray-700 transition duration-300">Reset</button>
</div>
</div>
</div>
</div>
</body>
</html>