-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
139 lines (128 loc) · 6.58 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="with=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ei=edge" />
<title>Weather</title>
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="css/popup.css" />
</head>
<body>
<div class="card" style="width: 24rem; border: none;">
<div class="card-body pb-2">
<h4 id="city" class="card-title"></h4>
<p id="current-weather-description" class="card-subtitle"></p>
<div class="d-flex justify-content-between">
<p class="display-1 ">
<span id="current-temp"></span><sup style="font-size: 60%; font-weight: 390;">°C</sup>
</p>
<div>
<div class="row">
<img id="day-weather-icon"
style="width: 50px; height: 50px; margin: auto; padding: auto; margin-top: 15px; margin-bottom: -16px;"
alt="weatherimage" />
</div>
<div class="row" style="float: bottom;">
<p class="mb-1" style="font-size: 200%; margin-right: 12px;"><span id="current-max"></span>°<span
class="text-muted">/<span id="current-min"></span>°</span></p>
</div>
</div>
</div>
<div class="d-flex justify-content-between mb-0">
<p>
<i class="fa fa-sun-o fa-lg text-warning pr-2"></i><span id="current-sunrise"></span> Sunrise
</p>
<p><i class="fa fa-tint fa-lg text-primary pr-2"></i><span id="current-humidity"></span>% Humidity</p>
</div>
<div class="d-flex justify-content-between mb-0">
<p>
<i class="fa fa-moon-o fa-lg text-dark pr-2"></i><span id="current-sunset"></span> Sunset
</p>
<p>
<i class="fa fa-leaf fa-lg text-secondary pr-2"></i><span id="current-windspeed"></span> km/h Winds
</p>
</div>
<div class="collapse" id="collapseExample">
<table class="table table-borderless table-sm mb-0">
<tbody>
<tr>
<td id="day1" class="font-weight-normal align-middle"></td>
<td class="float-right font-weight-normal">
<p class="mb-1"><span id="max1"></span>°<span class="text-muted">/<span
id="min1"></span>°</span></p>
</td>
<td class="float-right mr-3">
<img id="img1" />
</td>
</tr>
<tr>
<td id="day2" class="font-weight-normal align-middle"></td>
<td class="float-right font-weight-normal">
<p class="mb-1"><span id="max2"></span>°<span class="text-muted">/<span
id="min2"></span>°</span></p>
</td>
<td class="float-right mr-3">
<img id="img2" />
</td>
</tr>
<tr>
<td id="day3" class="font-weight-normal align-middle"></td>
<td class="float-right font-weight-normal">
<p class="mb-1"><span id="max3"></span>°<span class="text-muted">/<span
id="min3"></span>°</span></p>
</td>
<td class="float-right mr-3">
<img id="img3" />
</td>
</tr>
<tr>
<td id="day4" class="font-weight-normal align-middle"></td>
<td class="float-right font-weight-normal">
<p class="mb-1"><span id="max4"></span>°<span class="text-muted">/<span
id="min4"></span>°</span></p>
</td>
<td class="float-right mr-3">
<img id="img4" />
</td>
</tr>
<tr>
<td id="day5" class="font-weight-normal align-middle"></td>
<td class="float-right font-weight-normal">
<p class="mb-1"><span id="max5"></span>°<span class="text-muted">/<span
id="min5"></span>°</span></p>
</td>
<td class="float-right mr-3">
<img id="img5" />
</td>
</tr>
<tr>
<td id="day6" class="font-weight-normal align-middle"></td>
<td class="float-right font-weight-normal">
<p class="mb-1"><span id="max6"></span>°<span class="text-muted">/<span
id="min6"></span>°</span></p>
</td>
<td class="float-right mr-3">
<img id="img6" />
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="card-footer">
<a id="togglebutton" data-toggle="collapse" href="#collapseExample" role="button" aria-expanded="false"
aria-controls="collapseExample">
Expand
</a>
</div>
</div>
</body>
<script src="node_modules/jquery/dist/jquery.slim.min.js"></script>
<script src="node_modules/popper.js/dist/umd/popper.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="node_modules/psl/dist/psl.min.js"></script>
<link rel="stylesheet" href="node_modules/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" href="node_modules/bootstrap-social/bootstrap-social.css" />
<script src="src/popup.js"></script>
</html>