forked from bradfrost/ish.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
75 lines (71 loc) · 2.73 KB
/
index.php
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
<!DOCTYPE html>
<html>
<head>
<title>ish. yet another viewport resizer.</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="styles.css" media="all" />
</head>
<body>
<?php //Get URL Parameter
$src = (empty($_GET['url'])) ? 'http://bradfrostweb.com/blog/post/ish-2-0/' : addslashes(filter_input(INPUT_GET, 'url', FILTER_SANITIZE_URL));
?>
<header class="sg-header" role="banner">
<div class="nav url-change">
<form method="get" action="">
<label for="url" id="url-toggle" class="url-toggle">URL</label>
<input id="url" type="url" name="url" placeholder="Enter any URL" />
<button id="url-submit">Go</button>
</form>
</div>
<div class="sg-controls" id="sg-controls">
<div class="sg-control-content">
<ul class="sg-control">
<li class="sg-size">
<div class="sg-current-size">
<form id="sg-form">
Size <input type="text" class="sg-input sg-size-px" value="320">px /
<input type="text" class="sg-input sg-size-em" value="20">em
</form><!--end #sg-form-->
</div><!--end #sg-current-size-->
<ul class="sg-acc-panel sg-size-options">
<li class="sg-quarter"><a href="#" id="sg-size-s">S</a></li>
<li class="sg-quarter"><a href="#" id="sg-size-m">M</a></li>
<li class="sg-quarter"><a href="#" id="sg-size-l">L</a></li>
<li class="sg-half"><a href="#" id="sg-size-full">Full</a></li>
<li class="sg-half"><a href="#" id="sg-size-random">Random</a></li>
<li class="sg-half"><a href="#" class="mode-link" id="sg-size-disco">Disco</a></li>
<li class="sg-half"><a href="#" class="mode-link" id="sg-size-hay">Hay!</a></li>
</ul>
</li>
</ul>
</div>
</div>
</header>
<!-- Iframe -->
<div id="sg-vp-wrap">
<div id="sg-cover"></div>
<div id="sg-gen-container">
<iframe id="sg-viewport" src="<?php echo $src; ?>"></iframe>
<div id="sg-rightpull-container">
<div id="sg-rightpull"></div>
</div>
</div>
</div>
<!--end iFrame-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript" src="js/data-saver.js "></script>
<script type="text/javascript" src="js/url-handler.js "></script>
<script type="text/javascript" src="js/init.js "></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2687475-3']);
_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>
</body>
</html>