From 87370a6c7d891a30d6a50ed66ac98feda5a63817 Mon Sep 17 00:00:00 2001 From: mjkwiatkowski Date: Sun, 21 Dec 2025 12:06:52 +0100 Subject: initial commit --- themes/mytheme/static/js/code.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 themes/mytheme/static/js/code.js (limited to 'themes/mytheme/static/js/code.js') diff --git a/themes/mytheme/static/js/code.js b/themes/mytheme/static/js/code.js new file mode 100644 index 0000000..fd2d33a --- /dev/null +++ b/themes/mytheme/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(); -- cgit v1.2.3