-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
280 lines (218 loc) · 10.7 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
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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="./favicon.png">
<title>Tyne Theatre Performances</title>
<!-- jQuery-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
<!-- PapaParse -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/papaparse.min.js"></script>
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/d3c573ef09.js" crossorigin="anonymous"></script>
<!-- jQuery-CSV -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-csv/1.0.11/jquery.csv.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<!-- Bootstrap -->
<!-- <link rel="stylesheet" type="text/css" href="../style.css"> -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V"
crossorigin="anonymous"></script>
<!-- lodash -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>
</head>
<style>
</style>
<body>
<div class="container mt-5">
<div class="text-center">
<button class="btn btn-light" onclick="browseAll()">Browse by type</button>
<button class="btn btn-light" onclick="showSearch()">Search performances</button>
<button class="btn btn-light" onclick="showCalendar()">Calendar view</button>
</div>
<!-- Info text -->
<div id="welcomeText" class="container-lg mt-5 text-center">
<div class="card-body">
<!-- <h5 class="card-title">Tyne Theatre Performances</h5> -->
<!-- <h6 class="card-subtitle mb-2 text-muted">Browse</h6> -->
<!-- <p class="card-text">Browse Tyne Theatre performances by type or date by following the links... more
info....</p> -->
<!-- <a href="#" class="card-link">Card link</a>
<a href="#" class="card-link">Another link</a> -->
</div>
</div>
<!-- Search box -->
<div id="searchBox" class="input-group mb-3" style="width:300px;">
<input onkeyup="searchIfEnter(event)" id="searchInput" type="text" class="form-control" placeholder="Search">
<div class="input-group-append">
<button onclick="searchDisplayedData()" class="btn btn-outline-secondary" type="button"><i
class="fa fa-magnifying-glass"></i></button>
<button onclick="clearSearch()" class="btn btn-outline-secondary" type="button">Reset</button>
</div>
</div>
<!-- Browsing by genre -->
<div id="browse">
<h3>Browse by Type</h3>
<p>Filter performances by type</p>
<form id="genreBtns" class="d-flex flex-wrap gap-2">
<div class="form-check ml-4">
<input class="form-check-input" onclick="filterGenre('all')" type="radio" name="genre" id="all">
<label class="form-check-label" for="all">All</label>
</div>
</form>
</div>
<!-- Calendar -->
<!-- https://github.com/niinpatel/calendarHTML-Javascript/tree/master -->
<div id="calendar">
<h3>Browse by date</h3>
<p>Click on a coloured circle to view the performance</p>
<div class="container mt-5">
<div class="card">
<h3 class="card-header" id="monthAndYear"></h3>
<div class="card-body">
<table class="table table-bordered table-responsive-sm" id="calendar">
<thead>
<tr>
<th>Sun</th>
<th>Mon</th>
<th>Tue</th>
<th>Wed</th>
<th>Thu</th>
<th>Fri</th>
<th>Sat</th>
</tr>
</thead>
<tbody id="calendar-body">
</tbody>
</table>
</div>
<div class="card-footer">
<div class="text-center">
<div class="btn-group" role="group" aria-label="Basic example">
<button type="button" class="btn " id="previous" onclick="previous()">
<i class="fa fa-arrow-left"></i></button>
<button type="button" class="btn " id="next" onclick="next()"><i
class="fa fa-arrow-right"></i></button>
</div>
</div>
<form>
<div class="row justify-content-md-center">
<div class="col-md-auto" style="padding-right: 2px;">
<label class="lead mr-2 ml-2" for="month"></label>
<select class="form-control " name="month" id="month" onchange="jump()"
style="width:auto;">
<option value=0>Jan</option>
<option value=1>Feb</option>
<option value=2>Mar</option>
<option value=3>Apr</option>
<option value=4>May</option>
<option value=5>Jun</option>
<option value=6>Jul</option>
<option value=7>Aug</option>
<option value=8>Sep</option>
<option value=9>Oct</option>
<option value=10>Nov</option>
<option value=11>Dec</option>
</select>
</div>
<div class="col-md-auto" style="padding-left: 2px;">
<label for="year"></label><select style="width:auto;" class="form-control col-sm-4"
name="year" id="year" onchange="jump()">
</select>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- <div id="showInfo" class="table-responsive">
<table id="calTable" class="table mt-5">
<thead>
<th scope="col">
Date
</th>
<th scope="col">
Title
</th>
<th scope="col">
Type
</th>
<th scope="col">
Writers
</th>
<th scope="col">
Composers
</th>
<th scope="col">
Company
</th>
<th scope="col">
Director
</th>
<th scope="col">
Cast
</th>
<th scope="col">
Notes
</th>
<th scope="col">
Refs
</th>
<th scope="col">
Newcastle Daily Journal review?
</th>
<th scope="col">
Newcastle Daily Chronicle review?
</th>
<th scope="col">
Any surviving publicity?'
</th>
<th scope="col">
Any associated music?
</th>
<th scope="col">
Does a script survive?
</th>
<th scope="col">
Any associated images?
</th>
</thead>
<tbody id="calTableBody">
</tbody>
</table>
</div> -->
</div>
<!-- Table to display selected result -->
<div class="card p-3 mt-4 mb-4" id="resultsCard">
<button id="resultsCardClose " onclick="closeResultsCard()" type="button" class="btn-close "
aria-label="Close"></button>
<div class="table-responsive" id="clickedEntry">
</div>
</div>
<!-- Table to display all results (date abbrev. and title only) -->
<div id="dataTable">
<div class="text-center">
<div class="btn-group" role="group" aria-label="Basic example">
<button type="button" class="btn " id="previous" onclick="previousTablePage()">
<i class="fa fa-arrow-left"></i></button>
<button type="button" class="btn " id="next" onclick="nextTablePage()"><i
class="fa fa-arrow-right"></i></button>
</div>
</div>
<div class="table-responsive" id="showData">
</div>
<div class="text-center">
<div class="btn-group" role="group" aria-label="Basic example">
<button type="button" class="btn " id="previous" onclick="previousTablePage()">
<i class="fa fa-arrow-left"></i></button>
<button type="button" class="btn " id="next" onclick="nextTablePage()"><i
class="fa fa-arrow-right"></i></button>
</div>
</div>
</div>
<script type="text/javascript" src="./loadsheets.js"></script>
</div>
</body>
</html>