diff options
| author | mjkwiatkowski <mati.rewa@gmail.com> | 2025-12-21 12:06:52 +0100 |
|---|---|---|
| committer | mjkwiatkowski <mati.rewa@gmail.com> | 2025-12-21 12:06:52 +0100 |
| commit | 87370a6c7d891a30d6a50ed66ac98feda5a63817 (patch) | |
| tree | 8d2654ca3ab3e77bf52358ff7f21bcb45f8bb047 /public/js/code.js | |
initial commit
Diffstat (limited to 'public/js/code.js')
| -rw-r--r-- | public/js/code.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/public/js/code.js b/public/js/code.js new file mode 100644 index 0000000..fd2d33a --- /dev/null +++ b/public/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(); |
