This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
demo.html
95 lines (84 loc) · 2.53 KB
/
demo.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
<!DOCTYPE html><!--[if IE]><![endif]-->
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Preact Lazy Image Component Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script><![endif]-->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.1.9/es5-shim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.1.9/es5-sham.min.js"></script>
<style>
html {
background: #4C5D6A;
color: #F1F1F1;
}
body {
margin: 1em auto;
padding: 1em;
max-width: 40em;
}
a:link,
a:visited {
color: #1698CE;
text-decoration: none;
}
a:hover,
a:focus {
outline: none;
text-decoration: underline;
}
footer {
background: #253447;
border-radius: 3px;
color: #FAFAFA;
font-size: 0.875em;
font-style: italic;
margin-top: 2em;
padding: 1em;
text-align: center;
}
.about a:link,
.about a:visited,
footer a:link,
footer a:visited {
color: #5AC1ED;
}
footer .fa-stack-1x {
color: #363636;
}
footer .fa-stack-2x {
color: #FAFAFA;
}
footer .fa-download {
color: #1C720E;
}
.lazyload-placeholder {
background: gray;
height: 300px;
width: 300px;
display: inline-block;
}
</style>
</head>
<body>
<h1>Preact Lazy Img Demo</h1>
<div id="app"></div>
<footer>
<nav>
<a href="https://github.com/ajm113/preact-lazy-img"><span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-github fa-stack-1x fa-lg"></i>
</span> GitHub: preact-lazy-img</a>
|
<a href="https://www.npmjs.com/package/preact-lazy-img"><span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-download fa-stack-1x fa-lg"></i>
</span> npm: preact-lazy-img</a>
</nav>
</footer>
<script src="https://unpkg.com/preact"></script>
<script src="https://unpkg.com/preact/devtools.js"></script>
<script src="./dist/umd/preact-lazy-img.js"></script>
<script src="./demo/app.js"></script>
</body>
</html>