forked from tuupola/lazyload
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enabled_noscript.html
144 lines (132 loc) · 6.95 KB
/
enabled_noscript.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta charset="utf-8">
<title>Lazy Load Enabled With Noscript Fallback</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link type="text/css" media="screen" href="http://www.appelsiini.net/css/appelsiini.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
<link rel="shortcut icon" href="http://www.appelsiini.net/img/favicon.ico">
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<script>
//<![CDATA[
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-190966-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
//]]>
</script>
<style type="text/css">
.container img {
margin-bottom: 10px;
}
.lazy {
display: none;
}
</style>
</head>
<body>
<div class="jumbotron">
<div class="container">
<div class="col-md-10 col-lg-8 col-md-offset-1 col-lg-offset-2">
<h1>Lazy Load Plugin for jQuery</h1>
<a href="http://www.appelsiini.net/"><span class="label label-info">Blog</span></a>
<a href="http://www.appelsiini.net/projects"><span class="label label-danger">Projects</span></a>
<br>
<div>
<iframe src="http://ghbtns.com/github-btn.html?user=tuupola&repo=jquery_lazyload&type=watch&count=true&size=small" allowtransparency="true" frameborder="0" scrolling="0" width="94" height="30"></iframe>
<iframe src="http://ghbtns.com/github-btn.html?user=tuupola&repo=jquery_lazyload&type=fork&count=true&size=small" allowtransparency="true" frameborder="0" scrolling="0" width="90" height="30"></iframe>
</div>
</div>
</div>
</div>
<div class="container">
<div class="col-md-10 col-lg-8 col-md-offset-1 col-lg-offset-2">
<h2>Plugin enabled with noscript fallback</h2>
<p>
This page deprecates gracefully for non JavaScript browsers. It requires hiding
lazy loaded images with css and adding a <noscript> block which contains
the real image and it is shown when JavaScript is not enabled. If JavaScript is enabled
show() function is called before initializing Lazy Load plugin.
</p>
<pre class="prettyprint">.lazy {
display: none;
}</pre>
<pre class="prettyprint">$("img.lazy").show().lazyload({
effect : "fadeIn"
});</pre>
<pre class="prettyprint"><img class="lazy" src="img/grey.gif" data-original="img/example.jpg" width="765" height="574">
<noscript><img src="img/example.jpg" width="765" height="574"></noscript></pre>
<img class="lazy img-responsive" data-original="img/bmw_m1_hood.jpg" width="765" height="574" alt="BMW M1 Hood"><br/>
<img class="lazy img-responsive" data-original="img/bmw_m1_side.jpg" width="765" height="574" alt="BMW M1 Side"><br/>
<img class="lazy img-responsive" data-original="img/viper_1.jpg" width="765" height="574" alt="Viper 1"><br/>
<img class="lazy img-responsive" data-original="img/viper_corner.jpg" width="765" height="574" alt="Viper Corner"><br/>
<img class="lazy img-responsive" data-original="img/bmw_m3_gt.jpg" width="765" height="574" alt="BMW M3 GT"><br/>
<img class="lazy img-responsive" data-original="img/corvette_pitstop.jpg" width="765" height="574" alt="Corvette Pitstop"><br/>
<noscript>
<img class="img-responsive" src="img/bmw_m1_hood.jpg" width="765" height="574" alt="BMW M1 Hood">
<img class="img-responsive" src="img/bmw_m1_side.jpg" width="765" height="574" alt="BMW M1 Side">
<img class="img-responsive" src="img/viper_1.jpg" width="765" height="574" alt="Viper 1">
<img class="img-responsive" src="img/viper_corner.jpg" width="765" height="574" alt="Viper Corner">
<img class="img-responsive" src="img/bmw_m3_gt.jpg" width="765" height="574" alt="BMW M3 GT">
<img class="img-responsive" src="img/corvette_pitstop.jpg" width="765" height="574" alt="Corvette Pitstop">
</noscript>
</div>
</div>
<div class="bottom-menu bottom-menu-large bottom-menu-inverse">
<div class="container">
<div class="col-md-offset-1 col-lg-offset-2">
<div class="col-sm-3 col-md-2">
<h5 class="title">CATEGORIES</h5>
<ul class="bottom-links">
<li><a href="http://www.appelsiini.net/javascript">JavaScript</a></li>
<li><a href="http://www.appelsiini.net/ruby">Ruby</a></li>
<li><a href="http://www.appelsiini.net/avr">AVR</a></li>
</ul>
</div>
<div class="col-sm-3 col-md-2">
<h5 class="title">PROJECTS</h5>
<ul class="bottom-links">
<li><a href="http://www.appelsiini.net/projects/lazyload">Lazy Load</a></li>
<li><a href="http://www.appelsiini.net/projects/chained">Chained</a></li>
<li><a href="http://www.appelsiini.net/projects/jeditable">Jeditable</a></li>
<li><a href="http://www.appelsiini.net/projects/viewport">Viewport</a></li>
<li><a href="http://www.appelsiini.net/projects/rack-facebook-methodfix">Facebook Methodfix</a></li>
<li><a href="http://www.appelsiini.net/projects/rack-funky-cache">Funky Cache</a></li>
</ul>
</div>
<div class="col-sm-3 col-md-2">
<h5 class="title">ABOUT</h5>
<ul class="bottom-links">
<li><a data-action="GitHub" data-label="footer" href="https://github.com/tuupola" class="icon-github-sign icon-large track"> GitHub</a></li>
<li><a data-action="Twitter" data-label="footer" href="https://twitter.com/tuupola" class="icon-twitter-sign icon-large track"> Twitter</a></li>
<li><a data-action="Google+" data-label="footer" href="https://plus.google.com/114333901699201512043?rel=author" class="icon-google-plus-sign icon-large track"> Google+</a></li>
</ul>
</div>
<div class="col-sm-3 col-md-5 col-lg-4">
Built using the awesome <a class="track" data-action="Designmodo" data-label="footer" style="color: #ffffff;" href="http://designmodo.com/flat/?u=583">Flat UI Pro</a> framework by Designmodo.
<br><br>
© 2013 Mika Tuupola.
</div>
</div>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="jquery.lazyload.js?v=1.9.1"></script>
<script src="http://www.appelsiini.net/js/all.js"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
$("img.lazy").show().lazyload({
effect : "fadeIn"
});
});
</script>
</body>
</html>