-
Notifications
You must be signed in to change notification settings - Fork 0
/
loopgaze.html
30 lines (29 loc) · 1.31 KB
/
loopgaze.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>loopgaze</title> <meta name='robots' content='noindex,nofollow' />
<script src="https://code.jquery.com/jquery-1.12.4.js" integrity="sha256-Qw82+bXyGq6MydymqBxNPYTaUXXq7c8v3CwiYwLLNXU=" crossorigin="anonymous"></script>
<style type='text/css'>
body {height: 4500px;width: 1620px;background:url("https://i.gyazo.com/76e3ef2a2de59247ec4b216458aa32c2.png");}
</style>
<script type='text/javascript'>
$(function(){
$("body").height($(window).height() + 4500 );
$(window).scroll(function() {
if
($(window).scrollTop() >= ($("body").height() - $(window).height()))
{
$(window).scrollTop(1);
}
else if
($(window).scrollTop() == 0) {
$(window).scrollTop($("body").height() - $(window).height() - 1);
}
});
});
</script>
</head>
<body id="endless">
</body>
</html>