summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/js/pages/fullscreen_front_run.js7
-rwxr-xr-xtemplate/fullscreen_front.st4
2 files changed, 8 insertions, 3 deletions
diff --git a/static/js/pages/fullscreen_front_run.js b/static/js/pages/fullscreen_front_run.js
new file mode 100644
index 0000000..1116b7a
--- /dev/null
+++ b/static/js/pages/fullscreen_front_run.js
@@ -0,0 +1,7 @@
+// Runs `initFullscreen()` for `template/fullscreen_front.st` without inline JS.
+(function() {
+ if (typeof window.initFullscreen === 'function') {
+ window.initFullscreen();
+ }
+})();
+
diff --git a/template/fullscreen_front.st b/template/fullscreen_front.st
index 9f0e869..2eadf1f 100755
--- a/template/fullscreen_front.st
+++ b/template/fullscreen_front.st
@@ -13,8 +13,6 @@
<link rel="stylesheet" type="text/css" href="/static/css/fullscreen_bigtext.css?v=20260129">
</head>
<body>
- <script>
- initFullscreen()
- </script>
+ <script type="text/javascript" src="/static/js/pages/fullscreen_front_run.js?v=20260203"></script>
</body>
</html>