-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
90 lines (84 loc) · 3.53 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.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Overpass:wght@700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./assets/css/materialize.css">
<link rel="stylesheet" href="./assets/css/styles.css" />
<title>The Weather's No Joke</title>
</head>
<body>
<!-- TODO: Make background gradient teal accent-2 to pink lighten-1 -->
<header class="container row s12 l6 m12 deep-purple darken-4">
<h1 class="z-depth-4 center-align">Dad Joke Weather</h1>
<h4 class="z-depth-4 center-align">Daily forecasts with a side of groans and giggles</h4>
</header>
<div class="container">
<form class="col s12 l6" id="search-form">
<div class="row">
<div class="input-field col s12 center-align">
<input type="text" id="city-input" class="validate">
<label for="city-input">City</label>
</div>
<div class="input-field col s3">
<i class="material-icons searchbar waves-effect waves-teal"><button class="btn-flat">search</button></i>
</div>
</div>
</form>
</div>
<!-- shadow box for dad jokes -->
<!-- TODO: Make dad jokes align to the left and weather align to the right -->
<section class="container s12 l6 m12 row">
<div class="col s6 m3 deep-purple darken-4" id="dad-joke-container">
<h3 class="z-depth-4 flow-text center-align">Dad Jokes</h3>
</div>
<div class="container">
<div class="row container">
<div id="flashCardContainer" class="col s12 l4 card pink lighten-1" onclick="toggleFlashCard()">
<p id="tooltip-text">Click to reveal punchline!</p>
<div class="card-content white-text">
<span class="card-title" id="front"></span>
<p id="back" style="display: none;"></p>
</div>
</div>
<div class="row container col s12 l6 m12">
<button class="getnextjokebutton waves-effect waves-teal btn-flat" onclick="getNextJoke()">Next Joke</button>
</div>
</div>
</div>
</section>
<div class="row" id="weather-info" style="display: none;">
<div class="col s4 m4 offset-m5 center-align z-depth-4">
<div class="card deep-purple darken-4">
<div class="card-content white-text">
<span class="card-title" id="city-date"></span>
<h3 id="city"></h3>
<img id="weather"></img>
<p id="temperature"></p>
<p id="humidity"></p>
<p id="wind-speed"></p>
</div>
</div>
</div>
</div>
<!-- TODO: Make background change color depending on time of day -->
<div class="container s12 l6 m12 row">
<div class="col s12 offset-m2">
<div class="row" id="forecast"></div>
</div>
</div>
<!-- dayjs src -->
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
<!-- jquery src -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<!-- materialize src -->
<script src="./assets/js/materialize.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<!-- local js file src -->
<script src="./assets/js/script.js"></script>
</body>
</html>