More work on the menu

This commit is contained in:
Sam Potts
2017-05-22 08:55:45 +10:00
parent 857dfe838c
commit 86c9004183
7 changed files with 134 additions and 94 deletions

2
demo/dist/demo.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,12 +1,11 @@
// ==========================================================================
// Plyr.io demo
// This code is purely for the plyr.io website
// This code is purely for the https://plyr.io website
// Please see readme.md in the root or github.com/sampotts/plyr
// ==========================================================================
/*global Plyr*/
// General functions
(function() {
/*document.body.addEventListener('ready', function(event) {
console.log(event);
@ -186,15 +185,16 @@
})();
// Google analytics
// For demo site (http://[www.]plyr.io) only
if (document.domain.indexOf('plyr.io') > -1) {
// For demo site (https://plyr.io) only
if (window.location.host === 'plyr.io') {
(function(i, s, o, g, r, a, m) {
i.GoogleAnalyticsObject = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
};
i[r].l = 1 * new Date();
a = s.createElement(o);
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)