aboutsummaryrefslogtreecommitdiff
path: root/assets/js/lustiges-script.js
blob: 85f7cfb3d30c7f7bab18311c30b5f37d166e68d3 (plain)
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
$(function() {

	$('video').mediaelementplayer({
		usePluginFullScreen: true,

		pluginPath: 'assets/js/lib/',
		enableAutosize: true,
		features: ['playpause', 'volume','fullscreen'],

		success: function (mediaElement) {
			/*
			mediaElement.addEventListener('playing', function () {
				$.post("http://api.media.ccc.de/public/recordings/count", {event_id: 1609,src: mediaElement.src});
			}, false);
			*/
		}
	});
	$('audio').mediaelementplayer();

/*
	// activate tab via hash and default to video
	function setTabToHash() {
		var activeTab = $('.nav-tabs a[href=' + window.location.hash + ']').tab('show');

		if (activeTab.length === 0) {
			window.location.hash = '#video';
		}
	}
	setTabToHash();


	// change hash on tab change
	$('.nav-tabs').on('shown.bs.tab', 'a', function (e) {
		window.location.hash = e.target.hash;
	});

	// adjust tabs when hash changes
	$(window).on('hashchange', setTabToHash);
*/
});