-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
111 lines (107 loc) · 8.39 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>EZ</title>
<link rel="icon" type="image/svg+xml" sizes="78x78" href="https://cdn.jsdelivr.net/gh/ezealot/ez/Designs/cdn/Logo.svg">
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/fonts/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/styles.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.3.1/css/swiper.min.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VC3G40V4ZG"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-VC3G40V4ZG');
</script>
</head>
<body style="background: url("https://cdn.jsdelivr.net/gh/ezealot/ez/Designs/cdn/BG.svg");margin-bottom: 30px;">
<nav class="navbar navbar-light navbar-expand-md navigation-clean-search" style="background: rgba(255,255,255,0);">
<div class="container"><button data-toggle="collapse" class="navbar-toggler" data-target="#navcol-1"><span class="sr-only">Toggle navigation</span><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navcol-1"><img class="mr-auto" src="https://cdn.jsdelivr.net/gh/ezealot/ez/Designs/cdn/Logo.svg" width="60" height="60" alt="Esports Zealot">
<ul class="nav navbar-nav border rounded ml-auto" style="background: rgba(255,255,255,0.5);">
<li class="nav-item"><a class="nav-link active" href="/">Home</a></li>
<li class="nav-item"><a class="nav-link" href="/slangs">Slangs</a></li>
<li class="nav-item"><a class="nav-link" href="/about">About</a></li>
</ul>
<form id="slangSearch" class="form-inline ml-auto" target="_self">
<div class="form-group border rounded" style="background: rgba(255,255,255,0.5);padding-left: 12px;"><label for="search-field"><i class="fa fa-search"></i></label><input class="form-control search-field" type="search" id="search-field" name="search" style="color: #ffffff;"></div>
</form>
</div>
</div>
</nav>
<div class="container border rounded" style="background: rgba(255,255,255,0.3);">
<h1 style="color: #ffffff;margin-top: 12px;margin-left: 50px;"><strong>Popular Games</strong></h1>
<div align="center">
<div class="carousel slide" data-ride="carousel" data-pause="false" id="carousel-1" style="padding-top: 20px;padding-bottom: 20px;max-width: 1000px;">
<div class="carousel-inner border rounded">
<div class="carousel-item active"><img class="w-100 d-block" style="background: url("assets/img/BGPattern.svg");cursor: pointer;" src="https://m.media-amazon.com/images/G/01/sm/amped/valorant_s2/desktop_hero_1x._CB414495384_.jpg" onclick="window.open('https://playvalorant.com/', '_blank');"></div>
<div class="carousel-item"><img class="w-100 d-block" src="https://media.comicbook.com/2020/11/cyberpunk-2077-logo-2-1245840-1280x0.jpeg" alt="Slide Image" onclick="window.open('https://www.cyberpunk.net/', '_blank');" style="cursor:pointer"></div>
<div class="carousel-item"><img class="w-100 d-block" src="https://www.callofduty.com/content/dam/atvi/callofduty/cod-touchui/warzone/social/wz-social-share.jpg" alt="Slide Image" style="cursor: pointer;" onclick="window.open('https://www.callofduty.com/warzone/', '_blank');"></div>
</div>
<div><a class="carousel-control-prev" href="#carousel-1" role="button" data-slide="prev"><span class="carousel-control-prev-icon"></span><span class="sr-only">Previous</span></a><a class="carousel-control-next" href="#carousel-1" role="button"
data-slide="next"><span class="carousel-control-next-icon"></span><span class="sr-only">Next</span></a></div>
<ol class="carousel-indicators">
<li data-target="#carousel-1" data-slide-to="0" class="active"></li>
<li data-target="#carousel-1" data-slide-to="1"></li>
<li data-target="#carousel-1" data-slide-to="2"></li>
</ol>
</div>
</div>
<div class="card-group" style="padding-bottom: 20px;margin-right: 50px;margin-left: 50px;">
<div class="card border rounded" style="margin-right: 40px;background: url("https://cdn.jsdelivr.net/gh/ezealot/ez/Designs/cdn/pgs.svg") center / cover;cursor: pointer;" onclick="window.location='/slangs';">
<h1 class="text-left" style="margin-left: 35px;margin-right: 35px;color: #ffffff;margin-top: 66px;"><strong>Popular </strong><br><strong>Gaming Slangs !</strong></h1>
</div>
<div class="card border rounded" style="background: url("https://cdn.jsdelivr.net/gh/ezealot/ez/Designs/cdn/ars.svg") center / cover;">
<div class="table-responsive" style="padding-bottom: 20px;">
<table class="table">
<thead>
<tr>
<th colspan="2" style="font-size: 40px;color: #ffffff;border-right-style: none;border: none;padding-left: 24px;">A Random Slang !</th>
</tr>
</thead>
<tbody style="color: #ffffff;border-right-style: none;">
<tr style="color: #ffffff;border-right-style: none;">
<td id="slang" rowspan="4" style="font-size: 80px;color: #ffffff;border-right-style: solid;border-top-style: none;padding-left: 24px;">EZ</td>
<td style="padding: 0px;color: #ffffff;border-right-style: none;border: none;padding-left: 15px;font-size: 20px;">Actual Word:</td>
</tr>
<tr style="color: #ffffff;border-right-style: none;">
<td id="acc_word" style="padding: 0px;color: #ffffff;border-right-style: none;border: none;padding-left: 15px;font-size: 20px; font-style: italic;"><em>Easy</em></td>
</tr>
<tr style="color: #ffffff;border-right-style: none;">
<td style="padding: 0px;color: #ffffff;border-right-style: none;border: none;padding-left: 15px;font-size: 20px;">Definition:</td>
</tr>
<tr style="color: #ffffff;border-right-style: none;">
<td id="def" style="padding: 0px;color: #ffffff;border-right-style: none;border: none;padding-left: 15px;font-size: 20px; font-style: italic;"><em>Self-Explanatory</em></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.3.1/js/swiper.jquery.min.js"></script>
<script src="assets/js/script.min.js"></script>
<script>
$( "#slangSearch" ).submit(function( event ) {
event.preventDefault();
let query = document.getElementById("search-field").value;
query = query.toUpperCase();
window.location = `${window.location.origin}/slangs#${query}`;
});
$.getJSON( `https://raw.githubusercontent.com/ezealot/ezealot.github.io/main/data/slangs/slangs.json`, function(data) {
let randNum = Math.floor(Math.random() * data.length) + 0;
data = data[randNum];
document.getElementById("slang").innerHTML=data.slang;
document.getElementById("acc_word").innerHTML= data.acc_word;
document.getElementById("def").innerHTML=data.definition;
});
</script>
</body>
</html>