-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage.html
57 lines (46 loc) · 1.74 KB
/
image.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>endless images</title>
<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.infinitescroll.js"></script>
<script type="text/javascript" src="js/manual-trigger.js"></script>
</head>
<body id="bid">
<div id="content">
<span class="imag">Image may contain: 1 person, close-up</span>
<span class="imag">Image may contain: sky</span>
<span class="imag">Image may contain: No photo description available.</span>
<span class="imag">Image may contain: one or more people</span>
<span class="imag">Image may contain: No photo description available.</span>
<span class="imag">Image may contain: outdoor, water</span>
<span class="imag">Image may contain: screen and indoor</span>
<span class="imag">Image may contain: one or more people</span>
<span class="imag">Image may contain: plant</span>
</div>
<a id="next" href="image.html">next page?</a>
<script type="text/javascript">
$(document).ready(function(){
$('#content').infinitescroll({
navSelector: "#next:last",
nextSelector: "#next:last",
itemSelector: "#content",
debug: false,
dataType: 'html',
maxPage: 100,
path: function(index) {
return "image"+".html";
}
// appendCallback : false, // USE FOR PREPENDING
}, function(newElements, data, url){
// used for prepending data
// $(newElements).css('background-color','#ffef00');
// $(this).prepend(newElements);
});
});
</script>
</body>
</html>