forked from jasonstacy/hackathon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
79 lines (72 loc) · 2.6 KB
/
index.html
File metadata and controls
79 lines (72 loc) · 2.6 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="Weather or Not"/>
<meta property="og:type" content="website" />
<meta property="og:image" content="https://www.jasonstacy.com.au/images/weatherornot2.png"/>
<meta property="og:description" content="A weather website in vanilla javascript that polls weatherbit.com for a weekly forecast. Also has moon phase data!"/>
<meta property="og:url" content="https://www.jasonstacy.com.au/src/assets/weather_or_not/index.html"/>
<title>Weather App</title>
<link rel="stylesheet" href="style.css" />
<link
href="https://fonts.googleapis.com/css2?family=EB+Garamond:ital@0;1&family=Philosopher:wght@700&display=swap"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>
<body>
<header>
<h1 id="app-name">Weather or Not</h1>
</header>
<div class="input">
<label for="City"
>City: <input type="text" class="inputValue" placeholder="Enter a city"
/></label>
<br>
<label for="Country code"
>Two letter country code:
<input
type="text"
label="Country code"
class="countryCode"
placeholder="Country code"
/></label>
<input type="submit" id="get-weather" class="button" value="Submit" />
</div>
<div class="output-data">
<p id = error-message></p>
<h2 id="city"></h2>
<p id="current-date"></p>
<img id="current-image" src="" alt="" />
<p id="description"></p>
<div class="temp">
<p id="tempCelcius" class = "temps"></p>
<p id="tempFarenheit" class="disappear temps"></p>
</div>
<p id="max-min"></p>
<!-- 7 day forcast data is completely created in JS once submit button clicked-->
<button id="more-info" type="button">More Info</button>
<div id="more-info-container">
<p id="precipitation"></p>
<p id="humidity"></p>
<p id="wind-speed"></p>
<p id="wind-gust-speed"></p>
<p id="wind-direction"></p>
<p id="uv-index"></p>
<p id="time-zone"></p>
<p id="sunrise"></p>
<p id="sunset"></p>
<p id="moonrise"></p>
<p id="moonset"></p>
<div id="moons-container">
<img id="moon-phase" src="" alt="" />
<div id="moon-line"></div>
</div>
</div>
<div id="forcast"></div>
</div>
<script type="module" src="main.js"></script>
</body>
</html>