-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy patheditor.html
More file actions
515 lines (497 loc) · 23.3 KB
/
editor.html
File metadata and controls
515 lines (497 loc) · 23.3 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
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
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
<!doctype HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>{{APP_NAME}}</title>
<link crossorigin="anonymous" rel="preload" href="{{&PYRET}}" as="script">
<script>window.PYRET = "{{&PYRET}}"; window.APP_NAME = "{{APP_NAME}}"; window.APP_DOMAIN = "{{APP_DOMAIN}}";</script>
<link rel="stylesheet" href="{{ &BASE_URL }}/css/reset.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/smoothness-jquery-ui.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/fira-mono.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/codemirror.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/foldgutter.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/dialog.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/matchesonscrollbar.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/shared.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/editor.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/font-awesome.min.path-fixed.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/themes/default.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/themes/base16.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/themes/material-darker.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/themes/monokai.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/themes/panda-syntax.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/themes/high-contrast-light.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/themes/high-contrast-dark.css" />
<link rel="stylesheet" href="{{ &BASE_URL }}/css/themes/pink.css" />
<link rel="icon" type="image/png" href="{{ &BASE_URL }}/img/pyret-icon.png" />
<style id="highlight-styles"></style>
<script src="{{ &BASE_URL }}/js/vega.min.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/vega-tooltip/1.0.0-alpha.2/vega-tooltip.min.js"></script> -->
<script src="{{ &BASE_URL }}/js/vega-tooltip.min.js"></script>
<script>var APP_LOG_URL = "{{{ LOG_URL }}}";</script>
<script src="{{ &BASE_URL }}/js/localSettings.js"></script>
</head>
<body class="default">
<script>
var optionalTemplatedHash = "{{ &HASH_OPTIONS }}";
var params = {};
let hash;
if(optionalTemplatedHash !== "") {
hash = optionalTemplatedHash;
}
else {
hash = document.location.hash;
}
hash.substr(1).split("&").forEach(function (p) {
var parts = p.split("=");
if (parts.length === 1) {
params[parts[0]] = true;
} else {
params[parts[0]] = parts[1];
}
});
if(params["hideDefinitions"]) { document.body.classList.add("hideDefinitions"); }
if(params["hideInteractions"]) { document.body.classList.add("hideInteractions"); }
var footerStyle = params["footerStyle"] || "normal";
switch (footerStyle) {
case 'hide':
document.body.classList.add("hideFooter");
break;
default:
// nothing to do
}
var headerStyle = params["headerStyle"] || "normal";
switch (headerStyle) {
case 'hide':
document.body.classList.add("hideHeader");
break;
case 'small':
document.body.classList.add("smallHeader");
break;
default:
// nothing to do
}
var themeOnLoad = params['theme'] || localSettings.getItem('theme') || 'default';
document.body.classList.remove("default");
document.body.classList.add(themeOnLoad);
console.log("Theme info", String(document.body.classList), themeOnLoad, params, localSettings.getItem('theme'));
window.addEventListener('load', function() {
document.getElementById('theme-select').value = themeOnLoad;
}, { once: true });
</script>
<main>
<div id="Toolbar" class="toolbarregion" role="region" aria-label="Tool Controls" tabindex="-1">
<nav id="header">
<h2 id="menutitle" class="screenreader-only">Navigation Controls</h2>
<p class="screenreader-only" id="mhelp">
<span id="mhelp-menus">Use left and right arrows to move across menus.
</span>
<span id="mhelp-open-submenu">Use down arrow to open submenu.</span>
<span id="mhelp-submenu">Use up and down arrows to move within submenus.
</span>
<span id="mhelp-activate">Use Enter to activate.</span>
<span id="mhelp-escape-submenu">Use Escape to move to parent menu.</span>
<span id="mhelp-escape">Use Escape to exit menus.</span>
</p>
<div role="menubar">
<ul id="topTierUl" role="menu" aria-labelledby="menutitle"
aria-describedby="mhelp-menus mhelp-activate mhelp-escape"
aria-label="Toolbar" >
<li role="presentation"
class="topTier" id="bonniemenuli">
<div id="bonniemenu" class="tooltip menu menuitemtitle" style="float:none" >
<button role="menuitem"
id="bonniemenubutton"
aria-label="Pyret Menu"
aria-haspopup="true"
aria-expanded="false"
aria-describedby="mhelp-menus mhelp-open-submenu mhelp-activate mhelp-escape"
tabindex="-1"
class="blueButton focusable">
<span>▾</span>
<img class="logo" src="{{ &BASE_URL }}/img/pyret-logo.png" />
</button>
</div>
<ul id="bonniemenuContents" class="menuContents submenu" role="menu" aria-hidden="true"
aria-label="Pyret Menu">
<li role="presentation">
<div id="docs" class="menuButton">
<a class="focusable" role="menuitem"
aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
tabindex="-1" target="_blank" href="http://pyret.org/docs/{{{ CURRENT_PYRET_DOCS }}}">Documentation</a>
</div>
</li>
<li role="presentation">
<div id="issues" class="menuButton">
<a class="focusable" role="menuitem"
aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
tabindex="-1" target="_blank" href="https://github.com/brownplt/pyret-lang/issues/new">Report an Issue</a>
</div>
</li>
<li role="presentation">
<div id="discuss" class="menuButton">
<a class="focusable" role="menuitem"
aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
tabindex="-1" target="_blank" href="https://groups.google.com/forum/#!forum/pyret-discuss">Discuss Pyret</a>
</div>
</li>
<li role="presentation">
<div id="choose-context" class="menuButton">
<a class="focusable" role="menuitem"
aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
tabindex="-1" href="javascript:void(0)">Choose Context</a>
</div>
</li>
<li role="presentation">
<div id="logging" class="menuButton">
<span>
<input class="focusable" role="menuitem" tabindex="-1" id="detailed-logging"
aria-labelledby="detailed-logging-label"
aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
type="checkbox" aria-pressed="false"
aria-label="Contribute detailed usage information"/>
<label for="detailed-logging" id="detailed-logging-label">
Contribute detailed usage information.</label>
<a href="https://{{APP_DOMAIN}}/faq/" target="_blank" rel="noopener noreferrer" class="focusable info-btn" role="menuitem" tabindex="-1"
id="detailed-logging-learn-more"
title="Learn More" aria-label="Learn More">?</a>
</span>
</div>
</li>
<li role="presentation">
<div id="logout" class="menuButton">
<a class="focusable" aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
role="menuitem" tabindex="-1" href="/logout">Log out</a>
</div>
</li>
</ul>
</li>
<li role="presentation"
class="topTier" id="displaymenuli">
<div id="displaymenu" class="tooltip menu menuitemtitle" style="float:none" >
<button role="menuitem"
id="displaymenubutton"
aria-label="Display Menu"
aria-haspopup="true"
aria-expanded="false"
aria-describedby="mhelp-menus mhelp-open-submenu mhelp-activate mhelp-escape"
tabindex="-1"
class="blueButton focusable">
<span>▾ View</span>
</button>
</div>
<ul id="viewmenuContents" class="menuContents submenu" role="menu" aria-hidden="true"
aria-label="View Menu">
<li role="presentation">
<div id="ctrl-question" class="menuButton">
<a class="focusable" role="menuitem"
aria-label="keyboard shortcuts"
aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
tabindex="-1" href="javascript:void(0)"
>Keyboard shortcuts (Ctrl-?)</a>
</div>
</li>
<li role="presentation">
<div id="font">
<div id="font-label"></div>
<button type="button" id="font-minus">-</button>
<button type="button" id="font-plus">+</button>
</div>
</li>
<li id="theme" role="presentation" style="white-space: nowrap;">
<label for="theme-select">Theme:</label>
<select id="theme-select">
<option value="default">Ensign (Default)</option>
<option value="base16">Base16</option>
<option value="material-darker">Material-darker</option>
<option value="monokai">Monokai</option>
<option value="panda">Panda</option>
<option value="high-contrast-light">High Contrast Light</option>
<option value="high-contrast-dark">High Contrast Dark</option>
<option value="pink">Pink</option>
</select>
</li>
</ul>
</li>
<li role="presentation" class="topTier logoutOnly" id="connectButtonli">
<div class="menu menuitemtitle">
<button role="menuitem"
aria-describedby="mhelp-menus mhelp-activate mhelp-escape"
id="connectButton" class="logoutOnly focusable blueButton" tabindex="-1">Connect to Google Drive</button>
</div>
<!--
<div id="program-name-container" class="loginOnly">
<input id="program-name" type="text" placeholder="Program Name"></input>
</div>
-->
</li>
<li role="presentation" class="loginOnly topTier" id="filemenuli">
<div id="filemenu" class="loginOnly menu menuitemtitle" style="float:none" >
<button role="menuitem"
aria-label="File"
aria-haspopup="true"
aria-expanded="false"
aria-describedby="mhelp-menus mhelp-open-submenu mhelp-activate mhelp-escape"
id="filemenuItem"
tabindex="-1"
class="focusable blueButton">
<span>▾ File</span><span id="filename"></span>
</button>
</div>
<!-- div id="filemenuContents" class="menuContents" style="display: none; z-index: 8990;" -->
<ul id="filemenuContents" class="menuContents submenu" role="menu" aria-hidden="true"
aria-label="File Menu">
<li role="presentation">
<div id="new" class="menuButton">
<a class="focusable" role="menuitem" aria-label="New file"
aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
tabindex="-1" href="javascript:void(0)" >New</a></div>
</li>
<li role="presentation">
<div id="programs" class="menuButton">
<a class="focusable" role="menuitem" aria-label="My Programs"
aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
tabindex="-1"
target="_blank"
href="/">My Programs</a>
</div>
</li>
<li role="presentation">
<div id="open-original" class="menuButton disabled hidden">
<a class="focusable" role="menuitem" aria-label="Open original file"
aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
tabindex="-1" href="javascript:void(0)">Open Original</a></div>
</li>
<li role="presentation">
<div id="save" class="menuButton disabled">
<a class="focusable disabled" role="menuitem" aria-label="Save file"
aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
tabindex="-1" href="javascript:void(0)">Save</a></div>
</li>
<li role="presentation">
<div id="saveas" class="menuButton">
<a class="focusable" role="menuitem" aria-label="Save a Copy"
aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
tabindex="-1" href="javascript:void(0)">Save a copy</a></div>
</li>
<li role="presentation">
<div id="download" class="menuButton">
<a class="focusable" role="menuitem" aria-label="Download"
aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
tabindex="-1" href="javascript:void(0)">Download</a></div>
</li>
<li role="presentation">
<div id="rename" class="menuButton disabled">
<a class="focusable disabled" role="menuitem" aria-label="Rename file"
aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
tabindex="-1" href="javascript:void(0)">Rename</a></div>
</li>
</ul>
</li>
<li role="presentation" class="loginOnly topTier" id="insertli">
<div id="insertPart" class="loginOnly menu menuitemtitle">
<button role="menuitem"
aria-describedby="mhelp-menus mhelp-activate mhelp-escape"
aria-label="Insert, F11" id="insert" class="focusable blueButton loginOnly" tabindex="-1">Insert</button>
</div>
<!-- <button id="saveButton" class="blueButton loginOnly">Save</button> -->
<!-- <button id="openFile" class="blueButton loginOnly">Open</button> -->
</li>
<li role="presentation" class="topTier" id="publishli" style="display: none;">
<div id="shareContainer" class="menu menuitemtitle"></div>
</li>
<li role="presentation" class="topTier flexpushright" id="runli">
<div id="runPart" class="menuitemtitle" >
<button role="menuitem" aria-label="Run, F7 or Control-Enter" disabled id="runButton"
aria-describedby="mhelp-menus mhelp-activate mhelp-escape"
class="focusable blueButton" tabindex="-1">Run</button>
</div>
</li>
<li role="presentation" class="topTier" id="rundropdownli">
<div class="menu menuitemtitle">
<button role="menuitem"
id="runDropdown"
class="focusable dropdown rhs"
aria-label="Run Options"
aria-haspopup="true"
aria-expanded="false"
aria-describedby="mhelp-menus mhelp-open-submenu mhelp-activate mhelp-escape"
disabled
tabindex="-1">▾
</button>
</div>
<ul id="run-dropdown-content" class="submenu" role="menu" aria-hidden="true"
aria-label="Run Options">
<li id="select-run-old" >
<div id="select-run" >
<a class="focusable"
role="menuitem"
aria-label="Run" aria-setsize="2" aria-posinset="1"
aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
tabindex="-1" href="javascript:void(0)">Run</a>
</div>
</li>
<li id="select-tc-run-old">
<div id="select-tc-run" >
<a class="focusable"
role="menuitem"
aria-label="Type-check and run" aria-setsize="2" aria-posinset="2"
aria-describedby="mhelp-submenu mhelp-activate mhelp-escape-submenu"
tabindex="-1" href="javascript:void(0)">Type-check and run<sup>(beta)</sup></a>
</div>
</li>
</ul>
</li>
<li role="presentation" class="topTier" disabled id="stopli">
<div class="menu menuitemtitle">
<button role="menuitem" aria-label="Stop, F8" disabled id="breakButton"
aria-describedby="mhelp-menus mhelp-activate mhelp-escape"
class="focusable blueButton" tabindex="-1">Stop</button>
</div>
</li>
</ul>
</div>
</nav>
</div>
<div id="toolbar"></div>
<div id="loader"><p>Raising the masts...</p></div>
<div id="main">
<!-- MODAL PROMPT (Adapted from W3Schools' example) -->
<div id="promptModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h3></h3>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button class="submit blueButton">Submit</button>
<button class="close blueButton">Close</button>
</div>
</div>
</div>
<div id="REPL" class="replContainer" role="region" aria-label="Interactions">
<div id="handle" class="ui-resizable-handle ui-resizable-w"></div>
</div>
<div id="help-keys">
<p><b>Press <kbd>Esc</kbd> to close this help window</b></p>
<ul>
<li><b><kbd>Ctrl</kbd>-<kbd>?</kbd></b> - Show this help</li>
<li><b><kbd>Ctrl</kbd>-<kbd>s</kbd></b> - Save</li>
<li><b><kbd>Ctrl</kbd>-<kbd>/</kbd> or <kbd>Cmd</kbd>-<kbd>/</kbd></b> - Toggle commenting</li>
<li><b><kbd>Ctrl</kbd>-<kbd>F</kbd> or <kbd>Cmd</kbd>-<kbd>F</kbd></b> - Find</li>
<li><b><kbd>Ctrl</kbd>-<kbd>G</kbd> or <kbd>Cmd</kbd>-<kbd>G</kbd></b> - Find next</li>
<li><b><kbd>Shift</kbd>-<kbd>Ctrl</kbd>-<kbd>G</kbd> or <kbd>Shift</kbd>-<kbd>Cmd</kbd>-<kbd>G</kbd></b> - Find previous</li>
<li><b><kbd>Shift</kbd>-<kbd>Ctrl</kbd>-<kbd>F</kbd> or <kbd>Cmd</kbd>-<kbd>Option</kbd>-<kbd>F</kbd></b> - Replace</li>
<li><b><kbd>Shift</kbd>-<kbd>Ctrl</kbd>-<kbd>R</kbd> or <kbd>Shift</kbd>-<kbd>Cmd</kbd>-<kbd>Option</kbd>-<kbd>F</kbd></b> - Replace all</li>
<li><b><kbd>Ctrl</kbd>-<kbd>M</kbd></b> - Toggle sizing of the editor window between 50% and last resize</li>
<li><b><kbd>F6</kbd>, <kbd>Shift</kbd>-<kbd>F6</kbd></b> - Cycle focus through regions</li>
<li><b><kbd>F7</kbd>, <kbd>Ctrl</kbd>-<kbd>Enter</kbd></b> - Run the definitions window</li>
<li><b><kbd>F11</kbd></b> - Insert image</li>
<li><b><kbd>Ctrl</kbd>-<kbd>Left</kbd></b> - Move cursor left by one word</li>
<li><b><kbd>Ctrl</kbd>-<kbd>Right</kbd></b> - Move cursor right by one word</li>
<li><b><kbd>Alt</kbd>-<kbd>Left</kbd></b> - If cursor is just before a right-parenthesis or <code>end</code>
keyword, move cursor left to matching delimiter; otherwise move cursor left by one word</li>
<li><b><kbd>Alt</kbd>-<kbd>Right</kbd></b> - Like <b><kbd>Alt</kbd>-<kbd>Left</kbd></b>, but moving right.</li>
<li><b><kbd>Esc</kbd>-<kbd>Left</kbd></b> - (two key sequence) synonym
for <b><kbd>Alt</kbd>-<kbd>Left</kbd></b>, in case <b><kbd>Alt</kbd></b> key is in use by browser</li>
<li><b><kbd>Esc</kbd>-<kbd>Right</kbd></b> - (two key sequence) synonym for <b><kbd>Alt</kbd>-<kbd>Right</kbd></b>.</li>
</ul>
<p><b>Toolbar region navigation</b></p>
<ul>
<li><b><kbd>Esc</kbd></b> - Exit toolbar submenu (if open) or region</li>
<li><b><kbd>Left</kbd>, <kbd>Right</kbd></b> - Traverse toolbar top-level menu</li>
<li><b><kbd>Up</kbd>, <kbd>Down</kbd></b> - Traverse toolbar submenus</li>
</ul>
</div>
<div id="doc-containment">
<div id="doc-overlay">
<div id="doc-bar"><div id="doc-close">✕</div></div>
<div id="doc-cover"></div>
<div id="doc-left" class="doc-handle ui-resizable-handle ui-resizable-w"></div>
<div id="doc-right" class="doc-handle ui-resizable-handle ui-resizable-e"></div>
<div id="doc-bottom" class="doc-handle ui-resizable-handle ui-resizable-s"></div>
<div id="doc-se-corner" class="doc-handle ui-resizable-handle ui-resizable-se"></div>
<div id="doc-sw-corner" class="doc-handle ui-resizable-handle ui-resizable-sw"></div>
</div>
</div>
</div>
<div id="footer">
<div id="welcome">
<span class="username-message">Programming as <span id="username" style="display: inline; padding: 0px;">a guest</span>.</span>
</div>
<div id="notification" class="notificationArea"></div>
<div id="announcements" class="screenreader-only" role="region" aria-label="Announcements" tabindex="-1">
<h2>Announcements</h2>
<ul id="announcementlist" aria-live="assertive"
aria-relevant="additions" style="list-style: none;">
</ul>
</div>
</div>
<script>
var LOG_URL = "{{ &LOG_URL }}";
var LOG_USER = "{{ &LOG_USER }}";
var LOG_PASSWORD = "{{ &LOG_PASSWORD }}";
var GIT_REV = "{{ &GIT_REV }}";
var GIT_BRANCH = "{{ &GIT_BRANCH }}";
</script>
<script>
if (typeof Promise.withResolvers === 'undefined') {
Promise.withResolvers = function () {
let resolve, reject
const promise = new Promise((res, rej) => {
resolve = res
reject = rej
})
return { promise, resolve, reject }
}
}
</script>
<script src="{{ &BASE_URL }}/js/es6-shim.js"></script>
<script src="{{ &BASE_URL }}/js/jquery.min.js"></script>
<script src="{{ &BASE_URL }}/js/jquery-ui.min.js"></script>
<script src="{{ &BASE_URL }}/js/editor-misc.min.js"></script>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script>
var apiKey = "{{ GOOGLE_API_KEY }}";
var appId = "{{ GOOGLE_APP_ID }}";
if(apiKey === "") { handleClientLoad(""); }
function handleGoogLoad() {
if((window.parent !== window) || (!window.location.protocol.startsWith("http"))) {
var publicOnly = true;
}
else {
var publicOnly = false;
}
if(apiKey !== "") {
handleClientLoad(apiKey, publicOnly);
}
}
</script>
<!-- Google API Loader (For picker) -->
<!-- GAPI Client -->
<script type="text/javascript" src="https://apis.google.com/js/client.js?onload=handleGoogLoad"></script>
<script>
var POSTMESSAGE_ORIGIN = "{{{ POSTMESSAGE_ORIGIN }}}";
console.log(window.performance.now());
</script>
<script src="{{ &BASE_URL }}/js/beforePyret.js"></script>
<script>
var IMAGE_PROXY_BYPASS = "{{ &IMAGE_PROXY_BYPASS }}" === "true";
var APP_BASE_URL = "{{ &BASE_URL }}";
var CSRF_TOKEN = "{{{ CSRF_TOKEN }}}";
$.ajaxPrefilter(function (options, originalOptions, jqXHR) {
var a = document.createElement("a");
a.href = options.url;
if(a.origin === APP_BASE_URL) {
jqXHR.setRequestHeader('X-CSRF-Token', CSRF_TOKEN);
}
});
</script>
<script src="{{ &BASE_URL }}/js/events.js"></script>
<script>
var URL_FILE_MODE = window.URL_FILE_MODE = "{{ URL_FILE_MODE }}";
</script>
</main>
</body>
</html>