-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmpl-yacht-listing-page.html
203 lines (166 loc) · 4.31 KB
/
tmpl-yacht-listing-page.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="js/sheetsee.js"></script>
<script type="text/javascript" src="js/tabletop.js"></script>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js'></script>
<link rel="stylesheet" type="text/css" href="css/wilde-yachts.css"/>
<title>Wilde Yachts Brokered Boats</title>
</head>
<body>
<p>
<input id="brokeredBoatsFilter" type="text" placeholder="filter by..">
</p>
<div id="brokeredBoats">
<div>Loading Yacht Listings...</div>
</div>
<script id="brokeredBoats_template" type="text/html">
{{#rows}}
<div class="detail">
<div class="field">
<label>Title</label>
<span>{{title}}</span>
</div>
<div class="field">
<label>Listing Number</label>
<span>{{listing-number}}</span>
</div>
<div class="field">
<label>Price</label>
<span>{{price}}</span>
</div>
<div class="field">
<label>Location</label>
<span>{{location}}</span>
</div>
<div class="field">
<label>Condition</label>
<span>{{condition}}</span>
</div>
<div class="field">
<label>Year</label>
<span>{{year}}</span>
</div>
<div class="field">
<label>Length</label>
<span>{{length}}</span>
</div>
<div class="field">
<label>Beam</label>
<span>{{beam}}</span>
</div>
<div class="field">
<label>Draft</label>
<span>{{draft}}</span>
</div>
<div class="field">
<label>Displacement</label>
<span>{{displacement}}</span>
</div>
<div class="field">
<label>Builder</label>
<span>{{builder}}</span>
</div>
<div class="field">
<label>Designer</label>
<span>{{designer}}</span>
</div>
<div class="field">
<label>Type</label>
<span>{{type}}</span>
</div>
<div class="field">
<label>Color</label>
<span>{{color}}</span>
</div>
<div class="field">
<label>Hull Material</label>
<span>{{hull-material}}</span>
</div>
<div class="field">
<label>Engines</label>
<span>{{engines}}</span>
</div>
<div class="field">
<label>Horsepower</label>
<span>{{horsepower}}</span>
</div>
<div class="field">
<label>Fuel Type</label>
<span>{{fuel-type}}</span>
</div>
<div class="field">
<label>Cruising Speed</label>
<span>{{cruising-speed}}</span>
</div>
<div class="field">
<label>Maximum Speed</label>
<span>{{maximum-speed}}</span>
</div>
<div class="field">
<label>Fuel Tankage</label>
<span>{{fuel-tankage}}</span>
</div>
<div class="field">
<label>Water Tankage</label>
<span>{{water-tankage}}</span>
</div>
<div class="field">
<label>Holding Tankage</label>
<span>{{holding-tankage}}</span>
</div>
<div class="field">
<label>Description</label>
<span>{{description}}</span>
</div>
<div class="field">
<label>Accomodations</label>
<span>{{accomodations}}</span>
</div>
<div class="field">
<label>Galley</label>
<span>{{galley}}</span>
</div>
<div class="field">
<label>Electronics</label>
<span>{{electronics}}</span>
</div>
<div class="field">
<label>Electronical</label>
<span>{{electronical}}</span>
</div>
<div class="field">
<label>Inside Equipment</label>
<span>{{inside-equipment}}</span>
</div>
<div class="field">
<label>Outside Equipment</label>
<span>{{outside-equipment}}</span>
</div>
<div class="field">
<label>Additional</label>
<span>{{additional}}</span>
</div>
</div>
{{/rows}}
</script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
var URL = "1UxmMWCMYDpVzYsQ7jIOfarvuERtQiZnMfM1TMeWRYKA"
Tabletop.init( { key: URL, callback: myData, simpleSheet: true } )
})
function myData(googleData) {
var tableOptions = {
"data": googleData,
"pagination": 200,
"tableDiv": "#brokeredBoats",
"filterDiv":"#brokeredBoatsFilter",
"templateID": "brokeredBoats"
}
Sheetsee.makeTable(tableOptions)
Sheetsee.initiateTableFilter(tableOptions)
}
</script>
</body>
</html>