-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
97 lines (82 loc) · 3.62 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!doctype html>
<!--[if IE 9]>
<html lang="en" class="ie ie9">
<![endif]-->
<!--[if lt IE 9]>
<html lang="en" class="ie ie-legacy">
<![endif]-->
<html lang="en">
<head>
<meta charset="utf-8">
<title>DrunkUX</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
<meta name="description" content="Test your UX behind drunk eyes">
<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
<!-- facebook -->
<meta property="og:title" content="DrunkUX">
<meta property="og:type" content="website">
<meta property="og:url" content="http://valeriopierbattista.com/projects/drunkux/">
<meta property="og:image" content="http://valeriopierbattista.com/projects/drunkux/images/dist/facebook-image.png">
<meta property="og:description" content="Test your UX behind drunk eyes">
<meta property="og:site_name" content="DrunkUX">
<meta http-equiv="content-language" content="EN">
<!-- viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Windows/IE font smoothing -->
<meta http-equiv="cleartype" content="on">
<!-- Use latest IE rendering engine and switch on chrome Frame if available -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- CSS -->
<link rel="stylesheet" href="css/main.css" />
<meta http-equiv="content-language" content="EN">
<meta name="revisit-after" content="7 days">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<![endif]-->
</head>
<body>
<?php $src = (empty($_GET['url'])) ? 'http://' : addslashes(filter_input(INPUT_GET, 'url', FILTER_SANITIZE_URL)); ?>
<header class="header">
<div class="left">
<img src="images/dist/logo.png" class="logo">
<h1>Drunk UX
<br>
<span>Is it Drunk Proof?</span></h1>
</div>
<div class="center">
<form method="get" action="" id="url-form">
<!-- <label for="url"><i class="fa fa-arrow-circle-o-down"></i> Insert URL here:</label> -->
<div class="alert-url"><img src="images/dist/bell.png"> Insert a URL and click <b>GO</b></div>
<div id="alert-forbidden"><i class="fa fa-exclamation-triangle"></i> Please don't try to drunk test websites like <b>Google</b>, <b>Facebook</b>, <b>Twitter</b> etc. These websites cannot be displayed in an <i>iframe!</i></div>
<input id="url" type="text" name="url" placeholder="Enter any URL" value="<?php echo $src; ?>" />
<button id="url-submit">
Go
</button>
</form>
</div>
<div class="right">
<div class="drunk">
Drunk Vision
</div>
</div>
</header>
<iframe id="sg-viewport" src="<?php echo $src; ?>" sandbox="allow-same-origin allow-scripts allow-forms" class="theframe">
</iframe>
<footer class="footer">
<div class="cell">
An <b>incredibly useful tool</b> brought to you by <a href="https://twitter.com/vlrprbttst" target="_blank">Valerio Pierbattista</a> - <i class="fa fa-github fa-lg"></i> <a href="https://github.com/vlrprbttst/drunk-ux" target="_blank">Source & Info</a>
</div>
<div class="cell">
<a class="twitter-share-button"
href="http://www.drunkuserexperience.com"
data-url="http://www.drunkuserexperience.com"
data-via="vlrprbttst"
data-text="Is your website drunk proof? #dontdrinkandbrowse #drunkuserexperience #usability #ux - "
data-count="none"> Tweet </a>
<span><i class="fa fa-ban"></i> Don't Drink & Browse ;)</span>
</div>
</footer>
<script src="js/build/production.min.js"></script>
</body>
</html>