forked from tfe/shouldyougettheappletablet.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
82 lines (68 loc) · 2.51 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- By @toddeichel and @cduruk. -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Should you get the Apple tablet?</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<style type="text/css">
/* Resets */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
h1, h2, h3, h4, h5, h6 { font-weight: normal; }
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
font-family: 'Lucida Grande', 'Helvetica', 'Arial', sans-serif;
font-size: 12px;
text-align: center;
margin-top: 200px;
color: #555;
background-color: lightgray;
}
h1 {
font-size: 50px;
font-weight: bold;
}
#answer {
color: #333;
font-weight: bold;
margin-top: 70px;
font-size: 150px;
}
#answer .loader {
color: darkgray;
font-size: 25px;
}
</style>
<script src="http://www.google.com/jsapi"></script>
<script>
// Load jQuery
google.load("jquery", "1.4");
google.setOnLoadCallback(function() {
var decision = Math.floor(Math.random()*2)
if (decision == 0) {
var response = "NO";
} else {
var response = "YES";
}
jQuery('#answer').html(response);
});
</script>
</head>
<body>
<h1>Should you get the Apple tablet?</h1>
<div id="answer">
<span class="loader">Analyzing…</span>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-2771447-5");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>