diff options
Diffstat (limited to 'template/fullscreen.st')
| -rwxr-xr-x | template/fullscreen.st | 70 |
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> |
