-
Notifications
You must be signed in to change notification settings - Fork 17
/
index.html
executable file
·355 lines (330 loc) · 12.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="description" content="Buddy Pond - Cloud OS and Instant Messenger all wrapped up in one delightfully fun to use App. We are making the Internet Fun Again." />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://buddypond.com">
<meta name="twitter:site" content="@marak">
<meta name="twitter:creator" content="@marak">
<meta name="twitter:title" content="Buddy Pond Cloud OS and Instant Messenger">
<meta name="twitter:description" content="Buddy Pond is a Cloud OS and Instant Messenger all wrapped up in one delightfully fun to use App. We are making the Internet Fun Again.">
<meta name="twitter:image" content="https://github.com/Marak/buddypond-assets/raw/master/promo/buddypond-demo-april-2022.gif">
<title>Buddy Pond</title>
<!--[if lt IE 7]>
<script>
window.top.location = 'ie.html';
</script>
<![endif]-->
<script type="text/javascript">
// certain websites are currently not supported as referrer
let notCurrentlySupportedSites = [/*'example.com', 'website.com'*/];
notCurrentlySupportedSites.forEach(function(site){
if (document.referrer.search(site) !== -1) {
alert(site + ' is currently not supported by Buddy Pond. \n\n Please check out our Github or try again later.')
document.location = 'https://duckduckgo.com/?q=happy+puppies&t=opera&iax=images&ia=images'
}
});
</script>
<link rel="stylesheet" href="desktop/assets/css/reset.css">
<link rel="stylesheet" href="desktop/assets/css/loader.css">
<!--[if lt IE 9]>
<link rel="stylesheet" href="desktop/assets/css/ie.css" />
<![endif]-->
</head>
<body>
<img id="wallpaper" class="abs wallpaper" src="desktop/assets/images/misc/wallpaper.jpg" />
<div id="loaderHolder">
<div id="loader"></div>
</div>
<!--
<div class="importantConfirmationsScreen">
<div class="confirmationForm">
CONFIRM
<form>
<button>Purchase GBP</button>
</form>
</div>
</div>
-->
<div id="mainOverlay">
<img class="mobileLoadingOverlay" src="desktop/assets/images/gui/rainbow-hexagon-lattice.gif"/>
<div class="abs" id="wrapper">
<div class="abs" id="desktop">
<!-- default desktop icons are currently rendered in `app.settings.load()` -->
<div class="desktop-shortcuts-container">
</div>
<canvas class="canvasBackground" id="c"></canvas>
<div class="abs" id="bar_top">
<ul>
<li>
<!-- Remark: Currently used to log window resize events <div class="debugWindow">DEBUG</div> -->
<a class="menu_trigger" href="#"><span class="me_title" id="me_title">Welcome - You look nice today!</span></a>
<ul class="menu">
<!--
<li>
<a class="editProfileLink" href="#">Set Status - Online</a>
</li>
<li>
<a class="editProfileLink" href="#">Set Status - Away</a>
</li>
<li>
<a class="editProfileLink" href="#">Set Status - Predisposed</a>
</li>
<li>
<a class="setStatus" href="#">Set Status - Custom</a>
</li>
<li class="emptyMenuCell"> </li>
<li class="emptyMenuCell"> </li>
-->
<li>
<span class="tiny"><em>We are stoked to be your buddy</em></span>
</li>
<li class="emptyMenuCell"> </li>
<li>
<a class="editProfileLink" title="Login to Edit Profile" href="#">Edit Profile</a>
</li>
<li class="emptyMenuCell"> </li>
<li>
<a class="loginLink" href="#">Login</a>
</li>
<li>
<a class="logoutLink" href="#">Logout</a>
</li>
</ul>
</li>
</ul>
<ul>
<li>
<a class="menu_trigger" href="#"><span class="me_title" id="me_title">Window</span></a>
<ul class="menu">
<li>
<a class="setFullscreen" title="Hide All" href="#">Full Screen</a>
</li>
<li>
<a class="hideAllWindows" title="Hide All" href="#">Hide All</a>
</li>
<li>
<a class="setWindowAsWallpaper" title="Set Active Window to Wallpaper" href="#">Set Active Window to Wallpaper</a>
</li>
</ul>
</li>
</ul>
<span class="float_right" id="clock"></span>
<span class="float_right" id="volume">
<span class="navbarControl volumeToggle volumeFull">🔉</span>
<span class="navbarControl volumeToggle volumeMuted">🔇</span>
</span>
<ul class="float_right">
<li>
<a class="menu_trigger" href="#">Buddy Pond</a>
<ul class="menu">
<li>
<a href="https://github.com/marak/buddypond">Source Code</a>
</li>
<li>
<a href="https://buddypond.com/sdk/client">Client SDK</a>
</li>
<li>
<a href="https://github.com/marak/buddypond">Home Page</a>
</li>
</ul>
</li>
</ul>
<ul class="float_right">
<li>
<a class="menu_trigger" href="#">
<!--
<span class="desktopConnected float_right">Connection Established</span>
-->
<span class="totalConnected float_right"><span class="totalConnectedCount">0</span> Buddies Connected</span>
<span class="desktopDisconnected float_right">Disconnected</span>
</a>
<ul class="menu connectionDetails">
<li>
Connection Started: <span class="connection_ctime"></span> <br/>
Packets Sent <span class="connection_packets_sent"></span> <br/>
Packets Recieved <span class="connection_packets_recieved"></span> <br/>
</li>
<li>
Last Response Time: <span class="connection_last_response_time">33ms</span> <br/>
Average Response Time: <span class="connection_average_response_time">33ms</span> <br/>
<!-- Server Load <span class="">Low</span> <br/> -->
</li>
</ul>
</li>
</ul>
<select name="selectPlaylist" class="desktopSelect selectPlaylist float_right">
<option>Select music playlist...</option>
<option value="1427128612">Buddy House 2 ( 10 Tracks )</option>
<option value="1397493787">Buddy House 1 ( 10 Tracks )</option>
<option value="1397230333">Buddy House 0 ( 33 Tracks )</option>
<option value="942151069">Andrew Potthast: Bangas</option>
<option value="938848927">Andrew Potthast: Burning Man Set</option>
<option value="839091662">Featured Buddy: Andrew Potthast</option>
<option value="1427279635">Featured Buddy: ioqpvs</option>
</select>
<select name="selectTheme" class="desktopSelect selectTheme float_right">
<option value="Light">Light Theme</option>
<option value="Dark">Dark Theme</option>
<option value="Nyan">Nyan Theme</option>
<option value="Hacker">Hacker Theme</option>
<option value="Water">Water Theme</option>
<option value="Customize">Customize Theme</option>
<!--
<option value="Customize">EPIC MODE ( my poor browser ) </option>
<option value="Customize">Comic Theme</option>
-->
</select>
</div>
<div class="abs" id="bar_bottom">
<a class="float_left" href="#" id="show_desktop" title="Show Desktop">
<img src="desktop/assets/images/icons/home-icon.png" />
</a>
<ul id="dock">
<li id="icon_dock_buddy_message_0">
<a href="#window_buddy_message_0">
<img class="emojiIcon" src="desktop/assets/images/icons/icon_buddylist_64.png" />
<div class="dock_title">
Chat with X
</div>
</a>
</li>
<li id="icon_dock_pond_message_0">
<a href="#window_pond_message_0">
<img class="emojiIcon" width="16" height="16" src="desktop/assets/images/icons/icon_pond_64.png" />
<div class="dock_title">
Chat with X
</div>
</a>
</li>
</ul>
</div>
</div>
</div>
<link rel="stylesheet" href="desktop/assets/css/desktop.css" />
<link rel="stylesheet" href="desktop/assets/css/mobile.css" />
<link rel="stylesheet" href="desktop/assets/css/jquery.ui.css">
<script src="desktop/assets/js/jquery.js"></script>
<!-- ><script src="desktop/assets/js/jquery.ripples.js"></script> -->
<script src="desktop/assets/js/jquery.ui.js"></script>
<script src="desktop/assets/js/jquery.dateformat.js"></script>
<script src="desktop/assets/js/forbidden.notes.js"></script>
<script src="sdk/buddypond.js"></script>
<script src="desktop.js"></script>
<script src="desktop.load.js"></script>
<script src="desktop.ui.js"></script>
<script src="desktop.ui.events.js"></script>
<script>
// see: ReadMe.md for documentation on `desktop.use`
$(document).ready(function(){
let documentReadyTime = new Date();
desktop.log('Buddy Pond Cloud OS Initialized');
desktop.log('Now loading apps');
desktop
.use('console')
.use('localstorage')
.use('settings')
.use('clock')
.use('wallpaper')
.use('themes')
.use('audioplayer')
.use('appstore')
.use('tts')
.use('notifications')
.use('messages')
.use('buddylist')
.use('pond')
.use('streamsquad')
.use('spellbook')
.use('mantra')
.use('profile')
.use('login', { defer: true })
.use('videochat', { defer: true })
.ready(function(err, apps){
// desktop.log("Loaded", desktop.apps.loaded);
try {
desktop.ui.windowResizeEventHandler(null, true);
} catch (err) {
// alert(err.message)
}
desktop.log('Ready:', 'Buddy Pond', 'v4.20.69')
// Desktop is ready, start refreshing it's state immediately
desktop.refresh();
// desktop.ui.openWindow('mantra')
let now = new Date();
// For Buddy Experience we'll add some fades and delays
let fadeInDelay = 555;
// If the page has taken over 3.333 seconds to load...
// ...reduce the fade in delay ( since the Buddy has waited long enough )
if (now.getTime() - documentReadyTime.getTime() > 3333) {
fadeInDelay = 111;
}
$('#loaderHolder').fadeOut({
easing: 'linear',
duration: fadeInDelay,
complete: function(){
$('#mainOverlay').fadeIn({
easing: 'linear',
duration: 333
});
}
});
// TODO: move this to somewhere? its a UI widget scoped to the desktop itself ( nav bar )
// TODO: add a logic section for handling navbar widgets ( click, conneciton status etc)
$('.selectPlaylist').on('change', function(){
$('#soundcloudiframe').remove();
$('#soundcloudplayer').html('');
if (desktop.app.soundcloud) {
desktop.app.soundcloud.embeded = false;
}
desktop.ui.openWindow('soundcloud', { playlistID: $(this).val() });
});
$('.selectTheme').on('change', function(){
let theme = $(this).val();
if (theme === 'Customize') {
desktop.ui.openWindow('profile', { context: 'themes' })
} else {
desktop.app.themes.applyTheme(desktop.app.themes.themes[theme]);
desktop.set('active_theme', theme);
}
});
if (!desktop.settings.audio_enabled) {
$('.volumeFull').hide();
$('.volumeMuted').show();
}
$('.volumeToggle').on('click', function(){
if (desktop.settings.audio_enabled) {
desktop.set('audio_enabled', false);
} else {
desktop.set('audio_enabled', true);
}
});
desktop.on('desktop.settings.audio_enabled', 'update-nav-volume', function(){
if (!desktop.settings.audio_enabled) {
$('.volumeFull').hide();
$('.volumeMuted').show();
} else {
$('.volumeFull').show();
$('.volumeMuted').hide();
desktop.app.audioplayer.play('desktop/assets/audio/IM.wav');
}
});
//
// Remark: You can add JS code here to run after the desktop is ready
//
//
// `App.WebView` ? Perhaps not
// desktop.ui.openWindow('webview', { url: 'https://google.com', browser: 'chrome' });
// never gonna work due to:
// Refused to display 'https://www.google.com/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
// desktop.ui.openWindow('console');
});
});
</script>
<div id="shadowRender">
</div>
</body>
</html>