-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
128 lines (126 loc) · 5.59 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Weather App</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<!-- font -->
<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=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,700;0,800;0,900;1,100;1,200&display=swap" rel="stylesheet">
<!-- icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- style -->
<!-- Add jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<link rel="stylesheet" href="./assets/style/normalize.css">
<link rel="stylesheet" href="./assets/style/style.css">
</head>
<body>
<div class="row app valign-wrapper">
<!-- offset centers card horizontally -->
<div class="col s12 m6 offset-m3 ">
<div class="card">
<!-- <header> -->
<!-- Dropdown Structure -->
<ul id="dropdown1" class="dropdown-content teal-text">
<li><a href="#!">Hourly</a></li>
<li><a href="#!">Weekend</a></li>
<li class="divider"></li>
<li><a href="#!">Across the Country</a></li>
</ul>
<nav>
<div class="nav-wrapper teal">
<a href="#!" class="brand-logo">aq weather</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="#"><i class="material-icons">refresh</i></a></li>
<li><a href="#">Compare Cities</a></li>
<!-- Dropdown Trigger -->
<li><a data-target='dropdown1' class="dropdown-trigger" href="#!" data-trigger="dropdown1">More Forecasts<i class="material-icons right">arrow_drop_down</i></a></li>
</ul>
</div>
</nav>
<!-- </header> -->
<main class="card-content">
<h1 class="time-show center-align flow-text"></h1>
<p class="helper-text center-align teal-text" id='greetings'></p>
<!-- input box: Please enter your city -->
<div class="row">
<form class="col s12">
<div class="row">
<div class="input-field col s6">
<input id="city" placeholder="Enter City" type="text">
<span class="helper-text" data-error="wrong" data-success="right" id='place-city'></span>
<span class="helper-text" data-error="wrong" data-success="right" id='forecast'></span>
<div class="row forecast">
<div class="col s1" id='daily-forecast'>
<span class="card-title name-day"></span>
<p class="day"></p>
</div>
<div class="col s1">
<span class="card-title name-day"></span>
<p class="day"></p>
</div>
<div class="col s1">
<span class="card-title name-day"></span>
<p class="day"></p>
</div>
<div class="col s1">
<span class="card-title name-day"></span>
<p class="day"></p>
</div>
<div class="col s1">
<span class="card-title name-day"></span>
<p class="day"></p>
</div>
</div>
</div>
<div class="output-field col s6">
<h4 id='temp' class="center-align teal-text darken-4 flow-text"></h4>
<p class='time-weather'></p>
<p class='high-low'></p>
<p class='description'></p>
<p class='rain'></p>
</div>
</div>
</form>
</div>
<!-- button: GO -->
<button class="waves-effect waves-light btn-large"><i class="material-icons right">cloud</i>go</button>
</main>
<!-- GRAPHS -->
<div class="row graph-area center-align">
<div class="col s4 section">
<h5 class='main'>
<button class="waves-effect waves-teal btn-flat">Temperature</button>
</h5>
<canvas class='content' id="temperature"></canvas>
</div>
<div class="col s4 section">
<h5 class='main'>
<button class="waves-effect waves-teal btn-flat">Precipitation</button>
</h5>
<canvas class='content' id="precipitation"></canvas>
</div>
<div class="col s4 section">
<h5 class='main'>
<button class="waves-effect waves-teal btn-flat">Wind</button>
</h5>
<canvas class='content' id="Wind"></canvas>
</div>
</div>
<!-- close card -->
</div>
</div>
<!-- close app -->
</div>
<script type="module" src="app.js" async defer></script>
</body>
</html>