-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
151 lines (138 loc) · 3.35 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
<!DOCTYPE html>
<head>
<meta name="viewport" content ="width=device-width,initial-scale=1,user-scalable=yes" />
<title>Charlie Table</title>
<script src="js/lib/d3.v4.min.js"></script>
<link rel="stylesheet" type="text/css" href='css/bulma.min.css'></link>
<link rel="stylesheet" href="css/flatpickr.min.css">
<link rel="stylesheet" href="css/awesomplete.css">
<script src="js/lib/flatpickr.js"></script>
<script src="js/lib/awesomplete.min.js"></script>
<style>
/* override bulma */
body, .input {
font-family: monospace;
}
.section {
padding: 1.5rem 1.5rem;
}
.button.is-small.anchor {
border-radius: 64px;
}
.primary.routename {
font-weight: bold;
}
.overlay {
background: #e9e9e9;
display: none;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 0.5;
}
.notification {
display: none;
}
thead {
background: white;
width: 100%;
margin-top: 1rem;
}
tbody tr {
cursor: pointer;
}
tr td:last-child {
width: 11em;
}
tr td:first-child {
max-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.anchor {
margin-right: 0.1rem;
cursor: pointer;
}
.route-info:not(:last-child) {
border-bottom: 1px solid lightgrey;
}
.route-info {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
#infoPanel .table {
padding: 0.5rem;
margin-bottom: 0;
}
#infoPanel {
position: fixed;
bottom: -0.5rem;
width: 97%;
left: 1.5%;
max-height: 0;
overflow: hidden;
transition: max-height 0.1s ease-out;
}
#content, #infoPanel {
font-size: 12px;
}
#anchors {
margin-right: -10rem;
}
.tableforhead {
margin-bottom: 0;
}
</style>
</head>
<body>
<section class="section">
<nav class="panel">
<p class="panel-heading">
Charlie Table
<a href='#' id="about" class="is-pulled-right button is-small is-dark">About</a>
</p>
<div class="panel-block">
<div style="width:100%;">
<p class="control">
<input placeholder="Start..." class="input awesomplete" data-maxitems="20" id="start" />
</p>
<p class="control">
<input placeholder="End..." class="input awesomplete" data-maxitems="20" id="end" />
</p>
<p class="control">
<input class="datetime input" id="datetime" type="text" placeholder="Select Date..">
</p>
</div>
</div>
<div id="content"></div>
</nav>
<div class="notification is-warning">
<span class="text"></span>
<button class="delete"></button>
</div>
</section>
<div class="overlay"><!-- show loading --></div>
<div id="aboutModal" class="modal">
<div class="modal-background"></div>
<div class="modal-content">
<div class="box">
<article class="media">
<p>
This is an interactive timetable for the MBTA powered by
<a href="http://opentripplanner.org">OpenTripPlanner</a>.
Read more <a href="https://github.com/sdjacobs/charlie-table/blob/master/readme.md">here</a>.
</p>
<p>
<a href='#' id="aboutClose" class="button is-small is-dark">Close</a>
</p>
</article>
</div>
</div>
</div>
<script src="js/app.js"></script>
<div class="card" id="infoPanel">
</div>
</body>