aboutsummaryrefslogtreecommitdiff
path: root/assets/js/lustiges-script.js
diff options
context:
space:
mode:
authorMaZderMind2014-10-19 12:12:20 +0200
committerMaZderMind2014-10-19 12:12:20 +0200
commitf652ae2be38e74796ed63ba72e23fcb632818118 (patch)
treefac87e88a3928b789c0d9b7f4a9a2ac5b6cbb77e /assets/js/lustiges-script.js
parentc2f7758004a9016910168ad47c1a4300e107f2c2 (diff)
restructure room site to produce a unique room/player/formats page
Diffstat (limited to '')
-rw-r--r--assets/js/lustiges-script.js39
1 files changed, 39 insertions, 0 deletions
diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js
new file mode 100644
index 0000000..a01e510
--- /dev/null
+++ b/assets/js/lustiges-script.js
@@ -0,0 +1,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);
+*/
+});