-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
189 lines (176 loc) · 9.48 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
<!DOCTYPE html5>
<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>Ballade à Metz</title>
<link href="css/bootstrap.min.css" rel="stylesheet"/>
<link href="css/ballade-a-metz.css" rel="stylesheet"/>
<!--if lt IE 9
script(src='https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js')
script(src='https://oss.maxcdn.com/respond/1.4.2/respond.min.js')
-->
</head>
<body>
<div data-audio="mcour" data-image="img/pompidou.jpg" class="background pompidou"></div>
<div data-audio="blida" data-image="img/moselle.jpg" class="background moselle"></div>
<div data-audio="pole" data-image="img/porte-des-allemands.jpg" class="background porte"></div>
<div data-audio="pref" data-image="img/temple.jpg" class="background temple"></div>
<div data-audio="cime" data-image="img/plan-d-eau.jpg" class="background plandeau"></div>
<div data-audio="orgue" data-image="img/cathedrale.jpg" class="background cathedrale"></div>
<div class="overlay"></div>
<div class="container">
<div class="content keep"><img src="img/logo.png" alt="Ballade à Metz" class="img-responsive center-block"/></div>
<div class="spacer keep remove"></div>
<div class="content keep remove">
<p class="text-center">Chargement en cours...</p>
<div class="progress">
<div id="progress" role="progressbar" aria-valuemin="0" aria-valuemax="100" class="progress-bar progress-bar-info"></div>
</div>
</div>
<div class="spacer"></div>
<div class="content">
<p class="text-center">Allumez le son et</p>
<p class="text-center">faites défiler la page !</p>
<h1 class="text-center"><span class="glyphicon glyphicon-arrow-down"></span></h1>
</div>
<div class="spacer"></div>
<div class="content">
<p>Ballade à Metz est une application mobile qui utilise la géolocalisation pour jouer la musique d'un endroit. Chaque lieu important est associé à un thème musical dont le volume dépend de la proximité du lieu. À ces thèmes s'ajoutent des petites mélodies qui correspondent à divers éléments urbains : une boîte postale, un arrêt de bus, un arbre centenaire...</p>
</div>
<div class="spacer"></div>
<div class="content">
<p>Ballade à Metz habille de musique vos déplacements dans la ville pour mettre en valeur son patrimoine et faire redécouvrir le plaisir de s'y promener au gré d'une symphonie à chaque fois différente.</p>
</div>
<div class="spacer"></div>
<div class="content">
<p>Ballade à Metz est le projet proposé par l'équipe des <a href="http://nicepenguins.tumblr.com/" target="blank">Nice Penguins </a>(<a href="https://twitter.com/MCD_Artagnan" target="_blank">Anthony Guérin</a>, Baptiste Lesquoy, <a href="http://quentin.bonnard.eu" target="blank">Quentin Bonnard</a>, Jonhathan Lamont, <a href="https://twitter.com/Striwx" target="_blank">Yvan Corsiglia</a>) à l'occasion du <a href="http://grandestnumerique.org/retour-hackathon.php" target="_blank">Hackathon GEN Lorraine. </a>Il a remporté le Prix coup de coeur de <a href="http://www.metzmetropole.fr/actualite_detail.php?id=17041" target="_blank">Metz Métropole </a>et la <a href="http://metz.fr/actus/2014/141024_numerique_ballade_a_metz.php" target="_blank">Mairie de Metz </a>:)</p>
</div>
<div class="spacer"></div>
<div class="content">
<p>Le concept de la Ballade à Metz peut se décliner dans plusieurs contextes.</p>
</div>
<div class="spacer"></div>
<div class="content">
<p>L'application la plus évidente est dans le domaine du tourisme, pour (re)découvrir de façon ludique et poétique la ville de Metz.</p>
</div>
<div class="spacer"></div>
<div class="content">
<p>Les utilisateurs pourraient facilement créer et partager leurs propres habillages musicaux.</p>
</div>
<div class="spacer"></div>
<div class="content">
<p>Aussi, puisque l'application est exclusivement sonore, elle pourrait être adaptée aux non-voyants et mal-voyants.</p>
</div>
<div class="spacer"></div>
<div class="content">
<p>Enfin, la ballade peut évidemment habiller d'autres villes, d'autres lieux, ou d'autres événements. La musique pourrait venir des différents moyens de transport en commun, on pourrait entendre des citations ou des poèmes associés à des lieux précis, et caetera.</p>
</div>
<div class="spacer"></div>
<div class="content">
<p>Abonnez-vous à notre newsletter pour rester au courant !</p>
<p> </p>
<form action="https://docs.google.com/forms/d/1kVh7qiYzPOEwx-3m3Ub14tiN4H8NtFD5eCQPH4rpzCU/formResponse?embedded=true" method="POST" target="_blank" onsubmit="" role="form">
<div class="form-group">
<p>
<label>Nom</label>
</p>
<p>
<input type="text" name="entry.1609953104" value="" aria-label="Nom" aria-required="true" required=""/>
</p>
</div>
<div class="form-group">
<p>
<label>Adresse email</label>
</p>
<p>
<input type="email" name="entry.1423520718" value="" aria-label="Email" aria-required="true" required="" class="from-control"/>
</p>
</div>
<div class="form-group">
<p>
<button type="submit" name="submit" value="Envoyer" class="btn btn-default">Envoyer</button>
</p>
</div>
</form>
<p>Musiques : <a href="https://twitter.com/MCD_Artagnan" target="_blank">Anthony Guérin </a>et <a href="https://twitter.com/Striwx" target="_blank">Yvan Corsiglia</a></p>
<p>Photos : <a href="http://www.7h47.com/" target="_blank">Sébastien Persegol</a></p>
<p>Design : <a href="http://quentin.bonnard.eu" target="blank">Quentin Bonnard</a></p>
</div>
<div class="spacer"></div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
$(document).ready(function() {
$('.content:not(.keep),.spacer:not(.keep)').each(function(e){$(this).hide(0);});
var backgrounds = document.getElementsByClassName('background');
var bgCount = backgrounds.length;
var audioWeight=2;
var imageWeight=1;
var toLoad = bgCount*(imageWeight+audioWeight);
var loaded = 0;
var progressBar = document.getElementById('progress');
function updateProgressBar(increment) {
loaded += increment;
progressBar.style.width = (100*loaded/toLoad)+"%";
if (loaded >= toLoad) {
$('.content,.spacer').each(function(e){$(this).show();});
$('.remove').each(function(e){$(this).hide();});
$(document).scroll(setEnvironment);
setEnvironment();
}
};
for (var i = 0; i < bgCount; i++) {
audio = document.createElement('audio');
audioName = backgrounds[i].getAttribute('data-audio');
oggSource = document.createElement('source');
oggSource.src = 'audio/'+audioName+'.ogg';
audio.appendChild(oggSource);
mp3Source = document.createElement('source');
mp3Source.src = 'audio/'+audioName+'.mp3';
audio.appendChild(mp3Source);
audio.volume = 0;
audio.loop=true;
audio.play()
audio.addEventListener('canplaythrough', function () {
if (typeof this.alreadyLoaded === "undefined") {
this.alreadyLoaded = true;
updateProgressBar(audioWeight);
}
}
);
backgrounds[i].appendChild(audio);
img = document.createElement('img');
img.src = backgrounds[i].getAttribute('data-image');
img.addEventListener('load', function () {
updateProgressBar(imageWeight);
});
img.style.display='none';
backgrounds[i].appendChild(img);
};
function setEnvironment() {
var maxScroll = document.body.scrollHeight-document.body.clientHeight;
var scrollRatio = document.body.scrollTop / maxScroll;
for (var i = 0; i < bgCount; i++) {
var x = scrollRatio*(bgCount-1);
var density = -1*(x-(i+1))*(x-(i-1));
density = Math.max(0,density);
density = Math.min(1,density);
backgrounds[i].style.opacity = density;
backgrounds[i].getElementsByTagName('audio')[0].volume = density;
}
};
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-56933738-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>