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

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

		pluginPath: '/assets/js/lib/',
		enableAutosize: true,

		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);
*/
});