forked from bradfrost/ish.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
55 lines (53 loc) · 1.82 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
<!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
$url = $_GET['url'];
if ($url!="") {
$src= $url;
} else {
$src = 'http://bradfrostweb.com/blog/post/ish';
}
?>
<!--iFrame-->
<div id="vp-wrap"><iframe id="viewport" src="<?php echo $src; ?>"></iframe></div>
<!--end iFrame-->
<ul class="nav size" id="nav">
<li><a href="#" id="size-toggle" class="active">Size</a></li>
<li><a href="#" id="size-s">S</a></li>
<li><a href="#" id="size-m">M</a></li>
<li><a href="#" id="size-l">L</a></li>
<li><a href="#" id="size-xl">XL</a></li>
<li><a href="#" id="size-random">Random</a></li>
<li>
<form method="post" action="#" id="size-enter" >
<input id="size-num" type="number" pattern="[0-9]*" step="10" min="100" placeholder="Enter Size" />
</form>
</li>
</ul>
<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" />
</form>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.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>