-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtour_signup_review.html
executable file
·222 lines (192 loc) · 9.47 KB
/
tour_signup_review.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Course 6 Tours</title>
<meta name="description"
content="The website to schedule tours for visiting the Electrical Engineering and Computer Science Department at MIT (aka Course 6)." />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Codeply">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" />
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<link rel="stylesheet" href="css/styles.css" />
</head>
<body >
<nav class="navbar navbar-fixed-top navbar-toggleable-sm navbar-inverse bg-primary mb-3">
<div class="flex-row d-flex">
<a class="navbar-brand mb-1" href="index.html"><img src="graphics/VI-Logo.svg" width="30" height="30"> Course 6 Tours</a>
<button type="button" class="hidden-md-up navbar-toggler pull-right" data-toggle="offcanvas" title="Toggle responsive left sidebar">
<span class="navbar-toggler-icon"></span>
</button>
</div>
</nav>
<div class="container-fluid" id="main">
<div class="row row-offcanvas row-offcanvas-left">
<div class="col-md-3 col-lg-2 sidebar-offcanvas" id="sidebar" role="navigation">
<ul class="nav flex-column pl-1">
<li class="nav-item"><a class="nav-link" href="index.html">Home</a></li>
<li class="nav-item"><a class="nav-link" href="map_location.html">Campus Map</a></li>
<li class="nav-item"><a class="nav-link" href="faq.html">FAQ</a></li>
<li class="nav-item"><a class="nav-link" href="contact_page.html">Contact</a></li>
<li class="nav-item"><a class="active nav-link" href="tour_signup_personal_info.html">Schedule Tour</a></li>
</ul>
</div>
<!--/col-->
<div class="col-md-9 col-lg-10 main">
<h1 class="">MIT Course 6 Tour Request</h1>
<p class="lead hidden-xs-down">The Department of Electrical Engineering and Computer Science</p>
<div class="mdl-card mdl-shadow--2dp">
<div class="mdl-card__supporting-text">
<div class="mdl-stepper-horizontal-alternative active-step">
<div class="mdl-stepper-step">
<a href="tour_signup_personal_info.html" id="info" class='btn disabled'>
<div class="mdl-stepper-circle"><span>1</span></div>
<div class="mdl-stepper-title">Personal Info</div>
<div class="mdl-stepper-bar-left"></div>
<div class="mdl-stepper-bar-right"></div>
</a>
</div>
<div class="mdl-stepper-step">
<a href = "tour_signup_schedul.html" id="sched" class='btn disabled'>
<div class="mdl-stepper-circle"><span>2</span></div>
<div class="mdl-stepper-title">Pick Your Dates</div>
<div class="mdl-stepper-bar-left"></div>
<div class="mdl-stepper-bar-right"></div>
</a>
</div>
<div class="mdl-stepper-step active-step">
<a href="tour_signup_review.html" id="review" class= 'btn disabled'>
<div class="mdl-stepper-circle"><span>3</span></div>
<div class="mdl-stepper-title">Review</div>
<div class="mdl-stepper-bar-left"></div>
<div class="mdl-stepper-bar-right"></div>
</a>
</div>
<div class="mdl-stepper-step">
<a href="tour_signup_confirm.html" id="conf" class= 'btn disabled'>
<div class="mdl-stepper-circle"><span>4</span></div>
<div class="mdl-stepper-title">Confirmation</div>
<div class="mdl-stepper-bar-left"></div>
<div class="mdl-stepper-bar-right"></div>
</a>
</div>
</div>
</div>
</div>
<div class="alert alert-danger text-center" style="width: 80%;margin-left: 10%">
<strong>Danger! YOU MUST SUBMIT FOR YOUR REQUEST TO GO THROUGH.</strong>
</div>
<div class="row mb-3">
<div class="col-xs-12">
<h3> Please review the following information before submitting your tour request!</h3>
<hr>
</div>
<div class="col-sm-6 col-xs-12">
<h3>Prospective Student:</h3>
<p><div id="tour-name" class="choices"></div></p>
<p><div id="tour-email" class="choices"></div></p>
<br>
<h4>Visitors: </h4>
<div id="tour-visitors" class="choices"></div>
<h6>Special Requests:</h6>
<div class="choices" id="tourPrefs">
</div>
</div>
<div class="col-sm-6 col-xs-12">
<h3>Times you are available for a tour:</h3>
<div class="choices">
<p>1st Time: <strong id="date1"></strong></p>
<p>2nd Time: <strong id="date2"></strong></p>
<p>3rd Time: <strong id="date3"></strong></p>
</div>
<div class="col-xs-12 col-sm-8">
<hr>
<p>If later you'd like to make any changes to your tour after you submit or have special
circumstances, please contact Anne Hunter at <a href="mailto:anneh@mit.edu">anneh@mit.edu</a>.
</div>
</div>
</p>
<div class='forwardBack'>
<a class="BackButton btn btn-primary" href="tour_signup_schedul.html">Back</a>
<a class="ForwardButton btn btn-success" href="tour_signup_confirm.html">
Submit <i class="fa fa-check"></i></a>
</div>
</div>
<!--/row-->
<br>
<hr>
</div>
<!--/main col-->
</div>
</div>
<!--/.container-->
<footer class="container-fluid">
<p class="text-right small">©2017 MIT EECS</p>
</footer>
<!--scripts loaded here-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/tether/1.2.0/js/tether.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"></script>
<script src="js/scripts.js"></script>
<script>
/**
* Retrieves from data from local storage and displays content on confirmation page
*/
var dataObject = JSON.parse(localStorage.getItem("personal_info_model"));
dataObject.visited_page_3 = true;
localStorage.setItem('personal_info_model', JSON.stringify(dataObject));
console.log(dataObject)
if(dataObject.visited_page_1){
d = document.getElementById("info")
d.className = "btn"
}
if(dataObject.visited_page_2){
d = document.getElementById("sched")
d.className = "btn"
}
if(dataObject.visited_page_3){
d = document.getElementById("review")
d.className = "btn"
}
if(dataObject.visited_page_4){
d = document.getElementById("conf")
d.className = "btn"
}
var tourPrefs = $("#tourPrefs");
// Name, email and visitors
if(dataObject.name) {
var p = '<span>'+dataObject.name+'</span>';
$('#tour-name').append(p);
}
if(dataObject.email) {
var p = '<span>'+dataObject.email+'</span>';
$('#tour-email').append(p);
}
if(dataObject.visitors) {
var p = '<p>'+dataObject.visitors.join(', ');+'</p>';
$('#tour-visitors').append(p);
}
// Special Requests
if(dataObject.handicap) {
var p = document.createElement('p');
var handicap = document.createTextNode("- Handicap Accessible");
p.append(handicap);
tourPrefs.append(p);
}
if(dataObject.prefer_ee) {
var p = document.createElement('p');
var eepref = document.createTextNode("- Prefer EE");
p.append(eepref);
tourPrefs.append(p);
}
if(dataObject.prefer_cs) {
var p = document.createElement('p');
var cspref = document.createTextNode("- Prefer CS");
p.append(cspref);
tourPrefs.append(p);
}
// found in scripts.js
updateChoices();
</script>
</body>
</html>