summaryrefslogtreecommitdiff
path: root/template/fullscreen.st
diff options
context:
space:
mode:
authoryo momma <shutup@oops.wtf>2026-02-03 02:19:19 +0000
committeryo momma <shutup@oops.wtf>2026-02-03 02:19:19 +0000
commit8004c1fc7957397577f51a409ec2c504c81d7e85 (patch)
tree299f62c7512e45d491dc282784031a770f04abad /template/fullscreen.st
parentc69b6626358052f175543cad0daa3f4aa54046b8 (diff)
Refactor main pages: extract inline JS
Diffstat (limited to 'template/fullscreen.st')
-rwxr-xr-xtemplate/fullscreen.st70
1 files changed, 16 insertions, 54 deletions
diff --git a/template/fullscreen.st b/template/fullscreen.st
index 5879804..54960fc 100755
--- a/template/fullscreen.st
+++ b/template/fullscreen.st
@@ -5,23 +5,17 @@
<script src="/static/js/pichat.js?v=20260130"></script>
<script src="/static/js/fullscreen.js?v=20260126"></script>
$if(user_nick)$
- $else$
- <script src="/static/js/register.js"></script>
- $endif$
- <script>
- var LoggedIn = $if(user_nick)$true$else$false$endif$;
- var Timestamp = $timestamp$;
- var newwindow;
- function pop(url) {
- newwindow=window.open(url,'name','height=50,width=400,left=20,top=20,location=0,status=0,scrollbar=0,resizable=0');
- if (window.focus) {newwindow.focus()}
- }
- </script>
-
- <link rel="stylesheet" type="text/css" href="/static/css/fullscreen_box.css?v=20260131">
- <script>jQuery(initLogin)</script>
- </head>
- <body>
+ $else$
+ <script src="/static/js/register.js"></script>
+ $endif$
+ <script>
+ var LoggedIn = $if(user_nick)$true$else$false$endif$;
+ var Timestamp = $timestamp$;
+ </script>
+
+ <link rel="stylesheet" type="text/css" href="/static/css/fullscreen_box.css?v=20260131">
+ </head>
+ <body>
$if(user_nick)$
@@ -75,40 +69,8 @@
</div>
$endif$
- <div id="big-image"></div>
- <script>
- function choice(a) { return a[Math.floor(Math.random()*a.length)] }
- var urls = [
- "https://archive.hump.fm/images/20100601/1275428508049-dumpfm-foot-oie_oie_overlay-1.gif",
- "https://archive.hump.fm/images/20100928/1285728674225-dumpfm-timb-running.unicorn.gif",
- "https://archive.hump.fm/images/20100726/1280119193796-dumpfm-enso-human-condition.gif",
- "https://archive.hump.fm/images/20100521/1274415795577-dumpfm-ucnv-mx.gif",
- "https://archive.hump.fm/images/20100912/1284315873224-dumpfm-Neontoast-1283990707508-dumpfm-crunkus-crabtoon.gif",
- "https://archive.hump.fm/images/20110927/1317105622918-dumpfm-peachfist-test8scam.gif",
- "https://archive.hump.fm/images/20110323/1300915179773-dumpfm-blingscience-fishtank.gif",
- "https://archive.hump.fm/images/20110418/1303108538834-dumpfm-LAVARLAMAR-lettuce_lavarlamar.gif",
- "https://s3.amazonaws.com/i.asdf.us/im/84/gradient_horse_1318306378_1322355741_ryz_1337322355_ryz.gif",
- "https://archive.hump.fm/images/20110724/1311552093462-dumpfm-hologrampa-1291586335941-dumpfm-jeeeelings-cat_face_wink_hologrampa-lettuce.gif",
- "https://s3.amazonaws.com/i.asdf.us/im/be/tt7620731fltt_1315431978.gif"
- ]
- if (window.location.href.indexOf("nologin") != -1) {
- jQuery("#loginbox").hide();
- }
- document.getElementById("big-image").innerHTML = "<img src='" + choice(urls) + "'>"
- initFullscreen()
- initRegister()
- jQuery(startChatUpdater)
- jQuery("#reglink").click(function(e){
- e.preventDefault();
- jQuery("#loginbox").hide();
- jQuery("#registerbox").show().addClass("b");
- return false;
- });
- jQuery("#nickInput").focus();
- $if(user_nick)$
- $else$
- $endif$
- </script>
- $google_analytics()$
- </body>
-</html>
+ <div id="big-image"></div>
+ <script type="text/javascript" src="/static/js/pages/fullscreen_init.js?v=20260203"></script>
+ $google_analytics()$
+ </body>
+ </html>