diff options
| author | yo momma <shutup@oops.wtf> | 2026-02-03 05:01:22 +0000 |
|---|---|---|
| committer | yo momma <shutup@oops.wtf> | 2026-02-03 05:01:22 +0000 |
| commit | b3928bc192cdf729d4b9e53ff5603905ae446fb7 (patch) | |
| tree | 59b9b9c4649295d4e8503ab1c28ff97f65272cc8 | |
| parent | 30ba42b568e765f24b2fd09e51f7a15e564ec5ac (diff) | |
Refactor: remove inline initFullscreen call
| -rw-r--r-- | static/js/pages/fullscreen_front_run.js | 7 | ||||
| -rwxr-xr-x | template/fullscreen_front.st | 4 |
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> |
