diff options
| author | yo momma <shutup@oops.wtf> | 2026-02-03 02:19:19 +0000 |
|---|---|---|
| committer | yo momma <shutup@oops.wtf> | 2026-02-03 02:19:19 +0000 |
| commit | 8004c1fc7957397577f51a409ec2c504c81d7e85 (patch) | |
| tree | 299f62c7512e45d491dc282784031a770f04abad /static/js/pages/fullscreen_front_init.js | |
| parent | c69b6626358052f175543cad0daa3f4aa54046b8 (diff) | |
Refactor main pages: extract inline JS
Diffstat (limited to 'static/js/pages/fullscreen_front_init.js')
| -rw-r--r-- | static/js/pages/fullscreen_front_init.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/static/js/pages/fullscreen_front_init.js b/static/js/pages/fullscreen_front_init.js new file mode 100644 index 0000000..a1a87a5 --- /dev/null +++ b/static/js/pages/fullscreen_front_init.js @@ -0,0 +1,18 @@ +// Shared initializer for fullscreen feed pages. +// Keeps template inline JS mostly data-only (LoggedIn, Timestamp). + +(function($){ + function defaultPop(url) { + var 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) { newwindow.focus(); } + return newwindow; + } + + if (typeof window.pop !== 'function') { window.pop = defaultPop; } + + if (typeof window.startChatUpdater === 'function') { $(window.startChatUpdater); } +})(jQuery); |
