aboutsummaryrefslogtreecommitdiff
path: root/assets/js/lustiges-script.js
diff options
context:
space:
mode:
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);
+*/
+});