-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
354 lines (311 loc) · 15 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
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<!--Let browser know website is optimized for mobile-->
<meta name='viewport' content='width=device-width, initial-scale=1'>
<!--Import bootstrap.css-->
<link type='text/css' rel='stylesheet' href='bootstrap/css/bootstrap.min.css' media='screen,projection'/>
<link type='text/css' rel='stylesheet' href='bootstrap-rtl/css/bootstrap-rtl.min.css' media='screen,projection'/>
<link type='text/css' rel='stylesheet' href='typeahead/jquery.typeahead.min.css' media='screen,projection'/>
<link type='text/css' rel='stylesheet' href='style.css'/>
<link href='https://fonts.googleapis.com/icon?family=Material+Icons' rel='stylesheet'>
<title>Rent Calculator</title>
</head>
<body>
<!--Responsive Navigation Bar-->
<nav class='navbar navbar-custom'>
<div class='container'>
<span class='brand'><a href='#'>מחירון שכירויות חיפה 2015</a></span>
<span class='group-link'>בשיתוף עם <a href='https://www.facebook.com/groups/1670512393182120/' target='_blank'>'שאלות על דירות סטודנטים חיפה'</a></span>
</div>
</nav>
<!-- Form Begins -->
<div class='container container-form' role='main'>
<img src='banner.jpg' class='img-responsive'/>
<form onsubmit='event.preventDefault(); return processData();'>
<!-- Apartment Properties -->
<!-- Address -->
<div id='address-div' class='form-group col-xs-12 col-sm-10 col-sm-offset-1'>
<h2>מאפיינים כלליים</h2>
<div class='typeahead-container'>
<span class='typeahead-query'>
<label class='control-label' for='address'>כתובת הדירה</label>
<input type='text' id='address' class='form-control' autocomplete='off' placeholder='שם רחוב ##, עיר' onchange='updateData("address", value, "string")'/>
</span>
</div>
</div>
<!-- Rooms -->
<div id='rooms-div' class='form-group col-xs-12 col-sm-10 col-sm-offset-1'>
<label class='control-label' for='rooms'>מס' החדרים בדירה</label>
<select id='rooms' class='form-control' onchange='updateData("rooms", value, "number")'>
<option value='' disabled selected>בחר/י אפשרות</option>
<option value='1'>1 חדר</option>
<option value='1.5'>1.5 חדרים</option>
<option value='2'>2 חדרים</option>
<option value='2.5'>2.5 חדרים</option>
<option value='3'>3 חדרים</option>
<option value='3.5'>3.5 חדרים</option>
<option value='4'>4 חדרים</option>
<option value='4.5'>4.5 חדרים</option>
<option value='5'>5 חדרים</option>
<option value='5.5'>5.5 חדרים</option>
</select>
</div>
<!-- Living Arrangement -->
<div id='arrangement-div' class='form-group col-xs-12 col-sm-10 col-sm-offset-1'>
<label class='control-label'>הסדר מגורים</label>
<div class='radio'>
<label for='single'>
<input name='living_arrangement' type='radio' id='single' onchange='updateData("arrangement", id, "string")'/>
יחיד
</label>
</div>
<div class='radio'>
<label for='couple'>
<input name='living_arrangement' type='radio' id='couple' onchange='updateData("arrangement", id, "string")'/>
זוג
</label>
</div>
<div class='radio'>
<label for='roommates'>
<input name='living_arrangement' type='radio' id='roommates' onchange='updateData("arrangement", id, "string")'/>
שותפים
</label>
</div>
</div>
<!-- Number of roommates -->
<div id='roommates-div' class='form-group col-xs-12 col-sm-10 col-sm-offset-1'>
<label class='control-label' for='roommatesNumberSelect'>מס' השותפים בדירה</label>
<select id='roommatesNumberSelect' class = 'form-control' onchange='updateData("roommates", value, "number")' >
<option value='0' disabled selected>בחר/י אפשרות</option>
<option value='2'>2 שותפים</option>
<option value='3'>3 שותפים</option>
<option value='4'>4 שותפים</option>
</select>
</div>
<!-- Floor + Elevator -->
<!-- Floor -->
<div id='floor-div' class='form-group col-xs-9 col-sm-8 col-sm-offset-1'>
<label class='control-label' for='floor'>קומה, יחסית לקומת כניסה <span style='font-size: 11px; color: red'>*אם קומה לא מופיעה, בחר/י את הקרובה אליה</span></label>
<select id='floor' class='form-control' onchange='updateData("floor", value, "number")'>
<option>3</option>
<option>2</option>
<option>1</option>
<option selected>0</option>
<option>-1</option>
<option>-2</option>
<option>-3</option>
</select>
</div>
<!-- Elevator -->
<div class='form-group col-xs-3'>
<div class='checkbox'>
<label for='elevator'>
<input type='checkbox' id='elevator' onclick='updateData("elevator", checked, "boolean")'/>
מעלית
</label>
</div>
</div>
<!-- Renovation level -->
<div id='renovationLevel-div' class='form-group col-xs-12 col-sm-10 col-sm-offset-1'>
<label class='control-label' for='renovationLevel'>רמת שיפוץ</label>
<select id='renovationLevel' class='form-control' onchange='updateData("renovationLevel", value, "string")'>
<option value='' disabled selected>בחר/י אפשרות</option>
<option value='old'>ישנה</option>
<option value='decent'>סבירה</option>
<option value='partlyRenovated'>משופצת חלקית</option>
<option value='renovated'>משופצת</option>
</select>
</div>
<!-- Apartment size -->
<div id='apartmentSize-div' class='form-group col-xs-12 col-sm-10 col-sm-offset-1'>
<label class='control-label' for='apartmentSize'>גודל דירה</label>
<input type='text' id='apartmentSize' class='form-control' placeholder='גודל דירה במ"ר' onchange='updateData("apartmentSize", value, "number")'/>
</div>
<!-- Room size + Room parent unit -->
<!-- Room size -->
<div id='roomSize-div' class='form-group col-xs-9 col-sm-8 col-sm-offset-1'>
<label class='control-label' for='roomSize'>גודל חדר</label>
<select id='roomSize' class='form-control' onchange='updateData("roomSize", value, "string")'>
<option value='' disabled selected>בחר/י אפשרות</option>
<option value='small'>קטן (8-10 מ"ר)</option>
<option value='regular'>רגיל (10-12 מ"ר)</option>
<option value='large'>גדול (12-15 מ"ר)</option>
<option value='huge'>ענק (מעל 15 מ"ר)</option>
</select>
</div>
<!-- Room parent unit -->
<div id='roomParentUnit-div' class='form-group col-xs-3'>
<div class='checkbox'>
<label for='roomParentUnit'>
<input type='checkbox' id='roomParentUnit' onclick='updateData("roomParentUnit", checked, "boolean")'/>
יחידת הורים
</label>
</div>
</div>
<!-- Accessories -->
<div class='col-xs-12 col-sm-10 col-sm-offset-1'>
<h2>אבזור</h2>
<div class='form-group checkbox'>
<label for='solarBoiler'>
<input type='checkbox' id='solarBoiler' onclick='updateData("solarBoiler", checked, "boolean")'/>
דוד שמש
</label>
</div>
<div class='form-group checkbox'>
<label for='bars'>
<input type='checkbox' id='bars' onclick='updateData("bars", checked, "boolean")'/>
סורגים
</label>
</div>
<div class='form-group checkbox'>
<label for='nets'>
<input type='checkbox' id='nets' onclick='updateData("nets", checked, "boolean")'/>
רשתות
</label>
</div>
</div>
<!-- Air Conditioning -->
<div class='col-xs-12 col-sm-10 col-sm-offset-1'>
<h2>מיזוג אוויר</h2>
<div class='form-group checkbox'>
<label for='livingRoomAC'>
<input type='checkbox' id='livingRoomAC' onclick='updateData("livingRoomAC", checked, "boolean")'/>
סלון
</label>
</div>
<div class='form-group checkbox'>
<label for='bedRoomAC'>
<input type='checkbox' id='bedRoomAC' onclick='updateData("bedRoomAC", checked, "boolean")'/>
חדר שינה
</label>
</div>
</div>
<!-- Furniture -->
<!-- Room furniture -->
<div id='roomFurniture-div' class='col-xs-12 col-sm-10 col-sm-offset-1'>
<h2>ריהוט</h2>
<label class='control-label' for='roomFurniture'>ריהוט חדר שינה</label>
<select id='roomFurniture' class='form-control' onchange='updateData("roomFurniture", value, "string")'>
<option value='' disabled selected>בחר/י אפשרות</option>
<option value='none'>ללא</option>
<option value='partial'>חלקי</option>
<option value='full'>מלא</option>
</select>
</div>
<!-- Apartment furniture -->
<div id='apartmentFurniture-div' class='col-xs-12 col-sm-10 col-sm-offset-1'>
<label class='control-label' for='apartmentFurniture'>ריהוט משותף בדירה</label>
<select id='apartmentFurniture' class='form-control' onchange='updateData("apartmentFurniture", value, "string")'>
<option value='' disabled selected>בחר/י אפשרות</option>
<option value='none'>ללא</option>
<option value='partial'>חלקי</option>
<option value='full'>מלא</option>
</select>
</div>
<!-- Electrical Appliances -->
<div class='col-xs-12 col-sm-10 col-sm-offset-1'>
<h3>מכשירים חשמליים</h3>
<div class='form-group checkbox'>
<label for='refrigerator'>
<input type='checkbox' id='refrigerator' onclick='updateData("refrigerator", checked, "boolean")'/>
מקרר
</label>
</div>
<div class='form-group checkbox'>
<label for='oven'>
<input type='checkbox' id='oven' onclick='updateData("oven", checked, "boolean")'/>
תנור
</label>
</div>
<div class='form-group checkbox'>
<label for='laundryMachine'>
<input type='checkbox' id='laundryMachine' onclick='updateData("laundryMachine", checked, "boolean")'/>
מכונת כביסה
</label>
</div>
<div class='form-group checkbox'>
<label for='laundryDryer'>
<input type='checkbox' id='laundryDryer' onclick='updateData("laundryDryer", checked, "boolean")'/>
מייבש כביסה
</label>
</div>
</div>
<!-- Extras -->
<div class='col-xs-12 col-sm-10 col-sm-offset-1'>
<h2>תוספות</h2>
<!-- Garden -->
<div class='form-group checkbox'>
<label for='garden'>
<input type='checkbox' id='garden' onclick='updateData("garden", checked, "boolean")'/>
גינה
</label>
</div>
<!-- Balcony -->
<div class='form-group checkbox'>
<label for='balcony'>
<input type='checkbox' id='balcony' onclick='updateData("balcony", checked, "boolean")'/>
מרפסת
</label>
</div>
<!-- Roof Balcony -->
<div class='form-group checkbox'>
<label for='roofBalcony'>
<input type='checkbox' id='roofBalcony' onclick='updateData("roofBalcony", checked, "boolean")'/>
מרפסת גג
</label>
</div>
</div>
<!-- Submit button -->
<div class='col-xs-12 col-sm-10 col-sm-offset-1'>
<button class='btn btn-primary btn-block active' id='submitButton'>
<span class='glyphicon glyphicon-home' aria-hidden='true'></span> שלח
</button>
</br>
</div>
</form>
<div class='col-xs-12 col-sm-10 col-sm-offset-1'>
<div id='finalPriceBox' class='alert alert-info' role='alert'>
<span>מחיר שכירות הוגן עבור הדירה הנ"ל הינו:</span>
<span id='priceFinal'></span>
</div>
<div id='errorsMessageBox' class='alert alert-danger' role='alert'>
<span>התגלו שגיאות בטופס.</span>
<span id='calculationErrors'></span>
</div>
<div id='emptyFieldsMessageBox' class='alert alert-danger' role='alert'>
חלק מהשדות הושארו ריקים. אנא מלא/י אותם.
</div>
</div>
</div>
<!--Responsive Footer-->
<div class='container'>
<footer class='page-footer'>
<div class='container text-center'>
<hr class='footer'>
<span id='copyright'>
©
</span>
</div>
</footer>
</div>
<!-- Import jQuery before bootstrap.js -->
<script type='text/javascript' src='jquery/jquery-2.1.1.min.js'></script>
<script type='text/javascript' src='jquery-ui-1.11.4/jquery-ui.min.js'></script>
<script type='text/javascript' src='typeahead/jquery.typeahead.min.js'></script>
<script type='text/javascript' src='bootstrap/js/bootstrap.min.js'></script>
<script type='text/javascript' src='formHandling.min.js'></script>
</script>
<script>
var currentYear = (new Date).getFullYear();
var spaces = '  '
var copyrightMessage = 'כל הזכויות שמורות. האתר עוצב ונבנה ע"י איתי פרי ועומר גולדברג';
if(currentYear > 2015) {
$('#copyright').append(' 2015 - ' + Date.getFullYear() + spaces + copyrightMessage);
} else {
$('#copyright').append(' 2015' + spaces + copyrightMessage);
}
</script>
</body>
</html>