From 8004c1fc7957397577f51a409ec2c504c81d7e85 Mon Sep 17 00:00:00 2001 From: yo momma Date: Tue, 3 Feb 2026 02:19:19 +0000 Subject: Refactor main pages: extract inline JS --- template/frontpage.st | 50 ++++++++++--------------------- template/fullscreen.st | 70 ++++++++++---------------------------------- template/fullscreen_front.st | 9 ++---- template/newlog.st | 4 +-- template/simplerlog.st | 22 ++++---------- 5 files changed, 39 insertions(+), 116 deletions(-) (limited to 'template') diff --git a/template/frontpage.st b/template/frontpage.st index efb433c..88c0e25 100755 --- a/template/frontpage.st +++ b/template/frontpage.st @@ -1,13 +1,5 @@ - dump.fm @@ -27,34 +19,22 @@ setTimeout("refreshing()",300000); - $if(!logged_in)$ - - $endif$ - - - - - - - + $endif$ + + + + + + - }); - - - - - + + @@ -199,6 +179,6 @@ $debug_log()$ Loading... - + 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 @@ $if(user_nick)$ - $else$ - - $endif$ - - - - - - + $else$ + + $endif$ + + + + + $if(user_nick)$ @@ -75,40 +69,8 @@ $endif$ -
- - $google_analytics()$ - - +
+ + $google_analytics()$ + + diff --git a/template/fullscreen_front.st b/template/fullscreen_front.st index b0bfb4d..9f0e869 100755 --- a/template/fullscreen_front.st +++ b/template/fullscreen_front.st @@ -7,14 +7,9 @@ - + + diff --git a/template/newlog.st b/template/newlog.st index 19b4481..e1f987a 100755 --- a/template/newlog.st +++ b/template/newlog.st @@ -43,10 +43,8 @@ window.location = "/error/ie"; + diff --git a/template/simplerlog.st b/template/simplerlog.st index 7e68473..9acc742 100755 --- a/template/simplerlog.st +++ b/template/simplerlog.st @@ -41,24 +41,12 @@ $endif$ + - - - - + + @@ -216,6 +204,6 @@ $debug_log()$ Loading... - + -- cgit v1.2.3-70-g09d2