forked from imazine/mob.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (68 loc) · 2.68 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>mob.js - mobile traffic reducer v0.6</title>
<link rel="stylesheet" href="style.css" type="text/css"/>
<meta name="viewport" content="initial-scale = 1.0, width=device-width, minimum-scale=1.0">
<!--[if lte IE 8]>
<script type="text/javascript" src="respond.min.js"></script>
<![endif]-->
<!--[if IE 9]>
<![endif]-->
</head>
<body>
<div class="container">
<div class="head" id="header">
<h1>This is header</h1>
<p id="test"></p>
<div class="testdiv">
<ul>
<li><img data-src="http://www.unioh.com/images/sample001.jpg" alt="sample001"/></li>
<li><img data-src="http://unioh.com/images/sample002.jpg" alt="sample002"/></li>
</ul>
</div>
</div>
<div class="contents" id="tester">
<h1>This is body</h1>
<img data-src="http://unioh.com/images/sample003.jpg" alt="sample003"/>
<img data-src="http://unioh.com/images/sample004.jpg" alt="sample004"/>
<img data-src="http://unioh.com/images/sample005.jpg" alt="sample005" />
<img data-src="http://mimesisart.co.kr/images/18.JPG" alt="sample005"/>
<img data-src="http://mimesisart.co.kr/images/1.JPG" alt="sample005"/>
<img data-src="http://mimesisart.co.kr/images/9.JPG" alt="sample005"/>
<img data-src="http://mimesisart.co.kr/images/111.JPG" alt="sample005"/>
<img data-src="http://mimesisart.co.kr/images/84.JPG" alt="sample005"/>
</div>
<div class="footer">
<h1>This is Footer</h1>
<img data-src="http://unioh.com/images/sample006.jpg" alt="sample006"/>
</div>
</div>
</body>
<script type="text/javascript" src="mob.min.js"></script>
<script type="text/javascript">
// mob.config is not a precondition.
mob.config = {
// autoStart : true,
// autoStart : Boolean true is default.
// auto Start mob.js without trigger.
requestType : "%f.%e?x=%w&y=%h",
// requestType : expression
// for example FileName.png defined width: 700px;(예시) default> "%fx%w.%e" --> FileNamex700.png
// ex> "http://url/imgServer?fn=%f.%e&width=%wpx" --> http://url/imgServer?fn=FileName.png&width=700px
// %f = File Name
// %w = width value catched CSS
// %h = height Value catched CSS
// %e = extension */
autoReload : true,
/*autoReload : Boolean true is default.
Reload image when Media Query defines larger than current image width */
retinaSupport : false
/*retinaSupport : Boolean false is default.
Detect Retina-Display and request double of image width */
}
// mob.init(); //pull the trigger.
</script>
</html>