-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSmartTravelGuide.html
140 lines (125 loc) · 7.01 KB
/
SmartTravelGuide.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
<html>
<head>
<meta charset="utf-8">
<title>Smart Tour Guide</title>
<link rel="stylesheet" type="text/css" href="css/STG_style.css">
<script src="http://code.jquery.com/jquery-2.0.0.min.js"></script>
<script src = "js/STG_script.js"></script>
<script src = "js/node_data.js"></script>
<script src = "js/nodes_pair1.js"></script>
<script src = "js/nodes_pair2.js"></script>
<script src = "js/nodes_pair3.js"></script>
<script>
$(document).ready(function() {
click_marker = null;
nodes_pair_set = [nodes_pair1, nodes_pair2, nodes_pair3];
directionsService = null;
directionsDisplay = null;
tour_markers=null;
tour_markers_name = [];
waypts = [];
response_var = null;
var initial_nodes = [
'Grand Central Terminal',
'Empire State Building',
'Central Park',
'Greenwich Village',
'Episcopal Church Center',
'Madison Square'
];
nodes_pair = nodes_pair_set[0];
list_nodes(1, initial_nodes);
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-55324753-2', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div id="head">
<div id = "head_box">
<img src = "images/logo.jpg" width = "300px" onclick="window.location.href='index.html'">
<a style = "float:right;" href = "SmartTourGuide_Report.pdf" target="_blank">How does it work?</a>
<a style = "float:right;"> </a>
<a style = "float:right;" href = "mailto:susikyoon@gmail.com?Subject=Feedback for your application" target ="_blank">Feedback</a>
</div>
<div id="help_panel">
<br />
<span id="help_message"></span>
</div>
</div>
<div id="preference">
<span> ① Priority <img src = "images/help.jpg" width=15 title = "We will consider the selected criteria most in recommendation. Choose one of them for more details"> : </span>
<input type="radio" name="PRF" onClick = change_PRF(this.value) title = "Theme" value="0" checked > Theme
<input type="radio" name="PRF" onClick = change_PRF(this.value) title = "Closeness" value="1"> Closeness
<input type="radio" name="PRF" onClick = change_PRF(this.value) title = "Co-visited" value="2"> Co-visited
<br />
<span> ② Mode of Travel <img src = "images/help.jpg" width=15 title = "Tour route recommendation will be based on the selected type of mode"> :</span>
<input type="radio" name="MOD" value="DRIVING" checked > Driving
<input type="radio" name="MOD" value="BICYCLING"> Bicycle
<input type="radio" name="MOD" value="WALKING"> Walking
</div>
<div id="controller">
<div id="container">
<div id="outer_box1" class="outer_box">
▷1st tour spot
<img src = "images/help.jpg" width=15 title = "Top six tour spots having a high centrality in our network">
<button type="button" id="select1" value=1 class="select" onClick=button_change(this.value)>select</button>
<div id="box1" class="box">
<select id="choosebox1" class="choosebox" size="10" onChange=draw_marker(this.options[this.selectedIndex].value)></select>
</div>
</div>
<div id="outer_box2" class="outer_box" style="display:none;">
▷2nd tour spot
<img src = "images/help.jpg" width=15 title = "Top 10 tour spots recommended from the previous tour spot">
<button type="button" id="select2" value=2 class="select" onClick=button_change(this.value)>select</button>
<div id="box2" class="box">
<select id="choosebox2" class="choosebox" size="10" onChange=draw_marker(this.options[this.selectedIndex].value)></select>
</div>
</div>
<div id="outer_box3" class="outer_box" style="display:none;">
▷3rd tour spot
<img src = "images/help.jpg" width=15 title = "Top 10 tour spots recommended from the previous tour spot">
<button type="button" id="select3" value=3 class="select" onClick=button_change(this.value)>select</button>
<div id="box3" class="box">
<select id="choosebox3" class="choosebox" size="10" onChange=draw_marker(this.options[this.selectedIndex].value)></select>
</div>
</div>
<div id="outer_box4" class="outer_box" style="display:none;">
▷4th tour spot
<img src = "images/help.jpg" width=15 title = "Top 10 tour spots recommended from the previous tour spot">
<button type="button" id="select4" value=4 class="select" onClick=button_change(this.value)>select</button>
<div id="box4" class="box">
<select id="choosebox4" class="choosebox" size="10" onChange=draw_marker(this.options[this.selectedIndex].value)></select>
</div>
</div>
</div>
<div id ="img_box">
<center>Wordcloud based on user review</center>
<img id="WCbox" src='images/wordcloud.png' height=87% width=100% onerror="this.src='images/wordcloud.png';">
</div>
</div>
<div id="displayer">
<div id="map"></div>
<div id= "panel">
<div id = "select-panel">
Tour route recommendation based on
<br />
<button type="button" id="Default" value=1 onClick = "finalize('Default')" disabled >Your choice</button>
<button type="button" id="Optimized" value=2 onClick = "finalize('Optimized')" disabled >Our optimization</button>
<img src = "images/help.jpg" width=15 title = "Regardless of the order you choose">
<br />
<span id = "total_result"></span>
</div>
<div id="right-panel">
</div>
</div>
</div>
</body>
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&signed_in=true&callback=initMap" async defer ></script>
</html>