/
masstrac.html
91 lines (83 loc) · 2.98 KB
/
masstrac.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!--
File: masstrac.html
Dan Brook, Austin Veino, and Jivani Cassar
GUI II final project at UMass Lowell
Date Created: 2013-2-12
Description: A tool that displays real-time arrival countdowns for the MBTA
-->
<title>Mass TRAC</title>
<!-- Links the css -->
<link type="text/css" rel="stylesheet" href="css/black-tie/jquery-ui-1.10.1.custom.min.css">
<link type="text/css" rel="stylesheet" href="css/selector.css">
<link type="text/css" rel="stylesheet" href="css/mbta_colors.css">
<!--
Grab the JavaScript needed to make the page run
WARNING: It's VERY VERY important that this be done in the
order detailed below, as the namespace especially is setup in
the structures.js.
-->
<script src="lib/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="lib/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>
<script src="lib/structures.js" type="text/javascript"></script>
<script src="lib/stations.js" type="text/javascript"></script>
<script src="lib/green.js" type="text/javascript"></script>
<script src="lib/selector.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#btn").click(function() {
var input = $("#tags").val();
if (input != "")
window.location =
"http://weblab.cs.uml.edu/~dbrook/masstrac/arrivals.html?name=" + input;
});
$("#tags").keypress(function(event){
if(event.which == 13){
var input = $("#tags").val();
if (input != "")
window.location =
"http://weblab.cs.uml.edu/~dbrook/masstrac/arrivals.html?name=" + input;
return false;
}
});
$("#tags").focus();
});
</script>
</head>
<body>
<div id="container">
<div id="header">
</div>
<div id="body">
<!-- menu holds the search bar and the accordion -->
<div id="menu">
<div id="searchBar">
<form class="form-wrapper cf">
<input id="tags" type="text" placeholder="Enter departure station"/>
<button id="btn" type="button">Search</button>
</form>
</div>
<div id="accordion">
<h3 id="r_header">RED</h3>
<div id="r_content"></div>
<h3 id="o_header">ORANGE</h3>
<div id="o_content"></div>
<h3 id="b_header">BLUE</h3>
<div id="b_content"></div>
<h3 id="g_header">GREEN</h3>
<div id="g_content"></div>
<h3 id="c_header">COMMUTER RAIL</h3>
<div id="c_content"></div>
</div>
</div>
<div id="map">
<img src="img/maps/subway-spider.jpg" id="map_img" width="650"
alt="Map of the MBTA Rapid Transit Focused">
</div>
</div>
</div>
</body>
</html>