-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
42 lines (42 loc) · 1.4 KB
/
index.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
<html>
<head>
<title>Lazy Load Demo</title>
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<div id="wrapper">
<h1>Lazy Load Demo</h1>
<div id="data-container">
<div class="data-item">
Hi! I am the first item.
</div>
<div class="data-item">
Hi! I am the second item.
</div>
<div class="data-item">
Hi! I am the third item.
</div>
<div class="data-item">
Ok, this is getting boring.
</div>
<div class="data-item">
Let's try something new.
</div>
<div class="data-item">
How about loading some more items through AJAX?
</div>
<div class="data-item">
Click the button below to load more items.
</div>
</div>
<div id="button-more" onclick="lazyload.load()">
Load more items
</div>
<div id="loading-div">
loading more items
</div>
</div>
<script type="text/javascript" src="./jquery.1.10.min.js"></script>
<script type="text/javascript" src="./lazyload.js"></script>
</body>
</html>