-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
90 lines (75 loc) · 3.57 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
83
84
85
86
87
88
89
90
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#FFC914">
<meta property="og:site_name" content="Laugh Out w/ Chuck Norris">
<meta property="og:title" content="Pratik Gadhiya" />
<meta property="og:description" content="An entertaining webapp which feeds it's user with humorous jokes revolving around the legacy of Chuck Norris." />
<meta property="og:image" itemprop="image" content="https://ctxplorer.github.io/laugh-out-webapp/images/laughing_big.png">
<meta property="og:type" content="website" />
<title>Laugh Out w/ Chuk Norris</title>
<link rel="shortcut icon" href="images/laughing.png" type="image/png">
<link href="css/main.css" type="text/css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="script/main.js"></script>
<link href="https://fonts.googleapis.com/css?family=Nunito:400,800,300|Open+Sans" rel="stylesheet">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-170309303-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-170309303-1');
</script>
</head>
<body>
<header>
<h1>😆😆 Laugh Out w/ Chuck Norris 😆😆</h1>
</header>
<main>
<div class="container">
<div class="jokePanel center">
<span id="joke">
Shortcuts for PC<br>
<kbd>SPACE</kbd> / <kbd>ENTER</kbd> — fetch a joke,<br>
<kbd>ESC</kbd> — customize,<br>
<kbd>ESC</kbd> & <kbd>ENTER</kbd> — save setting<br>
</span>
</div>
<div class="editPanel center">
<h4>Troll your friend!</h4>
<label for="firstName">Your friend's name</label><br>
<input type="text" id="firstName" value="Chuck">
<input type="text" id="lastName" value="Norris"><br>
<label for="yes">Receive explicit jokes?</label><br>
<input type="checkbox" id="yes">
</div>
<div class="btns">
<input type="button" value="Customize" id="edit" class="firstClick">
<input type="button" value="Get Joke!" id="next">
</div>
</div>
</main>
<footer>
<p id="love">
<a data-text="" data-link="https://ctxplorer.github.io/laugh-out-webapp/" class="whatsapp w3_whatsapp_btn w3_whatsapp_btn_large" id="share" style="margin-bottom: 1em; border-radius: 7px;">Share</a><br> Made with <img src="images/like.png" style="width: 16"> at <i>Hasura Hackathon</i><br><br>
<a href="https://www.youtube.com/watch?v=CeyEKg7CGtI" id="mail">View presentation on YT</a>
<a href="https://www.linkedin.com/in/pratikGadhiya" id="linkedin">Connect with me on <img src="images/linkedin-logo.png" title="linkedin logo"></a>
</p>
</footer>
<script>
$(document).ready(function() {
$(".editPanel").hide();
$(this).scrollTop(0);
$("#firstName").on("focus", function(e) {
$(this).val('');
});
$("#lastName").on("focus", function(e) {
$(this).val('');
});
});
</script>
</body>
</html>