diff options
| author | mjkwiatkowski <mati.rewa@gmail.com> | 2025-12-21 12:28:33 +0100 |
|---|---|---|
| committer | mjkwiatkowski <mati.rewa@gmail.com> | 2025-12-21 12:28:33 +0100 |
| commit | a96d8ec708500b10cf48298213922b7dc0398d9a (patch) | |
| tree | c8c180e06bee1e81effb3f8f9085c7edd9093630 /static/js | |
| parent | 87370a6c7d891a30d6a50ed66ac98feda5a63817 (diff) | |
refactor: moved files from themes to layouts and static
Diffstat (limited to 'static/js')
| -rw-r--r-- | static/js/code.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/static/js/code.js b/static/js/code.js new file mode 100644 index 0000000..fd2d33a --- /dev/null +++ b/static/js/code.js @@ -0,0 +1,20 @@ +// credit: www.jwz.org +setTimeout(function(){},0); +var p=0, q=-16, offset=50; + +function a(){ + if(window.setTimeout&&document.getElementsByTagName){ + var o=16; + + var b=document.getElementsByTagName("pre")[0]; + b.style.top=(p-o-offset)+"pt"; + var o=-(p-o)+"pt"; + p+=q; + + if(p<-2<<10||p>=0) q=-q; + + window.setTimeout(this.a,2<<6); + } +} +a(); +window.onload = a(); |
