diff options
| author | mjkwiatkowski <mati.rewa@gmail.com> | 2026-01-11 14:13:00 +0100 |
|---|---|---|
| committer | mjkwiatkowski <mati.rewa@gmail.com> | 2026-01-11 14:13:00 +0100 |
| commit | b56e4a6a679a3151b02749edc0028ce909037cdc (patch) | |
| tree | cd69d3f843b97af3d6c9125d6419ce852248d867 /public/js | |
| parent | e6bfc9a947302e290e846f8e7e884af8b329328b (diff) | |
fix: fixed the non-working list of book posts
Diffstat (limited to 'public/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(); |
