-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
276 lines (233 loc) · 8.17 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
<!DOCTYPE HTML>
<html>
<head>
<title>ViiSoo - Kollektiv Zoll</title>
<meta name="keywords" content="opendata, open, data, kollektiv, zoll, water, flow, creativecommons, creative, commons">
<meta property="og:title" content="ViiSoo - Kollektiv Zoll">
<meta property="og:type" content="non_profit">
<meta property="og:url" content="http://foo.hagbart.ch">
<meta property="og:image" content="http://foo.hagbart.ch/images_done/wall_crop.jpg">
<meta property="og:site_name" content="ViiSoo - Kollektiv Zoll">
<meta property="og:description" content="This is an Installation created during 48 hours at the 1st Open Data Hackathon 2015, visualization of Data and Water">
<meta property="og:country-name" content="Switzerland">
<style>
@font-face {
font-family: zoll;
src: url(station.ttf);
}
* {
font-family:zoll;
}
html, body
{
height: 100%;
margin:0px;
}
body {
margin: 0px;
padding: 0px;
background-image:url('images_done/wall_crop.jpg');
background-size:cover;
background-repeat:no-repeat;
overflow:hidden;
background-position: bottom;
}
#slider {
width:500px;
margin:0px auto;
margin-top:20px;
}
#pattern {
z-index:1;
position:absolute;
left:0px;
top:0px;
}
#bgCanvas {
z-index:2;
position:absolute;
left:0px;
top:0px;
box-shadow: 5px 5px 10px #888888;
}
#fgCanvas {
z-index:3;
position:absolute;
left:0px;
top:0px;
}
#fgCanvas2 {
z-index:4;
position:absolute;
left:0px;
top:0px;
}
#canvaswrapper {
position:relative;
}
canvas {
left: 50% !important;
margin-left: -250px;
margin-top: 50px;
display:none;
}
.playButtonRiver{
position:absolute;
bottom: 5%;
right:0%;
width: 200px;
height: 550px;
}
.playButtonMouse{
position:absolute;
bottom: 5%;
right:29%;
width: 70px;
height: 550px;
}
.playButtonMic{
position:absolute;
bottom: 5%;
right:41%;
width: 70px;
height: 550px;
}
.playButtonMoldau{
position:absolute;
bottom: 5%;
right:65%;
width: 70px;
height: 550px;
}
.playButtonBirds{
position:absolute;
bottom: 5%;
right:75%;
width: 70px;
height: 550px;
}
.footer {
position:absolute;
text-align:center;
bottom:0px;
width:100%;
text-shadow: 2px 2px #ddd;
background-color:white;
padding:5px;
padding-top:10px;
z-index:10;
font-size:30px;
}
#loading {
margin:0px auto;
text-align:center;
margin-top:150px;
}
.infoicon {
position: absolute;
top: 0px;
left: 0px;
}
#infoWindow {
position:absolute;
width:500px;
z-index:100;
left:50%;
margin-left:-250px;
background-color:white;
padding:20px;
border: 1px solid;
border-radius: 10px;
display:none;
top:40px;
}
</style>
<link rel="stylesheet" href="js/jquery-ui-1.11.3.custom/jquery-ui.min.css">
</head>
<body>
<div id="canvasWrapper">
<canvas id="pattern" class="canvas" width="500px" height="380px"></canvas>
<canvas id="bgCanvas" class="canvas" width="500px" height="380px"></canvas>
<canvas id="fgCanvas" class="canvas" width="500px" height="380px"></canvas>
<canvas id="fgCanvas2" class="canvas" width="500px" height="380px"></canvas>
</div>
<div id="slider"></div>
<p id="loading">Loading...</p>
<svg class="infoicon" width="76px" height="76px"><path fill="#ddd" fill-opacity="1" stroke-width="0.2" stroke-linejoin="round" d="M 38,19C 48.4934,19 57,27.5066 57,38C 57,48.4934 48.4934,57 38,57C 27.5066,57 19,48.4934 19,38C 19,27.5066 27.5066,19 38,19 Z M 33.25,33.25L 33.25,36.4167L 36.4166,36.4167L 36.4166,47.5L 33.25,47.5L 33.25,50.6667L 44.3333,50.6667L 44.3333,47.5L 41.1666,47.5L 41.1666,36.4167L 41.1666,33.25L 33.25,33.25 Z M 38.7917,25.3333C 37.48,25.3333 36.4167,26.3967 36.4167,27.7083C 36.4167,29.02 37.48,30.0833 38.7917,30.0833C 40.1033,30.0833 41.1667,29.02 41.1667,27.7083C 41.1667,26.3967 40.1033,25.3333 38.7917,25.3333 Z "></path></svg>
<div id="infoWindow">
<h1>What am i looking at?</h1>
<p>This is an Installation created during 48 hours at the 1st Open Data Hackathon 2015</p>
<p>You're looking at Images which where published under Creative Commons
license by Swiss Government & Institutions, the collective Zoll wanted to raise
awareness that we (the people) deserve Information gathered by public institutions.</p>
<p>In this Installation we removed the water from the Images and replaced it with the
actual Raw Data of those Images, so what you're looking at is the pure essence of those digitalized Images</p>
<p>Free the Datastreams and let the Data flow</p>
Powered by <img style="margin-bottom: -4px;" src="images_done/cc.png" width="20px"/>
</div>
<div class="playButtonRiver"></div>
<div class="playButtonMouse"></div>
<div class="playButtonMic"></div>
<div class="playButtonMoldau"></div>
<div class="playButtonBirds"></div>
<div class="footer">Kollektiv Zoll - Wir setzen neue Grenzen</div>
<div class="view" style="display:none;">
<canvas id="waveform" height="100" width="960"></canvas>
</div>
<script type="text/javascript" src="js/jquery-ui-1.11.3.custom/external/jquery/jquery.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.11.3.custom/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.11.3.custom/external/jquery/jquery.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.11.3.custom/jquery-ui.min.js"></script>
<script src="infusion/js/Fluid.js"></script>
<script src="infusion/js/FluidIoC.js"></script>
<script src="infusion/js/DataBinding.js"></script>
<script src="flock/flocking-core.js"></script>
<script src="flock/flocking-scheduler.js"></script>
<script src="flock/flocking-buffers.js"></script>
<script src="flock/flocking-audiofile.js"></script>
<script src="flock/flocking-audiofile-compatibility.js"></script>
<script src="flock/flocking-webaudio.js"></script>
<script src="flock/flocking-parser.js"></script>
<script src="flock/flocking-ugens.js"></script>
<script src="flock/flocking-gfx.js"></script>
<script src="flock/flocking-ugens-browser.js"></script>
<script type="text/javascript" src="imageLoader.js"></script>
<script type="text/javascript" src="synthdef.js"></script>
<script type="text/javascript" src="audioControll.js"></script>
<script type="text/javascript">
$(function() {
$('#loading').html('Hacking Cultural Data...');
$('.infoicon').click(function(){
$('#infoWindow').toggle('fast');
});
window.setTimeout(function(){
$('#loading').html('Hacking Cultural Data...');
drawImageToCanvas('fgCanvas','images_done/CH-NB/CH-NB_-_Zuerich,_Bahnhofstrasse_und_Rennweg_-_Eduard_Spelterini_-_EAD-WEHR-32023-A.tif.jpg.png',1,false);
drawImageToCanvas('fgCanvas2','images_done/CH-NB/CH-NB_-_Zuerich,_Bahnhofstrasse_und_Rennweg_-_Eduard_Spelterini_-_EAD-WEHR-32023-A.tif.jpg_Floated_Layer.png',0.8,true);
drawPattern();
}, 500);
$("#slider").slider({
max: 1,
step: 0.01,
value: 0.05
});
animate();
playButtonView = demo.toggleButtonView(synthriver, ".playButtonRiver");
playButtonView = demo.toggleButtonView(synthmouse, ".playButtonMouse");
playButtonView = demo.toggleButtonView(synthmic, ".playButtonMic");
playButtonView = demo.toggleButtonView(synthmoldau, ".playButtonMoldau");
playButtonView = demo.toggleButtonView(synthbirds, ".playButtonBirds");
window.setTimeout(function(){
$('#loading').html('Synthesizing Moldau...');
synthmoldau.play();
}, 1500);
});
$( "#slider" ).on( "slide", function( event, ui ) {
var value = 1 - $( "#slider" ).slider( "values", 0 );
var value2 = $( "#slider" ).slider( "values", 0 );
synthriver.input("player.speed", value2 * 2);
drawImageToCanvas('fgCanvas2','images_done/CH-NB/CH-NB_-_Zuerich,_Bahnhofstrasse_und_Rennweg_-_Eduard_Spelterini_-_EAD-WEHR-32023-A.tif.jpg_Floated_Layer.png', value);
});
</script>
</body>
</html>