forked from ZaneMODell/spartahackvii
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.js
50 lines (40 loc) · 1.25 KB
/
app.js
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
class Attraction {
constructor(name, open_time, close_time, cost_scale, radius, local ) {
this.name = name;
this.open_time = 0
this.close_time = 0
this.cost_scale = 1
this.radius = 0
this.local = true
}
}
//Preference variables
var city_travelled;
var begin_date;
var end_date;
var activity_level;
var budget_range;
var hotel_location;
var breakfast_provided;
var preferred_radius;
var transport_type;
var food_preferences = [];
var vegetarian_preference;
var vegan_preference;
var travel_party;
var wake_up_time;
var bed_time;
function assignPreferences(){
var userInput = document.getElementById('dd').value;
alert(userInput)}
// let Udon_Sushi_Restaurant = new Attraction("Udon_Sushi_Restaurant", 12, 20, 3, 3, true)
// let Omi_Sushi = new Attraction("Omi_Sushi", 11, 20, 2, 1, true)
// let East_Cafe = new Attraction("East_Cafe", 5, 24, 2, 3, true)
// let Royal_Pot = new Attraction("Royal_Pot", 10, 24, 2, 2, true)
let Buffalo_Wild_Wings = new Attraction("Buffalo_Wild_Wings", 11, 24, 2, 1, false)
let iHop = new Attraction("iHop", 7, 15, 2, 1, false)
let
var data_dict = {
"cusine": {"Japanese": [Udon_Sushi_Restaurant, Omi_Sushi], "Chinese": [East_Cafe, Royal_Pot], "American": [Buffalo_Wild_Wings, iHop]},
"sightseeing": {}
}