-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
417 lines (417 loc) · 21.2 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="assets/css/materialize.css" media="screen,projection" />
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.css"> -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- css -->
<link rel="stylesheet" href="./assets/css/style.css">
<!-- font -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Germania+One&display=swap" rel="stylesheet">
<!-- favicon -->
<link rel="shortcut icon" type="image/png" href="./images/favicon.png">
<!-- Browser title -->
<title>Skewed News</title>
</head>
<body class= "#cfd8dc blue-grey lighten-4">
<!-- jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- popper.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js"></script>
<!-- moment.js -->
<script src="https://rawgit.com/moment/moment/2.2.1/min/moment.min.js"></script>
<!--navbar-->
<nav class="navigation-bar nav-extended">
<div class="nav-wrapper #212121 black" style="min-height: 100px">
<!-- navigation var logo -->
<a href="./index.html" class="brand-logo left"><img src="images/logo_transparent.png"></a>
<small class="right nav-text123">Github:<br> Email:</small>
</div>
</nav>
<span id="coin"></span>
<div class="row">
<div class="col s12 m6 offset-m3">
<div class="card-panel joke-panel cyan lighten-4">
<h4 class="center joke-title"> 🎭 Joke Panel 🎭</h4>
<span class="black-text joke"></span>
<p class="black-text punchline"></p>
</div>
</div>
</div>
<div class="search-container">
<!-- search button -->
<a class="search-button z-depth-3 btn btn-large modal-trigger tooltipped"
data-position="bottom"
data-tooltip="Search by Category & Country or Source"
href="#modal1"><span class="search-button-text" >Search News</span>
</a>
</div>
<!-- Modal Structure -->
<div id="modal1" class="modal myModal">
<div class="modal-content">
<!-- Search tab-1 -->
<h3>Search by Country & Category</h3>
<!-- Select country input -->
<div class="input-field col s12" id="country">
<select class="country">
<option value="" disabled selected>Choose a country</option>
<option value="us">USA</option>
<option value="gb">United Kingdom</option>
<option value="in">India</option>
<option value="au">Australia</option>
</select>
<label>Country</label>
</div>
<!-- Select category input -->
<div class="input-field col s12" id="category">
<select class="category">
<option value="" disabled selected>Choose a category</option>
<option value="general">General</option>
<option value="business">Business</option>
<option value="health">Health</option>
<option value="science">Science</option>
<option value="sports">Sports</option>
<option value="technology">Technology</option>
</select>
<label>Category</label>
</div>
<!-- Search Country & Category button-->
<a class="modal-close waves-effect waves-red btn-flat" id="search-button1"><span>Search</span></a>
<!-- Search tab-2 -->
<h3 class="search-title">Search by News Sources</h3>
<!-- Select source input -->
<div class="input-field col s12" id="source">
<select class="news-source">
<option value="" disabled selected>Choose a news source</option>
<option value="bbc-news">BBC News</option>
<option value="fox-news">Fox News</option>
<option value="cnn">CNN</option>
</select>
<label>News Source</label>
</div>
</div>
<!-- Search Source button-->
<a class="modal-close waves-effect waves-red btn-flat" id="search-button2"><span>Search</span></a>
</div>
<!-- Carousel -->
<div class="card">
<!--Category tabs-->
<div class="card-tabs">
<ul class="tabs tabs-fixed-width">
<!-- Most popular -->
<li class="tab"><a class="cyan-text accent-2" id="most-popular" onclick="startUp()">Top Headlines</a></li>
<!-- CNN -->
<li class="tab"><a class="cyan-text accent-2" data-value="cnn" id="tab-cnn" onclick="clickedTab(this)">CNN</a></li>
<!-- BBC -->
<li class="tab"><a class="cyan-text accent-2" data-value="bbc-news" id="tab-bbc" onclick="clickedTab(this)">BBC</a></li>
<!-- FOX NEWS -->
<li class="tab"><a class="cyan-text accent-2" data-value="fox-news" id="tab-fox" onclick="clickedTab(this)">FOX-NEWS</a></li>
</ul>
</div>
<!-- Carousel content-->
<div class="carousel carousel-slider center">
<div class="carousel-fixed-item center"></div>
<!-- Carousel tab-1 -->
<div class="carousel-item cc0 white-text ">
<h2 id="title-content0"></h2>
<a id="url0" class="btn waves-effect #d50000 accent-4 white-text darken-text-2 tooltipped"
data-position="bottom" data-tooltip="Go To Source Page">Click for more</a>
</div>
<!-- Carousel tab-2 -->
<div class="carousel-item cc1 white-text">
<h2 id="title-content1"></h2>
<a id="url1" class="btn waves-effect #d50000 accent-4 white-text darken-text-2 tooltipped"
data-position="bottom" data-tooltip="Go To Source Page">Click for more</a>
</div>
<!-- Carousel tab-3 -->
<div class="carousel-item cc2 white-text">
<h2 id="title-content2"></h2>
<a id="url2" class="btn waves-effect #d50000 accent-4 white-text darken-text-2 tooltipped"
data-position="bottom" data-tooltip="Go To Source Page">Click for more</a>
</div>
<!-- Carousel tab-4 -->
<div class="carousel-item cc3 white-text">
<h2 id="title-content3"></h2>
<a id="url3" class="btn waves-effect #d50000 accent-4 white-text darken-text-2 tooltipped"
data-position="bottom" data-tooltip="Go To Source Page">Click for more</a>
</div>
<!-- Carousel tab-5 -->
<div class="carousel-item cc4 white-text">
<h2 id="title-content4"></h2>
<a id="url4" class="btn waves-effect #d50000 accent-4 white-text darken-text-2 tooltipped"
data-position="bottom" data-tooltip="Go To Source Page">Click for more</a>
</div>
</div>
</div>
<!-- Categories -->
<div class="row center">
<!-- Category-1 General -->
<div class="col s4">
<div class="card picImage" id= "general">
<div class="card-image waves-effect waves-block">
<!-- General Image -->
<img class="activator responsive-img" onclick="clickedCategory(this)"
src="./images/general.jpg">
</div>
<div class="card-content">
<span class="catTitle activator">General</span>
</div>
</div>
</div>
<!-- Category-2 Sports -->
<div class="col s4">
<div class="card picImage" id="sports">
<div class="card-image waves-effect waves-block waves-light">
<!-- Sports Image -->
<img class="activator responsive-img" onclick="clickedCategory(this)"
src="./images/sports.jpg">
</div>
<div class="card-content">
<span class="catTitle activator">Sports</span>
</div>
</div>
</div>
<!-- Category-3 Health -->
<div class="col s4 ">
<div class="card picImage" id="health">
<div class="card-image waves-effect waves-block waves-light">
<!-- Health Image -->
<img class="activator responsive-img" onclick="clickedCategory(this)"
src="./images/health.jpg">
</div>
<div class="card-content">
<span class="catTitle activator">Health</span>
</div>
</div>
</div>
</div>
<div class="row center">
<!-- Category-4 Technology -->
<div class="col s4">
<div class="card picImage" id="technology">
<div class="card-image waves-effect waves-block waves-light">
<!-- Technology Image -->
<img class="activator responsive-img" onclick="clickedCategory(this)"
src="./images/technology.jpg">
</div>
<div class="card-content">
<span class="catTitle activator">Tech</span>
</div>
</div>
</div>
<!-- Category-5 Science -->
<div class="col s4">
<div class="card picImage" id="science">
<div class="card-image waves-effect waves-block ">
<!-- Science Image -->
<img class="activator responsive-img" onclick="clickedCategory(this)"
src="./images/science.png">
</div>
<div class="card-content">
<span class="catTitle activator">Science</span>
</div>
</div>
</div>
<!-- Category-6 Business -->
<div class="col s4">
<div class="card picImage" id="business">
<div class="card-image waves-effect waves-block waves-light">
<!-- Business Image -->
<img class="activator responsive-img" onclick="clickedCategory(this)"
src="./images/business.webp">
</div>
<div class="card-content">
<span class="catTitle activator">Business</span>
</div>
</div>
</div>
</div>
<!-- Weather Search -->
<div class="container">
<div class="row">
<div class="col s12 m6">
<!-- Weather Search Title -->
<h5 class="weather-desc center">City Weather Search</h5>
<div class="row">
<!-- Search City Input -->
<div class="col s12">
<div class="input-field center">
<input id="entered-city" type="search" placeholder="Enter a city">
<button type="submit" id="weather-button"class="input-group-addon btn white-text">Search</button>
</div>
</div>
</div>
<!-- Display Weather Container -->
<div class="row" id="weather-display">
<div class="col s12">
<div class="card-panel weather-panel">
<div class="weather-header">
<!-- Weather Icon -->
<img id="w-icon">
<!-- City Name -->
<h3 id="city-name"></h3>
</div>
<!-- Weather Conditions -->
<div class="weather-info">
<h5 id="date"></h5>
<p id="temp-desc"></p>
<p id="current-temp"></p>
<p id="feels-temp"></p>
<p id="current-humidity"></p>
<p id="current-windspeed"></p>
<!-- Personal Note -->
<small id="note"></small>
</div>
</div>
</div>
</div>
</div>
<div class="col s12 m6">
<h5 class="center covid-title">Covid-19 Cases</h5>
<div class="row">
<div class="col s12">
<div class="input-field center covid-input">
<input id="entered-country" type="search" placeholder="Enter a country">
<button type="submit" id="covid-button"class="input-group-addon btn white-text">Search</button>
</div>
</div>
</div>
<!-- -->
<div class="row" id="covid-display">
<div class="col s12">
<div class="card-panel covid-panel">
<div class="covid-header">
<h3 id="country-name"></h3>
</div>
<div class="covid-info">
<p id="capital-city"></p>
<p id="country-location"></p>
<p id="confirmed-cases"></p>
<p id="administered"></p>
<p id="people_vaccinated"></p>
<p id="people_partially_vaccinated"></p>
<p id="deaths"></p>
<p id="recovered"></p>
<p id="life_expectancy"></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="search-container">
<!-- search button -->
<a class="search-button z-depth-3 btn btn-large modal-trigger tooltipped"
data-position="bottom"
data-tooltip="Search a word!"
href="#modal2"><span class="search-button-text">Dictionary</span>
</a>
</div>
<!-- Modal Structure -->
<div id="modal2" class="modal myModal2">
<div class="modal-content">
<h5 class="center word-title">Dictionary</h5>
<div class="row">
<div class="col s12">
<div class="input-field center word-input">
<input id="entered-word" type="search" placeholder="Enter a word">
<button type="submit" id="word-button"class="input-group-addon btn white-text">Search</button>
</div>
</div>
</div>
<!-- -->
<div class="row" id="word-display">
<div class="col s12">
<div class="card-panel word-panel">
<div class="word-info">
<h5>Descriptions:</h5>
<p class="p0"></p>
<p class="p1"></p>
<p class="p2"></p>
<p class="p3"></p>
<p class="p4"></p>
<p class="p5"></p>
<p class="p6"></p>
<p class="p7"></p>
<p class="p8"></p>
<p class="p9"></p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Currency Converter -->
<h4 class="center">Currency Converter</h4>
<div class="row c1">
<!-- Input Amount-1 -->
<div class="input-field inline col s6">
<input id="currency-amount1" type="number" placeholder="Enter an amount">
</div>
<!-- Select Currency-1 -->
<div class="input-field inline col s6" id="currency1">
<select class="currency1">
<option value="" disabled selected>Choose a currency</option>
<option value="USD">US Dollar</option>
<option value="EUR">Euro</option>
<option value="JPY">Japanese Yen</option>
<option value="GBP">Pound Sterling</option>
<option value="AUD">Australian Dollar</option>
<option value="CAD">Canadian Dollar</option>
<option value="CHF">Swiss Franc</option>
<option value="CNY">Chinese Renminbi</option>
<option value="SEK">Swedish Krona</option>
<option value="NZD">New Zealand Dollar</option>
<option value="TRY">Turkish Lira</option>
</select>
</div>
</div>
<div class="row c2">
<!-- Input Amount-2 -->
<div class="input-field inline col s6">
<input id="currency-amount2" type="number" placeholder="Enter an amount">
</div>
<!-- Select Currency-2 -->
<div class="input-field inline col s6" id="currency2">
<select class="currency2">
<option value="" disabled selected>Choose a currency</option>
<option value="USD">US Dollar</option>
<option value="EUR">Euro</option>
<option value="JPY">Japanese Yen</option>
<option value="GBP">Pound Sterling</option>
<option value="AUD">Australian Dollar</option>
<option value="CAD">Canadian Dollar</option>
<option value="CHF">Swiss Franc</option>
<option value="CNY">Chinese Renminbi</option>
<option value="SEK">Swedish Krona</option>
<option value="NZD">New Zealand Dollar</option>
<option value="TRY">Turkish Lira</option>
</select>
</div>
</div>
<!-- Footer Navigation -->
<footer class="page-footer black">
<!-- Copyright & Time-->
<div class="footer-copyright">
<p>© 2021 Weird but Doable LTD</p><span id="time" class="right"></span>
</div>
</footer>
<!-- Static Contact Box -->
<div class="a-social-icons">
<a href="https://github.com/Weird-but-Doable" target="_blank" class="fa fa-github"></a>
<a href="mailto:skewed.newz@gmail.com" target="_blank" class="fa fa-envelope"></a>
</div>
<!--JavaScript at end of body for optimized loading-->
<script type="text/javascript" src="assets/js/materialize.js"></script>
<!-- javascript -->
<script type="text/javascript" src="./assets/js/script.js"></script>
</body>
</html>