-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
388 lines (350 loc) · 18.5 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
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
<!DOCTYPE html>
<html>
<head>
<title>City Host</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="layout/styles/layout.css" rel="stylesheet" type="text/css" media="all">
</head>
<body id="top">
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<div class="wrapper row0">
<div id="topbar" class="hoc clear">
<!-- ################################################################################################ -->
<div class="fl_left">
<ul>
<li><i class="fa fa-phone"></i> +00 (123) 456 7890</li>
<li><i class="fa fa-envelope-o"></i> dmliu@andrew.cmu.edu</li>
</ul>
</div>
<div class="fl_right">
<ul>
<li><a href="index.html"><i class="fa fa-lg fa-home"></i></a></li>
<li><a href="#">Login</a></li>
<li><a href="#">Register</a></li>
</ul>
</div>
<!-- ################################################################################################ -->
</div>
</div>
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- Top Background Image Wrapper -->
<div class="bgded overlay" style="background-image:url('images/demo/backgrounds/cover.jpg');">
<!-- ################################################################################################ -->
<div class="wrapper row1">
<header id="header" class="hoc clear">
<!-- ################################################################################################ -->
<div id="logo" class="fl_left">
<h1><a href="index.html">City Host</a></h1>
</div>
<nav id="mainav" class="fl_right">
<ul class="clear">
<li class="active"></li>
<li>
<ul>
<li><a href="pages/full-width.html">Full Width</a></li>
<li><a href="pages/sidebar-left.html">Sidebar Left</a></li>
<li><a href="pages/sidebar-right.html">Sidebar Right</a></li>
<li><a href="pages/basic-grid.html">Basic Grid</a></li>
</ul>
</li>
<li>
<ul>
<li><a href="#">Level 2</a></li>
<li><a class="drop" href="#">Level 2 + Drop</a>
<ul>
<li><a href="#">Level 3</a></li>
<li><a href="#">Level 3</a></li>
<li><a href="#">Level 3</a></li>
</ul>
</li>
<li><a href="#">Level 2</a></li>
</ul>
</li>
</ul>
</nav>
<!-- ################################################################################################ -->
</header>
</div>
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<div id="pageintro" class="hoc clear">
<!-- ################################################################################################ -->
<div class="flexslider basicslider">
<ul class="slides">
<li>
<article>
<p>Help People And Make Extra Money</p>
<h3 class="heading">Welcome to City Host</h3>
<p>Enter Your Geo-location And Number Of Beds</p>
<footer>
<form id= "frm1" class="group" method="Get" action="#">
<fieldset>
<legend>Sign-Up:</legend>
<input id="input1" type="number" step="any" min="37.7" max="37.85" placeholder="Latitude">
<br>
<input id="input2" type="number" step="any" min="-123" max="-122.3" placeholder="Longtitude">
<br>
<input id="input3" type="number" placeholder="Number of Beds">
<br>
<footer type="submit" onclick="myFunction()"><a class="btn" href="#">Submit</a></footer>
<br>
<p style= "font-family:verdana; font-size:120%" id="demo1"></p>
<p style= "font-family:verdana; font-size:120%" id="demo2"></p>
</fieldset>
</form>
</footer>
</article>
</li>
</ul>
</div>
<!-- ################################################################################################ -->
</div>
<!-- ################################################################################################ -->
</div>
<!-- End Top Background Image Wrapper -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<div class="wrapper row3 coloured">
<main class="hoc container clear">
<!-- main body -->
<!-- ################################################################################################ -->
<div id="introblocks">
<ul class="nospace group">
<li class="one_third first">
<article>
<div>
<h6 class="heading">WHY HOSTING</h6>
<p>It's hard to find affordable hotels in cities like San Francisco. Hosting can me an easy way to make extra money […]</p>
</div>
<img src="images/demo/host.jpg" alt="">
<footer><a href="#">More Details</a></footer>
</article>
</li>
<li class="one_third">
<article>
<div>
<h6 class="heading">SAFETY</h6>
<p>You are in full control of your availability, places, and hours. Also, we will be there supporting you 24/7 […]</p>
</div>
<img src="images/demo/safety.jpg" alt="">
<footer><a href="#">More Details</a></footer>
</article>
</li>
<li class="one_third">
<article>
<div>
<h6 class="heading">EXTRA MONEY</h6>
<p>Guests are charged before arrival, and you are paid automatically after check in, minus a 10% service fee […]</p>
</div>
<img src="images/demo/paid.jpg" alt="">
<footer><a href="#">More Details</a></footer>
</article>
</li>
</ul>
</div>
<p class="center"><a class="btn inverse" href="#">Join Us And Be A Host</a></p>
<!-- ################################################################################################ -->
<!-- / main body -->
<div class="clear"></div>
</main>
</div>
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<div class="wrapper bgded overlay" style="background-image:url('images/demo/backgrounds/cover2.png');">
<section class="hoc container clear">
<!-- ################################################################################################ -->
<div class="sectiontitle center">
<h3 class="heading">Interesting Facts About Being A Host</h3>
</div>
<ul class="nospace group center">
<li class="one_third first">
<article><a href="#row3"><i class="btmspace-30 icon fa fa-500px"></i></a>
<h6 class="heading font-x1">More Beds More Money</h6>
<p>You probabally never thought about this. The more beds you have in your Airbnb, the more money you can make? Get more beds my friends![…]</p>
<footer><a href="#row3">Learn More »</a></footer>
</article>
</li>
<li class="one_third">
<article><a href="#row4"><i class="btmspace-30 icon fa fa-envira"></i></a>
<h6 class="heading font-x1">People Love Kitchens</h6>
<p>What do you think people would be willing to pay more money for? The answer is kitchens! It definitely would be nice if people can cook. […]</p>
<footer><a href="#row4">Learn More »</a></footer>
</article>
</li>
<li class="one_third">
<article><a href="#row5"><i class="btmspace-30 icon fa fa-empire"></i></a>
<h6 class="heading font-x1">Secrets to Become Popular</h6>
<p>A lot of people think increasing the price would make them more moeny. That's not nessarily true. Maybe a bigger user base would be bitter? […]</p>
<footer><a href="#row5">Learn More »</a></footer>
</article>
</li>
</ul>
<!-- ################################################################################################ -->
</section>
</div>
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<div class="wrapper row3" id="row3">
<div class="hoc container clear">
<!-- ################################################################################################ -->
<div class="group">
<section class="one_half first">
<img src="images/demo/bed_price.png" alt="">
</section>
<section class="one_half">
<h6 class="heading btmspace-50">More Beds equals to more money</h6>
<p>This is something very interesting. The price is directly correlated with the number of beds you have in your Airbnb! What are you waiting for? Get more beds and make more money.</p>
<p>That's also why we ask you to tell us the number of beds you have in your Airbnb in order to give you the most accurate approximation.</p>
<p>Also, the rest of the metrics we find would be based on this fact as well!</p>
<form id="newsletter" method="post" action="#">
</form>
</section>
</div>
<!-- ################################################################################################ -->
</div>
</div>
<!-- just added a new block here-->
<div class="wrapper row3 coloured" id="row4">
<div class="hoc container clear">
<!-- ################################################################################################ -->
<div class="group">
<section class="one_half first">
<h6 class="heading btmspace-50">What do people care about the most?</h6>
<ul class="nospace">
<p>We chose four most commonly seen facilities in a household. They are TVs, Wireless Internet, Kitchens, and Heating Systems. </p>
<p>From this we can see, people are willing to pay more price for an Airbnb with a kitchen, and TV, wireless Internet, and Heating following afterwards.</p>
<p>We fix the number of beds in the Airbnb for easier comparision. In this case, I fixed the number of beds to be two.</p>
</ul>
</section>
<section class="one_half">
<img src="images/demo/facilities_price.png" alt="">
</section>
</div>
<!-- ################################################################################################ -->
</div>
</div>
<!-- just added another new block here-->
<div class="wrapper row3" id="row5">
<div class="hoc container clear">
<!-- ################################################################################################ -->
<div class="group">
<section class="one_half first">
<img src="images/demo/unit_price.png" alt="">
</section>
<section class="one_half">
<h6 class="heading btmspace-50">What makes you a good host?</h6>
<ul class="nospace">
<p>In order to maximize our profit, we need to maximaize the difference between total revenue and total cost, so we need more customers to accomplish that.</p>
<p>From the graph we can see, the host with more reviews (more customers) can lower their price to increase the demand in order to maximize their profits.</p>
<p>There are generally two strategies, either set the price high and expect not many visitors, or we can make it cheaper to attract more customers. I am not trying to argue one way is better than the other (we need more data about the number of customers to figure that part out), but if you haven't tried to lower the price, that may work :)</p>
</section>
</div>
<!-- ################################################################################################ -->
</div>
</div>
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<div class="wrapper row4 bgded overlay" style="background-image:url('images/demo/backgrounds/morning.jpg');">
<footer id="footer" class="hoc clear">
<!-- ################################################################################################ -->
<h3 class="heading">City Host</h3>
<nav>
<ul class="nospace inline pushright uppercase">
<li><a href="index.html"><i class="fa fa-lg fa-home"></i></a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Terms</a></li>
<li><a href="#">Privacy</a></li>
<li><a href="#">Disclaimer</a></li>
</ul>
</nav>
<ul class="faico clear">
<li><a class="faicon-facebook" href="#"><i class="fa fa-facebook"></i></a></li>
<li><a class="faicon-twitter" href="#"><i class="fa fa-twitter"></i></a></li>
<li><a class="faicon-linkedin" href="#"><i class="fa fa-linkedin"></i></a></li>
<li><a class="faicon-google-plus" href="#"><i class="fa fa-google-plus"></i></a></li>
</i></a></li>
</ul>
<!-- ################################################################################################ -->
</footer>
</div>
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<div class="wrapper row5">
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
</div>
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<a id="backtotop" href="#top"><i class="fa fa-chevron-up"></i></a>
<!-- JAVASCRIPTS -->
<script src="layout/scripts/jquery.min.js"></script>
<script src="layout/scripts/jquery.backtotop.js"></script>
<script src="layout/scripts/jquery.mobilemenu.js"></script>
<script src="layout/scripts/jquery.flexslider-min.js"></script>
<!--week_price(latitude) = 1000 + (latitude - 37.7)*10000-->
<!--week_price(longitude) is a pairwise fuction depending on your range -->
<!--[-123,-122.46] week_price(longitude) = 1200 -->
<!--[-122.46,-122.45] week_price(longitude) = 1200 + (longitude+122.46)*55000-->
<!--[-122.45,-122.3] week_price(longitude) = 1750 - (longitude+122.45)*3000-->
<!--the calculation for the combined week_price is as follow-->
<!--week_price = (week_price(latitude) + week_price(longitude)) / 2-->
<!--Also, this function gives us the the price for 2 beds Airbnb, but we do know the
relationship between the number of beds-->
<!--week_price1 = week_price*0.59-->
<!--week_price3 = week_price*1.206-->
<!--week_price4 = week_price*1.406-->
<!--week_pricex = week_price*1.206+0.2(x-2)-->
<!--And in order to have most people to book it, we will have the price to be the expected income-->
<script type="text/javascript">
function myFunction(){
var lat = document.getElementById("input1").value;
var long = document.getElementById("input2").value;
var beds = document.getElementById("input3").value;
var wpl = Math.round(1000 + (lat - 37.7)*10000);
if (long <= -122.46) {
var wplo = 1200;
} else if (long <= -122.45) {
var wplo = Math.round(1200 + (122.46 - Math.abs(long))*55000);
} else {
var wplo = Math.round(1750 - (122.45 - Math.abs(long))*3000);
}
var wp = Math.round((wpl + wplo)/2);
if (beds == 1) {
wp = Math.round(wp*0.59);
} else if (beds > 2 && beds < 6) {
wp = Math.round(wp*(1.206+(0.2*(beds-2))));
} else if (beds >= 6) {
wp = Math.round(wp*(1.206+(0.2*(5-2)))+200*(beds-5));
}
if (beds == 0) wp = wp*0.33;
if (!(lat >= 37.7 && lat <= 37.85) || !(long >= -123 && long <= -122.3) || beds == "") {
if (beds != "") alert("Please type in a valid San Francisco geo-location");
else alert("Please enter the all the required fields");
} else {
if (beds % 1 == 0) {
document.getElementById("demo1").innerHTML = ("Weekly Price Estimation: $" + wp);
var number = Math.round(Math.random()*100);
while (number > 25) number = Math.round(number/2);
var p = Math.round(wp/7 + number);
document.getElementById("demo2").innerHTML = ("Booking Optimization Price (Daily): $" + p);
} else {
alert("Please enter a valid bed number");
}
}
}
</script>
</body>
</html>