-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (75 loc) · 1.7 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>ViewToggle - provides a 'full site' link to view the desktop web page on responsive sites</title>
<style>
/* Styles for the demo page */
html, body, h1 {padding:0;margin:0;}
html {
background: #eee;
}
body {
font-size: 1em;
line-height: 1.4;
background: #fff;
font-family:sans-serif;
}
header {
padding:1.25em 1.25em 0;
}
.box {
background:#aaa;
text-align:center;
float:left;
height:5em;
line-height:5em;
margin-bottom:1em;
font-size:2em;
width:100%;
}
#viewtoggle {
display:block;
padding:1.25em;
}
.clear {clear:both;}
@media only screen and (min-width: 600px) {
.box {
width: 31.64%;
margin-right: 2.53%;
}
.box.omega {
margin-right:0;
}
}
@media only screen and (min-width: 980px) {
body {
width: 58.75em;
padding: 1.25em;
margin: 0 auto;
}
header {
padding: 0;
}
.box {
background: #096ACA;
}
}
</style>
</head>
<body>
<header>
<h1>ViewToggle Demo</h1>
<p>Provides a 'full site' link for visitors who want to see the desktop version of your responsive webpage. No framework needed, <1KB gzipped. <a href="https://github.com/seanockert/ViewToggle">Download here</a></p>
<p><em>Visit this page on a mobile device and click 'View full site'.</em></p>
</header>
<div class="box">Box 1</div>
<div class="box">Box 2</div>
<div class="box omega">Box 3</div>
<br class="clear">
<a href="#" title="" id="viewtoggle">View full site</a>
<script src="viewtoggle.js"></script>
</body>
</html>