summaryrefslogtreecommitdiff
path: root/crocoite/data/scroll.js
blob: 0d1a4a75ccf58c1009e112b7555814a4a5124ce1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*	Continuously scrolls the page
 */
var __crocoite_stop__ = false;
(function(){
function scroll (event) {
	if (__crocoite_stop__) {
		return false;
	} else {
		window.scrollBy (0, window.innerHeight/2);
		return true;
	}
}
function onload (event) {
    window.setInterval (scroll, 200);
}
document.addEventListener("DOMContentLoaded", onload);
}());