-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
188 lines (173 loc) · 9.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome to Tinder!</title>
<link href='http://fonts.googleapis.com/css?family=Abril+Fatface' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400' rel='stylesheet' type='text/css'>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.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>
<body>
<!--
<div class=".container-fluid">
<div id="splash">
<div id="splashcontent">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="160px" height="160px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<g>
<path d="M24.041,28.73c0,14.201,11.512,25.712,25.713,25.712c14.2,0,25.711-11.512,25.711-25.712S63.953,3.018,49.753,3.018 C35.552,3.018,24.041,14.529,24.041,28.73z M29.1,5.426c1.438-2.104,9.605-4.65,20.654-5.005 c11.047,0.354,19.212,2.901,20.653,5.005c3.606,5.504,5.92,11.404,7.07,17.901c0.151,0.758,0.826,1.333,1.623,1.333l0.412,0.003 V35.68c-0.623,0-1.156,0.432-1.309,1.013c-0.771,8.576-5.348,19.115-11.211,26.216C58.41,73.306,53.645,75.38,49.753,75.368 c-3.892,0.012-8.659-2.062-17.239-12.459c-5.865-7.102-10.44-17.64-11.211-26.216c-0.154-0.582-0.685-1.013-1.311-1.013V24.664 l0.414-0.003c0.798,0,1.471-0.575,1.625-1.333C23.179,16.83,25.493,10.931,29.1,5.426z M49.775,21.213 c-0.451,0.019-0.899,0.506-0.978,1.107c-0.786,2.975-2.459,6.652-4.755,6.652h-4.301c-0.101,0-0.198-0.004-0.295-0.013 c-8.064-0.07-9.9-4.355-9.9-9.631c0-3.842,2.359-7.159,5.771-8.705L47.625,6c0.59-0.184,1.319-0.315,2.122-0.318h0.055 C50.606,5.685,51.334,5.816,51.925,6l12.307,4.625c3.413,1.546,5.771,4.863,5.771,8.705c0,5.275-1.836,9.561-9.901,9.631 c-0.095,0.008-0.193,0.013-0.292,0.013h-4.303c-2.295,0-3.968-3.677-4.752-6.652C50.673,21.72,50.226,21.232,49.775,21.213z M52.887,19.869c0,2.368,1.919,4.289,4.289,4.289c2.369,0,4.29-1.921,4.29-4.289c0-2.37-1.921-4.29-4.29-4.29 C54.806,15.58,52.887,17.5,52.887,19.869z M37.908,19.869c0,2.368,1.921,4.289,4.29,4.289c2.37,0,4.29-1.921,4.29-4.289 c0-2.37-1.92-4.29-4.29-4.29C39.829,15.58,37.908,17.5,37.908,19.869z M49.8,37.089l-7.182-1.523v-1.839l7.181-1.531l7.183,1.531 v1.839L49.8,37.089z M49.249,44.072v5.776h1.105v-5.776H49.249z M47.546,42.003h4.511v9.914h-4.511V42.003z M8.253,24.925 c0-0.941,0.763-1.703,1.703-1.703h0.952c0.852,0,1.558,0.625,1.684,1.441h6.183h0.069v10.99 c0.605,8.786,4.633,18.805,10.026,26.594c5.878,8.49,12.934,16.896,20.191,17.15c0,0,0.37,0.021,0.692,0.021 c0.298,0,0.643-0.021,0.643-0.021c7.257-0.254,14.312-8.66,20.192-17.15c5.392-7.789,9.42-17.808,10.024-26.594v-10.99h0.07h6.256 c0.124-0.816,0.831-1.441,1.684-1.441h0.951c0.94,0,1.703,0.762,1.703,1.703v10.491c0,0.94-0.763,1.703-1.703,1.703h-0.951 c-0.859,0-1.568-0.637-1.684-1.465h-1.25c-0.846,10.495-5.291,22.303-10.638,30.922c-4.217,6.795-9.498,13.977-14.845,17.863 v12.338h1.839v2.402H37.412v-2.402h1.838V84.438c-5.347-3.887-10.627-11.068-14.844-17.863 c-5.348-8.619-9.792-20.428-10.637-30.922l-1.175,0c-0.116,0.828-0.826,1.465-1.687,1.465H9.956c-0.94,0-1.703-0.762-1.703-1.703 V24.925z"/>
</g>
</svg>
<h2>Low Country</h2>
<h1>Sights</h1>
</div>
</div>
-->
<nav class="navbar navbar-default navbar-fixed-top text-center" role="navigation">
<a href="maps2.html" <span="" class="glyphicon glyphicon-map-marker" style="
font-size: 28px;
color: #555;
float: left;
margin-left: 20px;
margin-top: 19px;
"></a>
<div id="navtext"><h3>Low Country Sights</h3></div>
<a href="filter.html"><span><button type="button" class="btn btn-default navbar-btn">Filter</button></span></a>
</nav>
<div id="scenes">
</div>
<nav class="navbar navbar-default navbar-fixed-bottom text-center" role="navigation">
<div id="submitbutton">
<input type="file" capture="camera" accept="image/*" id="cameraInput" name="cameraInput" title="Submit">
</div>
</nav>
<!-- container close div -->
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="http://gregpike.net/demos/bootstrap-file-input/bootstrap.file-input.js.pagespeed.jm.IdmWcpRIii.js"></script>
<script src="Database.js"></script>
<script>$(document).ready(function(){$('input[type=file]').bootstrapFileInput();});</script>
<script>
var queryString = window.location.search;
var filterVal = [0, 0, 0];
if(queryString != "") {
for(var i = 0; i < queryString.length; i++) {
if(queryString.charAt(i) == '=') {
if(queryString.charAt(i+1) == 1) {
filterVal[0] = 1;
}
else if(queryString.charAt(i+1) == 2) {
filterVal[1] = 1;
}
else if(queryString.charAt(i+1) == 3) {
filterVal[2] = 1;
}
}
}
}
else{
filterVal = null;
}
if(queryString != "") {
$("#splash").hide();
}
for(var i = 0; i < dataSet.length; i++) {
if(filterVal == null) {
generateDoc(i);
}
else if(dataSet[i].walk == filterVal[2] || dataSet[i].drive == filterVal[1] || dataSet[i].bike == filterVal[0]) {
generateDoc(i);
}
} // end for
function generateDoc(i) {
d3.select("#scenes")
.append("div")
.attr("class", "row")
.append("div")
.attr("class", "col-xs-12 col-sm-6")
.append("div")
.attr("class", "thumbnail")
.attr("id", "pic" + i)
.append("img")
.attr("src", dataSet[i].image)
.attr("height", "100px")
.attr("width", "100%");
d3.select("#pic" + i)
.append("div")
.attr("class", "caption")
.attr("id", "sec" + i);
d3.select("#sec" + i)
.append("h3")
.text(dataSet[i].title)
.append("div")
.attr("id","icons" + i);
d3.select("#icons" + i)
.append("img")
.attr("src", function() { // <== Add these
if (dataSet[i].bike == 1) {return "http://www.mdaniels.com/hackcharleston/images/bike.png"} // <== Add these
;})
.attr("width",function() { // <== Add these
if (dataSet[i].bike == 1) {return "25px"} // <== Add these
;})
;
d3.select("#icons" + i)
.append("img")
.attr("src", function() { // <== Add these
if (dataSet[i].drive == 1) {return "http://www.mdaniels.com/hackcharleston/images/car.png"} // <== Add these
;})
.attr("width",function() { // <== Add these
if (dataSet[i].drive == 1) {return "25px"} // <== Add these
;})
;
d3.select("#icons" + i)
.append("img")
.attr("src", function() { // <== Add these
if (dataSet[i].walk == 1) {return "http://www.mdaniels.com/hackcharleston/images/walk.png"} // <== Add these
;})
.attr("width",function() { // <== Add these
if (dataSet[i].walk == 1) {return "25px"} // <== Add these
;})
;
d3.select("#sec" + i)
.append("p")
.text(dataSet[i].notes);
d3.select("#sec" + i)
.append("form")
.attr("method","GET")
.attr("action", "photo.html")
.attr("id","form" + i)
.append("input")
.attr("type","hidden")
.attr("name","photoid")
.attr("value", i);
d3.select("#form" + i)
.append("a").
attr("href", "photo.html").
append("button").
attr("type","submit")
.attr("class","btn btn-link")
.text("view more information...");
}
</script>
<script>
$(document).ready(function(){
$("#splash").click(function(){
$("#splash").hide();
});
});
</script>
</body>
</html>