pyret-embed 0.0.20 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,8 @@
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
5
5
  <title>code.pyret.org</title>
6
- <link rel="preload" href="{{&PYRET}}" as="script">
6
+ <link crossorigin="anonymous" rel="preload" href="{{&PYRET}}" as="script">
7
+ <script>window.PYRET = "{{&PYRET}}";</script>
7
8
  <link rel="stylesheet" href="/css/reset.css" />
8
9
  <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
9
10
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fira+Mono:400,700" />
@@ -23,6 +24,8 @@
23
24
  <link rel="stylesheet" href="/css/themes/high-contrast-dark.css" />
24
25
  <link rel="icon" type="image/png" href="/img/pyret-icon.png" />
25
26
  <style id="highlight-styles"></style>
27
+ <script src="{{ &BASE_URL }}/js/vega.min.js"></script>
28
+ <script src="{{ &BASE_URL }}/js/vega-tooltip.min.js"></script>
26
29
  <script>var APP_LOG_URL = "{{{ LOG_URL }}}";</script>
27
30
  <script src="/js/localSettings.js"></script>
28
31
  </head>
@@ -485,6 +488,7 @@ console.log(window.performance.now());
485
488
  <script src="js/snap/src/sha512.js"></script>
486
489
  <script src="js/snap/src/FileSaver.min.js"></script>
487
490
  <script>
491
+ var IMAGE_PROXY_BYPASS = "{{ &IMAGE_PROXY_BYPASS }}" === "true";
488
492
  var APP_BASE_URL = "{{{ BASE_URL }}}";
489
493
  var CSRF_TOKEN = "{{{ CSRF_TOKEN }}}";
490
494
  $.ajaxPrefilter(function (options, originalOptions, jqXHR) {
@@ -494,6 +498,7 @@ $.ajaxPrefilter(function (options, originalOptions, jqXHR) {
494
498
  jqXHR.setRequestHeader('X-CSRF-Token', CSRF_TOKEN);
495
499
  }
496
500
  });
501
+ var URL_FILE_MODE = window.URL_FILE_MODE = "{{ URL_FILE_MODE }}";
497
502
  </script>
498
503
  <script>
499
504
  var replMain = $(".replMain");