summaryrefslogtreecommitdiff
path: root/crocoite/data
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2017-11-17 19:54:30 +0100
committerLars-Dominik Braun <lars@6xq.net>2017-11-17 19:54:30 +0100
commit0b8a8e88a3c33c14e52241190ee6478cb2acd49d (patch)
tree784b8672d65527bf22227de782b9d512acfba2cb /crocoite/data
downloadcrocoite-0b8a8e88a3c33c14e52241190ee6478cb2acd49d.tar.gz
crocoite-0b8a8e88a3c33c14e52241190ee6478cb2acd49d.tar.bz2
crocoite-0b8a8e88a3c33c14e52241190ee6478cb2acd49d.zip
Initial import
Diffstat (limited to 'crocoite/data')
-rw-r--r--crocoite/data/scroll.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/crocoite/data/scroll.js b/crocoite/data/scroll.js
new file mode 100644
index 0000000..cf060fc
--- /dev/null
+++ b/crocoite/data/scroll.js
@@ -0,0 +1,10 @@
+(function(){
+function scroll (event) {
+ window.scrollBy (0, window.innerHeight/2);
+ return true;
+}
+function onload (event) {
+ window.setInterval (scroll, 200);
+}
+document.addEventListener("DOMContentLoaded", onload);
+}());