-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·84 lines (73 loc) · 2.28 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
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Pngy</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" type="text/css" href="styles.css" />
<link rel="stylesheet" type="text/css" href="sprites.css" />
<script>
var head_conf = { screens: [500, 700, 900], section: '-section', page: '-page' };
</script>
<script src="./js/head.min.js"></script>
</head>
<body>
<!--
<dl>
<dt class="bandwidth">bandwidth</dt>
<dd class="fast">Fast</dd>
<dd class="normal">Normal</dd>
<dd class="slow">Slow</dd>
</dl>
-->
<div class="wrapper">
<h1>Image srcset</h1>
<h2 id="pingspeed">Load Speed: <b></b></h2>
<div class="bglogo">
<a class="sprite sprite-NOSE_N" title="Nose"><span>N</span></a>
<a class="sprite sprite-NOSE_O" title="nOse"><span>O</span></a>
<a class="sprite sprite-NOSE_S" title="noSe"><span>S</span></a>
<a class="sprite sprite-NOSE_E" title="nosE"><span>E</span></a>
</div>
<img
class="bandwidth schiff"
src="./img/schiff/img_450-slow.jpg"
srcset="./img/schiff/[email protected] 2x, ./img/schiff/img_900-slow.jpg 500w, ./img/schiff/[email protected] 500w 2x"
alt="our logo" />
<div class="logo">
<img
class="bandwidth"
src="./img/logo-slow.jpg"
srcset="./img/[email protected] 2x"
alt="our logo" />
</div>
</div>
<script>
head.feature('srcset', function() {
var tag = 'srcset' in document.createElement('img');
return !!tag.canHandleSRCSet;
});
head.js('./js/jquery.js', './js/jquery.srcset.js', function() {
if ( !head.srcset ) {
jQuery('img[srcset]').srcset({
display_results: '#pingspeed b',
limits: {
maximum: 200,
fast: 100,
medium: 50,
slow: 0
}
});
}
jQuery('a.sprite').on('click', function(){
jQuery(this).toggleClass('hover');
});
});
</script>
</body>
</html>