-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpopup-markup.html
154 lines (154 loc) · 6.08 KB
/
popup-markup.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html>
<head>
<title>Weather popup</title>
<link rel="stylesheet" href="dist/main.css" type="text/css">
</head>
<body>
<div id="menu" class="menu">
<span>Waterloo</span>
<div id="menu-icon" class="menu-icon">
<div></div>
<div></div>
<div></div>
</div>
<div id="sidebar" class="sidebar">
<div class="options">
<button class="active" type="button">°C</button>
<button type="button">°F</button>
<button class="refresh">Refresh</button>
</div>
<div class="location-search">
<h3>Change location</h3>
<input class="location-input" type="text" placeholder="e.g. Waterloo, CA">
<button class="search">O</button>
<p class="instructions">Search for a location and select from those shown below. For increased accuracy, include a two character country code</p>
</div>
<div class="locations">
<div class="location"><span>Waterloo, CA</span><span>15°</span></div>
<div class="location"><span>Washington, CA</span><span>12°</span></div>
</div>
</div>
</div><!--menu-->
<div id="current" class="current">
<img class="current-img" src="icons/01.png" alt="icon"/>
<div class="weather">
<span>15°</span>
<span>Sunny</span>
</div>
</div><!--current-->
<hr>
<div id="today" class="today">
<div class="period">
<span class="time">10:00</span>
<img src="icons/01.png" alt="icon">
<span class="temp">17°</span>
<span class="precip">0mm</span>
</div>
<div class="period">
<span class="time">13:00</span>
<img src="icons/01.png" alt="icon">
<span class="temp">24°</span>
<span class="precip">0mm</span>
</div>
<div class="period">
<span class="time">16:00</span>
<img src="icons/01.png" alt="icon">
<span class="temp">25°</span>
<span class="precip">0mm</span>
</div>
<div class="period">
<span class="time">19:00</span>
<img src="icons/01.png" alt="icon">
<span class="temp">18°</span>
<span class="precip">0mm</span>
</div>
<div class="period">
<span class="time">22:00</span>
<img src="icons/01.png" alt="icon">
<span class="temp">15°</span>
<span class="precip">0mm</span>
</div>
</div><!--today-->
<hr>
<div id="forecast" class="forecast">
<div class="day">
<div class="img-wrapper">
<img src="icons/01.png" alt="icon"/>
</div>
<div class="weather">
<span class="temp">17°</span>
<span class="description">Partly cloudy</span>
</div>
<div class="date">
<p class="weekday">Monday</p>
<p class="month">January 19</p>
</div>
</div><!--day-->
<div class="day">
<div class="img-wrapper">
<img src="icons/01.png" alt="icon"/>
</div>
<div class="weather">
<span class="temp">17°</span>
<span class="description">Partly cloudy</span>
</div>
<div class="date">
<p class="weekday">Tuesday</p>
<p class="month">January 20</p>
</div>
</div><!--day-->
<div class="day">
<div class="img-wrapper">
<img src="icons/01.png" alt="icon"/>
</div>
<div class="weather">
<span class="temp">17°</span>
<span class="description">Partly cloudy</span>
</div>
<div class="date">
<p class="weekday">Wednesday</p>
<p class="month">January 21</p>
</div>
</div><!--day-->
<div class="day">
<div class="img-wrapper">
<img src="icons/01.png" alt="icon"/>
</div>
<div class="weather">
<span class="temp">17°</span>
<span class="description">Partly cloudy</span>
</div>
<div class="date">
<p class="weekday">Thursday</p>
<p class="month">January 22</p>
</div>
</div><!--day-->
<div class="day">
<div class="img-wrapper">
<img src="icons/01.png" alt="icon"/>
</div>
<div class="weather">
<span class="temp">17°</span>
<span class="description">Partly cloudy</span>
</div>
<div class="date">
<p class="weekday">Friday</p>
<p class="month">January 23</p>
</div>
</div><!--day-->
</div><!--forecast-->
<!--<script src="bower/react/react.js"></script>-->
<!--<script src="src/main.js"></script>-->
<script>
var button = document.getElementById('menu-icon');
var sidebar = document.getElementById('sidebar');
var shown = false;
button.onclick = function(e){
if(shown) sidebar.style.display = 'none';
else sidebar.style.display = 'block';
shown = !shown;
}
</script>
</body>
</html>