-
Notifications
You must be signed in to change notification settings - Fork 1
/
list.html
152 lines (147 loc) · 5.6 KB
/
list.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>SpareSpace</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="ico/favicon.png">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/list.css" rel="stylesheet">
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/knockout-2.2.1.js"></script>
<script src="js/list.js"></script>
</head>
<body>
<div class="container content">
<div class="brand">
<div class="logo">
<img src="img/logo.png" />
</div>
</div>
<div class="map-area">
<div id="map-canvas" style="height: 250px;"></div>
</div>
<div class="row-fluid">
<div class="span9 listing-list">
<div data-bind="template: { name: 'listing-template', foreach: listings }"></div>
<div class="clearfix"></div>
</div>
<div class="span3 filters">
<div class="spacer"></div>
<div class="rounded gray pad padt dark">
<h3>Filters</h3>
<div class="mtop">
<div class="input-item">
<input class="input-block-level date" type="checkbox" />
<label>Home</label>
<div class="clearfix"></div>
</div>
<div class="input-item">
<input class="input-block-level date" type="checkbox" />
<label>Apartment</label>
<div class="clearfix"></div>
</div>
<div class="input-item">
<input class="input-block-level date" type="checkbox" />
<label>Other</label>
<div class="clearfix"></div>
</div>
</div>
</div>
<div class="spacer"></div>
<div class="rounded gray pad padt dark">
<h3>Access</h3>
<div class="mtop">
<div class="input-item">
<input class="input-block-level date" type="checkbox" />
<label>24/7</label>
<div class="clearfix"></div>
</div>
<div class="input-item">
<input class="input-block-level date" type="checkbox" />
<label>After 5 PM</label>
<div class="clearfix"></div>
</div>
<div class="input-item">
<input class="input-block-level date" type="checkbox" />
<label>Weekends Only</label>
<div class="clearfix"></div>
</div>
</div>
</div>
<div class="spacer"></div>
<div class="rounded gray pad padt dark">
<h3>Price</h3>
<div class="mtop">
<img src="img/price-bar.png" />
</div>
</div>
<div class="spacer"></div>
<div class="rounded gray pad padt dark">
<h3>Other</h3>
<div class="mtop">
<div class="input-item">
<input class="input-block-level date" type="checkbox" />
<label>Temp Control</label>
<div class="clearfix"></div>
</div>
<div class="input-item">
<input class="input-block-level date" type="checkbox" />
<label>Security</label>
<div class="clearfix"></div>
</div>
<div class="input-item">
<input class="input-block-level date" type="checkbox" />
<label>Pet Owner</label>
<div class="clearfix"></div>
</div>
<div class="input-item">
<input class="input-block-level date" type="checkbox" />
<label>Non-smoking</label>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
</div>
<footer>
<!-- TODO: implement footer links -->
<p>© 2013 SpareSpace · <a href="#">Privacy</a> · <a href="#">Terms</a></p>
</footer>
</div>
<script type="text/html" id="listing-template">
<div class="listing">
<a href="book.html">
<div class="row-fluid">
<div class="span2 image">
<img data-bind="attr: {src: photo_url}" />
</div>
<div class="span5 info">
<h2 data-bind="text: title"></h2>
<div class="item">
Verified: <span data-bind="text: verified ? 'Yes' : 'No'"></span>
</div>
<div class="item">
Review:
<span class="positive"><span data-bind="text: positive_reviews"></span> Positive</span>
<span class="negative"><span data-bind="text: negative_reviews, css: { is_negative: negative_reviews > 0 }"></span> Negative</span>
</div>
</div>
<div class="span2 cost">
<div class="cost-info">
<div class="amount">$<span data-bind="text: cost"></span></div>
<div class="subtext">per month</div>
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</a>
</div>
</script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
</body>
</html>