From 51800443e8d9f465f015fef04a2edfca27e3449d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Fern=C3=A1ndez?= Date: Tue, 27 Nov 2018 19:07:45 +0100 Subject: [PATCH] Create extra.js --- docs/extra.js | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 docs/extra.js diff --git a/docs/extra.js b/docs/extra.js new file mode 100644 index 00000000..5094a3f5 --- /dev/null +++ b/docs/extra.js @@ -0,0 +1,55 @@ +(function() { + //var stopPlayAt = 33, // Stop play at time in seconds //Mike Oldfield - The Top Of The Morning + //var stopPlayAt = 21, // Stop play at time in seconds // Chariots of Fire Theme • Vangelis + var stopPlayAt = 35, // Stop play at time in seconds // Jan Hammer - Crockett's Theme + stopPlayTimer; // Reference to settimeout call + + // This code loads the IFrame Player API code asynchronously. + var tag = document.createElement("script"); + tag.src = "//www.youtube.com/iframe_api"; + var firstScriptTag = document.getElementsByTagName("script")[0]; + firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); + + // This function creates an