diff options
| author | yo momma <shutup@oops.wtf> | 2026-02-03 21:30:24 +0000 |
|---|---|---|
| committer | yo momma <shutup@oops.wtf> | 2026-02-03 21:30:24 +0000 |
| commit | 263677a46ee031277fae07109acac17b5ef821c4 (patch) | |
| tree | 0bbd6da3ca4fc9e4809f20be713161d39a5a525a /template | |
| parent | b3928bc192cdf729d4b9e53ff5603905ae446fb7 (diff) | |
Refactor: extract page init snippets
Diffstat (limited to 'template')
| -rwxr-xr-x | template/about_us.st | 12 | ||||
| -rwxr-xr-x | template/directory.st | 4 | ||||
| -rwxr-xr-x | template/form_login.st | 4 | ||||
| -rwxr-xr-x | template/frontpage copy.st | 2 | ||||
| -rwxr-xr-x | template/frontpagePROFILE.st | 2 | ||||
| -rwxr-xr-x | template/frontpage_halloffame.st | 2 | ||||
| -rwxr-xr-x | template/help.st | 14 | ||||
| -rwxr-xr-x | template/search_files.st | 6 |
8 files changed, 11 insertions, 35 deletions
diff --git a/template/about_us.st b/template/about_us.st index 1659f4f..b31a622 100755 --- a/template/about_us.st +++ b/template/about_us.st @@ -2,16 +2,10 @@ <head> <link href="/static/css/pages.css?v=20260130" rel="stylesheet" type="text/css" media="screen" /> <link href="/static/css/header.css?v=20260130" rel="stylesheet" type="text/css" media="screen" /> - <script type="text/javascript" src="/static/js/win.js"></script> - <script type="text/javascript"> - -jQuery(function() -{ - jQuery('.scroll-pane').jScrollPane(); -}); - </script> - <title>dump.fm: about us</title> + <title>dump.fm: about us</title> $head()$ + <script type="text/javascript" src="/static/js/win.js"></script> + <script type="text/javascript" src="/static/js/pages/scroll_pane_init.js?v=20260203"></script> </head> <body class="profile" onload=" javascript:CreateDropdownWindow('about the site', '360px', true, 'news', 70, 75); diff --git a/template/directory.st b/template/directory.st index 149f284..9b6ff76 100755 --- a/template/directory.st +++ b/template/directory.st @@ -6,9 +6,7 @@ <title>dump.fm directory</title> $endif$ $head()$ - <script> - jQuery(document).ready(initDirectory); - </script> + <script type="text/javascript" src="/static/js/pages/directory_init.js?v=20260203"></script> </head> <body class="profile"> $banner()$ diff --git a/template/form_login.st b/template/form_login.st index 95b6333..d1ebfd8 100755 --- a/template/form_login.st +++ b/template/form_login.st @@ -27,6 +27,4 @@ </fieldset> </div> <script src="/static/js/home.js?v=20260126" type="text/javascript"></script> -<script type="text/javascript"> - jQuery(document).ready(initExpandableLoginForm) -</script> +<script type="text/javascript" src="/static/js/pages/expandable_login_init.js?v=20260203"></script> diff --git a/template/frontpage copy.st b/template/frontpage copy.st index 4549dd7..7a6b1c9 100755 --- a/template/frontpage copy.st +++ b/template/frontpage copy.st @@ -177,6 +177,6 @@ $debug_log()$ <span class="loading-bar-label">Loading...</span> <span class="loading-bar-track"><span id="LB1" class="loading-bar-fill"></span></span> </span> -<script type="text/javascript">m00=document.getElementsByTagName("img");m01=m00.length;function images_loading_bar(){m02=0;for(i=0;i<m01;i++)m02+=(m00[i].complete)?1:0;document.getElementById("LB1").style.width=Math.round(m02/m01*100)+'px';if(m02==m01)setTimeout("document.getElementById('LB0').style.display='none'",128); else setTimeout("images_loading_bar()", 64);};images_loading_bar();</script> +<script type="text/javascript">if (typeof images_loading_bar === "function") { images_loading_bar(); }</script> </body> </html> diff --git a/template/frontpagePROFILE.st b/template/frontpagePROFILE.st index 5fdef71..4c1b63b 100755 --- a/template/frontpagePROFILE.st +++ b/template/frontpagePROFILE.st @@ -213,6 +213,6 @@ $debug_log()$ <span class="loading-bar-label">Loading...</span> <span class="loading-bar-track"><span id="LB1" class="loading-bar-fill"></span></span> </span> -<script type="text/javascript">m00=document.getElementsByTagName("img");m01=m00.length;function images_loading_bar(){m02=0;for(i=0;i<m01;i++)m02+=(m00[i].complete)?1:0;document.getElementById("LB1").style.width=Math.round(m02/m01*100)+'px';if(m02==m01)setTimeout("document.getElementById('LB0').style.display='none'",128); else setTimeout("images_loading_bar()", 64);};images_loading_bar();</script> +<script type="text/javascript">if (typeof images_loading_bar === "function") { images_loading_bar(); }</script> </body> </html> diff --git a/template/frontpage_halloffame.st b/template/frontpage_halloffame.st index e2bacc1..394f527 100755 --- a/template/frontpage_halloffame.st +++ b/template/frontpage_halloffame.st @@ -177,6 +177,6 @@ $debug_log()$ <span class="loading-bar-label">Loading...</span> <span class="loading-bar-track"><span id="LB1" class="loading-bar-fill"></span></span> </span> -<script type="text/javascript">m00=document.getElementsByTagName("img");m01=m00.length;function images_loading_bar(){m02=0;for(i=0;i<m01;i++)m02+=(m00[i].complete)?1:0;document.getElementById("LB1").style.width=Math.round(m02/m01*100)+'px';if(m02==m01)setTimeout("document.getElementById('LB0').style.display='none'",128); else setTimeout("images_loading_bar()", 64);};images_loading_bar();</script> +<script type="text/javascript">if (typeof images_loading_bar === "function") { images_loading_bar(); }</script> </body> </html> diff --git a/template/help.st b/template/help.st index 196a6ae..3d280a2 100755 --- a/template/help.st +++ b/template/help.st @@ -2,20 +2,10 @@ <head> <link href="/static/css/pages.css?v=20260130" rel="stylesheet" type="text/css" media="screen"/> <link href="/static/css/header.css?v=20260130" rel="stylesheet" type="text/css" media="screen"/> - <script type="text/javascript" src="/static/js/win.js"></script> - - <script type="text/javascript"> - -jQuery(function() -{ - jQuery('.scroll-pane').jScrollPane(); -}); - - - </script> - <title>dump.fm</title> $head()$ + <script type="text/javascript" src="/static/js/win.js"></script> + <script type="text/javascript" src="/static/js/pages/scroll_pane_init.js?v=20260203"></script> </head> <body class="profile" onload=" javascript:CreateDropdownWindow('dump.fm', '360px', true, 'news', 30, 115); diff --git a/template/search_files.st b/template/search_files.st index 4e55e0f..459a86a 100755 --- a/template/search_files.st +++ b/template/search_files.st @@ -4,11 +4,7 @@ <title>dump.fm image search</title> $head()$ <link rel="stylesheet" type="text/css" href="/static/css/search_files.css?v=20260129"> - <script> - -jQuery(document).ready(Search.initFullpage) - -</script> + <script type="text/javascript" src="/static/js/pages/search_files_init.js?v=20260203"></script> </head> <body> |
