-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (61 loc) · 2.02 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
<html>
<head>
<link rel="stylesheet" href="styles.css" />
<script src="script.js"></script>
<script src="words.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body onload="sentence()">
<div class="container">
<!-- Heading -->
<div class="row">
<h1> Memeee Generator</h1>
</div>
<!-- Options -->
<div class="row">
<button onclick="sentence()">Refresh</button>
<!-- <button id="mode" class="PIC" onclick="toggleMode()">
<B>PIC</B> // GIF</button> -->
<button onclick="reactionImage()">Reroll Image</button>
<div class="checkbox">
<label><input id="checkbox1" type="checkbox" value="">UofT mode</label>
</div>
</div>
<!-- Meme -->
<div class="row" style="margin-top:10px" >
<p id="sentence"></p>
<div id="image"></div>
</div>
<!-- Footer options -->
<div class="row">
</div>
</div>
</body>
<script>
// $(".nav").click(function () {
// //we remove all the borders from all the buttons
// $(".nav").removeClass("focus");
// //Now we add the border to the button that's been clicked
// $(this).addClass("focus");
// });
$('#checkbox1').change(function() {
if(this.checked) {
obj.push.apply(obj, uoftnouns);
place.push.apply(place,uoftplaces);
}
else {
const filterObj = obj.filter(function(x) {
return uoftnouns.indexOf(x) < 0;
});
const filterPlace = place.filter(function(x) {
return uoftplaces.indexOf(x) < 0;
});
place = filterPlace;
}
});
</script>
</html>