-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
203 lines (174 loc) · 7.68 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="true">
<meta name="viewport" content="width=device-width, initial-scale=0.666667, maximum-scale=0.666667, user-scalable=0">
<meta name="viewport" content="width=device-width">
<title>Nacht der Forschung</title>
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/g/bootstrap.material-design@0.5.9(css/ripples.min.css+css/bootstrap-material-design.min.css)">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<style>
.video-container {
position:relative;
padding-bottom:56.25%;
padding-top:30px;
height:0;
overflow:hidden;
}
.video-container iframe, .video-container object, .video-container embed {
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
}
.video-frames {
padding:0 !important;
margin:0 !important;
padding:0 !important;
}
.video-frame-heading {
background-color: #7D0020 !important;
color: white !important;
}
</style>
<body style="background-color: #E4003D;">
<div class="navbar navbar-inverse" style="background-color:#7D0020 !important; font-weight:bold !important;">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-inverse-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://www.artorg.unibe.ch/">ARTORG Center - Live Stream</a>
</div>
<div class="navbar-collapse collapse navbar-inverse-collapse">
<ul class="nav navbar-nav">
<li><a href="javascript:void(0)" onclick="_scrollTo(1);">Stream 1</a></li>
<li><a href="javascript:void(0)" onclick="_scrollTo(2);">Stream 2</a></li>
<li><a href="javascript:void(0)" onclick="_scrollTo(3);">Stream 3</a></li>
<li><a href="javascript:void(0)" onclick="_scrollTo(4);">Stream 4</a></li>
</ul>
</div>
</div>
</div>
<div class="container-fluid" style="max-width:1160px;">
<div class="jumbotron" style="color:black;">
<h1>ARTORG Live-Stream</h1>
<p>Willkommen zum ARTORG Live-Stream</p>
<p>Hier könnt ihr euch die vier HTC Vive Stationen des ARTORG Centers anschauen. Viel Spass und besuch uns doch!</p>
</div>
<div>
<div class="panel panel-primary">
<div class="panel-heading video-frame-heading">
<h3 class="panel-title">Stream 1</h3>
</div>
<div class="panel-body" style="padding:0 !important; margin:0 !important;">
<div class="video-container">
<div id="player1"></div>
</div>
</div>
</div>
<div class="panel panel-primary">
<div class="panel-heading video-frame-heading">
<h3 class="panel-title">Stream 2</h3>
</div>
<div class="panel-body" style="padding:0 !important; margin:0 !important;">
<div class="video-container">
<div id="player2"></div>
</div>
</div>
</div>
<div class="panel panel-primary">
<div class="panel-heading video-frame-heading">
<h3 class="panel-title">Stream 3</h3>
</div>
<div class="panel-body" style="padding:0 !important; margin:0 !important;">
<div class="video-container">
<div id="player3"></div>
</div>
</div>
</div>
<div class="panel panel-primary">
<div class="panel-heading video-frame-heading">
<h3 class="panel-title">Stream 4</h3>
</div>
<div class="panel-body" style="padding:0 !important; margin:0 !important;">
<div class="video-container">
<div id="player4"></div>
</div>
</div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/zenscroll/4.0.0/zenscroll-min.js"></script>
<script>
var streamOneId = "";
var streamTwoId = "";
var streamThreeId = "";
var streamFourId = "";
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var playerInfoList = [{
id: 'player1',
height: '390',
width: '640',
videoId: 'KoFG2tVbLzQ'
}, {
id: 'player2',
height: '390',
width: '640',
videoId: 'tBQ0cWSSThg'
}, {
id: 'player3',
height: '390',
width: '640',
videoId: '-eJZTEC0rqA'
}, {
id: 'player4',
height: '390',
width: '640',
videoId: 'anG5CLX2tpY'
}];
function onYouTubeIframeAPIReady() {
if (typeof playerInfoList === 'undefined') return;
for (var i = 0; i < playerInfoList.length; i++) {
var curplayer = createPlayer(playerInfoList[i]);
players[i] = curplayer;
}
}
var players = new Array();
function createPlayer(playerInfo) {
return new YT.Player(playerInfo.id, {
height: playerInfo.height,
width: playerInfo.width,
videoId: playerInfo.videoId,
});
}
$(document).ready(function () {
$('#stop').click(function () {
//loop players array to stop them all
$(players).each(function (i) {
console.log(this);
this.stopVideo();
});
});
});
function _scrollTo(nr) {
var id = "player" + nr;
console.log(id);
zenscroll.to(document.getElementById(id));
}
</script>
</body>
</html>