-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
106 lines (101 loc) · 4.21 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
<!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" />
<title>Singing Weather Report</title>
<link rel="stylesheet" href="style.css" />
<link href="https://fonts.googleapis.com/css?family=Raleway|Roboto&display=swap" rel="stylesheet">
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<script src="https://unpkg.com/moment" />
<script src="https://kit.fontawesome.com/99692a6833.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<div class="app">
<h1>Sing me the weather in...</h1>
<form>
<div class="form-row align-items-center">
<div class="col-auto">
<input
type="text"
class="form-control"
id="keyword"
placeholder="Enter a city"
/>
</div>
<div class="col-auto">
<button type="submit" class="btn btn-outline-secondary">
Search
</button>
</div>
<div class="col-auto">
<button
type="button"
class="btn btn-outline-secondary"
id="currentLocation"
>
Current location
</button>
</div>
</div>
</form>
<br>
<h2 id="place"></h2>
<br />
<span id="currentDate"></span>
<div class="container">
<div class="row">
<div class="col-6">
<img id="iconCurrentWeather"/>
</div>
<div class="col-6">
<span id="currentTemperature"></span>
<ul>
<li id="weatherDescription"></li>
<li id="humidity"></span>
</li>
<span id="wind"></span>
</ul>
</div>
</div>
</div>
<div class="musicPlayer">
<iframe id="musicDrizzle" src="https://open.spotify.com/embed/track/0zRtBDhwtIFTfoK2HuURbM" width="460" height="80" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
<iframe id="musicClear" src="https://open.spotify.com/embed/track/6dGnYIeXmHdcikdzNNDMm2" width="460" height="80" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
<iframe id="musicThunderstorm" src="https://open.spotify.com/embed/track/14XWXWv5FoCbFzLksawpEe" width="460" height="80" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
<iframe id="musicSnow" src="https://open.spotify.com/embed/track/2uFaJJtFpPDc5Pa95XzTvg" width="460" height="80" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
<iframe id="musicRain" src="https://open.spotify.com/embed/track/5PRHG8t3cB86HV5H7D2MAr" width="460" height="80" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
<iframe id="musicClouds" src="https://open.spotify.com/embed/track/6VIgG1jh0jI7X30jhF87Fw" width="460" height="80" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
<iframe id="musicAtmosphere" src="https://open.spotify.com/embed/track/18nVec4X5DlXfePjAZkVwO" width="460" height="80" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
</div>
<br>
<div class="container">
<div class="row">
<div class="col-4">
<span id="tomorrow"></span><br>
<img id="iconTomorrowWeather"/>
<span id="tomorrowTemperature"></span>
</div>
<div class="col-4">
<span id="dayAfterTomorrow"></span><br />
<img id="iconDayAfterTomorrowWeather"/>
<span id="dayAfterTomorrowTemperature"></span>
</div>
<div class="col-4">
<span id="twoDaysAfterTomorrow"></span><br />
<img id="iconTwoDaysAfterTomorrowWeather"/>
<span id="twoDaysAfterTomorrowTemperature"></span>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>