forked from NetsBlox/Snap--Build-Your-Own-Blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.dot
124 lines (114 loc) · 6.9 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
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
/* 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">
var SERVER_URL = "{{= it.baseUrl}}" || window.location.origin,
SERVER_ADDRESS = SERVER_URL.replace(/^.*\/\//, ''),
CLIENT_ID = '{{= it.clientId }}',
DEFAULT_SERVICES_HOST = {url: SERVER_URL + '/services', categories: []},
SERVICES_HOSTS = {{= JSON.stringify(it.servicesHosts) }};
{{ var defaultHost = it.servicesHosts.find(host => host.categories.length === 0); if (!defaultHost) { }} SERVICES_HOSTS.push(DEFAULT_SERVICES_HOST); {{ } }}
</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/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.js"></script>
<script type="text/javascript" src="src/netscloud.js"></script>
<script type="text/javascript" src="src/gui.js"></script>
<script type="text/javascript" src="src/paint.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>
<!-- Snap overrides -->
<script type="text/javascript" src="src/store-ext.js"></script>
<script type="text/javascript" src="src/actions-ext.js"></script>
<!-- MindMakers blocks and scripts -->
<!-- carregar ws serviços primeiro para poder utilizar nos blocos -->
<script type="text/javascript" src="mm/ws-mbot-mindmakers.js"></script>
<script type="text/javascript" src="mm/ws-sphero-mindmakers.js"></script>
<script type="text/javascript" src="mm/ws-blebit-mindmakers.js"></script>
<script type="text/javascript" src="mm/ws-arduino-mindmakers.js"></script>
<script type="text/javascript" src="mm/ws-gpio-mindmakers.js"></script>
<script type="text/javascript" src="mm/ws-lamp-mindmakers.js"></script>
<script type="text/javascript" src="mm/blocks.js"></script>
<script type="text/javascript" src="mm/gui.js"></script>
<script type="text/javascript" src="mm/objects.js"></script>
{{ } else { }}
<script type="text/javascript" src="dist/app.min.js?v=1.18.0"></script>
<!-- MindMakers blocks and scripts -->
<!-- carregar ws serviços primeiro para poder utilizar nos blocos -->
<script type="text/javascript" src="mm/ws-mbot-mindmakers.js"></script>
<script type="text/javascript" src="mm/ws-sphero-mindmakers.js"></script>
<script type="text/javascript" src="mm/ws-blebit-mindmakers.js"></script>
<script type="text/javascript" src="mm/ws-arduino-mindmakers.js"></script>
<script type="text/javascript" src="mm/ws-gpio-mindmakers.js"></script>
<script type="text/javascript" src="mm/ws-lamp-mindmakers.js"></script>
<script type="text/javascript" src="mm/blocks.js"></script>
<script type="text/javascript" src="mm/gui.js"></script>
<script type="text/javascript" src="mm/objects.js"></script>
{{ } }}
<script type="text/javascript">
{{ if (it.username) { }}
SnapCloud.username = '{{= it.username }}';
SnapCloud.password = true;
{{ } }}
</script>
<script type="text/javascript" src="src/main.js"></script>
</head>
<body style="margin: 0;">
<canvas id="world" tabindex="1" style="position: absolute;" ></canvas>
</body>
{{ if (it.googleAnalyticsKey) { }}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '{{= it.googleAnalyticsKey }}', 'auto');
ga('send', 'pageview');
</script>
{{ } }}
</html>