-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
121 lines (103 loc) · 3.36 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!--Created 12/13/2014 by Carlos Brenneisen -->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>WeatherApp</title>
<!-- jQuery -->
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<!-- Bootstrap -->
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<script src="bootstrap/js/bootstrap.min.js"></script>
<!-- Underscore -->
<script src="js/underscore-min.js"></script>
<!-- Backbone -->
<script src="js/backbone-min.js"></script>
<script src="js/backbone.localStorage-min.js"></script>
<!-- Custom -->
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/main.js"></script>
<!-- Templates -->
<script type="text/template" id="city-template">
<div class="widget-row">
<span class="title"><%- name %></span>
<input type="checkbox" name="city" value="<%- zipcode %>">
<span class="glyphicon glyphicon-unchecked checkbox" aria-hidden="true"></span>
</div>
</script>
<script type="text/template" id="listbox-template">
<div class='widget'>
<div class='header'>Cities</div>
<div class="data-div">
</div>
<button id='get-weather' class='form-control'>Get Weather</button>
</div>
</script>
<script type="text/template" id="weatherbox-template">
<div class="widget">
<div class="header">
Weather
</div>
<div id="weather-div">
</div>
<div class="placeholder">
<p>Use the listbox on the right to select a city and view weather information!</p>
</div>
<div class="clear"></div>
</div>
</script>
<script type="text/template" id="weather-section-template">
<div class="widget-row weather">
<div class="row data-div">
<div class="header col-sm-12 col-md-9">
<a href="<%=url %>"><%= title %></a>
<div class="info">
<%=datetime %>
</div>
</div>
<div class="subheader col-sm-12 col-md-1">
<a href="https://www.yahoo.com/?ilc=401" target="_blank">
<img src="https://poweredby.yahoo.com/purple.png" width="134" height="29"/>
</a>
</div>
<div class="clearfix visible-md-block"></div>
<div class="clearfix visible-lg-block"></div>
</div>
<div class="row data-div">
</div>
</div>
<div class="clear"></div>
</script>
<script type="text/template" id="weather-data-template">
<div class="info">
<div class="title"><%- title %></div><br/>
<% for (var key in values) {
var value = values[key]; %>
<span class="key"><%- key %></span><span class="value"><%- value %></span><br/>
<% } %>
</div>
</div>
</script>
</head>
<body>
<!-- navbar -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">WeatherApp - Web Edition</a>
</div>
</div>
</nav>
<div id="container" class="container">
<div class="row">
<!-- Left Column -->
<div id='listbox' class="col-xs-12 col-sm-12 col-md-4">
</div>
<!-- Right Column -->
<div id='weatherbox' class="col-xs-12 col-sm-12 col-md-8">
</div>
</div>
</div>
</body>
</html>