-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
117 lines (101 loc) · 5.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Der Idiotomat - Bekannt aus Circus HalliGalli</title>
<link href='https://fonts.googleapis.com/css?family=Julius+Sans+One' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/global.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="description" content="Kopfhörer anschließen, starten, sprechen!">
<meta property="og:image" content="https://www.idiotom.at/img/logo.png"/>
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<section class="toolbar">
<div class="wrapper">
<div class="logo fll"><img src="img/logo.png" /></div>
<div class="bleech flr">
<a href="https://bleech.de" target="_blank"><img src="img/bleech-logo.png" /></a>
</div>
</div>
</section>
<section class="teaser">
<div class="wrapper">
<div class="info">Bekannt aus Circus HalliGalli. Kopfhörer anschließen, starten, sprechen!</div>
<div class="alert">Dein Browser wird noch nicht unterstützt. Bitte verwende <a href="https://google.com/chrome" target="_blank" title="Google Chrome">Chrome</a>, <a href="https://www.opera.com/de/computer/" target="_blank" title="Opera">Opera</a> oder <a href="https://www.mozilla.org/de/firefox/new/" target="_blank" title="Mozilla Firefox">Firefox</a>, denn andere Browser unterstützen diese Technik noch nicht.</div>
<ul class="instructions">
<li>Kopfhörer anschließen</li>
<li><button class="start" onclick="toggleAudio()" type="button">Starten</button></li>
<li>Zugriff zum Mikrofon zulassen</li>
<li>Sprich mit jemandem</li>
</ul>
</div>
</section>
<section class="advice">
<div class="wrapper">
<h1 class="advice">– Bekannt aus <a href="http://www.prosieben.de/tv/circus-halligalli/videos/unnoetig-kompliziertes-interview-atze-schroeder-clip" target="_blank">Circus HalliGalli</a> –<br/>Für das Web von <a href="http://bleech.de" target="_blank">bleech</a></h1>
<div class="socials">
<div class="fb-like" data-href="https://idiotom.at/" data-width="The pixel width of the plugin" data-height="The pixel height of the plugin" data-colorscheme="light" data-layout="button_count" data-action="recommend" data-show-faces="true" data-send="false"></div>
<a href="https://twitter.com/share" class="twitter-share-button" data-size="large" data-hashtags="idiotomat">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</div>
</div>
</section>
<script>
navigator.getUserMedia = navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia;
var AudioContext = window.AudioContext || window.webkitAudioContext;
if (window.AudioContext && navigator.getUserMedia) {
var startButton = document.querySelector('.start');
var isRunning = false;
var context = new AudioContext();
var source;
document.querySelector('.alert').style.display = 'none';
document.querySelector('.instructions').style.display = 'block';
var delay = context.createDelay();
delay.delayTime.value = 0.2;
function toggleAudio () {
if (isRunning) {
source.disconnect();
startButton.innerHTML = 'Starten';
isRunning = false;
} else {
isRunning = true;
navigator.getUserMedia(
{ audio: true },
function(stream) {
source = context.createMediaStreamSource(stream);
source.connect(delay);
delay.connect(context.destination);
startButton.innerHTML = 'Stoppen';
},
function(err) {
console.log('Error occured: '+err.name);
}
);
}
}
}
</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1&appId=540780529328065";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</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-27155538-3', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>