File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < meta charset ="utf-8 ">
5
+ < title > DOMtastic</ title >
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
+ < link href ="../libs/bootstrap/css/bootstrap.min.css " rel ="stylesheet ">
8
+ < link rel ="stylesheet " href ="css/style.css ">
9
+ < script src ="../libs/domtastic/domtastic.js "> </ script >
10
+ < script src ="../dist/jquery.lazyloadxt.js "> </ script >
11
+ </ head >
12
+ < body >
13
+ < div class ="container ">
14
+ < div class ="page-header ">
15
+ < h1 > DOMtastic</ h1 >
16
+ < p class ="lead "> Work with DOMtastic library.</ p >
17
+ </ div >
18
+
19
+ < script >
20
+ var category = 'cats' , count = 10 ;
21
+ for ( var i = 1 ; i <= count ; i ++ ) {
22
+ document . write ( '<p><img data-src="http://lorempixel.com/300/200/' + category + '/' + i + '" width="300" height="200"></p>' ) ;
23
+ }
24
+ </ script >
25
+ </ div >
26
+ </ body >
27
+ </ html >
Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ <h4 class="list-group-item-heading">Autoload addon</h4>
31
31
< h4 class ="list-group-item-heading "> Background images addon</ h4 >
32
32
< p class ="list-group-item-text "> Example of lazy loading of background images</ p >
33
33
</ a >
34
+ < a href ="domtastic.htm " class ="list-group-item ">
35
+ < h4 class ="list-group-item-heading "> DOMtastic</ h4 >
36
+ < p class ="list-group-item-text "> Work with DOMtastic library</ p >
37
+ </ a >
34
38
< a href ="fadein.htm " class ="list-group-item ">
35
39
< h4 class ="list-group-item-heading "> Fade-in</ h4 >
36
40
< p class ="list-group-item-text "> Lazy loading with fade-in effect</ p >
You can’t perform that action at this time.
0 commit comments