forked from goodgravy/weather-app-demo
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
58 lines (52 loc) · 1.53 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="https://trigger.io/catalyst/target/target-script-min.js#4DBBC75C-B44E-4B50-BAFA-F49244502E51"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/mustache.min.js"></script>
<script type="text/javascript" src="js/weather.js"></script>
</head>
<body>
<script type="x-mustache-template" id="forecast_information_tmpl">
<h1>Forecast for {{display_location.full}}</h1>
<p>{{observation_time}}</p>
</script>
<script type="x-mustache-template" id="current_conditions_tmpl">
<table>
<tr>
<td><img src="{{icon_url}}" /></td>
<td>
<div>{{weather}}</div>
<div>{{temp_f}}°F</div>
<div>Humidity: {{relative_humidity}}</div>
<div>Wind: {{wind_string}}</div>
</td>
</tr>
</table>
</script>
<script type="x-mustache-template" id="forecast_conditions_tmpl">
{{#forecastday}}
<td>
<h2>{{date.weekday_short}}</h2>
<img src="{{icon_url}}">
<div>{{conditions}}</div>
<div>Low: {{low.fahrenheit}}°F</div>
<div>High: {{high.fahrenheit}}°F</div>
</td>
{{/forecastday}}
</script>
<header id="forecast_information"></header>
<section id="current_conditions"></section>
<section id="forecast_conditions">
<table>
<tr>
</tr>
</table>
</section>
<div id="options">
<div id="options_header">Select City</div>
<select id="city_menu"></select>
</div>
</body>
</html>