-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfestivalsP3.html~
More file actions
195 lines (178 loc) · 7.12 KB
/
Copy pathfestivalsP3.html~
File metadata and controls
195 lines (178 loc) · 7.12 KB
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
<!DOCTYPE html>
<html>
<head>
<link rel = "stylesheet" title = "basic style" type = "text/css" href = "./backbone.css" media = "all"/>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Jam On!</title>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/full-slider.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" style="font-size: 4em" href="index.html">Jam Austin</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav" style= "width:302px; background-color:#222222; border:none;">
<li>
<a href="about.html">About</a>
</li>
<li>
<a href="./bands.html">Bands</a>
</li>
<li>
<a href="./venues.html">Venues</a>
</li>
<li>
<a href="./festivals.html">Festivals</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<div class = "description">
</head>
<body>
<div class = "tables">
<h2>Festivals</h2>
<table style="width:100%" id="myTable">
<col width="130">
<col width="130">
<col width="130">
<col width="130">
<col width="130">
<tr>
<th bgcolor= "#C0C0C0", style="width:14.25%" onclick="sortTable(0)">Festival</th>
<th bgcolor= "#C0C0C0", style="width:14.25%" onclick="sortTable(1)">Time of Year</th>
<th bgcolor= "#C0C0C0", style="width:14.25%" onclick="sortTable(2)">Year Started</th>
<th bgcolor= "#C0C0C0", style="width:14.25%" onclick="sortTable(3)">Website</th>
<th bgcolor= "#C0C0C0", style="width:14.25%" onclick="sortTable(4)">Location</th>
<th bgcolor= "#C0C0C0", style="width:14.25%" onclick="sortTable(5)">Average Ticket Price</th>
<th bgcolor= "#C0C0C0", style="width:14.25%" onclick="sortTable(6)">Duration</th>
</tr>
<tr>
<td><a href="festival_folder/urban_music_fest.html">Urban Music Festival</a></td>
<td>Spring</td>
<td>2006</td>
<td><a href="http://urbanmusicfest.com/" style="text-decoration:none">Official Website</a></td>
<td>Austin, TX</td>
<td>Free admission</td>
<td>Friday & Saturday</td>
</tr>
<tr>
<td><a href="festival_folder/levitation.html">Levitation</a></td>
<td>Spring</td>
<td>2008</td>
<td><a href="http://levitation-austin.com/about/" style="text-decoration:none">Official Website</a></td>
<td>location varies in Austin, TX</td>
<td>$165/ 3 day pass</td>
<td>3 days</td>
</tr>
<tr>
<td><a href="festival_folder/wine_music.html">Austin Wine & Music Festival</a></td>
<td>Spring</td>
<td>2012</td>
<td><a href="https://www.austinfoodandwinefestival.com/" style="text-decoration:none">Official Website</a></td>
<td>Austin, TX</td>
<td>$250 for Weekender ticket</td>
<td>Saturday & Sunday</td>
</tr>
</table>
</div>
</div>
<div style="margin-top: 4.5%; margin-left: 10%; color: black", class="well">
<p><i>Click the title of each column to sort alphabetically</i></p>
<p style="font-size: .7em"><i>Clicking once will sort A-Z, clicking twice will sort Z-A</i></p>
</div>
<div class="container" style="margin-top:105px; margin-left:174px;">
<ul class="pagination" style="width:102px;">
<li><a href="festivals.html">1</a></li>
<li><a href="festivalsP2.html">2</a></li>
<li class="active"><a href="#">3</a></li>
</ul>
</div>
<!-- /.container -->
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<script>
function sortTable(n) {
var table, rows, switching, i, x, y, shouldSwitch, dir, switchcount = 0;
table = document.getElementById("myTable");
switching = true;
//Set the sorting direction to ascending:
dir = "asc";
/*Make a loop that will continue until
no switching has been done:*/
while (switching) {
//start by saying: no switching is done:
switching = false;
rows = table.getElementsByTagName("TR");
/*Loop through all table rows (except the
first, which contains table headers):*/
for (i = 1; i < (rows.length - 1); i++) {
//start by saying there should be no switching:
shouldSwitch = false;
/*Get the two elements you want to compare,
one from current row and one from the next:*/
x = rows[i].getElementsByTagName("TD")[n];
y = rows[i + 1].getElementsByTagName("TD")[n];
/*check if the two rows should switch place,
based on the direction, asc or desc:*/
if (dir == "asc") {
if (x.innerHTML.toLowerCase() > y.innerHTML.toLowerCase()) {
//if so, mark as a switch and break the loop:
shouldSwitch= true;
break;
}
} else if (dir == "desc") {
if (x.innerHTML.toLowerCase() < y.innerHTML.toLowerCase()) {
//if so, mark as a switch and break the loop:
shouldSwitch= true;
break;
}
}
}
if (shouldSwitch) {
/*If a switch has been marked, make the switch
and mark that a switch has been done:*/
rows[i].parentNode.insertBefore(rows[i + 1], rows[i]);
switching = true;
//Each time a switch is done, increase this count by 1:
switchcount ++;
} else {
/*If no switching has been done AND the direction is "asc",
set the direction to "desc" and run the while loop again.*/
if (switchcount == 0 && dir == "asc") {
dir = "desc";
switching = true;
}
}
}
}
</script>
</body>
</html>