forked from jmoenig/Snap
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.dot
91 lines (84 loc) · 4.78 KB
/
index.dot
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
/* Basic index file for netsblox editor. Uses minified Javascript for production. */
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{{= it.title }}</title>
<link rel="shortcut icon" href="favicon.ico">
<meta property="og:site_name" content="{{= it.title }}"/>
{{ if (it.description) { }} <meta property="og:description" content="{{= it.description }}"/> {{ } }}
{{ if (it.title) { }} <meta property="og:title" content="{{= it.title }}"/> {{ } }}
{{ if (it.image) { }}
<meta property="og:image" content="{{= it.image.url }}"/>
<meta property="og:image:width" content="{{= it.image.width }}"/>
<meta property="og:image:height" content="{{= it.image.height }}"/>
{{ } }}
{{ if (it.url) { }} <meta property="og:url" content="{{= encodeURI(it.url) }}"/> {{ } }}
<script type="text/javascript" src="src/main.js"></script>
<script type="text/javascript">
(async function() {
const defaultCloud = {{= it.cloud ? `"${it.cloud}"` : 'window.location.origin' }};
const serverUrl = (function () {
const qsParams = Object.fromEntries(
window.location.href.split('?').map(chunk => chunk.split('=').map(decodeURIComponent))
);
return qsParams.server || defaultCloud;
})();
if (document.readyState === 'complete') {
startEnvironment(serverUrl);
} else {
window.onload = () => startEnvironment(serverUrl);
}
})();
</script>
{{ if (it.isDevMode) { }}
<script type="text/javascript" src="src/logo.js"></script>
<script type="text/javascript" src="src/utils.js"></script>
<script type="text/javascript" src="src/polyfill.js"></script>
<script type="text/javascript" src="src/services.js"></script>
<script type="text/javascript" src="src/morphic.js"></script>
<script type="text/javascript" src="src/extensions.js"></script>
<script type="text/javascript" src="src/symbols.js"></script>
<script type="text/javascript" src="src/widgets.js"></script>
<script type="text/javascript" src="src/locale.js"></script>
<script type="text/javascript" src="src/blocks.js"></script>
<script type="text/javascript" src="src/blocks-ext.js"></script>
<script type="text/javascript" src="src/threads.js"></script>
<script type="text/javascript" src="src/objects.js"></script>
<script type="text/javascript" src="src/paint.js"></script>
<script type="text/javascript" src="src/cloud/dist/client.js"></script>
<script type="text/javascript" src="src/gui.js"></script>
<script type="text/javascript" src="src/video.js"></script>
<script type="text/javascript" src="src/sketch.js"></script>
<script type="text/javascript" src="src/lists.js"></script>
<script type="text/javascript" src="src/byob.js"></script>
<script type="text/javascript" src="src/tables.js"></script>
<script type="text/javascript" src="src/xml.js"></script>
<script type="text/javascript" src="src/store.js"></script>
<script type="text/javascript" src="src/sha512.js"></script>
<script type="text/javascript" src="src/actions.js"></script>
<script type="text/javascript" src="src/undo.js"></script>
<script type="text/javascript" src="src/FileSaver.min.js"></script>
<script type="text/javascript" src="src/message-inputs.js"></script>
<script type="text/javascript" src="src/message-listeners.js"></script>
<script type="text/javascript" src="src/widgets-ext.js"></script>
<script type="text/javascript" src="src/objects-ext.js"></script>
<script type="text/javascript" src="src/gui-ext.js"></script>
<script type="text/javascript" src="src/threads-ext.js"></script>
<!-- Additional Components-->
<script type="text/javascript" src="src/websockets.js"></script>
<script type="text/javascript" src="src/messages.js"></script>
<script type="text/javascript" src="src/room.js"></script>
<script type="text/javascript" src="src/netsblox.js"></script>
<script type="text/javascript" src="src/wasm.js"></script>
<!-- Snap overrides -->
<script type="text/javascript" src="src/store-ext.js"></script>
<script type="text/javascript" src="src/actions-ext.js"></script>
{{ } else { }}
<script type="text/javascript" src="dist/app.min.js?v=2.5.2"></script>
{{ } }}
</head>
<body style="margin: 0;">
<canvas id="world" tabindex="1" style="position: absolute;" ></canvas>
</body>
</html>