-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (45 loc) · 1.79 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
<!doctype html>
<html class="" lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Is Ja Rule in Jail?</title>
<link rel="icon" type="image/png" href="/images/favicon.png" />
<meta name="description" content="Is Ja Rule in jail? find out here">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="manifest" href="site.webmanifest">
<style>
body{
background-size:cover;
background-image:url();
}
</style>
</head>
<body>
<footer>
<h1>Ja Rule is <span></span> in jail</h1>
</footer>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
<script type="text/javascript">
$.ajax({
type: "get",
url: "/data/jail.json",
success: function (response) {
console.log(response);
var data = response[0];
if(data.inJail == true){
$('footer h1 span').text('definitely');
}
else{
$('footer h1 span').text('unfortunately not');
}
$('footer').append('<a href="'+response.url+'">'+response.title+'</a>');
}
});
</script>
<script>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-WGWPWTX');
</script>
<!-- End Google Tag Manager -->
</body>
</html>