summaryrefslogtreecommitdiff
path: root/themes/mytheme/static/js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/mytheme/static/js')
-rw-r--r--themes/mytheme/static/js/code.js20
1 files changed, 20 insertions, 0 deletions
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();