summaryrefslogtreecommitdiff
path: root/crocoite/data/scroll.js
blob: 2b4dff1c1ad41a65798867b461b267c2c5010628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*	Continuously scrolls the page
 */
(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);
}());