spec defined properties
+ */
+
+ // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#text-track-cue-display-state
+ cue.displayState = undefined;
+
+ if (isIE8) {
+ return cue;
+ }
+ }
+
+ /**
+ * VTTCue methods
+ */
+
+ VTTCue.prototype.getCueAsHTML = function() {
+ // Assume WebVTT.convertCueToDOMTree is on the global.
+ return WebVTT.convertCueToDOMTree(window, this.text);
+ };
+
+ root.VTTCue = root.VTTCue || VTTCue;
+ vttjs.VTTCue = VTTCue;
+}(this, (this.vttjs || {})));
+
+/**
+ * Copyright 2013 vtt.js Contributors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, vttjs) {
+
+ var scrollSetting = {
+ "": true,
+ "up": true,
+ };
+
+ function findScrollSetting(value) {
+ if (typeof value !== "string") {
+ return false;
+ }
+ var scroll = scrollSetting[value.toLowerCase()];
+ return scroll ? value.toLowerCase() : false;
+ }
+
+ function isValidPercentValue(value) {
+ return typeof value === "number" && (value >= 0 && value <= 100);
+ }
+
+ // VTTRegion shim http://dev.w3.org/html5/webvtt/#vttregion-interface
+ function VTTRegion() {
+ var _width = 100;
+ var _lines = 3;
+ var _regionAnchorX = 0;
+ var _regionAnchorY = 100;
+ var _viewportAnchorX = 0;
+ var _viewportAnchorY = 100;
+ var _scroll = "";
+
+ Object.defineProperties(this, {
+ "width": {
+ enumerable: true,
+ get: function() {
+ return _width;
+ },
+ set: function(value) {
+ if (!isValidPercentValue(value)) {
+ throw new Error("Width must be between 0 and 100.");
+ }
+ _width = value;
+ }
+ },
+ "lines": {
+ enumerable: true,
+ get: function() {
+ return _lines;
+ },
+ set: function(value) {
+ if (typeof value !== "number") {
+ throw new TypeError("Lines must be set to a number.");
+ }
+ _lines = value;
+ }
+ },
+ "regionAnchorY": {
+ enumerable: true,
+ get: function() {
+ return _regionAnchorY;
+ },
+ set: function(value) {
+ if (!isValidPercentValue(value)) {
+ throw new Error("RegionAnchorX must be between 0 and 100.");
+ }
+ _regionAnchorY = value;
+ }
+ },
+ "regionAnchorX": {
+ enumerable: true,
+ get: function() {
+ return _regionAnchorX;
+ },
+ set: function(value) {
+ if(!isValidPercentValue(value)) {
+ throw new Error("RegionAnchorY must be between 0 and 100.");
+ }
+ _regionAnchorX = value;
+ }
+ },
+ "viewportAnchorY": {
+ enumerable: true,
+ get: function() {
+ return _viewportAnchorY;
+ },
+ set: function(value) {
+ if (!isValidPercentValue(value)) {
+ throw new Error("ViewportAnchorY must be between 0 and 100.");
+ }
+ _viewportAnchorY = value;
+ }
+ },
+ "viewportAnchorX": {
+ enumerable: true,
+ get: function() {
+ return _viewportAnchorX;
+ },
+ set: function(value) {
+ if (!isValidPercentValue(value)) {
+ throw new Error("ViewportAnchorX must be between 0 and 100.");
+ }
+ _viewportAnchorX = value;
+ }
+ },
+ "scroll": {
+ enumerable: true,
+ get: function() {
+ return _scroll;
+ },
+ set: function(value) {
+ var setting = findScrollSetting(value);
+ // Have to check for false as an empty string is a legal value.
+ if (setting === false) {
+ throw new SyntaxError("An invalid or illegal string was specified.");
+ }
+ _scroll = setting;
+ }
+ }
+ });
+ }
+
+ root.VTTRegion = root.VTTRegion || VTTRegion;
+ vttjs.VTTRegion = VTTRegion;
+}(this, (this.vttjs || {})));
+
+/**
+ * Copyright 2013 vtt.js Contributors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
+
+(function(global) {
+
+ var _objCreate = Object.create || (function() {
+ function F() {}
+ return function(o) {
+ if (arguments.length !== 1) {
+ throw new Error('Object.create shim only accepts one parameter.');
+ }
+ F.prototype = o;
+ return new F();
+ };
+ })();
+
+ // Creates a new ParserError object from an errorData object. The errorData
+ // object should have default code and message properties. The default message
+ // property can be overriden by passing in a message parameter.
+ // See ParsingError.Errors below for acceptable errors.
+ function ParsingError(errorData, message) {
+ this.name = "ParsingError";
+ this.code = errorData.code;
+ this.message = message || errorData.message;
+ }
+ ParsingError.prototype = _objCreate(Error.prototype);
+ ParsingError.prototype.constructor = ParsingError;
+
+ // ParsingError metadata for acceptable ParsingErrors.
+ ParsingError.Errors = {
+ BadSignature: {
+ code: 0,
+ message: "Malformed WebVTT signature."
+ },
+ BadTimeStamp: {
+ code: 1,
+ message: "Malformed time stamp."
+ }
+ };
+
+ // Try to parse input as a time stamp.
+ function parseTimeStamp(input) {
+
+ function computeSeconds(h, m, s, f) {
+ return (h | 0) * 3600 + (m | 0) * 60 + (s | 0) + (f | 0) / 1000;
+ }
+
+ var m = input.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);
+ if (!m) {
+ return null;
+ }
+
+ if (m[3]) {
+ // Timestamp takes the form of [hours]:[minutes]:[seconds].[milliseconds]
+ return computeSeconds(m[1], m[2], m[3].replace(":", ""), m[4]);
+ } else if (m[1] > 59) {
+ // Timestamp takes the form of [hours]:[minutes].[milliseconds]
+ // First position is hours as it's over 59.
+ return computeSeconds(m[1], m[2], 0, m[4]);
+ } else {
+ // Timestamp takes the form of [minutes]:[seconds].[milliseconds]
+ return computeSeconds(0, m[1], m[2], m[4]);
+ }
+ }
+
+ // A settings object holds key/value pairs and will ignore anything but the first
+ // assignment to a specific key.
+ function Settings() {
+ this.values = _objCreate(null);
+ }
+
+ Settings.prototype = {
+ // Only accept the first assignment to any key.
+ set: function(k, v) {
+ if (!this.get(k) && v !== "") {
+ this.values[k] = v;
+ }
+ },
+ // Return the value for a key, or a default value.
+ // If 'defaultKey' is passed then 'dflt' is assumed to be an object with
+ // a number of possible default values as properties where 'defaultKey' is
+ // the key of the property that will be chosen; otherwise it's assumed to be
+ // a single value.
+ get: function(k, dflt, defaultKey) {
+ if (defaultKey) {
+ return this.has(k) ? this.values[k] : dflt[defaultKey];
+ }
+ return this.has(k) ? this.values[k] : dflt;
+ },
+ // Check whether we have a value for a key.
+ has: function(k) {
+ return k in this.values;
+ },
+ // Accept a setting if its one of the given alternatives.
+ alt: function(k, v, a) {
+ for (var n = 0; n < a.length; ++n) {
+ if (v === a[n]) {
+ this.set(k, v);
+ break;
+ }
+ }
+ },
+ // Accept a setting if its a valid (signed) integer.
+ integer: function(k, v) {
+ if (/^-?\d+$/.test(v)) { // integer
+ this.set(k, parseInt(v, 10));
+ }
+ },
+ // Accept a setting if its a valid percentage.
+ percent: function(k, v) {
+ var m;
+ if ((m = v.match(/^([\d]{1,3})(\.[\d]*)?%$/))) {
+ v = parseFloat(v);
+ if (v >= 0 && v <= 100) {
+ this.set(k, v);
+ return true;
+ }
+ }
+ return false;
+ }
+ };
+
+ // Helper function to parse input into groups separated by 'groupDelim', and
+ // interprete each group as a key/value pair separated by 'keyValueDelim'.
+ function parseOptions(input, callback, keyValueDelim, groupDelim) {
+ var groups = groupDelim ? input.split(groupDelim) : [input];
+ for (var i in groups) {
+ if (typeof groups[i] !== "string") {
+ continue;
+ }
+ var kv = groups[i].split(keyValueDelim);
+ if (kv.length !== 2) {
+ continue;
+ }
+ var k = kv[0];
+ var v = kv[1];
+ callback(k, v);
+ }
+ }
+
+ function parseCue(input, cue, regionList) {
+ // Remember the original input if we need to throw an error.
+ var oInput = input;
+ // 4.1 WebVTT timestamp
+ function consumeTimeStamp() {
+ var ts = parseTimeStamp(input);
+ if (ts === null) {
+ throw new ParsingError(ParsingError.Errors.BadTimeStamp,
+ "Malformed timestamp: " + oInput);
+ }
+ // Remove time stamp from input.
+ input = input.replace(/^[^\sa-zA-Z-]+/, "");
+ return ts;
+ }
+
+ // 4.4.2 WebVTT cue settings
+ function consumeCueSettings(input, cue) {
+ var settings = new Settings();
+
+ parseOptions(input, function (k, v) {
+ switch (k) {
+ case "region":
+ // Find the last region we parsed with the same region id.
+ for (var i = regionList.length - 1; i >= 0; i--) {
+ if (regionList[i].id === v) {
+ settings.set(k, regionList[i].region);
+ break;
+ }
+ }
+ break;
+ case "vertical":
+ settings.alt(k, v, ["rl", "lr"]);
+ break;
+ case "line":
+ var vals = v.split(","),
+ vals0 = vals[0];
+ settings.integer(k, vals0);
+ settings.percent(k, vals0) ? settings.set("snapToLines", false) : null;
+ settings.alt(k, vals0, ["auto"]);
+ if (vals.length === 2) {
+ settings.alt("lineAlign", vals[1], ["start", "middle", "end"]);
+ }
+ break;
+ case "position":
+ vals = v.split(",");
+ settings.percent(k, vals[0]);
+ if (vals.length === 2) {
+ settings.alt("positionAlign", vals[1], ["start", "middle", "end"]);
+ }
+ break;
+ case "size":
+ settings.percent(k, v);
+ break;
+ case "align":
+ settings.alt(k, v, ["start", "middle", "end", "left", "right"]);
+ break;
+ }
+ }, /:/, /\s/);
+
+ // Apply default values for any missing fields.
+ cue.region = settings.get("region", null);
+ cue.vertical = settings.get("vertical", "");
+ cue.line = settings.get("line", "auto");
+ cue.lineAlign = settings.get("lineAlign", "start");
+ cue.snapToLines = settings.get("snapToLines", true);
+ cue.size = settings.get("size", 100);
+ cue.align = settings.get("align", "middle");
+ cue.position = settings.get("position", {
+ start: 0,
+ left: 0,
+ middle: 50,
+ end: 100,
+ right: 100
+ }, cue.align);
+ cue.positionAlign = settings.get("positionAlign", {
+ start: "start",
+ left: "start",
+ middle: "middle",
+ end: "end",
+ right: "end"
+ }, cue.align);
+ }
+
+ function skipWhitespace() {
+ input = input.replace(/^\s+/, "");
+ }
+
+ // 4.1 WebVTT cue timings.
+ skipWhitespace();
+ cue.startTime = consumeTimeStamp(); // (1) collect cue start time
+ skipWhitespace();
+ if (input.substr(0, 3) !== "-->") { // (3) next characters must match "-->"
+ throw new ParsingError(ParsingError.Errors.BadTimeStamp,
+ "Malformed time stamp (time stamps must be separated by '-->'): " +
+ oInput);
+ }
+ input = input.substr(3);
+ skipWhitespace();
+ cue.endTime = consumeTimeStamp(); // (5) collect cue end time
+
+ // 4.1 WebVTT cue settings list.
+ skipWhitespace();
+ consumeCueSettings(input, cue);
+ }
+
+ var ESCAPE = {
+ "&": "&",
+ "<": "<",
+ ">": ">",
+ "": "\u200e",
+ "": "\u200f",
+ " ": "\u00a0"
+ };
+
+ var TAG_NAME = {
+ c: "span",
+ i: "i",
+ b: "b",
+ u: "u",
+ ruby: "ruby",
+ rt: "rt",
+ v: "span",
+ lang: "span"
+ };
+
+ var TAG_ANNOTATION = {
+ v: "title",
+ lang: "lang"
+ };
+
+ var NEEDS_PARENT = {
+ rt: "ruby"
+ };
+
+ // Parse content into a document fragment.
+ function parseContent(window, input) {
+ function nextToken() {
+ // Check for end-of-string.
+ if (!input) {
+ return null;
+ }
+
+ // Consume 'n' characters from the input.
+ function consume(result) {
+ input = input.substr(result.length);
+ return result;
+ }
+
+ var m = input.match(/^([^<]*)(<[^>]+>?)?/);
+ // If there is some text before the next tag, return it, otherwise return
+ // the tag.
+ return consume(m[1] ? m[1] : m[2]);
+ }
+
+ // Unescape a string 's'.
+ function unescape1(e) {
+ return ESCAPE[e];
+ }
+ function unescape(s) {
+ while ((m = s.match(/&(amp|lt|gt|lrm|rlm|nbsp);/))) {
+ s = s.replace(m[0], unescape1);
+ }
+ return s;
+ }
+
+ function shouldAdd(current, element) {
+ return !NEEDS_PARENT[element.localName] ||
+ NEEDS_PARENT[element.localName] === current.localName;
+ }
+
+ // Create an element for this tag.
+ function createElement(type, annotation) {
+ var tagName = TAG_NAME[type];
+ if (!tagName) {
+ return null;
+ }
+ var element = window.document.createElement(tagName);
+ element.localName = tagName;
+ var name = TAG_ANNOTATION[type];
+ if (name && annotation) {
+ element[name] = annotation.trim();
+ }
+ return element;
+ }
+
+ var rootDiv = window.document.createElement("div"),
+ current = rootDiv,
+ t,
+ tagStack = [];
+
+ while ((t = nextToken()) !== null) {
+ if (t[0] === '<') {
+ if (t[1] === "/") {
+ // If the closing tag matches, move back up to the parent node.
+ if (tagStack.length &&
+ tagStack[tagStack.length - 1] === t.substr(2).replace(">", "")) {
+ tagStack.pop();
+ current = current.parentNode;
+ }
+ // Otherwise just ignore the end tag.
+ continue;
+ }
+ var ts = parseTimeStamp(t.substr(1, t.length - 2));
+ var node;
+ if (ts) {
+ // Timestamps are lead nodes as well.
+ node = window.document.createProcessingInstruction("timestamp", ts);
+ current.appendChild(node);
+ continue;
+ }
+ var m = t.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);
+ // If we can't parse the tag, skip to the next tag.
+ if (!m) {
+ continue;
+ }
+ // Try to construct an element, and ignore the tag if we couldn't.
+ node = createElement(m[1], m[3]);
+ if (!node) {
+ continue;
+ }
+ // Determine if the tag should be added based on the context of where it
+ // is placed in the cuetext.
+ if (!shouldAdd(current, node)) {
+ continue;
+ }
+ // Set the class list (as a list of classes, separated by space).
+ if (m[2]) {
+ node.className = m[2].substr(1).replace('.', ' ');
+ }
+ // Append the node to the current node, and enter the scope of the new
+ // node.
+ tagStack.push(m[1]);
+ current.appendChild(node);
+ current = node;
+ continue;
+ }
+
+ // Text nodes are leaf nodes.
+ current.appendChild(window.document.createTextNode(unescape(t)));
+ }
+
+ return rootDiv;
+ }
+
+ // This is a list of all the Unicode characters that have a strong
+ // right-to-left category. What this means is that these characters are
+ // written right-to-left for sure. It was generated by pulling all the strong
+ // right-to-left characters out of the Unicode data table. That table can
+ // found at: http://www.unicode.org/Public/UNIDATA/UnicodeData.txt
+ var strongRTLChars = [0x05BE, 0x05C0, 0x05C3, 0x05C6, 0x05D0, 0x05D1,
+ 0x05D2, 0x05D3, 0x05D4, 0x05D5, 0x05D6, 0x05D7, 0x05D8, 0x05D9, 0x05DA,
+ 0x05DB, 0x05DC, 0x05DD, 0x05DE, 0x05DF, 0x05E0, 0x05E1, 0x05E2, 0x05E3,
+ 0x05E4, 0x05E5, 0x05E6, 0x05E7, 0x05E8, 0x05E9, 0x05EA, 0x05F0, 0x05F1,
+ 0x05F2, 0x05F3, 0x05F4, 0x0608, 0x060B, 0x060D, 0x061B, 0x061E, 0x061F,
+ 0x0620, 0x0621, 0x0622, 0x0623, 0x0624, 0x0625, 0x0626, 0x0627, 0x0628,
+ 0x0629, 0x062A, 0x062B, 0x062C, 0x062D, 0x062E, 0x062F, 0x0630, 0x0631,
+ 0x0632, 0x0633, 0x0634, 0x0635, 0x0636, 0x0637, 0x0638, 0x0639, 0x063A,
+ 0x063B, 0x063C, 0x063D, 0x063E, 0x063F, 0x0640, 0x0641, 0x0642, 0x0643,
+ 0x0644, 0x0645, 0x0646, 0x0647, 0x0648, 0x0649, 0x064A, 0x066D, 0x066E,
+ 0x066F, 0x0671, 0x0672, 0x0673, 0x0674, 0x0675, 0x0676, 0x0677, 0x0678,
+ 0x0679, 0x067A, 0x067B, 0x067C, 0x067D, 0x067E, 0x067F, 0x0680, 0x0681,
+ 0x0682, 0x0683, 0x0684, 0x0685, 0x0686, 0x0687, 0x0688, 0x0689, 0x068A,
+ 0x068B, 0x068C, 0x068D, 0x068E, 0x068F, 0x0690, 0x0691, 0x0692, 0x0693,
+ 0x0694, 0x0695, 0x0696, 0x0697, 0x0698, 0x0699, 0x069A, 0x069B, 0x069C,
+ 0x069D, 0x069E, 0x069F, 0x06A0, 0x06A1, 0x06A2, 0x06A3, 0x06A4, 0x06A5,
+ 0x06A6, 0x06A7, 0x06A8, 0x06A9, 0x06AA, 0x06AB, 0x06AC, 0x06AD, 0x06AE,
+ 0x06AF, 0x06B0, 0x06B1, 0x06B2, 0x06B3, 0x06B4, 0x06B5, 0x06B6, 0x06B7,
+ 0x06B8, 0x06B9, 0x06BA, 0x06BB, 0x06BC, 0x06BD, 0x06BE, 0x06BF, 0x06C0,
+ 0x06C1, 0x06C2, 0x06C3, 0x06C4, 0x06C5, 0x06C6, 0x06C7, 0x06C8, 0x06C9,
+ 0x06CA, 0x06CB, 0x06CC, 0x06CD, 0x06CE, 0x06CF, 0x06D0, 0x06D1, 0x06D2,
+ 0x06D3, 0x06D4, 0x06D5, 0x06E5, 0x06E6, 0x06EE, 0x06EF, 0x06FA, 0x06FB,
+ 0x06FC, 0x06FD, 0x06FE, 0x06FF, 0x0700, 0x0701, 0x0702, 0x0703, 0x0704,
+ 0x0705, 0x0706, 0x0707, 0x0708, 0x0709, 0x070A, 0x070B, 0x070C, 0x070D,
+ 0x070F, 0x0710, 0x0712, 0x0713, 0x0714, 0x0715, 0x0716, 0x0717, 0x0718,
+ 0x0719, 0x071A, 0x071B, 0x071C, 0x071D, 0x071E, 0x071F, 0x0720, 0x0721,
+ 0x0722, 0x0723, 0x0724, 0x0725, 0x0726, 0x0727, 0x0728, 0x0729, 0x072A,
+ 0x072B, 0x072C, 0x072D, 0x072E, 0x072F, 0x074D, 0x074E, 0x074F, 0x0750,
+ 0x0751, 0x0752, 0x0753, 0x0754, 0x0755, 0x0756, 0x0757, 0x0758, 0x0759,
+ 0x075A, 0x075B, 0x075C, 0x075D, 0x075E, 0x075F, 0x0760, 0x0761, 0x0762,
+ 0x0763, 0x0764, 0x0765, 0x0766, 0x0767, 0x0768, 0x0769, 0x076A, 0x076B,
+ 0x076C, 0x076D, 0x076E, 0x076F, 0x0770, 0x0771, 0x0772, 0x0773, 0x0774,
+ 0x0775, 0x0776, 0x0777, 0x0778, 0x0779, 0x077A, 0x077B, 0x077C, 0x077D,
+ 0x077E, 0x077F, 0x0780, 0x0781, 0x0782, 0x0783, 0x0784, 0x0785, 0x0786,
+ 0x0787, 0x0788, 0x0789, 0x078A, 0x078B, 0x078C, 0x078D, 0x078E, 0x078F,
+ 0x0790, 0x0791, 0x0792, 0x0793, 0x0794, 0x0795, 0x0796, 0x0797, 0x0798,
+ 0x0799, 0x079A, 0x079B, 0x079C, 0x079D, 0x079E, 0x079F, 0x07A0, 0x07A1,
+ 0x07A2, 0x07A3, 0x07A4, 0x07A5, 0x07B1, 0x07C0, 0x07C1, 0x07C2, 0x07C3,
+ 0x07C4, 0x07C5, 0x07C6, 0x07C7, 0x07C8, 0x07C9, 0x07CA, 0x07CB, 0x07CC,
+ 0x07CD, 0x07CE, 0x07CF, 0x07D0, 0x07D1, 0x07D2, 0x07D3, 0x07D4, 0x07D5,
+ 0x07D6, 0x07D7, 0x07D8, 0x07D9, 0x07DA, 0x07DB, 0x07DC, 0x07DD, 0x07DE,
+ 0x07DF, 0x07E0, 0x07E1, 0x07E2, 0x07E3, 0x07E4, 0x07E5, 0x07E6, 0x07E7,
+ 0x07E8, 0x07E9, 0x07EA, 0x07F4, 0x07F5, 0x07FA, 0x0800, 0x0801, 0x0802,
+ 0x0803, 0x0804, 0x0805, 0x0806, 0x0807, 0x0808, 0x0809, 0x080A, 0x080B,
+ 0x080C, 0x080D, 0x080E, 0x080F, 0x0810, 0x0811, 0x0812, 0x0813, 0x0814,
+ 0x0815, 0x081A, 0x0824, 0x0828, 0x0830, 0x0831, 0x0832, 0x0833, 0x0834,
+ 0x0835, 0x0836, 0x0837, 0x0838, 0x0839, 0x083A, 0x083B, 0x083C, 0x083D,
+ 0x083E, 0x0840, 0x0841, 0x0842, 0x0843, 0x0844, 0x0845, 0x0846, 0x0847,
+ 0x0848, 0x0849, 0x084A, 0x084B, 0x084C, 0x084D, 0x084E, 0x084F, 0x0850,
+ 0x0851, 0x0852, 0x0853, 0x0854, 0x0855, 0x0856, 0x0857, 0x0858, 0x085E,
+ 0x08A0, 0x08A2, 0x08A3, 0x08A4, 0x08A5, 0x08A6, 0x08A7, 0x08A8, 0x08A9,
+ 0x08AA, 0x08AB, 0x08AC, 0x200F, 0xFB1D, 0xFB1F, 0xFB20, 0xFB21, 0xFB22,
+ 0xFB23, 0xFB24, 0xFB25, 0xFB26, 0xFB27, 0xFB28, 0xFB2A, 0xFB2B, 0xFB2C,
+ 0xFB2D, 0xFB2E, 0xFB2F, 0xFB30, 0xFB31, 0xFB32, 0xFB33, 0xFB34, 0xFB35,
+ 0xFB36, 0xFB38, 0xFB39, 0xFB3A, 0xFB3B, 0xFB3C, 0xFB3E, 0xFB40, 0xFB41,
+ 0xFB43, 0xFB44, 0xFB46, 0xFB47, 0xFB48, 0xFB49, 0xFB4A, 0xFB4B, 0xFB4C,
+ 0xFB4D, 0xFB4E, 0xFB4F, 0xFB50, 0xFB51, 0xFB52, 0xFB53, 0xFB54, 0xFB55,
+ 0xFB56, 0xFB57, 0xFB58, 0xFB59, 0xFB5A, 0xFB5B, 0xFB5C, 0xFB5D, 0xFB5E,
+ 0xFB5F, 0xFB60, 0xFB61, 0xFB62, 0xFB63, 0xFB64, 0xFB65, 0xFB66, 0xFB67,
+ 0xFB68, 0xFB69, 0xFB6A, 0xFB6B, 0xFB6C, 0xFB6D, 0xFB6E, 0xFB6F, 0xFB70,
+ 0xFB71, 0xFB72, 0xFB73, 0xFB74, 0xFB75, 0xFB76, 0xFB77, 0xFB78, 0xFB79,
+ 0xFB7A, 0xFB7B, 0xFB7C, 0xFB7D, 0xFB7E, 0xFB7F, 0xFB80, 0xFB81, 0xFB82,
+ 0xFB83, 0xFB84, 0xFB85, 0xFB86, 0xFB87, 0xFB88, 0xFB89, 0xFB8A, 0xFB8B,
+ 0xFB8C, 0xFB8D, 0xFB8E, 0xFB8F, 0xFB90, 0xFB91, 0xFB92, 0xFB93, 0xFB94,
+ 0xFB95, 0xFB96, 0xFB97, 0xFB98, 0xFB99, 0xFB9A, 0xFB9B, 0xFB9C, 0xFB9D,
+ 0xFB9E, 0xFB9F, 0xFBA0, 0xFBA1, 0xFBA2, 0xFBA3, 0xFBA4, 0xFBA5, 0xFBA6,
+ 0xFBA7, 0xFBA8, 0xFBA9, 0xFBAA, 0xFBAB, 0xFBAC, 0xFBAD, 0xFBAE, 0xFBAF,
+ 0xFBB0, 0xFBB1, 0xFBB2, 0xFBB3, 0xFBB4, 0xFBB5, 0xFBB6, 0xFBB7, 0xFBB8,
+ 0xFBB9, 0xFBBA, 0xFBBB, 0xFBBC, 0xFBBD, 0xFBBE, 0xFBBF, 0xFBC0, 0xFBC1,
+ 0xFBD3, 0xFBD4, 0xFBD5, 0xFBD6, 0xFBD7, 0xFBD8, 0xFBD9, 0xFBDA, 0xFBDB,
+ 0xFBDC, 0xFBDD, 0xFBDE, 0xFBDF, 0xFBE0, 0xFBE1, 0xFBE2, 0xFBE3, 0xFBE4,
+ 0xFBE5, 0xFBE6, 0xFBE7, 0xFBE8, 0xFBE9, 0xFBEA, 0xFBEB, 0xFBEC, 0xFBED,
+ 0xFBEE, 0xFBEF, 0xFBF0, 0xFBF1, 0xFBF2, 0xFBF3, 0xFBF4, 0xFBF5, 0xFBF6,
+ 0xFBF7, 0xFBF8, 0xFBF9, 0xFBFA, 0xFBFB, 0xFBFC, 0xFBFD, 0xFBFE, 0xFBFF,
+ 0xFC00, 0xFC01, 0xFC02, 0xFC03, 0xFC04, 0xFC05, 0xFC06, 0xFC07, 0xFC08,
+ 0xFC09, 0xFC0A, 0xFC0B, 0xFC0C, 0xFC0D, 0xFC0E, 0xFC0F, 0xFC10, 0xFC11,
+ 0xFC12, 0xFC13, 0xFC14, 0xFC15, 0xFC16, 0xFC17, 0xFC18, 0xFC19, 0xFC1A,
+ 0xFC1B, 0xFC1C, 0xFC1D, 0xFC1E, 0xFC1F, 0xFC20, 0xFC21, 0xFC22, 0xFC23,
+ 0xFC24, 0xFC25, 0xFC26, 0xFC27, 0xFC28, 0xFC29, 0xFC2A, 0xFC2B, 0xFC2C,
+ 0xFC2D, 0xFC2E, 0xFC2F, 0xFC30, 0xFC31, 0xFC32, 0xFC33, 0xFC34, 0xFC35,
+ 0xFC36, 0xFC37, 0xFC38, 0xFC39, 0xFC3A, 0xFC3B, 0xFC3C, 0xFC3D, 0xFC3E,
+ 0xFC3F, 0xFC40, 0xFC41, 0xFC42, 0xFC43, 0xFC44, 0xFC45, 0xFC46, 0xFC47,
+ 0xFC48, 0xFC49, 0xFC4A, 0xFC4B, 0xFC4C, 0xFC4D, 0xFC4E, 0xFC4F, 0xFC50,
+ 0xFC51, 0xFC52, 0xFC53, 0xFC54, 0xFC55, 0xFC56, 0xFC57, 0xFC58, 0xFC59,
+ 0xFC5A, 0xFC5B, 0xFC5C, 0xFC5D, 0xFC5E, 0xFC5F, 0xFC60, 0xFC61, 0xFC62,
+ 0xFC63, 0xFC64, 0xFC65, 0xFC66, 0xFC67, 0xFC68, 0xFC69, 0xFC6A, 0xFC6B,
+ 0xFC6C, 0xFC6D, 0xFC6E, 0xFC6F, 0xFC70, 0xFC71, 0xFC72, 0xFC73, 0xFC74,
+ 0xFC75, 0xFC76, 0xFC77, 0xFC78, 0xFC79, 0xFC7A, 0xFC7B, 0xFC7C, 0xFC7D,
+ 0xFC7E, 0xFC7F, 0xFC80, 0xFC81, 0xFC82, 0xFC83, 0xFC84, 0xFC85, 0xFC86,
+ 0xFC87, 0xFC88, 0xFC89, 0xFC8A, 0xFC8B, 0xFC8C, 0xFC8D, 0xFC8E, 0xFC8F,
+ 0xFC90, 0xFC91, 0xFC92, 0xFC93, 0xFC94, 0xFC95, 0xFC96, 0xFC97, 0xFC98,
+ 0xFC99, 0xFC9A, 0xFC9B, 0xFC9C, 0xFC9D, 0xFC9E, 0xFC9F, 0xFCA0, 0xFCA1,
+ 0xFCA2, 0xFCA3, 0xFCA4, 0xFCA5, 0xFCA6, 0xFCA7, 0xFCA8, 0xFCA9, 0xFCAA,
+ 0xFCAB, 0xFCAC, 0xFCAD, 0xFCAE, 0xFCAF, 0xFCB0, 0xFCB1, 0xFCB2, 0xFCB3,
+ 0xFCB4, 0xFCB5, 0xFCB6, 0xFCB7, 0xFCB8, 0xFCB9, 0xFCBA, 0xFCBB, 0xFCBC,
+ 0xFCBD, 0xFCBE, 0xFCBF, 0xFCC0, 0xFCC1, 0xFCC2, 0xFCC3, 0xFCC4, 0xFCC5,
+ 0xFCC6, 0xFCC7, 0xFCC8, 0xFCC9, 0xFCCA, 0xFCCB, 0xFCCC, 0xFCCD, 0xFCCE,
+ 0xFCCF, 0xFCD0, 0xFCD1, 0xFCD2, 0xFCD3, 0xFCD4, 0xFCD5, 0xFCD6, 0xFCD7,
+ 0xFCD8, 0xFCD9, 0xFCDA, 0xFCDB, 0xFCDC, 0xFCDD, 0xFCDE, 0xFCDF, 0xFCE0,
+ 0xFCE1, 0xFCE2, 0xFCE3, 0xFCE4, 0xFCE5, 0xFCE6, 0xFCE7, 0xFCE8, 0xFCE9,
+ 0xFCEA, 0xFCEB, 0xFCEC, 0xFCED, 0xFCEE, 0xFCEF, 0xFCF0, 0xFCF1, 0xFCF2,
+ 0xFCF3, 0xFCF4, 0xFCF5, 0xFCF6, 0xFCF7, 0xFCF8, 0xFCF9, 0xFCFA, 0xFCFB,
+ 0xFCFC, 0xFCFD, 0xFCFE, 0xFCFF, 0xFD00, 0xFD01, 0xFD02, 0xFD03, 0xFD04,
+ 0xFD05, 0xFD06, 0xFD07, 0xFD08, 0xFD09, 0xFD0A, 0xFD0B, 0xFD0C, 0xFD0D,
+ 0xFD0E, 0xFD0F, 0xFD10, 0xFD11, 0xFD12, 0xFD13, 0xFD14, 0xFD15, 0xFD16,
+ 0xFD17, 0xFD18, 0xFD19, 0xFD1A, 0xFD1B, 0xFD1C, 0xFD1D, 0xFD1E, 0xFD1F,
+ 0xFD20, 0xFD21, 0xFD22, 0xFD23, 0xFD24, 0xFD25, 0xFD26, 0xFD27, 0xFD28,
+ 0xFD29, 0xFD2A, 0xFD2B, 0xFD2C, 0xFD2D, 0xFD2E, 0xFD2F, 0xFD30, 0xFD31,
+ 0xFD32, 0xFD33, 0xFD34, 0xFD35, 0xFD36, 0xFD37, 0xFD38, 0xFD39, 0xFD3A,
+ 0xFD3B, 0xFD3C, 0xFD3D, 0xFD50, 0xFD51, 0xFD52, 0xFD53, 0xFD54, 0xFD55,
+ 0xFD56, 0xFD57, 0xFD58, 0xFD59, 0xFD5A, 0xFD5B, 0xFD5C, 0xFD5D, 0xFD5E,
+ 0xFD5F, 0xFD60, 0xFD61, 0xFD62, 0xFD63, 0xFD64, 0xFD65, 0xFD66, 0xFD67,
+ 0xFD68, 0xFD69, 0xFD6A, 0xFD6B, 0xFD6C, 0xFD6D, 0xFD6E, 0xFD6F, 0xFD70,
+ 0xFD71, 0xFD72, 0xFD73, 0xFD74, 0xFD75, 0xFD76, 0xFD77, 0xFD78, 0xFD79,
+ 0xFD7A, 0xFD7B, 0xFD7C, 0xFD7D, 0xFD7E, 0xFD7F, 0xFD80, 0xFD81, 0xFD82,
+ 0xFD83, 0xFD84, 0xFD85, 0xFD86, 0xFD87, 0xFD88, 0xFD89, 0xFD8A, 0xFD8B,
+ 0xFD8C, 0xFD8D, 0xFD8E, 0xFD8F, 0xFD92, 0xFD93, 0xFD94, 0xFD95, 0xFD96,
+ 0xFD97, 0xFD98, 0xFD99, 0xFD9A, 0xFD9B, 0xFD9C, 0xFD9D, 0xFD9E, 0xFD9F,
+ 0xFDA0, 0xFDA1, 0xFDA2, 0xFDA3, 0xFDA4, 0xFDA5, 0xFDA6, 0xFDA7, 0xFDA8,
+ 0xFDA9, 0xFDAA, 0xFDAB, 0xFDAC, 0xFDAD, 0xFDAE, 0xFDAF, 0xFDB0, 0xFDB1,
+ 0xFDB2, 0xFDB3, 0xFDB4, 0xFDB5, 0xFDB6, 0xFDB7, 0xFDB8, 0xFDB9, 0xFDBA,
+ 0xFDBB, 0xFDBC, 0xFDBD, 0xFDBE, 0xFDBF, 0xFDC0, 0xFDC1, 0xFDC2, 0xFDC3,
+ 0xFDC4, 0xFDC5, 0xFDC6, 0xFDC7, 0xFDF0, 0xFDF1, 0xFDF2, 0xFDF3, 0xFDF4,
+ 0xFDF5, 0xFDF6, 0xFDF7, 0xFDF8, 0xFDF9, 0xFDFA, 0xFDFB, 0xFDFC, 0xFE70,
+ 0xFE71, 0xFE72, 0xFE73, 0xFE74, 0xFE76, 0xFE77, 0xFE78, 0xFE79, 0xFE7A,
+ 0xFE7B, 0xFE7C, 0xFE7D, 0xFE7E, 0xFE7F, 0xFE80, 0xFE81, 0xFE82, 0xFE83,
+ 0xFE84, 0xFE85, 0xFE86, 0xFE87, 0xFE88, 0xFE89, 0xFE8A, 0xFE8B, 0xFE8C,
+ 0xFE8D, 0xFE8E, 0xFE8F, 0xFE90, 0xFE91, 0xFE92, 0xFE93, 0xFE94, 0xFE95,
+ 0xFE96, 0xFE97, 0xFE98, 0xFE99, 0xFE9A, 0xFE9B, 0xFE9C, 0xFE9D, 0xFE9E,
+ 0xFE9F, 0xFEA0, 0xFEA1, 0xFEA2, 0xFEA3, 0xFEA4, 0xFEA5, 0xFEA6, 0xFEA7,
+ 0xFEA8, 0xFEA9, 0xFEAA, 0xFEAB, 0xFEAC, 0xFEAD, 0xFEAE, 0xFEAF, 0xFEB0,
+ 0xFEB1, 0xFEB2, 0xFEB3, 0xFEB4, 0xFEB5, 0xFEB6, 0xFEB7, 0xFEB8, 0xFEB9,
+ 0xFEBA, 0xFEBB, 0xFEBC, 0xFEBD, 0xFEBE, 0xFEBF, 0xFEC0, 0xFEC1, 0xFEC2,
+ 0xFEC3, 0xFEC4, 0xFEC5, 0xFEC6, 0xFEC7, 0xFEC8, 0xFEC9, 0xFECA, 0xFECB,
+ 0xFECC, 0xFECD, 0xFECE, 0xFECF, 0xFED0, 0xFED1, 0xFED2, 0xFED3, 0xFED4,
+ 0xFED5, 0xFED6, 0xFED7, 0xFED8, 0xFED9, 0xFEDA, 0xFEDB, 0xFEDC, 0xFEDD,
+ 0xFEDE, 0xFEDF, 0xFEE0, 0xFEE1, 0xFEE2, 0xFEE3, 0xFEE4, 0xFEE5, 0xFEE6,
+ 0xFEE7, 0xFEE8, 0xFEE9, 0xFEEA, 0xFEEB, 0xFEEC, 0xFEED, 0xFEEE, 0xFEEF,
+ 0xFEF0, 0xFEF1, 0xFEF2, 0xFEF3, 0xFEF4, 0xFEF5, 0xFEF6, 0xFEF7, 0xFEF8,
+ 0xFEF9, 0xFEFA, 0xFEFB, 0xFEFC, 0x10800, 0x10801, 0x10802, 0x10803,
+ 0x10804, 0x10805, 0x10808, 0x1080A, 0x1080B, 0x1080C, 0x1080D, 0x1080E,
+ 0x1080F, 0x10810, 0x10811, 0x10812, 0x10813, 0x10814, 0x10815, 0x10816,
+ 0x10817, 0x10818, 0x10819, 0x1081A, 0x1081B, 0x1081C, 0x1081D, 0x1081E,
+ 0x1081F, 0x10820, 0x10821, 0x10822, 0x10823, 0x10824, 0x10825, 0x10826,
+ 0x10827, 0x10828, 0x10829, 0x1082A, 0x1082B, 0x1082C, 0x1082D, 0x1082E,
+ 0x1082F, 0x10830, 0x10831, 0x10832, 0x10833, 0x10834, 0x10835, 0x10837,
+ 0x10838, 0x1083C, 0x1083F, 0x10840, 0x10841, 0x10842, 0x10843, 0x10844,
+ 0x10845, 0x10846, 0x10847, 0x10848, 0x10849, 0x1084A, 0x1084B, 0x1084C,
+ 0x1084D, 0x1084E, 0x1084F, 0x10850, 0x10851, 0x10852, 0x10853, 0x10854,
+ 0x10855, 0x10857, 0x10858, 0x10859, 0x1085A, 0x1085B, 0x1085C, 0x1085D,
+ 0x1085E, 0x1085F, 0x10900, 0x10901, 0x10902, 0x10903, 0x10904, 0x10905,
+ 0x10906, 0x10907, 0x10908, 0x10909, 0x1090A, 0x1090B, 0x1090C, 0x1090D,
+ 0x1090E, 0x1090F, 0x10910, 0x10911, 0x10912, 0x10913, 0x10914, 0x10915,
+ 0x10916, 0x10917, 0x10918, 0x10919, 0x1091A, 0x1091B, 0x10920, 0x10921,
+ 0x10922, 0x10923, 0x10924, 0x10925, 0x10926, 0x10927, 0x10928, 0x10929,
+ 0x1092A, 0x1092B, 0x1092C, 0x1092D, 0x1092E, 0x1092F, 0x10930, 0x10931,
+ 0x10932, 0x10933, 0x10934, 0x10935, 0x10936, 0x10937, 0x10938, 0x10939,
+ 0x1093F, 0x10980, 0x10981, 0x10982, 0x10983, 0x10984, 0x10985, 0x10986,
+ 0x10987, 0x10988, 0x10989, 0x1098A, 0x1098B, 0x1098C, 0x1098D, 0x1098E,
+ 0x1098F, 0x10990, 0x10991, 0x10992, 0x10993, 0x10994, 0x10995, 0x10996,
+ 0x10997, 0x10998, 0x10999, 0x1099A, 0x1099B, 0x1099C, 0x1099D, 0x1099E,
+ 0x1099F, 0x109A0, 0x109A1, 0x109A2, 0x109A3, 0x109A4, 0x109A5, 0x109A6,
+ 0x109A7, 0x109A8, 0x109A9, 0x109AA, 0x109AB, 0x109AC, 0x109AD, 0x109AE,
+ 0x109AF, 0x109B0, 0x109B1, 0x109B2, 0x109B3, 0x109B4, 0x109B5, 0x109B6,
+ 0x109B7, 0x109BE, 0x109BF, 0x10A00, 0x10A10, 0x10A11, 0x10A12, 0x10A13,
+ 0x10A15, 0x10A16, 0x10A17, 0x10A19, 0x10A1A, 0x10A1B, 0x10A1C, 0x10A1D,
+ 0x10A1E, 0x10A1F, 0x10A20, 0x10A21, 0x10A22, 0x10A23, 0x10A24, 0x10A25,
+ 0x10A26, 0x10A27, 0x10A28, 0x10A29, 0x10A2A, 0x10A2B, 0x10A2C, 0x10A2D,
+ 0x10A2E, 0x10A2F, 0x10A30, 0x10A31, 0x10A32, 0x10A33, 0x10A40, 0x10A41,
+ 0x10A42, 0x10A43, 0x10A44, 0x10A45, 0x10A46, 0x10A47, 0x10A50, 0x10A51,
+ 0x10A52, 0x10A53, 0x10A54, 0x10A55, 0x10A56, 0x10A57, 0x10A58, 0x10A60,
+ 0x10A61, 0x10A62, 0x10A63, 0x10A64, 0x10A65, 0x10A66, 0x10A67, 0x10A68,
+ 0x10A69, 0x10A6A, 0x10A6B, 0x10A6C, 0x10A6D, 0x10A6E, 0x10A6F, 0x10A70,
+ 0x10A71, 0x10A72, 0x10A73, 0x10A74, 0x10A75, 0x10A76, 0x10A77, 0x10A78,
+ 0x10A79, 0x10A7A, 0x10A7B, 0x10A7C, 0x10A7D, 0x10A7E, 0x10A7F, 0x10B00,
+ 0x10B01, 0x10B02, 0x10B03, 0x10B04, 0x10B05, 0x10B06, 0x10B07, 0x10B08,
+ 0x10B09, 0x10B0A, 0x10B0B, 0x10B0C, 0x10B0D, 0x10B0E, 0x10B0F, 0x10B10,
+ 0x10B11, 0x10B12, 0x10B13, 0x10B14, 0x10B15, 0x10B16, 0x10B17, 0x10B18,
+ 0x10B19, 0x10B1A, 0x10B1B, 0x10B1C, 0x10B1D, 0x10B1E, 0x10B1F, 0x10B20,
+ 0x10B21, 0x10B22, 0x10B23, 0x10B24, 0x10B25, 0x10B26, 0x10B27, 0x10B28,
+ 0x10B29, 0x10B2A, 0x10B2B, 0x10B2C, 0x10B2D, 0x10B2E, 0x10B2F, 0x10B30,
+ 0x10B31, 0x10B32, 0x10B33, 0x10B34, 0x10B35, 0x10B40, 0x10B41, 0x10B42,
+ 0x10B43, 0x10B44, 0x10B45, 0x10B46, 0x10B47, 0x10B48, 0x10B49, 0x10B4A,
+ 0x10B4B, 0x10B4C, 0x10B4D, 0x10B4E, 0x10B4F, 0x10B50, 0x10B51, 0x10B52,
+ 0x10B53, 0x10B54, 0x10B55, 0x10B58, 0x10B59, 0x10B5A, 0x10B5B, 0x10B5C,
+ 0x10B5D, 0x10B5E, 0x10B5F, 0x10B60, 0x10B61, 0x10B62, 0x10B63, 0x10B64,
+ 0x10B65, 0x10B66, 0x10B67, 0x10B68, 0x10B69, 0x10B6A, 0x10B6B, 0x10B6C,
+ 0x10B6D, 0x10B6E, 0x10B6F, 0x10B70, 0x10B71, 0x10B72, 0x10B78, 0x10B79,
+ 0x10B7A, 0x10B7B, 0x10B7C, 0x10B7D, 0x10B7E, 0x10B7F, 0x10C00, 0x10C01,
+ 0x10C02, 0x10C03, 0x10C04, 0x10C05, 0x10C06, 0x10C07, 0x10C08, 0x10C09,
+ 0x10C0A, 0x10C0B, 0x10C0C, 0x10C0D, 0x10C0E, 0x10C0F, 0x10C10, 0x10C11,
+ 0x10C12, 0x10C13, 0x10C14, 0x10C15, 0x10C16, 0x10C17, 0x10C18, 0x10C19,
+ 0x10C1A, 0x10C1B, 0x10C1C, 0x10C1D, 0x10C1E, 0x10C1F, 0x10C20, 0x10C21,
+ 0x10C22, 0x10C23, 0x10C24, 0x10C25, 0x10C26, 0x10C27, 0x10C28, 0x10C29,
+ 0x10C2A, 0x10C2B, 0x10C2C, 0x10C2D, 0x10C2E, 0x10C2F, 0x10C30, 0x10C31,
+ 0x10C32, 0x10C33, 0x10C34, 0x10C35, 0x10C36, 0x10C37, 0x10C38, 0x10C39,
+ 0x10C3A, 0x10C3B, 0x10C3C, 0x10C3D, 0x10C3E, 0x10C3F, 0x10C40, 0x10C41,
+ 0x10C42, 0x10C43, 0x10C44, 0x10C45, 0x10C46, 0x10C47, 0x10C48, 0x1EE00,
+ 0x1EE01, 0x1EE02, 0x1EE03, 0x1EE05, 0x1EE06, 0x1EE07, 0x1EE08, 0x1EE09,
+ 0x1EE0A, 0x1EE0B, 0x1EE0C, 0x1EE0D, 0x1EE0E, 0x1EE0F, 0x1EE10, 0x1EE11,
+ 0x1EE12, 0x1EE13, 0x1EE14, 0x1EE15, 0x1EE16, 0x1EE17, 0x1EE18, 0x1EE19,
+ 0x1EE1A, 0x1EE1B, 0x1EE1C, 0x1EE1D, 0x1EE1E, 0x1EE1F, 0x1EE21, 0x1EE22,
+ 0x1EE24, 0x1EE27, 0x1EE29, 0x1EE2A, 0x1EE2B, 0x1EE2C, 0x1EE2D, 0x1EE2E,
+ 0x1EE2F, 0x1EE30, 0x1EE31, 0x1EE32, 0x1EE34, 0x1EE35, 0x1EE36, 0x1EE37,
+ 0x1EE39, 0x1EE3B, 0x1EE42, 0x1EE47, 0x1EE49, 0x1EE4B, 0x1EE4D, 0x1EE4E,
+ 0x1EE4F, 0x1EE51, 0x1EE52, 0x1EE54, 0x1EE57, 0x1EE59, 0x1EE5B, 0x1EE5D,
+ 0x1EE5F, 0x1EE61, 0x1EE62, 0x1EE64, 0x1EE67, 0x1EE68, 0x1EE69, 0x1EE6A,
+ 0x1EE6C, 0x1EE6D, 0x1EE6E, 0x1EE6F, 0x1EE70, 0x1EE71, 0x1EE72, 0x1EE74,
+ 0x1EE75, 0x1EE76, 0x1EE77, 0x1EE79, 0x1EE7A, 0x1EE7B, 0x1EE7C, 0x1EE7E,
+ 0x1EE80, 0x1EE81, 0x1EE82, 0x1EE83, 0x1EE84, 0x1EE85, 0x1EE86, 0x1EE87,
+ 0x1EE88, 0x1EE89, 0x1EE8B, 0x1EE8C, 0x1EE8D, 0x1EE8E, 0x1EE8F, 0x1EE90,
+ 0x1EE91, 0x1EE92, 0x1EE93, 0x1EE94, 0x1EE95, 0x1EE96, 0x1EE97, 0x1EE98,
+ 0x1EE99, 0x1EE9A, 0x1EE9B, 0x1EEA1, 0x1EEA2, 0x1EEA3, 0x1EEA5, 0x1EEA6,
+ 0x1EEA7, 0x1EEA8, 0x1EEA9, 0x1EEAB, 0x1EEAC, 0x1EEAD, 0x1EEAE, 0x1EEAF,
+ 0x1EEB0, 0x1EEB1, 0x1EEB2, 0x1EEB3, 0x1EEB4, 0x1EEB5, 0x1EEB6, 0x1EEB7,
+ 0x1EEB8, 0x1EEB9, 0x1EEBA, 0x1EEBB, 0x10FFFD];
+
+ function determineBidi(cueDiv) {
+ var nodeStack = [],
+ text = "",
+ charCode;
+
+ if (!cueDiv || !cueDiv.childNodes) {
+ return "ltr";
+ }
+
+ function pushNodes(nodeStack, node) {
+ for (var i = node.childNodes.length - 1; i >= 0; i--) {
+ nodeStack.push(node.childNodes[i]);
+ }
+ }
+
+ function nextTextNode(nodeStack) {
+ if (!nodeStack || !nodeStack.length) {
+ return null;
+ }
+
+ var node = nodeStack.pop(),
+ text = node.textContent || node.innerText;
+ if (text) {
+ // TODO: This should match all unicode type B characters (paragraph
+ // separator characters). See issue #115.
+ var m = text.match(/^.*(\n|\r)/);
+ if (m) {
+ nodeStack.length = 0;
+ return m[0];
+ }
+ return text;
+ }
+ if (node.tagName === "ruby") {
+ return nextTextNode(nodeStack);
+ }
+ if (node.childNodes) {
+ pushNodes(nodeStack, node);
+ return nextTextNode(nodeStack);
+ }
+ }
+
+ pushNodes(nodeStack, cueDiv);
+ while ((text = nextTextNode(nodeStack))) {
+ for (var i = 0; i < text.length; i++) {
+ charCode = text.charCodeAt(i);
+ for (var j = 0; j < strongRTLChars.length; j++) {
+ if (strongRTLChars[j] === charCode) {
+ return "rtl";
+ }
+ }
+ }
+ }
+ return "ltr";
+ }
+
+ function computeLinePos(cue) {
+ if (typeof cue.line === "number" &&
+ (cue.snapToLines || (cue.line >= 0 && cue.line <= 100))) {
+ return cue.line;
+ }
+ if (!cue.track || !cue.track.textTrackList ||
+ !cue.track.textTrackList.mediaElement) {
+ return -1;
+ }
+ var track = cue.track,
+ trackList = track.textTrackList,
+ count = 0;
+ for (var i = 0; i < trackList.length && trackList[i] !== track; i++) {
+ if (trackList[i].mode === "showing") {
+ count++;
+ }
+ }
+ return ++count * -1;
+ }
+
+ function StyleBox() {
+ }
+
+ // Apply styles to a div. If there is no div passed then it defaults to the
+ // div on 'this'.
+ StyleBox.prototype.applyStyles = function(styles, div) {
+ div = div || this.div;
+ for (var prop in styles) {
+ if (styles.hasOwnProperty(prop)) {
+ div.style[prop] = styles[prop];
+ }
+ }
+ };
+
+ StyleBox.prototype.formatStyle = function(val, unit) {
+ return val === 0 ? 0 : val + unit;
+ };
+
+ // Constructs the computed display state of the cue (a div). Places the div
+ // into the overlay which should be a block level element (usually a div).
+ function CueStyleBox(window, cue, styleOptions) {
+ var isIE8 = (/MSIE\s8\.0/).test(navigator.userAgent);
+ var color = "rgba(255, 255, 255, 1)";
+ var backgroundColor = "rgba(0, 0, 0, 0.8)";
+
+ if (isIE8) {
+ color = "rgb(255, 255, 255)";
+ backgroundColor = "rgb(0, 0, 0)";
+ }
+
+ StyleBox.call(this);
+ this.cue = cue;
+
+ // Parse our cue's text into a DOM tree rooted at 'cueDiv'. This div will
+ // have inline positioning and will function as the cue background box.
+ this.cueDiv = parseContent(window, cue.text);
+ var styles = {
+ color: color,
+ backgroundColor: backgroundColor,
+ position: "relative",
+ left: 0,
+ right: 0,
+ top: 0,
+ bottom: 0,
+ display: "inline"
+ };
+
+ if (!isIE8) {
+ styles.writingMode = cue.vertical === "" ? "horizontal-tb"
+ : cue.vertical === "lr" ? "vertical-lr"
+ : "vertical-rl";
+ styles.unicodeBidi = "plaintext";
+ }
+ this.applyStyles(styles, this.cueDiv);
+
+ // Create an absolutely positioned div that will be used to position the cue
+ // div. Note, all WebVTT cue-setting alignments are equivalent to the CSS
+ // mirrors of them except "middle" which is "center" in CSS.
+ this.div = window.document.createElement("div");
+ styles = {
+ textAlign: cue.align === "middle" ? "center" : cue.align,
+ font: styleOptions.font,
+ whiteSpace: "pre-line",
+ position: "absolute"
+ };
+
+ if (!isIE8) {
+ styles.direction = determineBidi(this.cueDiv);
+ styles.writingMode = cue.vertical === "" ? "horizontal-tb"
+ : cue.vertical === "lr" ? "vertical-lr"
+ : "vertical-rl".
+ stylesunicodeBidi = "plaintext";
+ }
+
+ this.applyStyles(styles);
+
+ this.div.appendChild(this.cueDiv);
+
+ // Calculate the distance from the reference edge of the viewport to the text
+ // position of the cue box. The reference edge will be resolved later when
+ // the box orientation styles are applied.
+ var textPos = 0;
+ switch (cue.positionAlign) {
+ case "start":
+ textPos = cue.position;
+ break;
+ case "middle":
+ textPos = cue.position - (cue.size / 2);
+ break;
+ case "end":
+ textPos = cue.position - cue.size;
+ break;
+ }
+
+ // Horizontal box orientation; textPos is the distance from the left edge of the
+ // area to the left edge of the box and cue.size is the distance extending to
+ // the right from there.
+ if (cue.vertical === "") {
+ this.applyStyles({
+ left: this.formatStyle(textPos, "%"),
+ width: this.formatStyle(cue.size, "%"),
+ });
+ // Vertical box orientation; textPos is the distance from the top edge of the
+ // area to the top edge of the box and cue.size is the height extending
+ // downwards from there.
+ } else {
+ this.applyStyles({
+ top: this.formatStyle(textPos, "%"),
+ height: this.formatStyle(cue.size, "%")
+ });
+ }
+
+ this.move = function(box) {
+ this.applyStyles({
+ top: this.formatStyle(box.top, "px"),
+ bottom: this.formatStyle(box.bottom, "px"),
+ left: this.formatStyle(box.left, "px"),
+ right: this.formatStyle(box.right, "px"),
+ height: this.formatStyle(box.height, "px"),
+ width: this.formatStyle(box.width, "px"),
+ });
+ };
+ }
+ CueStyleBox.prototype = _objCreate(StyleBox.prototype);
+ CueStyleBox.prototype.constructor = CueStyleBox;
+
+ // Represents the co-ordinates of an Element in a way that we can easily
+ // compute things with such as if it overlaps or intersects with another Element.
+ // Can initialize it with either a StyleBox or another BoxPosition.
+ function BoxPosition(obj) {
+ var isIE8 = (/MSIE\s8\.0/).test(navigator.userAgent);
+
+ // Either a BoxPosition was passed in and we need to copy it, or a StyleBox
+ // was passed in and we need to copy the results of 'getBoundingClientRect'
+ // as the object returned is readonly. All co-ordinate values are in reference
+ // to the viewport origin (top left).
+ var lh, height, width, top;
+ if (obj.div) {
+ height = obj.div.offsetHeight;
+ width = obj.div.offsetWidth;
+ top = obj.div.offsetTop;
+
+ var rects = (rects = obj.div.childNodes) && (rects = rects[0]) &&
+ rects.getClientRects && rects.getClientRects();
+ obj = obj.div.getBoundingClientRect();
+ // In certain cases the outter div will be slightly larger then the sum of
+ // the inner div's lines. This could be due to bold text, etc, on some platforms.
+ // In this case we should get the average line height and use that. This will
+ // result in the desired behaviour.
+ lh = rects ? Math.max((rects[0] && rects[0].height) || 0, obj.height / rects.length)
+ : 0;
+
+ }
+ this.left = obj.left;
+ this.right = obj.right;
+ this.top = obj.top || top;
+ this.height = obj.height || height;
+ this.bottom = obj.bottom || (top + (obj.height || height));
+ this.width = obj.width || width;
+ this.lineHeight = lh !== undefined ? lh : obj.lineHeight;
+
+ if (isIE8 && !this.lineHeight) {
+ this.lineHeight = 13;
+ }
+ }
+
+ // Move the box along a particular axis. Optionally pass in an amount to move
+ // the box. If no amount is passed then the default is the line height of the
+ // box.
+ BoxPosition.prototype.move = function(axis, toMove) {
+ toMove = toMove !== undefined ? toMove : this.lineHeight;
+ switch (axis) {
+ case "+x":
+ this.left += toMove;
+ this.right += toMove;
+ break;
+ case "-x":
+ this.left -= toMove;
+ this.right -= toMove;
+ break;
+ case "+y":
+ this.top += toMove;
+ this.bottom += toMove;
+ break;
+ case "-y":
+ this.top -= toMove;
+ this.bottom -= toMove;
+ break;
+ }
+ };
+
+ // Check if this box overlaps another box, b2.
+ BoxPosition.prototype.overlaps = function(b2) {
+ return this.left < b2.right &&
+ this.right > b2.left &&
+ this.top < b2.bottom &&
+ this.bottom > b2.top;
+ };
+
+ // Check if this box overlaps any other boxes in boxes.
+ BoxPosition.prototype.overlapsAny = function(boxes) {
+ for (var i = 0; i < boxes.length; i++) {
+ if (this.overlaps(boxes[i])) {
+ return true;
+ }
+ }
+ return false;
+ };
+
+ // Check if this box is within another box.
+ BoxPosition.prototype.within = function(container) {
+ return this.top >= container.top &&
+ this.bottom <= container.bottom &&
+ this.left >= container.left &&
+ this.right <= container.right;
+ };
+
+ // Check if this box is entirely within the container or it is overlapping
+ // on the edge opposite of the axis direction passed. For example, if "+x" is
+ // passed and the box is overlapping on the left edge of the container, then
+ // return true.
+ BoxPosition.prototype.overlapsOppositeAxis = function(container, axis) {
+ switch (axis) {
+ case "+x":
+ return this.left < container.left;
+ case "-x":
+ return this.right > container.right;
+ case "+y":
+ return this.top < container.top;
+ case "-y":
+ return this.bottom > container.bottom;
+ }
+ };
+
+ // Find the percentage of the area that this box is overlapping with another
+ // box.
+ BoxPosition.prototype.intersectPercentage = function(b2) {
+ var x = Math.max(0, Math.min(this.right, b2.right) - Math.max(this.left, b2.left)),
+ y = Math.max(0, Math.min(this.bottom, b2.bottom) - Math.max(this.top, b2.top)),
+ intersectArea = x * y;
+ return intersectArea / (this.height * this.width);
+ };
+
+ // Convert the positions from this box to CSS compatible positions using
+ // the reference container's positions. This has to be done because this
+ // box's positions are in reference to the viewport origin, whereas, CSS
+ // values are in referecne to their respective edges.
+ BoxPosition.prototype.toCSSCompatValues = function(reference) {
+ return {
+ top: this.top - reference.top,
+ bottom: reference.bottom - this.bottom,
+ left: this.left - reference.left,
+ right: reference.right - this.right,
+ height: this.height,
+ width: this.width
+ };
+ };
+
+ // Get an object that represents the box's position without anything extra.
+ // Can pass a StyleBox, HTMLElement, or another BoxPositon.
+ BoxPosition.getSimpleBoxPosition = function(obj) {
+ var height = obj.div ? obj.div.offsetHeight : obj.tagName ? obj.offsetHeight : 0;
+ var width = obj.div ? obj.div.offsetWidth : obj.tagName ? obj.offsetWidth : 0;
+ var top = obj.div ? obj.div.offsetTop : obj.tagName ? obj.offsetTop : 0;
+
+ obj = obj.div ? obj.div.getBoundingClientRect() :
+ obj.tagName ? obj.getBoundingClientRect() : obj;
+ var ret = {
+ left: obj.left,
+ right: obj.right,
+ top: obj.top || top,
+ height: obj.height || height,
+ bottom: obj.bottom || (top + (obj.height || height)),
+ width: obj.width || width
+ };
+ return ret;
+ };
+
+ // Move a StyleBox to its specified, or next best, position. The containerBox
+ // is the box that contains the StyleBox, such as a div. boxPositions are
+ // a list of other boxes that the styleBox can't overlap with.
+ function moveBoxToLinePosition(window, styleBox, containerBox, boxPositions) {
+
+ // Find the best position for a cue box, b, on the video. The axis parameter
+ // is a list of axis, the order of which, it will move the box along. For example:
+ // Passing ["+x", "-x"] will move the box first along the x axis in the positive
+ // direction. If it doesn't find a good position for it there it will then move
+ // it along the x axis in the negative direction.
+ function findBestPosition(b, axis) {
+ var bestPosition,
+ specifiedPosition = new BoxPosition(b),
+ percentage = 1; // Highest possible so the first thing we get is better.
+
+ for (var i = 0; i < axis.length; i++) {
+ while (b.overlapsOppositeAxis(containerBox, axis[i]) ||
+ (b.within(containerBox) && b.overlapsAny(boxPositions))) {
+ b.move(axis[i]);
+ }
+ // We found a spot where we aren't overlapping anything. This is our
+ // best position.
+ if (b.within(containerBox)) {
+ return b;
+ }
+ var p = b.intersectPercentage(containerBox);
+ // If we're outside the container box less then we were on our last try
+ // then remember this position as the best position.
+ if (percentage > p) {
+ bestPosition = new BoxPosition(b);
+ percentage = p;
+ }
+ // Reset the box position to the specified position.
+ b = new BoxPosition(specifiedPosition);
+ }
+ return bestPosition || specifiedPosition;
+ }
+
+ var boxPosition = new BoxPosition(styleBox),
+ cue = styleBox.cue,
+ linePos = computeLinePos(cue),
+ axis = [];
+
+ // If we have a line number to align the cue to.
+ if (cue.snapToLines) {
+ var size;
+ switch (cue.vertical) {
+ case "":
+ axis = [ "+y", "-y" ];
+ size = "height";
+ break;
+ case "rl":
+ axis = [ "+x", "-x" ];
+ size = "width";
+ break;
+ case "lr":
+ axis = [ "-x", "+x" ];
+ size = "width";
+ break;
+ }
+
+ var step = boxPosition.lineHeight,
+ position = step * Math.round(linePos),
+ maxPosition = containerBox[size] + step,
+ initialAxis = axis[0];
+
+ // If the specified intial position is greater then the max position then
+ // clamp the box to the amount of steps it would take for the box to
+ // reach the max position.
+ if (Math.abs(position) > maxPosition) {
+ position = position < 0 ? -1 : 1;
+ position *= Math.ceil(maxPosition / step) * step;
+ }
+
+ // If computed line position returns negative then line numbers are
+ // relative to the bottom of the video instead of the top. Therefore, we
+ // need to increase our initial position by the length or width of the
+ // video, depending on the writing direction, and reverse our axis directions.
+ if (linePos < 0) {
+ position += cue.vertical === "" ? containerBox.height : containerBox.width;
+ axis = axis.reverse();
+ }
+
+ // Move the box to the specified position. This may not be its best
+ // position.
+ boxPosition.move(initialAxis, position);
+
+ } else {
+ // If we have a percentage line value for the cue.
+ var calculatedPercentage = (boxPosition.lineHeight / containerBox.height) * 100;
+
+ switch (cue.lineAlign) {
+ case "middle":
+ linePos -= (calculatedPercentage / 2);
+ break;
+ case "end":
+ linePos -= calculatedPercentage;
+ break;
+ }
+
+ // Apply initial line position to the cue box.
+ switch (cue.vertical) {
+ case "":
+ styleBox.applyStyles({
+ top: styleBox.formatStyle(linePos, "%")
+ });
+ break;
+ case "rl":
+ styleBox.applyStyles({
+ left: styleBox.formatStyle(linePos, "%")
+ });
+ break;
+ case "lr":
+ styleBox.applyStyles({
+ right: styleBox.formatStyle(linePos, "%")
+ });
+ break;
+ }
+
+ axis = [ "+y", "-x", "+x", "-y" ];
+
+ // Get the box position again after we've applied the specified positioning
+ // to it.
+ boxPosition = new BoxPosition(styleBox);
+ }
+
+ var bestPosition = findBestPosition(boxPosition, axis);
+ styleBox.move(bestPosition.toCSSCompatValues(containerBox));
+ }
+
+ function WebVTT() {
+ // Nothing
+ }
+
+ // Helper to allow strings to be decoded instead of the default binary utf8 data.
+ WebVTT.StringDecoder = function() {
+ return {
+ decode: function(data) {
+ if (!data) {
+ return "";
+ }
+ if (typeof data !== "string") {
+ throw new Error("Error - expected string data.");
+ }
+ return decodeURIComponent(encodeURIComponent(data));
+ }
+ };
+ };
+
+ WebVTT.convertCueToDOMTree = function(window, cuetext) {
+ if (!window || !cuetext) {
+ return null;
+ }
+ return parseContent(window, cuetext);
+ };
+
+ var FONT_SIZE_PERCENT = 0.05;
+ var FONT_STYLE = "sans-serif";
+ var CUE_BACKGROUND_PADDING = "1.5%";
+
+ // Runs the processing model over the cues and regions passed to it.
+ // @param overlay A block level element (usually a div) that the computed cues
+ // and regions will be placed into.
+ WebVTT.processCues = function(window, cues, overlay) {
+ if (!window || !cues || !overlay) {
+ return null;
+ }
+
+ // Remove all previous children.
+ while (overlay.firstChild) {
+ overlay.removeChild(overlay.firstChild);
+ }
+
+ var paddedOverlay = window.document.createElement("div");
+ paddedOverlay.style.position = "absolute";
+ paddedOverlay.style.left = "0";
+ paddedOverlay.style.right = "0";
+ paddedOverlay.style.top = "0";
+ paddedOverlay.style.bottom = "0";
+ paddedOverlay.style.margin = CUE_BACKGROUND_PADDING;
+ overlay.appendChild(paddedOverlay);
+
+ // Determine if we need to compute the display states of the cues. This could
+ // be the case if a cue's state has been changed since the last computation or
+ // if it has not been computed yet.
+ function shouldCompute(cues) {
+ for (var i = 0; i < cues.length; i++) {
+ if (cues[i].hasBeenReset || !cues[i].displayState) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ // We don't need to recompute the cues' display states. Just reuse them.
+ if (!shouldCompute(cues)) {
+ for (var i = 0; i < cues.length; i++) {
+ paddedOverlay.appendChild(cues[i].displayState);
+ }
+ return;
+ }
+
+ var boxPositions = [],
+ containerBox = BoxPosition.getSimpleBoxPosition(paddedOverlay),
+ fontSize = Math.round(containerBox.height * FONT_SIZE_PERCENT * 100) / 100;
+ var styleOptions = {
+ font: fontSize + "px " + FONT_STYLE
+ };
+
+ (function() {
+ var styleBox, cue;
+
+ for (var i = 0; i < cues.length; i++) {
+ cue = cues[i];
+
+ // Compute the intial position and styles of the cue div.
+ styleBox = new CueStyleBox(window, cue, styleOptions);
+ paddedOverlay.appendChild(styleBox.div);
+
+ // Move the cue div to it's correct line position.
+ moveBoxToLinePosition(window, styleBox, containerBox, boxPositions);
+
+ // Remember the computed div so that we don't have to recompute it later
+ // if we don't have too.
+ cue.displayState = styleBox.div;
+
+ boxPositions.push(BoxPosition.getSimpleBoxPosition(styleBox));
+ }
+ })();
+ };
+
+ WebVTT.Parser = function(window, vttjs, decoder) {
+ if (!decoder) {
+ decoder = vttjs;
+ vttjs = {};
+ }
+ if (!vttjs) {
+ vttjs = {};
+ }
+
+ this.window = window;
+ this.vttjs = vttjs;
+ this.state = "INITIAL";
+ this.buffer = "";
+ this.decoder = decoder || new TextDecoder("utf8");
+ this.regionList = [];
+ };
+
+ WebVTT.Parser.prototype = {
+ // If the error is a ParsingError then report it to the consumer if
+ // possible. If it's not a ParsingError then throw it like normal.
+ reportOrThrowError: function(e) {
+ if (e instanceof ParsingError) {
+ this.onparsingerror && this.onparsingerror(e);
+ } else {
+ throw e;
+ }
+ },
+ parse: function (data) {
+ var self = this;
+
+ // If there is no data then we won't decode it, but will just try to parse
+ // whatever is in buffer already. This may occur in circumstances, for
+ // example when flush() is called.
+ if (data) {
+ // Try to decode the data that we received.
+ self.buffer += self.decoder.decode(data, {stream: true});
+ }
+
+ function collectNextLine() {
+ var buffer = self.buffer;
+ var pos = 0;
+ while (pos < buffer.length && buffer[pos] !== '\r' && buffer[pos] !== '\n') {
+ ++pos;
+ }
+ var line = buffer.substr(0, pos);
+ // Advance the buffer early in case we fail below.
+ if (buffer[pos] === '\r') {
+ ++pos;
+ }
+ if (buffer[pos] === '\n') {
+ ++pos;
+ }
+ self.buffer = buffer.substr(pos);
+ return line;
+ }
+
+ // 3.4 WebVTT region and WebVTT region settings syntax
+ function parseRegion(input) {
+ var settings = new Settings();
+
+ parseOptions(input, function (k, v) {
+ switch (k) {
+ case "id":
+ settings.set(k, v);
+ break;
+ case "width":
+ settings.percent(k, v);
+ break;
+ case "lines":
+ settings.integer(k, v);
+ break;
+ case "regionanchor":
+ case "viewportanchor":
+ var xy = v.split(',');
+ if (xy.length !== 2) {
+ break;
+ }
+ // We have to make sure both x and y parse, so use a temporary
+ // settings object here.
+ var anchor = new Settings();
+ anchor.percent("x", xy[0]);
+ anchor.percent("y", xy[1]);
+ if (!anchor.has("x") || !anchor.has("y")) {
+ break;
+ }
+ settings.set(k + "X", anchor.get("x"));
+ settings.set(k + "Y", anchor.get("y"));
+ break;
+ case "scroll":
+ settings.alt(k, v, ["up"]);
+ break;
+ }
+ }, /=/, /\s/);
+
+ // Create the region, using default values for any values that were not
+ // specified.
+ if (settings.has("id")) {
+ var region = new (self.vttjs.VTTRegion || self.window.VTTRegion)();
+ region.width = settings.get("width", 100);
+ region.lines = settings.get("lines", 3);
+ region.regionAnchorX = settings.get("regionanchorX", 0);
+ region.regionAnchorY = settings.get("regionanchorY", 100);
+ region.viewportAnchorX = settings.get("viewportanchorX", 0);
+ region.viewportAnchorY = settings.get("viewportanchorY", 100);
+ region.scroll = settings.get("scroll", "");
+ // Register the region.
+ self.onregion && self.onregion(region);
+ // Remember the VTTRegion for later in case we parse any VTTCues that
+ // reference it.
+ self.regionList.push({
+ id: settings.get("id"),
+ region: region
+ });
+ }
+ }
+
+ // 3.2 WebVTT metadata header syntax
+ function parseHeader(input) {
+ parseOptions(input, function (k, v) {
+ switch (k) {
+ case "Region":
+ // 3.3 WebVTT region metadata header syntax
+ parseRegion(v);
+ break;
+ }
+ }, /:/);
+ }
+
+ // 5.1 WebVTT file parsing.
+ try {
+ var line;
+ if (self.state === "INITIAL") {
+ // We can't start parsing until we have the first line.
+ if (!/\r\n|\n/.test(self.buffer)) {
+ return this;
+ }
+
+ line = collectNextLine();
+
+ var m = line.match(/^WEBVTT([ \t].*)?$/);
+ if (!m || !m[0]) {
+ throw new ParsingError(ParsingError.Errors.BadSignature);
+ }
+
+ self.state = "HEADER";
+ }
+
+ var alreadyCollectedLine = false;
+ while (self.buffer) {
+ // We can't parse a line until we have the full line.
+ if (!/\r\n|\n/.test(self.buffer)) {
+ return this;
+ }
+
+ if (!alreadyCollectedLine) {
+ line = collectNextLine();
+ } else {
+ alreadyCollectedLine = false;
+ }
+
+ switch (self.state) {
+ case "HEADER":
+ // 13-18 - Allow a header (metadata) under the WEBVTT line.
+ if (/:/.test(line)) {
+ parseHeader(line);
+ } else if (!line) {
+ // An empty line terminates the header and starts the body (cues).
+ self.state = "ID";
+ }
+ continue;
+ case "NOTE":
+ // Ignore NOTE blocks.
+ if (!line) {
+ self.state = "ID";
+ }
+ continue;
+ case "ID":
+ // Check for the start of NOTE blocks.
+ if (/^NOTE($|[ \t])/.test(line)) {
+ self.state = "NOTE";
+ break;
+ }
+ // 19-29 - Allow any number of line terminators, then initialize new cue values.
+ if (!line) {
+ continue;
+ }
+ self.cue = new (self.vttjs.VTTCue || self.window.VTTCue)(0, 0, "");
+ self.state = "CUE";
+ // 30-39 - Check if self line contains an optional identifier or timing data.
+ if (line.indexOf("-->") === -1) {
+ self.cue.id = line;
+ continue;
+ }
+ // Process line as start of a cue.
+ /*falls through*/
+ case "CUE":
+ // 40 - Collect cue timings and settings.
+ try {
+ parseCue(line, self.cue, self.regionList);
+ } catch (e) {
+ self.reportOrThrowError(e);
+ // In case of an error ignore rest of the cue.
+ self.cue = null;
+ self.state = "BADCUE";
+ continue;
+ }
+ self.state = "CUETEXT";
+ continue;
+ case "CUETEXT":
+ var hasSubstring = line.indexOf("-->") !== -1;
+ // 34 - If we have an empty line then report the cue.
+ // 35 - If we have the special substring '-->' then report the cue,
+ // but do not collect the line as we need to process the current
+ // one as a new cue.
+ if (!line || hasSubstring && (alreadyCollectedLine = true)) {
+ // We are done parsing self cue.
+ self.oncue && self.oncue(self.cue);
+ self.cue = null;
+ self.state = "ID";
+ continue;
+ }
+ if (self.cue.text) {
+ self.cue.text += "\n";
+ }
+ self.cue.text += line;
+ continue;
+ case "BADCUE": // BADCUE
+ // 54-62 - Collect and discard the remaining cue.
+ if (!line) {
+ self.state = "ID";
+ }
+ continue;
+ }
+ }
+ } catch (e) {
+ self.reportOrThrowError(e);
+
+ // If we are currently parsing a cue, report what we have.
+ if (self.state === "CUETEXT" && self.cue && self.oncue) {
+ self.oncue(self.cue);
+ }
+ self.cue = null;
+ // Enter BADWEBVTT state if header was not parsed correctly otherwise
+ // another exception occurred so enter BADCUE state.
+ self.state = self.state === "INITIAL" ? "BADWEBVTT" : "BADCUE";
+ }
+ return this;
+ },
+ flush: function () {
+ var self = this;
+ try {
+ // Finish decoding the stream.
+ self.buffer += self.decoder.decode();
+ // Synthesize the end of the current cue or region.
+ if (self.cue || self.state === "HEADER") {
+ self.buffer += "\n\n";
+ self.parse();
+ }
+ // If we've flushed, parsed, and we're still on the INITIAL state then
+ // that means we don't have enough of the stream to parse the first
+ // line.
+ if (self.state === "INITIAL") {
+ throw new ParsingError(ParsingError.Errors.BadSignature);
+ }
+ } catch(e) {
+ self.reportOrThrowError(e);
+ }
+ self.onflush && self.onflush();
+ return this;
+ }
+ };
+
+ global.WebVTT = WebVTT;
+
+}(this, (this.vttjs || {})));
diff --git a/bower_components/video.js/dist/video-js/video.js b/bower_components/video.js/dist/video-js/video.js
new file mode 100644
index 0000000..1f376bf
--- /dev/null
+++ b/bower_components/video.js/dist/video-js/video.js
@@ -0,0 +1,199 @@
+/*! Video.js v4.12.1 Copyright 2014 Brightcove, Inc. https://github.com/videojs/video.js/blob/master/LICENSE */
+(function() {var b=void 0,f=!0,j=null,l=!1;function m(){return function(){}}function n(a){return function(){return this[a]}}function q(a){return function(){return a}}var s;document.createElement("video");document.createElement("audio");document.createElement("track");
+function t(a,c,d){if("string"===typeof a){0===a.indexOf("#")&&(a=a.slice(1));if(t.Aa[a])return c&&t.log.warn('Player "'+a+'" is already initialised. Options will not be applied.'),d&&t.Aa[a].I(d),t.Aa[a];a=t.m(a)}if(!a||!a.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return a.player||new t.Player(a,c,d)}var videojs=window.videojs=t;t.ic="4.12";t.vd="https:"==document.location.protocol?"https://":"http://";t.VERSION="4.12.1";
+t.options={techOrder:["html5","flash"],html5:{},flash:{},width:300,height:150,defaultVolume:0,playbackRates:[],inactivityTimeout:2E3,children:{mediaLoader:{},posterImage:{},loadingSpinner:{},textTrackDisplay:{},bigPlayButton:{},controlBar:{},errorDisplay:{},textTrackSettings:{}},language:document.getElementsByTagName("html")[0].getAttribute("lang")||navigator.languages&&navigator.languages[0]||navigator.If||navigator.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this video."};
+"GENERATED_CDN_VSN"!==t.ic&&(videojs.options.flash.swf=t.vd+"vjs.zencdn.net/"+t.ic+"/video-js.swf");t.Jd=function(a,c){t.options.languages[a]=t.options.languages[a]!==b?t.$.ya(t.options.languages[a],c):c;return t.options.languages};t.Aa={};"function"===typeof define&&define.amd?define("videojs",[],function(){return videojs}):"object"===typeof exports&&"object"===typeof module&&(module.exports=videojs);t.Ea=t.CoreObject=m();
+t.Ea.extend=function(a){var c,d;a=a||{};c=a.init||a.l||this.prototype.init||this.prototype.l||m();d=function(){c.apply(this,arguments)};d.prototype=t.i.create(this.prototype);d.prototype.constructor=d;d.extend=t.Ea.extend;d.create=t.Ea.create;for(var e in a)a.hasOwnProperty(e)&&(d.prototype[e]=a[e]);return d};t.Ea.create=function(){var a=t.i.create(this.prototype);this.apply(a,arguments);return a};
+t.b=function(a,c,d){if(t.i.isArray(c))return v(t.b,a,c,d);var e=t.getData(a);e.G||(e.G={});e.G[c]||(e.G[c]=[]);d.s||(d.s=t.s++);e.G[c].push(d);e.ca||(e.disabled=l,e.ca=function(c){if(!e.disabled){c=t.Pb(c);var d=e.G[c.type];if(d)for(var d=d.slice(0),k=0,p=d.length;kt.hc;t.jc=/Firefox/i.test(t.P);t.lf=/Chrome/i.test(t.P);t.oa=/MSIE\s8\.0/.test(t.P);t.Eb=!!("ontouchstart"in window||window.xd&&document instanceof window.xd);t.wd="backgroundSize"in t.A.style;
+t.ed=function(a,c){t.i.da(c,function(c,e){e===j||"undefined"===typeof e||e===l?a.removeAttribute(c):a.setAttribute(c,e===f?"":e)})};t.Na=function(a){var c,d,e,g;c={};if(a&&a.attributes&&0e?"0"+e:e)+":")+(10>d?"0"+d:d)};t.Ld=function(){document.body.focus();document.onselectstart=q(l)};t.af=function(){document.onselectstart=q(f)};t.trim=function(a){return(a+"").replace(/^\s+|\s+$/g,"")};t.round=function(a,c){c||(c=0);return Math.round(a*Math.pow(10,c))/Math.pow(10,c)};
+t.Lb=function(a,c){return{length:1,start:function(){return a},end:function(){return c}}};t.Me=function(a){try{var c=window.localStorage||l;c&&(c.volume=a)}catch(d){22==d.code||1014==d.code?t.log("LocalStorage Full (VideoJS)",d):18==d.code?t.log("LocalStorage not allowed (VideoJS)",d):t.log("LocalStorage Error (VideoJS)",d)}};t.$d=function(a){a.match(/^https?:\/\//)||(a=t.e("div",{innerHTML:'x '}).firstChild.href);return a};
+t.Ee=function(a){var c,d,e,g;g="protocol hostname port pathname search hash host".split(" ");d=t.e("a",{href:a});if(e=""===d.host&&"file:"!==d.protocol)c=t.e("div"),c.innerHTML=' ',d=c.firstChild,c.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(c);a={};for(var h=0;he&&(a.preventDefault(),this.o("tap")))})}
+s.setTimeout=function(a,c){function d(){this.clearTimeout(e)}a=t.bind(this,a);var e=setTimeout(a,c);d.s="vjs-timeout-"+e;this.b("dispose",d);return e};s.clearTimeout=function(a){function c(){}clearTimeout(a);c.s="vjs-timeout-"+a;this.n("dispose",c);return a};s.setInterval=function(a,c){function d(){this.clearInterval(e)}a=t.bind(this,a);var e=setInterval(a,c);d.s="vjs-interval-"+e;this.b("dispose",d);return e};
+s.clearInterval=function(a){function c(){}clearInterval(a);c.s="vjs-interval-"+a;this.n("dispose",c);return a};t.w=t.a.extend({l:function(a,c){t.a.call(this,a,c);da(this);this.b("tap",this.u);this.b("click",this.u);this.b("focus",this.lb);this.b("blur",this.kb)}});s=t.w.prototype;
+s.e=function(a,c){var d;c=t.i.D({className:this.T(),role:"button","aria-live":"polite",tabIndex:0},c);d=t.a.prototype.e.call(this,a,c);c.innerHTML||(this.B=t.e("div",{className:"vjs-control-content"}),this.Jb=t.e("span",{className:"vjs-control-text",innerHTML:this.v(this.sa)||"Need Text"}),this.B.appendChild(this.Jb),d.appendChild(this.B));return d};s.T=function(){return"vjs-control "+t.a.prototype.T.call(this)};s.u=m();s.lb=function(){t.b(document,"keydown",t.bind(this,this.ja))};
+s.ja=function(a){if(32==a.which||13==a.which)a.preventDefault(),this.u()};s.kb=function(){t.n(document,"keydown",t.bind(this,this.ja))};t.S=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.Kd=this.ea(this.q.barName);this.handle=this.ea(this.q.handleName);this.b("mousedown",this.mb);this.b("touchstart",this.mb);this.b("focus",this.lb);this.b("blur",this.kb);this.b("click",this.u);this.b(a,"controlsvisible",this.update);this.b(a,this.Yc,this.update)}});s=t.S.prototype;
+s.e=function(a,c){c=c||{};c.className+=" vjs-slider";c=t.i.D({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},c);return t.a.prototype.e.call(this,a,c)};s.mb=function(a){a.preventDefault();t.Ld();this.p("vjs-sliding");this.b(document,"mousemove",this.ka);this.b(document,"mouseup",this.za);this.b(document,"touchmove",this.ka);this.b(document,"touchend",this.za);this.ka(a)};s.ka=m();
+s.za=function(){t.af();this.r("vjs-sliding");this.n(document,"mousemove",this.ka);this.n(document,"mouseup",this.za);this.n(document,"touchmove",this.ka);this.n(document,"touchend",this.za);this.update()};s.update=function(){if(this.c){var a,c=this.Sb(),d=this.handle,e=this.Kd;if("number"!==typeof c||c!==c||0>c||Infinity===c)c=0;a=c;if(d){a=this.c.offsetWidth;var g=d.m().offsetWidth;a=g?g/a:0;c*=1-a;a=c+a/2;d.m().style.left=t.round(100*c,2)+"%"}e&&(e.m().style.width=t.round(100*a,2)+"%")}};
+function ea(a,c){var d,e,g,h;d=a.c;e=t.Yd(d);h=g=d.offsetWidth;d=a.handle;if(a.options().vertical)return h=e.top,e=c.changedTouches?c.changedTouches[0].pageY:c.pageY,d&&(d=d.m().offsetHeight,h+=d/2,g-=d),Math.max(0,Math.min(1,(h-e+g)/g));g=e.left;e=c.changedTouches?c.changedTouches[0].pageX:c.pageX;d&&(d=d.m().offsetWidth,g+=d/2,h-=d);return Math.max(0,Math.min(1,(e-g)/h))}s.lb=function(){this.b(document,"keydown",this.ja)};
+s.ja=function(a){if(37==a.which||40==a.which)a.preventDefault(),this.jd();else if(38==a.which||39==a.which)a.preventDefault(),this.kd()};s.kb=function(){this.n(document,"keydown",this.ja)};s.u=function(a){a.stopImmediatePropagation();a.preventDefault()};t.ga=t.a.extend();t.ga.prototype.defaultValue=0;t.ga.prototype.e=function(a,c){c=c||{};c.className+=" vjs-slider-handle";c=t.i.D({innerHTML:''+this.defaultValue+" "},c);return t.a.prototype.e.call(this,"div",c)};
+t.pa=t.a.extend();function fa(a,c){a.ba(c);c.b("click",t.bind(a,function(){G(this)}))}t.pa.prototype.e=function(){var a=this.options().Cc||"ul";this.B=t.e(a,{className:"vjs-menu-content"});a=t.a.prototype.e.call(this,"div",{append:this.B,className:"vjs-menu"});a.appendChild(this.B);t.b(a,"click",function(a){a.preventDefault();a.stopImmediatePropagation()});return a};t.M=t.w.extend({l:function(a,c){t.w.call(this,a,c);this.selected(c.selected)}});
+t.M.prototype.e=function(a,c){return t.w.prototype.e.call(this,"li",t.i.D({className:"vjs-menu-item",innerHTML:this.v(this.q.label)},c))};t.M.prototype.u=function(){this.selected(f)};t.M.prototype.selected=function(a){a?(this.p("vjs-selected"),this.c.setAttribute("aria-selected",f)):(this.r("vjs-selected"),this.c.setAttribute("aria-selected",l))};
+t.O=t.w.extend({l:function(a,c){t.w.call(this,a,c);this.update();this.b("keydown",this.ja);this.c.setAttribute("aria-haspopup",f);this.c.setAttribute("role","button")}});s=t.O.prototype;s.update=function(){var a=this.Ja();this.xa&&this.removeChild(this.xa);this.xa=a;this.ba(a);this.H&&0===this.H.length?this.X():this.H&&1a&&(a=Infinity),this.duration(a),Infinity===a?this.p("vjs-live"):this.r("vjs-live"))};s.we=function(){this.isFullscreen()?this.p("vjs-fullscreen"):this.r("vjs-fullscreen")};
+function N(a,c,d){if(a.h&&!a.h.wa)a.h.I(function(){this[c](d)});else try{a.h[c](d)}catch(e){throw t.log(e),e;}}function M(a,c){if(a.h&&a.h.wa)try{return a.h[c]()}catch(d){throw a.h[c]===b?t.log("Video.js: "+c+" method not defined for "+a.Ua+" playback technology.",d):"TypeError"==d.name?(t.log("Video.js: "+c+" unavailable on "+a.Ua+" playback technology element.",d),a.h.wa=l):t.log(d),d;}}s.play=function(){N(this,"play");return this};s.pause=function(){N(this,"pause");return this};
+s.paused=function(){return M(this,"paused")===l?l:f};s.currentTime=function(a){return a!==b?(N(this,"setCurrentTime",a),this):this.K.currentTime=M(this,"currentTime")||0};s.duration=function(a){if(a!==b)return this.K.duration=parseFloat(a),this;this.K.duration===b&&this.Wc();return this.K.duration||0};s.remainingTime=function(){return this.duration()-this.currentTime()};s.buffered=function(){var a=M(this,"buffered");if(!a||!a.length)a=t.Lb(0,0);return a};
+s.bufferedPercent=function(){var a=this.duration(),c=this.buffered(),d=0,e,g;if(!a)return 0;for(var h=0;ha&&(g=a),d+=g-e;return d/a};s.volume=function(a){if(a!==b)return a=Math.max(0,Math.min(1,parseFloat(a))),this.K.volume=a,N(this,"setVolume",a),t.Me(a),this;a=parseFloat(M(this,"volume"));return isNaN(a)?1:a};s.muted=function(a){return a!==b?(N(this,"setMuted",a),this):M(this,"muted")||l};s.Ta=function(){return M(this,"supportsFullScreen")||l};s.Qc=l;
+s.isFullscreen=function(a){return a!==b?(this.Qc=!!a,this):this.Qc};s.isFullScreen=function(a){t.log.warn('player.isFullScreen() has been deprecated, use player.isFullscreen() with a lowercase "s")');return this.isFullscreen(a)};
+s.requestFullscreen=function(){var a=t.cb.Rb;this.isFullscreen(f);a?(t.b(document,a.fullscreenchange,t.bind(this,function(c){this.isFullscreen(document[a.fullscreenElement]);this.isFullscreen()===l&&t.n(document,a.fullscreenchange,arguments.callee);this.o("fullscreenchange")})),this.c[a.requestFullscreen]()):this.h.Ta()?N(this,"enterFullScreen"):(this.Jc(),this.o("fullscreenchange"));return this};
+s.requestFullScreen=function(){t.log.warn('player.requestFullScreen() has been deprecated, use player.requestFullscreen() with a lowercase "s")');return this.requestFullscreen()};s.exitFullscreen=function(){var a=t.cb.Rb;this.isFullscreen(l);if(a)document[a.exitFullscreen]();else this.h.Ta()?N(this,"exitFullScreen"):(this.Nb(),this.o("fullscreenchange"));return this};s.cancelFullScreen=function(){t.log.warn("player.cancelFullScreen() has been deprecated, use player.exitFullscreen()");return this.exitFullscreen()};
+s.Jc=function(){this.je=f;this.Ud=document.documentElement.style.overflow;t.b(document,"keydown",t.bind(this,this.Kc));document.documentElement.style.overflow="hidden";t.p(document.body,"vjs-full-window");this.o("enterFullWindow")};s.Kc=function(a){27===a.keyCode&&(this.isFullscreen()===f?this.exitFullscreen():this.Nb())};s.Nb=function(){this.je=l;t.n(document,"keydown",this.Kc);document.documentElement.style.overflow=this.Ud;t.r(document.body,"vjs-full-window");this.o("exitFullWindow")};
+s.selectSource=function(a){for(var c=0,d=this.q.techOrder;c'+this.v("Stream Type")+""+this.v("LIVE"),"aria-live":"off"});a.appendChild(this.B);return a};t.nc=t.w.extend({l:function(a,c){t.w.call(this,a,c);this.b(a,"play",this.$b);this.b(a,"pause",this.Zb)}});s=t.nc.prototype;s.sa="Play";
+s.T=function(){return"vjs-play-control "+t.w.prototype.T.call(this)};s.u=function(){this.d.paused()?this.d.play():this.d.pause()};s.$b=function(){this.r("vjs-paused");this.p("vjs-playing");this.c.children[0].children[0].innerHTML=this.v("Pause")};s.Zb=function(){this.r("vjs-playing");this.p("vjs-paused");this.c.children[0].children[0].innerHTML=this.v("Play")};t.vb=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.b(a,"timeupdate",this.ma)}});
+t.vb.prototype.e=function(){var a=t.a.prototype.e.call(this,"div",{className:"vjs-current-time vjs-time-controls vjs-control"});this.B=t.e("div",{className:"vjs-current-time-display",innerHTML:'Current Time 0:00',"aria-live":"off"});a.appendChild(this.B);return a};t.vb.prototype.ma=function(){var a=this.d.ob?this.d.K.currentTime:this.d.currentTime();this.B.innerHTML=''+this.v("Current Time")+" "+t.Ma(a,this.d.duration())};
+t.wb=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.b(a,"timeupdate",this.ma)}});t.wb.prototype.e=function(){var a=t.a.prototype.e.call(this,"div",{className:"vjs-duration vjs-time-controls vjs-control"});this.B=t.e("div",{className:"vjs-duration-display",innerHTML:''+this.v("Duration Time")+" 0:00","aria-live":"off"});a.appendChild(this.B);return a};
+t.wb.prototype.ma=function(){var a=this.d.duration();a&&(this.B.innerHTML=''+this.v("Duration Time")+" "+t.Ma(a))};t.tc=t.a.extend({l:function(a,c){t.a.call(this,a,c)}});t.tc.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-time-divider",innerHTML:"/
"})};t.Db=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.b(a,"timeupdate",this.ma)}});
+t.Db.prototype.e=function(){var a=t.a.prototype.e.call(this,"div",{className:"vjs-remaining-time vjs-time-controls vjs-control"});this.B=t.e("div",{className:"vjs-remaining-time-display",innerHTML:''+this.v("Remaining Time")+" -0:00","aria-live":"off"});a.appendChild(this.B);return a};t.Db.prototype.ma=function(){this.d.duration()&&(this.B.innerHTML=''+this.v("Remaining Time")+" -"+t.Ma(this.d.remainingTime()))};
+t.Za=t.w.extend({l:function(a,c){t.w.call(this,a,c)}});t.Za.prototype.sa="Fullscreen";t.Za.prototype.T=function(){return"vjs-fullscreen-control "+t.w.prototype.T.call(this)};t.Za.prototype.u=function(){this.d.isFullscreen()?(this.d.exitFullscreen(),this.Jb.innerHTML=this.v("Fullscreen")):(this.d.requestFullscreen(),this.Jb.innerHTML=this.v("Non-Fullscreen"))};t.Cb=t.a.extend({l:function(a,c){t.a.call(this,a,c)}});t.Cb.prototype.q={children:{seekBar:{}}};
+t.Cb.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-progress-control vjs-control"})};t.qc=t.S.extend({l:function(a,c){t.S.call(this,a,c);this.b(a,"timeupdate",this.Ca);a.I(t.bind(this,this.Ca))}});s=t.qc.prototype;s.q={children:{loadProgressBar:{},playProgressBar:{},seekHandle:{}},barName:"playProgressBar",handleName:"seekHandle"};s.Yc="timeupdate";s.e=function(){return t.S.prototype.e.call(this,"div",{className:"vjs-progress-holder","aria-label":"video progress bar"})};
+s.Ca=function(){var a=this.d.ob?this.d.K.currentTime:this.d.currentTime();this.c.setAttribute("aria-valuenow",t.round(100*this.Sb(),2));this.c.setAttribute("aria-valuetext",t.Ma(a,this.d.duration()))};s.Sb=function(){return this.d.currentTime()/this.d.duration()};s.mb=function(a){t.S.prototype.mb.call(this,a);this.d.ob=f;this.d.p("vjs-scrubbing");this.df=!this.d.paused();this.d.pause()};s.ka=function(a){a=ea(this,a)*this.d.duration();a==this.d.duration()&&(a-=0.1);this.d.currentTime(a)};
+s.za=function(a){t.S.prototype.za.call(this,a);this.d.ob=l;this.d.r("vjs-scrubbing");this.df&&this.d.play()};s.kd=function(){this.d.currentTime(this.d.currentTime()+5)};s.jd=function(){this.d.currentTime(this.d.currentTime()-5)};t.zb=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.b(a,"progress",this.update)}});t.zb.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.v("Loaded")+" : 0% "})};
+t.zb.prototype.update=function(){var a,c,d,e,g=this.d.buffered();a=this.d.duration();var h,k=this.d;h=k.buffered();k=k.duration();h=h.end(h.length-1);h>k&&(h=k);k=this.c.children;this.c.style.width=100*(h/a||0)+"%";for(a=0;ag.length;a--)this.c.removeChild(k[a-1])};t.mc=t.a.extend({l:function(a,c){t.a.call(this,a,c)}});
+t.mc.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-play-progress",innerHTML:''+this.v("Progress")+" : 0% "})};t.$a=t.ga.extend({l:function(a,c){t.ga.call(this,a,c);this.b(a,"timeupdate",this.ma)}});t.$a.prototype.defaultValue="00:00";t.$a.prototype.e=function(){return t.ga.prototype.e.call(this,"div",{className:"vjs-seek-handle","aria-live":"off"})};
+t.$a.prototype.ma=function(){var a=this.d.ob?this.d.K.currentTime:this.d.currentTime();this.c.innerHTML=''+t.Ma(a,this.d.duration())+" "};t.Gb=t.a.extend({l:function(a,c){t.a.call(this,a,c);a.h&&a.h.featuresVolumeControl===l&&this.p("vjs-hidden");this.b(a,"loadstart",function(){a.h.featuresVolumeControl===l?this.p("vjs-hidden"):this.r("vjs-hidden")})}});t.Gb.prototype.q={children:{volumeBar:{}}};
+t.Gb.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-volume-control vjs-control"})};t.Fb=t.S.extend({l:function(a,c){t.S.call(this,a,c);this.b(a,"volumechange",this.Ca);a.I(t.bind(this,this.Ca))}});s=t.Fb.prototype;s.Ca=function(){this.c.setAttribute("aria-valuenow",t.round(100*this.d.volume(),2));this.c.setAttribute("aria-valuetext",t.round(100*this.d.volume(),2)+"%")};s.q={children:{volumeLevel:{},volumeHandle:{}},barName:"volumeLevel",handleName:"volumeHandle"};
+s.Yc="volumechange";s.e=function(){return t.S.prototype.e.call(this,"div",{className:"vjs-volume-bar","aria-label":"volume level"})};s.ka=function(a){this.d.muted()&&this.d.muted(l);this.d.volume(ea(this,a))};s.Sb=function(){return this.d.muted()?0:this.d.volume()};s.kd=function(){this.d.volume(this.d.volume()+0.1)};s.jd=function(){this.d.volume(this.d.volume()-0.1)};t.uc=t.a.extend({l:function(a,c){t.a.call(this,a,c)}});
+t.uc.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-volume-level",innerHTML:' '})};t.Hb=t.ga.extend();t.Hb.prototype.defaultValue="00:00";t.Hb.prototype.e=function(){return t.ga.prototype.e.call(this,"div",{className:"vjs-volume-handle"})};
+t.qa=t.w.extend({l:function(a,c){t.w.call(this,a,c);this.b(a,"volumechange",this.update);a.h&&a.h.featuresVolumeControl===l&&this.p("vjs-hidden");this.b(a,"loadstart",function(){a.h.featuresVolumeControl===l?this.p("vjs-hidden"):this.r("vjs-hidden")})}});t.qa.prototype.e=function(){return t.w.prototype.e.call(this,"div",{className:"vjs-mute-control vjs-control",innerHTML:''+this.v("Mute")+"
"})};
+t.qa.prototype.u=function(){this.d.muted(this.d.muted()?l:f)};t.qa.prototype.update=function(){var a=this.d.volume(),c=3;0===a||this.d.muted()?c=0:0.33>a?c=1:0.67>a&&(c=2);this.d.muted()?this.c.children[0].children[0].innerHTML!=this.v("Unmute")&&(this.c.children[0].children[0].innerHTML=this.v("Unmute")):this.c.children[0].children[0].innerHTML!=this.v("Mute")&&(this.c.children[0].children[0].innerHTML=this.v("Mute"));for(a=0;4>a;a++)t.r(this.c,"vjs-vol-"+a);t.p(this.c,"vjs-vol-"+c)};
+t.Fa=t.O.extend({l:function(a,c){t.O.call(this,a,c);this.b(a,"volumechange",this.ef);a.h&&a.h.featuresVolumeControl===l&&this.p("vjs-hidden");this.b(a,"loadstart",function(){a.h.featuresVolumeControl===l?this.p("vjs-hidden"):this.r("vjs-hidden")});this.p("vjs-menu-button")}});t.Fa.prototype.Ja=function(){var a=new t.pa(this.d,{Cc:"div"}),c=new t.Fb(this.d,this.q.volumeBar);c.b("focus",function(){a.p("vjs-lock-showing")});c.b("blur",function(){G(a)});a.ba(c);return a};
+t.Fa.prototype.u=function(){t.qa.prototype.u.call(this);t.O.prototype.u.call(this)};t.Fa.prototype.e=function(){return t.w.prototype.e.call(this,"div",{className:"vjs-volume-menu-button vjs-menu-button vjs-control",innerHTML:''+this.v("Mute")+"
"})};t.Fa.prototype.ef=t.qa.prototype.update;t.oc=t.O.extend({l:function(a,c){t.O.call(this,a,c);this.sd();this.rd();this.b(a,"loadstart",this.sd);this.b(a,"ratechange",this.rd)}});s=t.oc.prototype;s.sa="Playback Rate";
+s.className="vjs-playback-rate";s.e=function(){var a=t.O.prototype.e.call(this);this.Sc=t.e("div",{className:"vjs-playback-rate-value",innerHTML:1});a.appendChild(this.Sc);return a};s.Ja=function(){var a=new t.pa(this.k()),c=this.k().options().playbackRates;if(c)for(var d=c.length-1;0<=d;d--)a.ba(new t.Bb(this.k(),{rate:c[d]+"x"}));return a};s.Ca=function(){this.m().setAttribute("aria-valuenow",this.k().playbackRate())};
+s.u=function(){for(var a=this.k().playbackRate(),c=this.k().options().playbackRates,d=c[0],e=0;ea){d=c[e];break}this.k().playbackRate(d)};function na(a){return a.k().h&&a.k().h.featuresPlaybackRate&&a.k().options().playbackRates&&0',"aria-label":"play video"})};t.sb.prototype.u=function(){this.d.play()};t.xb=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.update();this.b(a,"error",this.update)}});
+t.xb.prototype.e=function(){var a=t.a.prototype.e.call(this,"div",{className:"vjs-error-display"});this.B=t.e("div");a.appendChild(this.B);return a};t.xb.prototype.update=function(){this.k().error()&&(this.B.innerHTML=this.v(this.k().error().message))};var O;t.j=t.a.extend({l:function(a,c,d){c=c||{};c.dd=l;t.a.call(this,a,c,d);this.featuresProgressEvents||this.re();this.featuresTimeupdateEvents||this.se();this.fe();this.featuresNativeTextTracks||this.Vd();this.he()}});s=t.j.prototype;
+s.fe=function(){var a,c;a=this.k();c=function(){a.controls()&&!a.usingNativeControls()&&this.Id()};this.I(c);this.b(a,"controlsenabled",c);this.b(a,"controlsdisabled",this.He);this.I(function(){this.networkState&&0 '});e=t.i.D({data:a,width:"100%",height:"100%"},e);t.i.da(e,function(a,c){k+=a+'="'+c+'" '});return'"+h+" "};t.g.Ue={"rtmp/mp4":"MP4","rtmp/flv":"FLV"};t.g.Hf=function(a,c){return a+"&"+c};
+t.g.Te=function(a){var c={Bc:"",md:""};if(!a)return c;var d=a.indexOf("&"),e;-1!==d?e=d+1:(d=e=a.lastIndexOf("/")+1,0===d&&(d=e=a.length));c.Bc=a.substring(0,d);c.md=a.substring(e,a.length);return c};t.g.me=function(a){return a in t.g.Ue};t.g.Gd=/^rtmp[set]?:\/\//i;t.g.le=function(a){return t.g.Gd.test(a)};t.g.ac={};t.g.ac.eb=function(a){return t.g.me(a.type)||t.g.le(a.src)?"maybe":""};t.g.ac.Tb=function(a,c){var d=t.g.Te(a.src);c.setRtmpConnection(d.Bc);c.setRtmpStream(d.md)};t.g.Ra(t.g.ac);
+t.Fd=t.a.extend({l:function(a,c,d){t.a.call(this,a,c,d);if(!a.q.sources||0===a.q.sources.length){c=0;for(d=a.q.techOrder;c=e?d.push(g):g.startTime===g.endTime&&(g.startTime<=e&&g.startTime+0.5>=e)&&d.push(g);A=l;if(d.length!==this.Ga.length)A=f;else for(a=0;a>>0;if(0===g)return-1;d=+c||0;Infinity===Math.abs(d)&&(d=0);if(d>=g)return-1;for(d=Math.max(0<=d?d:g-Math.abs(d),0);d=this.H.length&&this.X();d&&(e=t.bind(this,this.update),d.addEventListener("removetrack",e),d.addEventListener("addtrack",e),this.d.b("dispose",function(){d.removeEventListener("removetrack",e);d.removeEventListener("addtrack",e)}))}});
+t.Q.prototype.Ia=function(){var a=[],c,d;this instanceof t.na&&(!this.k().h||!this.k().h.featuresNativeTextTracks)&&a.push(new t.tb(this.d,{kind:this.fa}));a.push(new t.Ab(this.d,{kind:this.fa}));d=this.d.textTracks();if(!d)return a;for(var e=0;ea?this.show():this.X()};t.ab=t.Q.extend({l:function(a,c,d){t.Q.call(this,a,c,d);this.c.setAttribute("aria-label","Subtitles Menu")}});t.ab.prototype.fa="subtitles";t.ab.prototype.sa="Subtitles";t.ab.prototype.className="vjs-subtitles-button";
+t.Xa=t.Q.extend({l:function(a,c,d){t.Q.call(this,a,c,d);this.c.setAttribute("aria-label","Chapters Menu")}});s=t.Xa.prototype;s.fa="chapters";s.sa="Chapters";s.className="vjs-chapters-button";s.Ia=function(){var a=[],c,d;d=this.d.textTracks();if(!d)return a;for(var e=0;e select").selectedIndex=0;this.m().querySelector(".vjs-bg-color > select").selectedIndex=0;this.m().querySelector(".window-color > select").selectedIndex=0;this.m().querySelector(".vjs-text-opacity > select").selectedIndex=
+0;this.m().querySelector(".vjs-bg-opacity > select").selectedIndex=0;this.m().querySelector(".vjs-window-opacity > select").selectedIndex=0;this.m().querySelector(".vjs-edge-style select").selectedIndex=0;this.m().querySelector(".vjs-font-family select").selectedIndex=0;this.m().querySelector(".vjs-font-percent select").selectedIndex=2;this.C()}));t.b(this.m().querySelector(".vjs-fg-color > select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-bg-color > select"),"change",t.bind(this,
+this.C));t.b(this.m().querySelector(".window-color > select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-text-opacity > select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-bg-opacity > select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-window-opacity > select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-font-percent select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-edge-style select"),"change",t.bind(this,
+this.C));t.b(this.m().querySelector(".vjs-font-family select"),"change",t.bind(this,this.C));a.options().persistTextTrackSettings&&this.Ie()}});s=t.sc.prototype;s.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:'Foreground --- White Black Red Green Blue Yellow Magenta Cyan --- Opaque Semi-Opaque
Background --- White Black Red Green Blue Yellow Magenta Cyan --- Opaque Semi-Transparent Transparent
Window --- White Black Red Green Blue Yellow Magenta Cyan --- Opaque Semi-Transparent Transparent
Font Size 50% 75% 100% 125% 150% 175% 200% 300% 400%
Text Edge Style None Raised Depressed Uniform Dropshadow
Font Family Default Monospace Serif Proportional Serif Monospace Sans-Serif Proportional Sans-Serif Casual Script Small Caps
Defaults Done
'})};
+s.Lc=function(){var a,c,d,e,g,h,k,p,r,u;a=this.m();g=X(a.querySelector(".vjs-edge-style select"));h=X(a.querySelector(".vjs-font-family select"));k=X(a.querySelector(".vjs-fg-color > select"));d=X(a.querySelector(".vjs-text-opacity > select"));p=X(a.querySelector(".vjs-bg-color > select"));c=X(a.querySelector(".vjs-bg-opacity > select"));r=X(a.querySelector(".window-color > select"));e=X(a.querySelector(".vjs-window-opacity > select"));a=window.parseFloat(X(a.querySelector(".vjs-font-percent > select")));
+c={backgroundOpacity:c,textOpacity:d,windowOpacity:e,edgeStyle:g,fontFamily:h,color:k,backgroundColor:p,windowColor:r,fontPercent:a};for(u in c)(""===c[u]||"none"===c[u]||"fontPercent"===u&&1===c[u])&&delete c[u];return c};
+s.Re=function(a){var c=this.m();Y(c.querySelector(".vjs-edge-style select"),a.La);Y(c.querySelector(".vjs-font-family select"),a.fontFamily);Y(c.querySelector(".vjs-fg-color > select"),a.color);Y(c.querySelector(".vjs-text-opacity > select"),a.nd);Y(c.querySelector(".vjs-bg-color > select"),a.backgroundColor);Y(c.querySelector(".vjs-bg-opacity > select"),a.yc);Y(c.querySelector(".window-color > select"),a.fc);Y(c.querySelector(".vjs-window-opacity > select"),a.ud);(a=a.Qb)&&(a=a.toFixed(2));Y(c.querySelector(".vjs-font-percent > select"),
+a)};s.Ie=function(){var a;try{a=JSON.parse(window.localStorage.getItem("vjs-text-track-settings"))}catch(c){}a&&this.Re(a)};s.Je=function(){var a;if(this.d.options().persistTextTrackSettings){a=this.Lc();try{t.ib(a)?window.localStorage.removeItem("vjs-text-track-settings"):window.localStorage.setItem("vjs-text-track-settings",JSON.stringify(a))}catch(c){}}};s.C=function(){var a=this.d.ea("textTrackDisplay");a&&a.C()};
+if("undefined"!==typeof window.JSON&&"function"===typeof window.JSON.parse)t.JSON=window.JSON;else{t.JSON={};var Z=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;t.JSON.parse=function(a,c){function d(a,e){var k,p,r=a[e];if(r&&"object"===typeof r)for(k in r)Object.prototype.hasOwnProperty.call(r,k)&&(p=d(r,k),p!==b?r[k]=p:delete r[k]);return c.call(a,e,r)}var e;a=String(a);Z.lastIndex=0;Z.test(a)&&(a=a.replace(Z,function(a){return"\\u"+("0000"+
+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof c?d({"":e},""):e;throw new SyntaxError("JSON.parse(): invalid or malformed JSON data");}}
+t.xc=function(){var a,c,d,e;a=document.getElementsByTagName("video");c=document.getElementsByTagName("audio");var g=[];if(a&&0a||a>100)throw new Error("Position must be between 0 and 100.");u=a,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",e({},j,{get:function(){return v},set:function(a){var b=d(a);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");v=b,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",e({},j,{get:function(){return w},set:function(a){if(0>a||a>100)throw new Error("Size must be between 0 and 100.");w=a,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",e({},j,{get:function(){return x},set:function(a){var b=d(a);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");x=b,this.hasBeenReset=!0}})),h.displayState=void 0,i?h:void 0}var g="auto",h={"":!0,lr:!0,rl:!0},i={start:!0,middle:!0,end:!0,left:!0,right:!0};f.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},a.VTTCue=a.VTTCue||f,b.VTTCue=f}(this,this.vttjs||{}),function(a,b){function c(a){if("string"!=typeof a)return!1;var b=f[a.toLowerCase()];return b?a.toLowerCase():!1}function d(a){return"number"==typeof a&&a>=0&&100>=a}function e(){var a=100,b=3,e=0,f=100,g=0,h=100,i="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return a},set:function(b){if(!d(b))throw new Error("Width must be between 0 and 100.");a=b}},lines:{enumerable:!0,get:function(){return b},set:function(a){if("number"!=typeof a)throw new TypeError("Lines must be set to a number.");b=a}},regionAnchorY:{enumerable:!0,get:function(){return f},set:function(a){if(!d(a))throw new Error("RegionAnchorX must be between 0 and 100.");f=a}},regionAnchorX:{enumerable:!0,get:function(){return e},set:function(a){if(!d(a))throw new Error("RegionAnchorY must be between 0 and 100.");e=a}},viewportAnchorY:{enumerable:!0,get:function(){return h},set:function(a){if(!d(a))throw new Error("ViewportAnchorY must be between 0 and 100.");h=a}},viewportAnchorX:{enumerable:!0,get:function(){return g},set:function(a){if(!d(a))throw new Error("ViewportAnchorX must be between 0 and 100.");g=a}},scroll:{enumerable:!0,get:function(){return i},set:function(a){var b=c(a);if(b===!1)throw new SyntaxError("An invalid or illegal string was specified.");i=b}}})}var f={"":!0,up:!0};a.VTTRegion=a.VTTRegion||e,b.VTTRegion=e}(this,this.vttjs||{}),function(a){function b(a,b){this.name="ParsingError",this.code=a.code,this.message=b||a.message}function c(a){function b(a,b,c,d){return 3600*(0|a)+60*(0|b)+(0|c)+(0|d)/1e3}var c=a.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return c?c[3]?b(c[1],c[2],c[3].replace(":",""),c[4]):c[1]>59?b(c[1],c[2],0,c[4]):b(0,c[1],c[2],c[4]):null}function d(){this.values=o(null)}function e(a,b,c,d){var e=d?a.split(d):[a];for(var f in e)if("string"==typeof e[f]){var g=e[f].split(c);if(2===g.length){var h=g[0],i=g[1];b(h,i)}}}function f(a,f,g){function h(){var d=c(a);if(null===d)throw new b(b.Errors.BadTimeStamp,"Malformed timestamp: "+k);return a=a.replace(/^[^\sa-zA-Z-]+/,""),d}function i(a,b){var c=new d;e(a,function(a,b){switch(a){case"region":for(var d=g.length-1;d>=0;d--)if(g[d].id===b){c.set(a,g[d].region);break}break;case"vertical":c.alt(a,b,["rl","lr"]);break;case"line":var e=b.split(","),f=e[0];c.integer(a,f),c.percent(a,f)?c.set("snapToLines",!1):null,c.alt(a,f,["auto"]),2===e.length&&c.alt("lineAlign",e[1],["start","middle","end"]);break;case"position":e=b.split(","),c.percent(a,e[0]),2===e.length&&c.alt("positionAlign",e[1],["start","middle","end"]);break;case"size":c.percent(a,b);break;case"align":c.alt(a,b,["start","middle","end","left","right"])}},/:/,/\s/),b.region=c.get("region",null),b.vertical=c.get("vertical",""),b.line=c.get("line","auto"),b.lineAlign=c.get("lineAlign","start"),b.snapToLines=c.get("snapToLines",!0),b.size=c.get("size",100),b.align=c.get("align","middle"),b.position=c.get("position",{start:0,left:0,middle:50,end:100,right:100},b.align),b.positionAlign=c.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},b.align)}function j(){a=a.replace(/^\s+/,"")}var k=a;if(j(),f.startTime=h(),j(),"-->"!==a.substr(0,3))throw new b(b.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+k);a=a.substr(3),j(),f.endTime=h(),j(),i(a,f)}function g(a,b){function d(){function a(a){return b=b.substr(a.length),a}if(!b)return null;var c=b.match(/^([^<]*)(<[^>]+>?)?/);return a(c[1]?c[1]:c[2])}function e(a){return p[a]}function f(a){for(;o=a.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)a=a.replace(o[0],e);return a}function g(a,b){return!s[b.localName]||s[b.localName]===a.localName}function h(b,c){var d=q[b];if(!d)return null;var e=a.document.createElement(d);e.localName=d;var f=r[b];return f&&c&&(e[f]=c.trim()),e}for(var i,j=a.document.createElement("div"),k=j,l=[];null!==(i=d());)if("<"!==i[0])k.appendChild(a.document.createTextNode(f(i)));else{if("/"===i[1]){l.length&&l[l.length-1]===i.substr(2).replace(">","")&&(l.pop(),k=k.parentNode);continue}var m,n=c(i.substr(1,i.length-2));if(n){m=a.document.createProcessingInstruction("timestamp",n),k.appendChild(m);continue}var o=i.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!o)continue;if(m=h(o[1],o[3]),!m)continue;if(!g(k,m))continue;o[2]&&(m.className=o[2].substr(1).replace("."," ")),l.push(o[1]),k.appendChild(m),k=m}return j}function h(a){function b(a,b){for(var c=b.childNodes.length-1;c>=0;c--)a.push(b.childNodes[c])}function c(a){if(!a||!a.length)return null;var d=a.pop(),e=d.textContent||d.innerText;if(e){var f=e.match(/^.*(\n|\r)/);return f?(a.length=0,f[0]):e}return"ruby"===d.tagName?c(a):d.childNodes?(b(a,d),c(a)):void 0}var d,e=[],f="";if(!a||!a.childNodes)return"ltr";for(b(e,a);f=c(e);)for(var g=0;g=0&&a.line<=100))return a.line;if(!a.track||!a.track.textTrackList||!a.track.textTrackList.mediaElement)return-1;for(var b=a.track,c=b.textTrackList,d=0,e=0;ei&&(e=new l(a),g=i),a=new l(f)}return e||f}var f=new l(b),g=b.cue,h=i(g),j=[];if(g.snapToLines){var k;switch(g.vertical){case"":j=["+y","-y"],k="height";break;case"rl":j=["+x","-x"],k="width";break;case"lr":j=["-x","+x"],k="width"}var m=f.lineHeight,n=m*Math.round(h),o=c[k]+m,p=j[0];Math.abs(n)>o&&(n=0>n?-1:1,n*=Math.ceil(o/m)*m),0>h&&(n+=""===g.vertical?c.height:c.width,j=j.reverse()),f.move(p,n)}else{var q=f.lineHeight/c.height*100;switch(g.lineAlign){case"middle":h-=q/2;break;case"end":h-=q}switch(g.vertical){case"":b.applyStyles({top:b.formatStyle(h,"%")});break;case"rl":b.applyStyles({left:b.formatStyle(h,"%")});break;case"lr":b.applyStyles({right:b.formatStyle(h,"%")})}j=["+y","-x","+x","-y"],f=new l(b)}var r=e(f,j);b.move(r.toCSSCompatValues(c))}function n(){}var o=Object.create||function(){function a(){}return function(b){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return a.prototype=b,new a}}();b.prototype=o(Error.prototype),b.prototype.constructor=b,b.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},d.prototype={set:function(a,b){this.get(a)||""===b||(this.values[a]=b)},get:function(a,b,c){return c?this.has(a)?this.values[a]:b[c]:this.has(a)?this.values[a]:b},has:function(a){return a in this.values},alt:function(a,b,c){for(var d=0;d=0&&100>=b)?(this.set(a,b),!0):!1}};var p={"&":"&","<":"<",">":">","":"","":""," ":" "},q={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},r={v:"title",lang:"lang"},s={rt:"ruby"},t=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];j.prototype.applyStyles=function(a,b){b=b||this.div;for(var c in a)a.hasOwnProperty(c)&&(b.style[c]=a[c])},j.prototype.formatStyle=function(a,b){return 0===a?0:a+b},k.prototype=o(j.prototype),k.prototype.constructor=k,l.prototype.move=function(a,b){switch(b=void 0!==b?b:this.lineHeight,a){case"+x":this.left+=b,this.right+=b;break;case"-x":this.left-=b,this.right-=b;break;case"+y":this.top+=b,this.bottom+=b;break;case"-y":this.top-=b,this.bottom-=b}},l.prototype.overlaps=function(a){return this.lefta.left&&this.topa.top},l.prototype.overlapsAny=function(a){for(var b=0;b=a.top&&this.bottom<=a.bottom&&this.left>=a.left&&this.right<=a.right},l.prototype.overlapsOppositeAxis=function(a,b){switch(b){case"+x":return this.lefta.right;case"+y":return this.topa.bottom}},l.prototype.intersectPercentage=function(a){var b=Math.max(0,Math.min(this.right,a.right)-Math.max(this.left,a.left)),c=Math.max(0,Math.min(this.bottom,a.bottom)-Math.max(this.top,a.top)),d=b*c;return d/(this.height*this.width)},l.prototype.toCSSCompatValues=function(a){return{top:this.top-a.top,bottom:a.bottom-this.bottom,left:this.left-a.left,right:a.right-this.right,height:this.height,width:this.width}},l.getSimpleBoxPosition=function(a){var b=a.div?a.div.offsetHeight:a.tagName?a.offsetHeight:0,c=a.div?a.div.offsetWidth:a.tagName?a.offsetWidth:0,d=a.div?a.div.offsetTop:a.tagName?a.offsetTop:0;a=a.div?a.div.getBoundingClientRect():a.tagName?a.getBoundingClientRect():a;var e={left:a.left,right:a.right,top:a.top||d,height:a.height||b,bottom:a.bottom||d+(a.height||b),width:a.width||c};return e},n.StringDecoder=function(){return{decode:function(a){if(!a)return"";if("string"!=typeof a)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(a))}}},n.convertCueToDOMTree=function(a,b){return a&&b?g(a,b):null};var u=.05,v="sans-serif",w="1.5%";n.processCues=function(a,b,c){function d(a){for(var b=0;b")){i.cue.id=j;continue}case"CUE":try{f(j,i.cue,i.regionList)}catch(m){i.reportOrThrowError(m),i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":var n=-1!==j.indexOf("-->");if(!j||n&&(l=!0)){i.oncue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}i.cue.text&&(i.cue.text+="\n"),i.cue.text+=j;continue;case"BADCUE":j||(i.state="ID");continue}}}catch(m){i.reportOrThrowError(m),"CUETEXT"===i.state&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state="INITIAL"===i.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var a=this;try{if(a.buffer+=a.decoder.decode(),(a.cue||"HEADER"===a.state)&&(a.buffer+="\n\n",a.parse()),"INITIAL"===a.state)throw new b(b.Errors.BadSignature)}catch(c){a.reportOrThrowError(c)}return a.onflush&&a.onflush(),this}},a.WebVTT=n}(this,this.vttjs||{});
\ No newline at end of file
diff --git a/bower_components/video.js/dist/video-js/video.novtt.dev.js b/bower_components/video.js/dist/video-js/video.novtt.dev.js
new file mode 100644
index 0000000..344f352
--- /dev/null
+++ b/bower_components/video.js/dist/video-js/video.novtt.dev.js
@@ -0,0 +1,9846 @@
+/**
+ * @fileoverview Main function src.
+ */
+
+// HTML5 Shiv. Must be in to support older browsers.
+document.createElement('video');
+document.createElement('audio');
+document.createElement('track');
+
+/**
+ * Doubles as the main function for users to create a player instance and also
+ * the main library object.
+ *
+ * **ALIASES** videojs, _V_ (deprecated)
+ *
+ * The `vjs` function can be used to initialize or retrieve a player.
+ *
+ * var myPlayer = vjs('my_video_id');
+ *
+ * @param {String|Element} id Video element or video element ID
+ * @param {Object=} options Optional options object for config/settings
+ * @param {Function=} ready Optional ready callback
+ * @return {vjs.Player} A player instance
+ * @namespace
+ */
+var vjs = function(id, options, ready){
+ var tag; // Element of ID
+
+ // Allow for element or ID to be passed in
+ // String ID
+ if (typeof id === 'string') {
+
+ // Adjust for jQuery ID syntax
+ if (id.indexOf('#') === 0) {
+ id = id.slice(1);
+ }
+
+ // If a player instance has already been created for this ID return it.
+ if (vjs.players[id]) {
+
+ // If options or ready funtion are passed, warn
+ if (options) {
+ vjs.log.warn ('Player "' + id + '" is already initialised. Options will not be applied.');
+ }
+
+ if (ready) {
+ vjs.players[id].ready(ready);
+ }
+
+ return vjs.players[id];
+
+ // Otherwise get element for ID
+ } else {
+ tag = vjs.el(id);
+ }
+
+ // ID is a media element
+ } else {
+ tag = id;
+ }
+
+ // Check for a useable element
+ if (!tag || !tag.nodeName) { // re: nodeName, could be a box div also
+ throw new TypeError('The element or ID supplied is not valid. (videojs)'); // Returns
+ }
+
+ // Element may have a player attr referring to an already created player instance.
+ // If not, set up a new player and return the instance.
+ return tag['player'] || new vjs.Player(tag, options, ready);
+};
+
+// Extended name, also available externally, window.videojs
+var videojs = window['videojs'] = vjs;
+
+// CDN Version. Used to target right flash swf.
+vjs.CDN_VERSION = '4.12';
+vjs.ACCESS_PROTOCOL = ('https:' == document.location.protocol ? 'https://' : 'http://');
+
+/**
+* Full player version
+* @type {string}
+*/
+vjs['VERSION'] = '4.12.1';
+
+/**
+ * Global Player instance options, surfaced from vjs.Player.prototype.options_
+ * vjs.options = vjs.Player.prototype.options_
+ * All options should use string keys so they avoid
+ * renaming by closure compiler
+ * @type {Object}
+ */
+vjs.options = {
+ // Default order of fallback technology
+ 'techOrder': ['html5','flash'],
+ // techOrder: ['flash','html5'],
+
+ 'html5': {},
+ 'flash': {},
+
+ // Default of web browser is 300x150. Should rely on source width/height.
+ 'width': 300,
+ 'height': 150,
+ // defaultVolume: 0.85,
+ 'defaultVolume': 0.00, // The freakin seaguls are driving me crazy!
+
+ // default playback rates
+ 'playbackRates': [],
+ // Add playback rate selection by adding rates
+ // 'playbackRates': [0.5, 1, 1.5, 2],
+
+ // default inactivity timeout
+ 'inactivityTimeout': 2000,
+
+ // Included control sets
+ 'children': {
+ 'mediaLoader': {},
+ 'posterImage': {},
+ 'loadingSpinner': {},
+ 'textTrackDisplay': {},
+ 'bigPlayButton': {},
+ 'controlBar': {},
+ 'errorDisplay': {},
+ 'textTrackSettings': {}
+ },
+
+ 'language': document.getElementsByTagName('html')[0].getAttribute('lang') || navigator.languages && navigator.languages[0] || navigator.userLanguage || navigator.language || 'en',
+
+ // locales and their language translations
+ 'languages': {},
+
+ // Default message to show when a video cannot be played.
+ 'notSupportedMessage': 'No compatible source was found for this video.'
+};
+
+// Set CDN Version of swf
+// The added (+) blocks the replace from changing this 4.12 string
+if (vjs.CDN_VERSION !== 'GENERATED'+'_CDN_VSN') {
+ videojs.options['flash']['swf'] = vjs.ACCESS_PROTOCOL + 'vjs.zencdn.net/'+vjs.CDN_VERSION+'/video-js.swf';
+}
+
+/**
+ * Utility function for adding languages to the default options. Useful for
+ * amending multiple language support at runtime.
+ *
+ * Example: vjs.addLanguage('es', {'Hello':'Hola'});
+ *
+ * @param {String} code The language code or dictionary property
+ * @param {Object} data The data values to be translated
+ * @return {Object} The resulting global languages dictionary object
+ */
+vjs.addLanguage = function(code, data){
+ if(vjs.options['languages'][code] !== undefined) {
+ vjs.options['languages'][code] = vjs.util.mergeOptions(vjs.options['languages'][code], data);
+ } else {
+ vjs.options['languages'][code] = data;
+ }
+ return vjs.options['languages'];
+};
+
+/**
+ * Global player list
+ * @type {Object}
+ */
+vjs.players = {};
+
+/*!
+ * Custom Universal Module Definition (UMD)
+ *
+ * Video.js will never be a non-browser lib so we can simplify UMD a bunch and
+ * still support requirejs and browserify. This also needs to be closure
+ * compiler compatible, so string keys are used.
+ */
+if (typeof define === 'function' && define['amd']) {
+ define('videojs', [], function(){ return videojs; });
+
+// checking that module is an object too because of umdjs/umd#35
+} else if (typeof exports === 'object' && typeof module === 'object') {
+ module['exports'] = videojs;
+}
+/**
+ * Core Object/Class for objects that use inheritance + constructors
+ *
+ * To create a class that can be subclassed itself, extend the CoreObject class.
+ *
+ * var Animal = CoreObject.extend();
+ * var Horse = Animal.extend();
+ *
+ * The constructor can be defined through the init property of an object argument.
+ *
+ * var Animal = CoreObject.extend({
+ * init: function(name, sound){
+ * this.name = name;
+ * }
+ * });
+ *
+ * Other methods and properties can be added the same way, or directly to the
+ * prototype.
+ *
+ * var Animal = CoreObject.extend({
+ * init: function(name){
+ * this.name = name;
+ * },
+ * getName: function(){
+ * return this.name;
+ * },
+ * sound: '...'
+ * });
+ *
+ * Animal.prototype.makeSound = function(){
+ * alert(this.sound);
+ * };
+ *
+ * To create an instance of a class, use the create method.
+ *
+ * var fluffy = Animal.create('Fluffy');
+ * fluffy.getName(); // -> Fluffy
+ *
+ * Methods and properties can be overridden in subclasses.
+ *
+ * var Horse = Animal.extend({
+ * sound: 'Neighhhhh!'
+ * });
+ *
+ * var horsey = Horse.create('Horsey');
+ * horsey.getName(); // -> Horsey
+ * horsey.makeSound(); // -> Alert: Neighhhhh!
+ *
+ * @class
+ * @constructor
+ */
+vjs.CoreObject = vjs['CoreObject'] = function(){};
+// Manually exporting vjs['CoreObject'] here for Closure Compiler
+// because of the use of the extend/create class methods
+// If we didn't do this, those functions would get flattened to something like
+// `a = ...` and `this.prototype` would refer to the global object instead of
+// CoreObject
+
+/**
+ * Create a new object that inherits from this Object
+ *
+ * var Animal = CoreObject.extend();
+ * var Horse = Animal.extend();
+ *
+ * @param {Object} props Functions and properties to be applied to the
+ * new object's prototype
+ * @return {vjs.CoreObject} An object that inherits from CoreObject
+ * @this {*}
+ */
+vjs.CoreObject.extend = function(props){
+ var init, subObj;
+
+ props = props || {};
+ // Set up the constructor using the supplied init method
+ // or using the init of the parent object
+ // Make sure to check the unobfuscated version for external libs
+ init = props['init'] || props.init || this.prototype['init'] || this.prototype.init || function(){};
+ // In Resig's simple class inheritance (previously used) the constructor
+ // is a function that calls `this.init.apply(arguments)`
+ // However that would prevent us from using `ParentObject.call(this);`
+ // in a Child constructor because the `this` in `this.init`
+ // would still refer to the Child and cause an infinite loop.
+ // We would instead have to do
+ // `ParentObject.prototype.init.apply(this, arguments);`
+ // Bleh. We're not creating a _super() function, so it's good to keep
+ // the parent constructor reference simple.
+ subObj = function(){
+ init.apply(this, arguments);
+ };
+
+ // Inherit from this object's prototype
+ subObj.prototype = vjs.obj.create(this.prototype);
+ // Reset the constructor property for subObj otherwise
+ // instances of subObj would have the constructor of the parent Object
+ subObj.prototype.constructor = subObj;
+
+ // Make the class extendable
+ subObj.extend = vjs.CoreObject.extend;
+ // Make a function for creating instances
+ subObj.create = vjs.CoreObject.create;
+
+ // Extend subObj's prototype with functions and other properties from props
+ for (var name in props) {
+ if (props.hasOwnProperty(name)) {
+ subObj.prototype[name] = props[name];
+ }
+ }
+
+ return subObj;
+};
+
+/**
+ * Create a new instance of this Object class
+ *
+ * var myAnimal = Animal.create();
+ *
+ * @return {vjs.CoreObject} An instance of a CoreObject subclass
+ * @this {*}
+ */
+vjs.CoreObject.create = function(){
+ // Create a new object that inherits from this object's prototype
+ var inst = vjs.obj.create(this.prototype);
+
+ // Apply this constructor function to the new object
+ this.apply(inst, arguments);
+
+ // Return the new object
+ return inst;
+};
+/**
+ * @fileoverview Event System (John Resig - Secrets of a JS Ninja http://jsninja.com/)
+ * (Original book version wasn't completely usable, so fixed some things and made Closure Compiler compatible)
+ * This should work very similarly to jQuery's events, however it's based off the book version which isn't as
+ * robust as jquery's, so there's probably some differences.
+ */
+
+/**
+ * Add an event listener to element
+ * It stores the handler function in a separate cache object
+ * and adds a generic handler to the element's event,
+ * along with a unique id (guid) to the element.
+ * @param {Element|Object} elem Element or object to bind listeners to
+ * @param {String|Array} type Type of event to bind to.
+ * @param {Function} fn Event listener.
+ * @private
+ */
+vjs.on = function(elem, type, fn){
+ if (vjs.obj.isArray(type)) {
+ return _handleMultipleEvents(vjs.on, elem, type, fn);
+ }
+
+ var data = vjs.getData(elem);
+
+ // We need a place to store all our handler data
+ if (!data.handlers) data.handlers = {};
+
+ if (!data.handlers[type]) data.handlers[type] = [];
+
+ if (!fn.guid) fn.guid = vjs.guid++;
+
+ data.handlers[type].push(fn);
+
+ if (!data.dispatcher) {
+ data.disabled = false;
+
+ data.dispatcher = function (event){
+
+ if (data.disabled) return;
+ event = vjs.fixEvent(event);
+
+ var handlers = data.handlers[event.type];
+
+ if (handlers) {
+ // Copy handlers so if handlers are added/removed during the process it doesn't throw everything off.
+ var handlersCopy = handlers.slice(0);
+
+ for (var m = 0, n = handlersCopy.length; m < n; m++) {
+ if (event.isImmediatePropagationStopped()) {
+ break;
+ } else {
+ handlersCopy[m].call(elem, event);
+ }
+ }
+ }
+ };
+ }
+
+ if (data.handlers[type].length == 1) {
+ if (elem.addEventListener) {
+ elem.addEventListener(type, data.dispatcher, false);
+ } else if (elem.attachEvent) {
+ elem.attachEvent('on' + type, data.dispatcher);
+ }
+ }
+};
+
+/**
+ * Removes event listeners from an element
+ * @param {Element|Object} elem Object to remove listeners from
+ * @param {String|Array=} type Type of listener to remove. Don't include to remove all events from element.
+ * @param {Function} fn Specific listener to remove. Don't include to remove listeners for an event type.
+ * @private
+ */
+vjs.off = function(elem, type, fn) {
+ // Don't want to add a cache object through getData if not needed
+ if (!vjs.hasData(elem)) return;
+
+ var data = vjs.getData(elem);
+
+ // If no events exist, nothing to unbind
+ if (!data.handlers) { return; }
+
+ if (vjs.obj.isArray(type)) {
+ return _handleMultipleEvents(vjs.off, elem, type, fn);
+ }
+
+ // Utility function
+ var removeType = function(t){
+ data.handlers[t] = [];
+ vjs.cleanUpEvents(elem,t);
+ };
+
+ // Are we removing all bound events?
+ if (!type) {
+ for (var t in data.handlers) removeType(t);
+ return;
+ }
+
+ var handlers = data.handlers[type];
+
+ // If no handlers exist, nothing to unbind
+ if (!handlers) return;
+
+ // If no listener was provided, remove all listeners for type
+ if (!fn) {
+ removeType(type);
+ return;
+ }
+
+ // We're only removing a single handler
+ if (fn.guid) {
+ for (var n = 0; n < handlers.length; n++) {
+ if (handlers[n].guid === fn.guid) {
+ handlers.splice(n--, 1);
+ }
+ }
+ }
+
+ vjs.cleanUpEvents(elem, type);
+};
+
+/**
+ * Clean up the listener cache and dispatchers
+ * @param {Element|Object} elem Element to clean up
+ * @param {String} type Type of event to clean up
+ * @private
+ */
+vjs.cleanUpEvents = function(elem, type) {
+ var data = vjs.getData(elem);
+
+ // Remove the events of a particular type if there are none left
+ if (data.handlers[type].length === 0) {
+ delete data.handlers[type];
+ // data.handlers[type] = null;
+ // Setting to null was causing an error with data.handlers
+
+ // Remove the meta-handler from the element
+ if (elem.removeEventListener) {
+ elem.removeEventListener(type, data.dispatcher, false);
+ } else if (elem.detachEvent) {
+ elem.detachEvent('on' + type, data.dispatcher);
+ }
+ }
+
+ // Remove the events object if there are no types left
+ if (vjs.isEmpty(data.handlers)) {
+ delete data.handlers;
+ delete data.dispatcher;
+ delete data.disabled;
+
+ // data.handlers = null;
+ // data.dispatcher = null;
+ // data.disabled = null;
+ }
+
+ // Finally remove the expando if there is no data left
+ if (vjs.isEmpty(data)) {
+ vjs.removeData(elem);
+ }
+};
+
+/**
+ * Fix a native event to have standard property values
+ * @param {Object} event Event object to fix
+ * @return {Object}
+ * @private
+ */
+vjs.fixEvent = function(event) {
+
+ function returnTrue() { return true; }
+ function returnFalse() { return false; }
+
+ // Test if fixing up is needed
+ // Used to check if !event.stopPropagation instead of isPropagationStopped
+ // But native events return true for stopPropagation, but don't have
+ // other expected methods like isPropagationStopped. Seems to be a problem
+ // with the Javascript Ninja code. So we're just overriding all events now.
+ if (!event || !event.isPropagationStopped) {
+ var old = event || window.event;
+
+ event = {};
+ // Clone the old object so that we can modify the values event = {};
+ // IE8 Doesn't like when you mess with native event properties
+ // Firefox returns false for event.hasOwnProperty('type') and other props
+ // which makes copying more difficult.
+ // TODO: Probably best to create a whitelist of event props
+ for (var key in old) {
+ // Safari 6.0.3 warns you if you try to copy deprecated layerX/Y
+ // Chrome warns you if you try to copy deprecated keyboardEvent.keyLocation
+ if (key !== 'layerX' && key !== 'layerY' && key !== 'keyLocation') {
+ // Chrome 32+ warns if you try to copy deprecated returnValue, but
+ // we still want to if preventDefault isn't supported (IE8).
+ if (!(key == 'returnValue' && old.preventDefault)) {
+ event[key] = old[key];
+ }
+ }
+ }
+
+ // The event occurred on this element
+ if (!event.target) {
+ event.target = event.srcElement || document;
+ }
+
+ // Handle which other element the event is related to
+ event.relatedTarget = event.fromElement === event.target ?
+ event.toElement :
+ event.fromElement;
+
+ // Stop the default browser action
+ event.preventDefault = function () {
+ if (old.preventDefault) {
+ old.preventDefault();
+ }
+ event.returnValue = false;
+ event.isDefaultPrevented = returnTrue;
+ event.defaultPrevented = true;
+ };
+
+ event.isDefaultPrevented = returnFalse;
+ event.defaultPrevented = false;
+
+ // Stop the event from bubbling
+ event.stopPropagation = function () {
+ if (old.stopPropagation) {
+ old.stopPropagation();
+ }
+ event.cancelBubble = true;
+ event.isPropagationStopped = returnTrue;
+ };
+
+ event.isPropagationStopped = returnFalse;
+
+ // Stop the event from bubbling and executing other handlers
+ event.stopImmediatePropagation = function () {
+ if (old.stopImmediatePropagation) {
+ old.stopImmediatePropagation();
+ }
+ event.isImmediatePropagationStopped = returnTrue;
+ event.stopPropagation();
+ };
+
+ event.isImmediatePropagationStopped = returnFalse;
+
+ // Handle mouse position
+ if (event.clientX != null) {
+ var doc = document.documentElement, body = document.body;
+
+ event.pageX = event.clientX +
+ (doc && doc.scrollLeft || body && body.scrollLeft || 0) -
+ (doc && doc.clientLeft || body && body.clientLeft || 0);
+ event.pageY = event.clientY +
+ (doc && doc.scrollTop || body && body.scrollTop || 0) -
+ (doc && doc.clientTop || body && body.clientTop || 0);
+ }
+
+ // Handle key presses
+ event.which = event.charCode || event.keyCode;
+
+ // Fix button for mouse clicks:
+ // 0 == left; 1 == middle; 2 == right
+ if (event.button != null) {
+ event.button = (event.button & 1 ? 0 :
+ (event.button & 4 ? 1 :
+ (event.button & 2 ? 2 : 0)));
+ }
+ }
+
+ // Returns fixed-up instance
+ return event;
+};
+
+/**
+ * Trigger an event for an element
+ * @param {Element|Object} elem Element to trigger an event on
+ * @param {Event|Object|String} event A string (the type) or an event object with a type attribute
+ * @private
+ */
+vjs.trigger = function(elem, event) {
+ // Fetches element data and a reference to the parent (for bubbling).
+ // Don't want to add a data object to cache for every parent,
+ // so checking hasData first.
+ var elemData = (vjs.hasData(elem)) ? vjs.getData(elem) : {};
+ var parent = elem.parentNode || elem.ownerDocument;
+ // type = event.type || event,
+ // handler;
+
+ // If an event name was passed as a string, creates an event out of it
+ if (typeof event === 'string') {
+ event = { type:event, target:elem };
+ }
+ // Normalizes the event properties.
+ event = vjs.fixEvent(event);
+
+ // If the passed element has a dispatcher, executes the established handlers.
+ if (elemData.dispatcher) {
+ elemData.dispatcher.call(elem, event);
+ }
+
+ // Unless explicitly stopped or the event does not bubble (e.g. media events)
+ // recursively calls this function to bubble the event up the DOM.
+ if (parent && !event.isPropagationStopped() && event.bubbles !== false) {
+ vjs.trigger(parent, event);
+
+ // If at the top of the DOM, triggers the default action unless disabled.
+ } else if (!parent && !event.defaultPrevented) {
+ var targetData = vjs.getData(event.target);
+
+ // Checks if the target has a default action for this event.
+ if (event.target[event.type]) {
+ // Temporarily disables event dispatching on the target as we have already executed the handler.
+ targetData.disabled = true;
+ // Executes the default action.
+ if (typeof event.target[event.type] === 'function') {
+ event.target[event.type]();
+ }
+ // Re-enables event dispatching.
+ targetData.disabled = false;
+ }
+ }
+
+ // Inform the triggerer if the default was prevented by returning false
+ return !event.defaultPrevented;
+ /* Original version of js ninja events wasn't complete.
+ * We've since updated to the latest version, but keeping this around
+ * for now just in case.
+ */
+ // // Added in addition to book. Book code was broke.
+ // event = typeof event === 'object' ?
+ // event[vjs.expando] ?
+ // event :
+ // new vjs.Event(type, event) :
+ // new vjs.Event(type);
+
+ // event.type = type;
+ // if (handler) {
+ // handler.call(elem, event);
+ // }
+
+ // // Clean up the event in case it is being reused
+ // event.result = undefined;
+ // event.target = elem;
+};
+
+/**
+ * Trigger a listener only once for an event
+ * @param {Element|Object} elem Element or object to
+ * @param {String|Array} type
+ * @param {Function} fn
+ * @private
+ */
+vjs.one = function(elem, type, fn) {
+ if (vjs.obj.isArray(type)) {
+ return _handleMultipleEvents(vjs.one, elem, type, fn);
+ }
+ var func = function(){
+ vjs.off(elem, type, func);
+ fn.apply(this, arguments);
+ };
+ // copy the guid to the new function so it can removed using the original function's ID
+ func.guid = fn.guid = fn.guid || vjs.guid++;
+ vjs.on(elem, type, func);
+};
+
+/**
+ * Loops through an array of event types and calls the requested method for each type.
+ * @param {Function} fn The event method we want to use.
+ * @param {Element|Object} elem Element or object to bind listeners to
+ * @param {String} type Type of event to bind to.
+ * @param {Function} callback Event listener.
+ * @private
+ */
+function _handleMultipleEvents(fn, elem, type, callback) {
+ vjs.arr.forEach(type, function(type) {
+ fn(elem, type, callback); //Call the event method for each one of the types
+ });
+}
+var hasOwnProp = Object.prototype.hasOwnProperty;
+
+/**
+ * Creates an element and applies properties.
+ * @param {String=} tagName Name of tag to be created.
+ * @param {Object=} properties Element properties to be applied.
+ * @return {Element}
+ * @private
+ */
+vjs.createEl = function(tagName, properties){
+ var el;
+
+ tagName = tagName || 'div';
+ properties = properties || {};
+
+ el = document.createElement(tagName);
+
+ vjs.obj.each(properties, function(propName, val){
+ // Not remembering why we were checking for dash
+ // but using setAttribute means you have to use getAttribute
+
+ // The check for dash checks for the aria-* attributes, like aria-label, aria-valuemin.
+ // The additional check for "role" is because the default method for adding attributes does not
+ // add the attribute "role". My guess is because it's not a valid attribute in some namespaces, although
+ // browsers handle the attribute just fine. The W3C allows for aria-* attributes to be used in pre-HTML5 docs.
+ // http://www.w3.org/TR/wai-aria-primer/#ariahtml. Using setAttribute gets around this problem.
+ if (propName.indexOf('aria-') !== -1 || propName == 'role') {
+ el.setAttribute(propName, val);
+ } else {
+ el[propName] = val;
+ }
+ });
+
+ return el;
+};
+
+/**
+ * Uppercase the first letter of a string
+ * @param {String} string String to be uppercased
+ * @return {String}
+ * @private
+ */
+vjs.capitalize = function(string){
+ return string.charAt(0).toUpperCase() + string.slice(1);
+};
+
+/**
+ * Object functions container
+ * @type {Object}
+ * @private
+ */
+vjs.obj = {};
+
+/**
+ * Object.create shim for prototypal inheritance
+ *
+ * https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/create
+ *
+ * @function
+ * @param {Object} obj Object to use as prototype
+ * @private
+ */
+vjs.obj.create = Object.create || function(obj){
+ //Create a new function called 'F' which is just an empty object.
+ function F() {}
+
+ //the prototype of the 'F' function should point to the
+ //parameter of the anonymous function.
+ F.prototype = obj;
+
+ //create a new constructor function based off of the 'F' function.
+ return new F();
+};
+
+/**
+ * Loop through each property in an object and call a function
+ * whose arguments are (key,value)
+ * @param {Object} obj Object of properties
+ * @param {Function} fn Function to be called on each property.
+ * @this {*}
+ * @private
+ */
+vjs.obj.each = function(obj, fn, context){
+ for (var key in obj) {
+ if (hasOwnProp.call(obj, key)) {
+ fn.call(context || this, key, obj[key]);
+ }
+ }
+};
+
+/**
+ * Merge two objects together and return the original.
+ * @param {Object} obj1
+ * @param {Object} obj2
+ * @return {Object}
+ * @private
+ */
+vjs.obj.merge = function(obj1, obj2){
+ if (!obj2) { return obj1; }
+ for (var key in obj2){
+ if (hasOwnProp.call(obj2, key)) {
+ obj1[key] = obj2[key];
+ }
+ }
+ return obj1;
+};
+
+/**
+ * Merge two objects, and merge any properties that are objects
+ * instead of just overwriting one. Uses to merge options hashes
+ * where deeper default settings are important.
+ * @param {Object} obj1 Object to override
+ * @param {Object} obj2 Overriding object
+ * @return {Object} New object. Obj1 and Obj2 will be untouched.
+ * @private
+ */
+vjs.obj.deepMerge = function(obj1, obj2){
+ var key, val1, val2;
+
+ // make a copy of obj1 so we're not overwriting original values.
+ // like prototype.options_ and all sub options objects
+ obj1 = vjs.obj.copy(obj1);
+
+ for (key in obj2){
+ if (hasOwnProp.call(obj2, key)) {
+ val1 = obj1[key];
+ val2 = obj2[key];
+
+ // Check if both properties are pure objects and do a deep merge if so
+ if (vjs.obj.isPlain(val1) && vjs.obj.isPlain(val2)) {
+ obj1[key] = vjs.obj.deepMerge(val1, val2);
+ } else {
+ obj1[key] = obj2[key];
+ }
+ }
+ }
+ return obj1;
+};
+
+/**
+ * Make a copy of the supplied object
+ * @param {Object} obj Object to copy
+ * @return {Object} Copy of object
+ * @private
+ */
+vjs.obj.copy = function(obj){
+ return vjs.obj.merge({}, obj);
+};
+
+/**
+ * Check if an object is plain, and not a dom node or any object sub-instance
+ * @param {Object} obj Object to check
+ * @return {Boolean} True if plain, false otherwise
+ * @private
+ */
+vjs.obj.isPlain = function(obj){
+ return !!obj
+ && typeof obj === 'object'
+ && obj.toString() === '[object Object]'
+ && obj.constructor === Object;
+};
+
+/**
+ * Check if an object is Array
+* Since instanceof Array will not work on arrays created in another frame we need to use Array.isArray, but since IE8 does not support Array.isArray we need this shim
+ * @param {Object} obj Object to check
+ * @return {Boolean} True if plain, false otherwise
+ * @private
+ */
+vjs.obj.isArray = Array.isArray || function(arr) {
+ return Object.prototype.toString.call(arr) === '[object Array]';
+};
+
+/**
+ * Check to see whether the input is NaN or not.
+ * NaN is the only JavaScript construct that isn't equal to itself
+ * @param {Number} num Number to check
+ * @return {Boolean} True if NaN, false otherwise
+ * @private
+ */
+vjs.isNaN = function(num) {
+ return num !== num;
+};
+
+/**
+ * Bind (a.k.a proxy or Context). A simple method for changing the context of a function
+ It also stores a unique id on the function so it can be easily removed from events
+ * @param {*} context The object to bind as scope
+ * @param {Function} fn The function to be bound to a scope
+ * @param {Number=} uid An optional unique ID for the function to be set
+ * @return {Function}
+ * @private
+ */
+vjs.bind = function(context, fn, uid) {
+ // Make sure the function has a unique ID
+ if (!fn.guid) { fn.guid = vjs.guid++; }
+
+ // Create the new function that changes the context
+ var ret = function() {
+ return fn.apply(context, arguments);
+ };
+
+ // Allow for the ability to individualize this function
+ // Needed in the case where multiple objects might share the same prototype
+ // IF both items add an event listener with the same function, then you try to remove just one
+ // it will remove both because they both have the same guid.
+ // when using this, you need to use the bind method when you remove the listener as well.
+ // currently used in text tracks
+ ret.guid = (uid) ? uid + '_' + fn.guid : fn.guid;
+
+ return ret;
+};
+
+/**
+ * Element Data Store. Allows for binding data to an element without putting it directly on the element.
+ * Ex. Event listeners are stored here.
+ * (also from jsninja.com, slightly modified and updated for closure compiler)
+ * @type {Object}
+ * @private
+ */
+vjs.cache = {};
+
+/**
+ * Unique ID for an element or function
+ * @type {Number}
+ * @private
+ */
+vjs.guid = 1;
+
+/**
+ * Unique attribute name to store an element's guid in
+ * @type {String}
+ * @constant
+ * @private
+ */
+vjs.expando = 'vdata' + (new Date()).getTime();
+
+/**
+ * Returns the cache object where data for an element is stored
+ * @param {Element} el Element to store data for.
+ * @return {Object}
+ * @private
+ */
+vjs.getData = function(el){
+ var id = el[vjs.expando];
+ if (!id) {
+ id = el[vjs.expando] = vjs.guid++;
+ }
+ if (!vjs.cache[id]) {
+ vjs.cache[id] = {};
+ }
+ return vjs.cache[id];
+};
+
+/**
+ * Returns the cache object where data for an element is stored
+ * @param {Element} el Element to store data for.
+ * @return {Object}
+ * @private
+ */
+vjs.hasData = function(el){
+ var id = el[vjs.expando];
+ return !(!id || vjs.isEmpty(vjs.cache[id]));
+};
+
+/**
+ * Delete data for the element from the cache and the guid attr from getElementById
+ * @param {Element} el Remove data for an element
+ * @private
+ */
+vjs.removeData = function(el){
+ var id = el[vjs.expando];
+ if (!id) { return; }
+ // Remove all stored data
+ // Changed to = null
+ // http://coding.smashingmagazine.com/2012/11/05/writing-fast-memory-efficient-javascript/
+ // vjs.cache[id] = null;
+ delete vjs.cache[id];
+
+ // Remove the expando property from the DOM node
+ try {
+ delete el[vjs.expando];
+ } catch(e) {
+ if (el.removeAttribute) {
+ el.removeAttribute(vjs.expando);
+ } else {
+ // IE doesn't appear to support removeAttribute on the document element
+ el[vjs.expando] = null;
+ }
+ }
+};
+
+/**
+ * Check if an object is empty
+ * @param {Object} obj The object to check for emptiness
+ * @return {Boolean}
+ * @private
+ */
+vjs.isEmpty = function(obj) {
+ for (var prop in obj) {
+ // Inlude null properties as empty.
+ if (obj[prop] !== null) {
+ return false;
+ }
+ }
+ return true;
+};
+
+/**
+ * Check if an element has a CSS class
+ * @param {Element} element Element to check
+ * @param {String} classToCheck Classname to check
+ * @private
+ */
+vjs.hasClass = function(element, classToCheck){
+ return ((' ' + element.className + ' ').indexOf(' ' + classToCheck + ' ') !== -1);
+};
+
+
+/**
+ * Add a CSS class name to an element
+ * @param {Element} element Element to add class name to
+ * @param {String} classToAdd Classname to add
+ * @private
+ */
+vjs.addClass = function(element, classToAdd){
+ if (!vjs.hasClass(element, classToAdd)) {
+ element.className = element.className === '' ? classToAdd : element.className + ' ' + classToAdd;
+ }
+};
+
+/**
+ * Remove a CSS class name from an element
+ * @param {Element} element Element to remove from class name
+ * @param {String} classToAdd Classname to remove
+ * @private
+ */
+vjs.removeClass = function(element, classToRemove){
+ var classNames, i;
+
+ if (!vjs.hasClass(element, classToRemove)) {return;}
+
+ classNames = element.className.split(' ');
+
+ // no arr.indexOf in ie8, and we don't want to add a big shim
+ for (i = classNames.length - 1; i >= 0; i--) {
+ if (classNames[i] === classToRemove) {
+ classNames.splice(i,1);
+ }
+ }
+
+ element.className = classNames.join(' ');
+};
+
+/**
+ * Element for testing browser HTML5 video capabilities
+ * @type {Element}
+ * @constant
+ * @private
+ */
+vjs.TEST_VID = vjs.createEl('video');
+(function() {
+ var track = document.createElement('track');
+ track.kind = 'captions';
+ track.srclang = 'en';
+ track.label = 'English';
+ vjs.TEST_VID.appendChild(track);
+})();
+
+/**
+ * Useragent for browser testing.
+ * @type {String}
+ * @constant
+ * @private
+ */
+vjs.USER_AGENT = navigator.userAgent;
+
+/**
+ * Device is an iPhone
+ * @type {Boolean}
+ * @constant
+ * @private
+ */
+vjs.IS_IPHONE = (/iPhone/i).test(vjs.USER_AGENT);
+vjs.IS_IPAD = (/iPad/i).test(vjs.USER_AGENT);
+vjs.IS_IPOD = (/iPod/i).test(vjs.USER_AGENT);
+vjs.IS_IOS = vjs.IS_IPHONE || vjs.IS_IPAD || vjs.IS_IPOD;
+
+vjs.IOS_VERSION = (function(){
+ var match = vjs.USER_AGENT.match(/OS (\d+)_/i);
+ if (match && match[1]) { return match[1]; }
+})();
+
+vjs.IS_ANDROID = (/Android/i).test(vjs.USER_AGENT);
+vjs.ANDROID_VERSION = (function() {
+ // This matches Android Major.Minor.Patch versions
+ // ANDROID_VERSION is Major.Minor as a Number, if Minor isn't available, then only Major is returned
+ var match = vjs.USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),
+ major,
+ minor;
+
+ if (!match) {
+ return null;
+ }
+
+ major = match[1] && parseFloat(match[1]);
+ minor = match[2] && parseFloat(match[2]);
+
+ if (major && minor) {
+ return parseFloat(match[1] + '.' + match[2]);
+ } else if (major) {
+ return major;
+ } else {
+ return null;
+ }
+})();
+// Old Android is defined as Version older than 2.3, and requiring a webkit version of the android browser
+vjs.IS_OLD_ANDROID = vjs.IS_ANDROID && (/webkit/i).test(vjs.USER_AGENT) && vjs.ANDROID_VERSION < 2.3;
+
+vjs.IS_FIREFOX = (/Firefox/i).test(vjs.USER_AGENT);
+vjs.IS_CHROME = (/Chrome/i).test(vjs.USER_AGENT);
+vjs.IS_IE8 = (/MSIE\s8\.0/).test(vjs.USER_AGENT);
+
+vjs.TOUCH_ENABLED = !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof window.DocumentTouch);
+vjs.BACKGROUND_SIZE_SUPPORTED = 'backgroundSize' in vjs.TEST_VID.style;
+
+/**
+ * Apply attributes to an HTML element.
+ * @param {Element} el Target element.
+ * @param {Object=} attributes Element attributes to be applied.
+ * @private
+ */
+vjs.setElementAttributes = function(el, attributes){
+ vjs.obj.each(attributes, function(attrName, attrValue) {
+ if (attrValue === null || typeof attrValue === 'undefined' || attrValue === false) {
+ el.removeAttribute(attrName);
+ } else {
+ el.setAttribute(attrName, (attrValue === true ? '' : attrValue));
+ }
+ });
+};
+
+/**
+ * Get an element's attribute values, as defined on the HTML tag
+ * Attributes are not the same as properties. They're defined on the tag
+ * or with setAttribute (which shouldn't be used with HTML)
+ * This will return true or false for boolean attributes.
+ * @param {Element} tag Element from which to get tag attributes
+ * @return {Object}
+ * @private
+ */
+vjs.getElementAttributes = function(tag){
+ var obj, knownBooleans, attrs, attrName, attrVal;
+
+ obj = {};
+
+ // known boolean attributes
+ // we can check for matching boolean properties, but older browsers
+ // won't know about HTML5 boolean attributes that we still read from
+ knownBooleans = ','+'autoplay,controls,loop,muted,default'+',';
+
+ if (tag && tag.attributes && tag.attributes.length > 0) {
+ attrs = tag.attributes;
+
+ for (var i = attrs.length - 1; i >= 0; i--) {
+ attrName = attrs[i].name;
+ attrVal = attrs[i].value;
+
+ // check for known booleans
+ // the matching element property will return a value for typeof
+ if (typeof tag[attrName] === 'boolean' || knownBooleans.indexOf(','+attrName+',') !== -1) {
+ // the value of an included boolean attribute is typically an empty
+ // string ('') which would equal false if we just check for a false value.
+ // we also don't want support bad code like autoplay='false'
+ attrVal = (attrVal !== null) ? true : false;
+ }
+
+ obj[attrName] = attrVal;
+ }
+ }
+
+ return obj;
+};
+
+/**
+ * Get the computed style value for an element
+ * From http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/
+ * @param {Element} el Element to get style value for
+ * @param {String} strCssRule Style name
+ * @return {String} Style value
+ * @private
+ */
+vjs.getComputedDimension = function(el, strCssRule){
+ var strValue = '';
+ if(document.defaultView && document.defaultView.getComputedStyle){
+ strValue = document.defaultView.getComputedStyle(el, '').getPropertyValue(strCssRule);
+
+ } else if(el.currentStyle){
+ // IE8 Width/Height support
+ strValue = el['client'+strCssRule.substr(0,1).toUpperCase() + strCssRule.substr(1)] + 'px';
+ }
+ return strValue;
+};
+
+/**
+ * Insert an element as the first child node of another
+ * @param {Element} child Element to insert
+ * @param {[type]} parent Element to insert child into
+ * @private
+ */
+vjs.insertFirst = function(child, parent){
+ if (parent.firstChild) {
+ parent.insertBefore(child, parent.firstChild);
+ } else {
+ parent.appendChild(child);
+ }
+};
+
+/**
+ * Object to hold browser support information
+ * @type {Object}
+ * @private
+ */
+vjs.browser = {};
+
+/**
+ * Shorthand for document.getElementById()
+ * Also allows for CSS (jQuery) ID syntax. But nothing other than IDs.
+ * @param {String} id Element ID
+ * @return {Element} Element with supplied ID
+ * @private
+ */
+vjs.el = function(id){
+ if (id.indexOf('#') === 0) {
+ id = id.slice(1);
+ }
+
+ return document.getElementById(id);
+};
+
+/**
+ * Format seconds as a time string, H:MM:SS or M:SS
+ * Supplying a guide (in seconds) will force a number of leading zeros
+ * to cover the length of the guide
+ * @param {Number} seconds Number of seconds to be turned into a string
+ * @param {Number} guide Number (in seconds) to model the string after
+ * @return {String} Time formatted as H:MM:SS or M:SS
+ * @private
+ */
+vjs.formatTime = function(seconds, guide) {
+ // Default to using seconds as guide
+ guide = guide || seconds;
+ var s = Math.floor(seconds % 60),
+ m = Math.floor(seconds / 60 % 60),
+ h = Math.floor(seconds / 3600),
+ gm = Math.floor(guide / 60 % 60),
+ gh = Math.floor(guide / 3600);
+
+ // handle invalid times
+ if (isNaN(seconds) || seconds === Infinity) {
+ // '-' is false for all relational operators (e.g. <, >=) so this setting
+ // will add the minimum number of fields specified by the guide
+ h = m = s = '-';
+ }
+
+ // Check if we need to show hours
+ h = (h > 0 || gh > 0) ? h + ':' : '';
+
+ // If hours are showing, we may need to add a leading zero.
+ // Always show at least one digit of minutes.
+ m = (((h || gm >= 10) && m < 10) ? '0' + m : m) + ':';
+
+ // Check if leading zero is need for seconds
+ s = (s < 10) ? '0' + s : s;
+
+ return h + m + s;
+};
+
+// Attempt to block the ability to select text while dragging controls
+vjs.blockTextSelection = function(){
+ document.body.focus();
+ document.onselectstart = function () { return false; };
+};
+// Turn off text selection blocking
+vjs.unblockTextSelection = function(){ document.onselectstart = function () { return true; }; };
+
+/**
+ * Trim whitespace from the ends of a string.
+ * @param {String} string String to trim
+ * @return {String} Trimmed string
+ * @private
+ */
+vjs.trim = function(str){
+ return (str+'').replace(/^\s+|\s+$/g, '');
+};
+
+/**
+ * Should round off a number to a decimal place
+ * @param {Number} num Number to round
+ * @param {Number} dec Number of decimal places to round to
+ * @return {Number} Rounded number
+ * @private
+ */
+vjs.round = function(num, dec) {
+ if (!dec) { dec = 0; }
+ return Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
+};
+
+/**
+ * Should create a fake TimeRange object
+ * Mimics an HTML5 time range instance, which has functions that
+ * return the start and end times for a range
+ * TimeRanges are returned by the buffered() method
+ * @param {Number} start Start time in seconds
+ * @param {Number} end End time in seconds
+ * @return {Object} Fake TimeRange object
+ * @private
+ */
+vjs.createTimeRange = function(start, end){
+ return {
+ length: 1,
+ start: function() { return start; },
+ end: function() { return end; }
+ };
+};
+
+/**
+ * Add to local storage (may removable)
+ * @private
+ */
+vjs.setLocalStorage = function(key, value){
+ try {
+ // IE was throwing errors referencing the var anywhere without this
+ var localStorage = window.localStorage || false;
+ if (!localStorage) { return; }
+ localStorage[key] = value;
+ } catch(e) {
+ if (e.code == 22 || e.code == 1014) { // Webkit == 22 / Firefox == 1014
+ vjs.log('LocalStorage Full (VideoJS)', e);
+ } else {
+ if (e.code == 18) {
+ vjs.log('LocalStorage not allowed (VideoJS)', e);
+ } else {
+ vjs.log('LocalStorage Error (VideoJS)', e);
+ }
+ }
+ }
+};
+
+/**
+ * Get absolute version of relative URL. Used to tell flash correct URL.
+ * http://stackoverflow.com/questions/470832/getting-an-absolute-url-from-a-relative-one-ie6-issue
+ * @param {String} url URL to make absolute
+ * @return {String} Absolute URL
+ * @private
+ */
+vjs.getAbsoluteURL = function(url){
+
+ // Check if absolute URL
+ if (!url.match(/^https?:\/\//)) {
+ // Convert to absolute URL. Flash hosted off-site needs an absolute URL.
+ url = vjs.createEl('div', {
+ innerHTML: 'x '
+ }).firstChild.href;
+ }
+
+ return url;
+};
+
+
+/**
+ * Resolve and parse the elements of a URL
+ * @param {String} url The url to parse
+ * @return {Object} An object of url details
+ */
+vjs.parseUrl = function(url) {
+ var div, a, addToBody, props, details;
+
+ props = ['protocol', 'hostname', 'port', 'pathname', 'search', 'hash', 'host'];
+
+ // add the url to an anchor and let the browser parse the URL
+ a = vjs.createEl('a', { href: url });
+
+ // IE8 (and 9?) Fix
+ // ie8 doesn't parse the URL correctly until the anchor is actually
+ // added to the body, and an innerHTML is needed to trigger the parsing
+ addToBody = (a.host === '' && a.protocol !== 'file:');
+ if (addToBody) {
+ div = vjs.createEl('div');
+ div.innerHTML = ' ';
+ a = div.firstChild;
+ // prevent the div from affecting layout
+ div.setAttribute('style', 'display:none; position:absolute;');
+ document.body.appendChild(div);
+ }
+
+ // Copy the specific URL properties to a new object
+ // This is also needed for IE8 because the anchor loses its
+ // properties when it's removed from the dom
+ details = {};
+ for (var i = 0; i < props.length; i++) {
+ details[props[i]] = a[props[i]];
+ }
+
+ // IE9 adds the port to the host property unlike everyone else. If
+ // a port identifier is added for standard ports, strip it.
+ if (details.protocol === 'http:') {
+ details.host = details.host.replace(/:80$/, '');
+ }
+ if (details.protocol === 'https:') {
+ details.host = details.host.replace(/:443$/, '');
+ }
+
+ if (addToBody) {
+ document.body.removeChild(div);
+ }
+
+ return details;
+};
+
+/**
+ * Log messages to the console and history based on the type of message
+ *
+ * @param {String} type The type of message, or `null` for `log`
+ * @param {[type]} args The args to be passed to the log
+ * @private
+ */
+function _logType(type, args){
+ var argsArray, noop, console;
+
+ // convert args to an array to get array functions
+ argsArray = Array.prototype.slice.call(args);
+ // if there's no console then don't try to output messages
+ // they will still be stored in vjs.log.history
+ // Was setting these once outside of this function, but containing them
+ // in the function makes it easier to test cases where console doesn't exist
+ noop = function(){};
+ console = window['console'] || {
+ 'log': noop,
+ 'warn': noop,
+ 'error': noop
+ };
+
+ if (type) {
+ // add the type to the front of the message
+ argsArray.unshift(type.toUpperCase()+':');
+ } else {
+ // default to log with no prefix
+ type = 'log';
+ }
+
+ // add to history
+ vjs.log.history.push(argsArray);
+
+ // add console prefix after adding to history
+ argsArray.unshift('VIDEOJS:');
+
+ // call appropriate log function
+ if (console[type].apply) {
+ console[type].apply(console, argsArray);
+ } else {
+ // ie8 doesn't allow error.apply, but it will just join() the array anyway
+ console[type](argsArray.join(' '));
+ }
+}
+
+/**
+ * Log plain debug messages
+ */
+vjs.log = function(){
+ _logType(null, arguments);
+};
+
+/**
+ * Keep a history of log messages
+ * @type {Array}
+ */
+vjs.log.history = [];
+
+/**
+ * Log error messages
+ */
+vjs.log.error = function(){
+ _logType('error', arguments);
+};
+
+/**
+ * Log warning messages
+ */
+vjs.log.warn = function(){
+ _logType('warn', arguments);
+};
+
+// Offset Left
+// getBoundingClientRect technique from John Resig http://ejohn.org/blog/getboundingclientrect-is-awesome/
+vjs.findPosition = function(el) {
+ var box, docEl, body, clientLeft, scrollLeft, left, clientTop, scrollTop, top;
+
+ if (el.getBoundingClientRect && el.parentNode) {
+ box = el.getBoundingClientRect();
+ }
+
+ if (!box) {
+ return {
+ left: 0,
+ top: 0
+ };
+ }
+
+ docEl = document.documentElement;
+ body = document.body;
+
+ clientLeft = docEl.clientLeft || body.clientLeft || 0;
+ scrollLeft = window.pageXOffset || body.scrollLeft;
+ left = box.left + scrollLeft - clientLeft;
+
+ clientTop = docEl.clientTop || body.clientTop || 0;
+ scrollTop = window.pageYOffset || body.scrollTop;
+ top = box.top + scrollTop - clientTop;
+
+ // Android sometimes returns slightly off decimal values, so need to round
+ return {
+ left: vjs.round(left),
+ top: vjs.round(top)
+ };
+};
+
+/**
+ * Array functions container
+ * @type {Object}
+ * @private
+ */
+vjs.arr = {};
+
+/*
+ * Loops through an array and runs a function for each item inside it.
+ * @param {Array} array The array
+ * @param {Function} callback The function to be run for each item
+ * @param {*} thisArg The `this` binding of callback
+ * @returns {Array} The array
+ * @private
+ */
+vjs.arr.forEach = function(array, callback, thisArg) {
+ if (vjs.obj.isArray(array) && callback instanceof Function) {
+ for (var i = 0, len = array.length; i < len; ++i) {
+ callback.call(thisArg || vjs, array[i], i, array);
+ }
+ }
+
+ return array;
+};
+/**
+ * Simple http request for retrieving external files (e.g. text tracks)
+ *
+ * ##### Example
+ *
+ * // using url string
+ * videojs.xhr('http://example.com/myfile.vtt', function(error, response, responseBody){});
+ *
+ * // or options block
+ * videojs.xhr({
+ * uri: 'http://example.com/myfile.vtt',
+ * method: 'GET',
+ * responseType: 'text'
+ * }, function(error, response, responseBody){
+ * if (error) {
+ * // log the error
+ * } else {
+ * // successful, do something with the response
+ * }
+ * });
+ *
+ *
+ * API is modeled after the Raynos/xhr, which we hope to use after
+ * getting browserify implemented.
+ * https://github.com/Raynos/xhr/blob/master/index.js
+ *
+ * @param {Object|String} options Options block or URL string
+ * @param {Function} callback The callback function
+ * @returns {Object} The request
+ */
+vjs.xhr = function(options, callback){
+ var XHR, request, urlInfo, winLoc, fileUrl, crossOrigin, abortTimeout, successHandler, errorHandler;
+
+ // If options is a string it's the url
+ if (typeof options === 'string') {
+ options = {
+ uri: options
+ };
+ }
+
+ // Merge with default options
+ videojs.util.mergeOptions({
+ method: 'GET',
+ timeout: 45 * 1000
+ }, options);
+
+ callback = callback || function(){};
+
+ successHandler = function(){
+ window.clearTimeout(abortTimeout);
+ callback(null, request, request.response || request.responseText);
+ };
+
+ errorHandler = function(err){
+ window.clearTimeout(abortTimeout);
+
+ if (!err || typeof err === 'string') {
+ err = new Error(err);
+ }
+
+ callback(err, request);
+ };
+
+ XHR = window.XMLHttpRequest;
+
+ if (typeof XHR === 'undefined') {
+ // Shim XMLHttpRequest for older IEs
+ XHR = function () {
+ try { return new window.ActiveXObject('Msxml2.XMLHTTP.6.0'); } catch (e) {}
+ try { return new window.ActiveXObject('Msxml2.XMLHTTP.3.0'); } catch (f) {}
+ try { return new window.ActiveXObject('Msxml2.XMLHTTP'); } catch (g) {}
+ throw new Error('This browser does not support XMLHttpRequest.');
+ };
+ }
+
+ request = new XHR();
+ // Store a reference to the url on the request instance
+ request.uri = options.uri;
+
+ urlInfo = vjs.parseUrl(options.uri);
+ winLoc = window.location;
+ // Check if url is for another domain/origin
+ // IE8 doesn't know location.origin, so we won't rely on it here
+ crossOrigin = (urlInfo.protocol + urlInfo.host) !== (winLoc.protocol + winLoc.host);
+
+ // XDomainRequest -- Use for IE if XMLHTTPRequest2 isn't available
+ // 'withCredentials' is only available in XMLHTTPRequest2
+ // Also XDomainRequest has a lot of gotchas, so only use if cross domain
+ if (crossOrigin && window.XDomainRequest && !('withCredentials' in request)) {
+ request = new window.XDomainRequest();
+ request.onload = successHandler;
+ request.onerror = errorHandler;
+ // These blank handlers need to be set to fix ie9
+ // http://cypressnorth.com/programming/internet-explorer-aborting-ajax-requests-fixed/
+ request.onprogress = function(){};
+ request.ontimeout = function(){};
+
+ // XMLHTTPRequest
+ } else {
+ fileUrl = (urlInfo.protocol == 'file:' || winLoc.protocol == 'file:');
+
+ request.onreadystatechange = function() {
+ if (request.readyState === 4) {
+ if (request.timedout) {
+ return errorHandler('timeout');
+ }
+
+ if (request.status === 200 || fileUrl && request.status === 0) {
+ successHandler();
+ } else {
+ errorHandler();
+ }
+ }
+ };
+
+ if (options.timeout) {
+ abortTimeout = window.setTimeout(function() {
+ if (request.readyState !== 4) {
+ request.timedout = true;
+ request.abort();
+ }
+ }, options.timeout);
+ }
+ }
+
+ // open the connection
+ try {
+ // Third arg is async, or ignored by XDomainRequest
+ request.open(options.method || 'GET', options.uri, true);
+ } catch(err) {
+ return errorHandler(err);
+ }
+
+ // withCredentials only supported by XMLHttpRequest2
+ if(options.withCredentials) {
+ request.withCredentials = true;
+ }
+
+ if (options.responseType) {
+ request.responseType = options.responseType;
+ }
+
+ // send the request
+ try {
+ request.send();
+ } catch(err) {
+ return errorHandler(err);
+ }
+
+ return request;
+};
+/**
+ * Utility functions namespace
+ * @namespace
+ * @type {Object}
+ */
+vjs.util = {};
+
+/**
+ * Merge two options objects, recursively merging any plain object properties as
+ * well. Previously `deepMerge`
+ *
+ * @param {Object} obj1 Object to override values in
+ * @param {Object} obj2 Overriding object
+ * @return {Object} New object -- obj1 and obj2 will be untouched
+ */
+vjs.util.mergeOptions = function(obj1, obj2){
+ var key, val1, val2;
+
+ // make a copy of obj1 so we're not overwriting original values.
+ // like prototype.options_ and all sub options objects
+ obj1 = vjs.obj.copy(obj1);
+
+ for (key in obj2){
+ if (obj2.hasOwnProperty(key)) {
+ val1 = obj1[key];
+ val2 = obj2[key];
+
+ // Check if both properties are pure objects and do a deep merge if so
+ if (vjs.obj.isPlain(val1) && vjs.obj.isPlain(val2)) {
+ obj1[key] = vjs.util.mergeOptions(val1, val2);
+ } else {
+ obj1[key] = obj2[key];
+ }
+ }
+ }
+ return obj1;
+};vjs.EventEmitter = function() {
+};
+
+vjs.EventEmitter.prototype.allowedEvents_ = {
+};
+
+vjs.EventEmitter.prototype.on = function(type, fn) {
+ // Remove the addEventListener alias before calling vjs.on
+ // so we don't get into an infinite type loop
+ var ael = this.addEventListener;
+ this.addEventListener = Function.prototype;
+ vjs.on(this, type, fn);
+ this.addEventListener = ael;
+};
+vjs.EventEmitter.prototype.addEventListener = vjs.EventEmitter.prototype.on;
+
+vjs.EventEmitter.prototype.off = function(type, fn) {
+ vjs.off(this, type, fn);
+};
+vjs.EventEmitter.prototype.removeEventListener = vjs.EventEmitter.prototype.off;
+
+vjs.EventEmitter.prototype.one = function(type, fn) {
+ vjs.one(this, type, fn);
+};
+
+vjs.EventEmitter.prototype.trigger = function(event) {
+ var type = event.type || event;
+
+ if (typeof event === 'string') {
+ event = {
+ type: type
+ };
+ }
+ event = vjs.fixEvent(event);
+
+ if (this.allowedEvents_[type] && this['on' + type]) {
+ this['on' + type](event);
+ }
+
+ vjs.trigger(this, event);
+};
+// The standard DOM EventTarget.dispatchEvent() is aliased to trigger()
+vjs.EventEmitter.prototype.dispatchEvent = vjs.EventEmitter.prototype.trigger;
+/**
+ * @fileoverview Player Component - Base class for all UI objects
+ *
+ */
+
+/**
+ * Base UI Component class
+ *
+ * Components are embeddable UI objects that are represented by both a
+ * javascript object and an element in the DOM. They can be children of other
+ * components, and can have many children themselves.
+ *
+ * // adding a button to the player
+ * var button = player.addChild('button');
+ * button.el(); // -> button element
+ *
+ *
+ *
+ * Components are also event emitters.
+ *
+ * button.on('click', function(){
+ * console.log('Button Clicked!');
+ * });
+ *
+ * button.trigger('customevent');
+ *
+ * @param {Object} player Main Player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ * @extends vjs.CoreObject
+ */
+vjs.Component = vjs.CoreObject.extend({
+ /**
+ * the constructor function for the class
+ *
+ * @constructor
+ */
+ init: function(player, options, ready){
+ this.player_ = player;
+
+ // Make a copy of prototype.options_ to protect against overriding global defaults
+ this.options_ = vjs.obj.copy(this.options_);
+
+ // Updated options with supplied options
+ options = this.options(options);
+
+ // Get ID from options or options element if one is supplied
+ this.id_ = options['id'] || (options['el'] && options['el']['id']);
+
+ // If there was no ID from the options, generate one
+ if (!this.id_) {
+ // Don't require the player ID function in the case of mock players
+ this.id_ = ((player.id && player.id()) || 'no_player') + '_component_' + vjs.guid++;
+ }
+
+ this.name_ = options['name'] || null;
+
+ // Create element if one wasn't provided in options
+ this.el_ = options['el'] || this.createEl();
+
+ this.children_ = [];
+ this.childIndex_ = {};
+ this.childNameIndex_ = {};
+
+ // Add any child components in options
+ this.initChildren();
+
+ this.ready(ready);
+ // Don't want to trigger ready here or it will before init is actually
+ // finished for all children that run this constructor
+
+ if (options.reportTouchActivity !== false) {
+ this.enableTouchActivity();
+ }
+ }
+});
+
+/**
+ * Dispose of the component and all child components
+ */
+vjs.Component.prototype.dispose = function(){
+ this.trigger({ type: 'dispose', 'bubbles': false });
+
+ // Dispose all children.
+ if (this.children_) {
+ for (var i = this.children_.length - 1; i >= 0; i--) {
+ if (this.children_[i].dispose) {
+ this.children_[i].dispose();
+ }
+ }
+ }
+
+ // Delete child references
+ this.children_ = null;
+ this.childIndex_ = null;
+ this.childNameIndex_ = null;
+
+ // Remove all event listeners.
+ this.off();
+
+ // Remove element from DOM
+ if (this.el_.parentNode) {
+ this.el_.parentNode.removeChild(this.el_);
+ }
+
+ vjs.removeData(this.el_);
+ this.el_ = null;
+};
+
+/**
+ * Reference to main player instance
+ *
+ * @type {vjs.Player}
+ * @private
+ */
+vjs.Component.prototype.player_ = true;
+
+/**
+ * Return the component's player
+ *
+ * @return {vjs.Player}
+ */
+vjs.Component.prototype.player = function(){
+ return this.player_;
+};
+
+/**
+ * The component's options object
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Component.prototype.options_;
+
+/**
+ * Deep merge of options objects
+ *
+ * Whenever a property is an object on both options objects
+ * the two properties will be merged using vjs.obj.deepMerge.
+ *
+ * This is used for merging options for child components. We
+ * want it to be easy to override individual options on a child
+ * component without having to rewrite all the other default options.
+ *
+ * Parent.prototype.options_ = {
+ * children: {
+ * 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+ * 'childTwo': {},
+ * 'childThree': {}
+ * }
+ * }
+ * newOptions = {
+ * children: {
+ * 'childOne': { 'foo': 'baz', 'abc': '123' }
+ * 'childTwo': null,
+ * 'childFour': {}
+ * }
+ * }
+ *
+ * this.options(newOptions);
+ *
+ * RESULT
+ *
+ * {
+ * children: {
+ * 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+ * 'childTwo': null, // Disabled. Won't be initialized.
+ * 'childThree': {},
+ * 'childFour': {}
+ * }
+ * }
+ *
+ * @param {Object} obj Object of new option values
+ * @return {Object} A NEW object of this.options_ and obj merged
+ */
+vjs.Component.prototype.options = function(obj){
+ if (obj === undefined) return this.options_;
+
+ return this.options_ = vjs.util.mergeOptions(this.options_, obj);
+};
+
+/**
+ * The DOM element for the component
+ *
+ * @type {Element}
+ * @private
+ */
+vjs.Component.prototype.el_;
+
+/**
+ * Create the component's DOM element
+ *
+ * @param {String=} tagName Element's node type. e.g. 'div'
+ * @param {Object=} attributes An object of element attributes that should be set on the element
+ * @return {Element}
+ */
+vjs.Component.prototype.createEl = function(tagName, attributes){
+ return vjs.createEl(tagName, attributes);
+};
+
+vjs.Component.prototype.localize = function(string){
+ var lang = this.player_.language(),
+ languages = this.player_.languages();
+ if (languages && languages[lang] && languages[lang][string]) {
+ return languages[lang][string];
+ }
+ return string;
+};
+
+/**
+ * Get the component's DOM element
+ *
+ * var domEl = myComponent.el();
+ *
+ * @return {Element}
+ */
+vjs.Component.prototype.el = function(){
+ return this.el_;
+};
+
+/**
+ * An optional element where, if defined, children will be inserted instead of
+ * directly in `el_`
+ *
+ * @type {Element}
+ * @private
+ */
+vjs.Component.prototype.contentEl_;
+
+/**
+ * Return the component's DOM element for embedding content.
+ * Will either be el_ or a new element defined in createEl.
+ *
+ * @return {Element}
+ */
+vjs.Component.prototype.contentEl = function(){
+ return this.contentEl_ || this.el_;
+};
+
+/**
+ * The ID for the component
+ *
+ * @type {String}
+ * @private
+ */
+vjs.Component.prototype.id_;
+
+/**
+ * Get the component's ID
+ *
+ * var id = myComponent.id();
+ *
+ * @return {String}
+ */
+vjs.Component.prototype.id = function(){
+ return this.id_;
+};
+
+/**
+ * The name for the component. Often used to reference the component.
+ *
+ * @type {String}
+ * @private
+ */
+vjs.Component.prototype.name_;
+
+/**
+ * Get the component's name. The name is often used to reference the component.
+ *
+ * var name = myComponent.name();
+ *
+ * @return {String}
+ */
+vjs.Component.prototype.name = function(){
+ return this.name_;
+};
+
+/**
+ * Array of child components
+ *
+ * @type {Array}
+ * @private
+ */
+vjs.Component.prototype.children_;
+
+/**
+ * Get an array of all child components
+ *
+ * var kids = myComponent.children();
+ *
+ * @return {Array} The children
+ */
+vjs.Component.prototype.children = function(){
+ return this.children_;
+};
+
+/**
+ * Object of child components by ID
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Component.prototype.childIndex_;
+
+/**
+ * Returns a child component with the provided ID
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.getChildById = function(id){
+ return this.childIndex_[id];
+};
+
+/**
+ * Object of child components by name
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Component.prototype.childNameIndex_;
+
+/**
+ * Returns a child component with the provided name
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.getChild = function(name){
+ return this.childNameIndex_[name];
+};
+
+/**
+ * Adds a child component inside this component
+ *
+ * myComponent.el();
+ * // ->
+ * myComonent.children();
+ * // [empty array]
+ *
+ * var myButton = myComponent.addChild('MyButton');
+ * // -> myButton
+ * // -> myButton === myComonent.children()[0];
+ *
+ * Pass in options for child constructors and options for children of the child
+ *
+ * var myButton = myComponent.addChild('MyButton', {
+ * text: 'Press Me',
+ * children: {
+ * buttonChildExample: {
+ * buttonChildOption: true
+ * }
+ * }
+ * });
+ *
+ * @param {String|vjs.Component} child The class name or instance of a child to add
+ * @param {Object=} options Options, including options to be passed to children of the child.
+ * @return {vjs.Component} The child component (created by this process if a string was used)
+ * @suppress {accessControls|checkRegExp|checkTypes|checkVars|const|constantProperty|deprecated|duplicate|es5Strict|fileoverviewTags|globalThis|invalidCasts|missingProperties|nonStandardJsDocs|strictModuleDepCheck|undefinedNames|undefinedVars|unknownDefines|uselessCode|visibility}
+ */
+vjs.Component.prototype.addChild = function(child, options){
+ var component, componentClass, componentName;
+
+ // If child is a string, create new component with options
+ if (typeof child === 'string') {
+ componentName = child;
+
+ // Make sure options is at least an empty object to protect against errors
+ options = options || {};
+
+ // If no componentClass in options, assume componentClass is the name lowercased
+ // (e.g. playButton)
+ componentClass = options['componentClass'] || vjs.capitalize(componentName);
+
+ // Set name through options
+ options['name'] = componentName;
+
+ // Create a new object & element for this controls set
+ // If there's no .player_, this is a player
+ // Closure Compiler throws an 'incomplete alias' warning if we use the vjs variable directly.
+ // Every class should be exported, so this should never be a problem here.
+ component = new window['videojs'][componentClass](this.player_ || this, options);
+
+ // child is a component instance
+ } else {
+ component = child;
+ }
+
+ this.children_.push(component);
+
+ if (typeof component.id === 'function') {
+ this.childIndex_[component.id()] = component;
+ }
+
+ // If a name wasn't used to create the component, check if we can use the
+ // name function of the component
+ componentName = componentName || (component.name && component.name());
+
+ if (componentName) {
+ this.childNameIndex_[componentName] = component;
+ }
+
+ // Add the UI object's element to the container div (box)
+ // Having an element is not required
+ if (typeof component['el'] === 'function' && component['el']()) {
+ this.contentEl().appendChild(component['el']());
+ }
+
+ // Return so it can stored on parent object if desired.
+ return component;
+};
+
+/**
+ * Remove a child component from this component's list of children, and the
+ * child component's element from this component's element
+ *
+ * @param {vjs.Component} component Component to remove
+ */
+vjs.Component.prototype.removeChild = function(component){
+ if (typeof component === 'string') {
+ component = this.getChild(component);
+ }
+
+ if (!component || !this.children_) return;
+
+ var childFound = false;
+ for (var i = this.children_.length - 1; i >= 0; i--) {
+ if (this.children_[i] === component) {
+ childFound = true;
+ this.children_.splice(i,1);
+ break;
+ }
+ }
+
+ if (!childFound) return;
+
+ this.childIndex_[component.id()] = null;
+ this.childNameIndex_[component.name()] = null;
+
+ var compEl = component.el();
+ if (compEl && compEl.parentNode === this.contentEl()) {
+ this.contentEl().removeChild(component.el());
+ }
+};
+
+/**
+ * Add and initialize default child components from options
+ *
+ * // when an instance of MyComponent is created, all children in options
+ * // will be added to the instance by their name strings and options
+ * MyComponent.prototype.options_.children = {
+ * myChildComponent: {
+ * myChildOption: true
+ * }
+ * }
+ *
+ * // Or when creating the component
+ * var myComp = new MyComponent(player, {
+ * children: {
+ * myChildComponent: {
+ * myChildOption: true
+ * }
+ * }
+ * });
+ *
+ * The children option can also be an Array of child names or
+ * child options objects (that also include a 'name' key).
+ *
+ * var myComp = new MyComponent(player, {
+ * children: [
+ * 'button',
+ * {
+ * name: 'button',
+ * someOtherOption: true
+ * }
+ * ]
+ * });
+ *
+ */
+vjs.Component.prototype.initChildren = function(){
+ var parent, parentOptions, children, child, name, opts, handleAdd;
+
+ parent = this;
+ parentOptions = parent.options();
+ children = parentOptions['children'];
+
+ if (children) {
+ handleAdd = function(name, opts){
+ // Allow options for children to be set at the parent options
+ // e.g. videojs(id, { controlBar: false });
+ // instead of videojs(id, { children: { controlBar: false });
+ if (parentOptions[name] !== undefined) {
+ opts = parentOptions[name];
+ }
+
+ // Allow for disabling default components
+ // e.g. vjs.options['children']['posterImage'] = false
+ if (opts === false) return;
+
+ // Create and add the child component.
+ // Add a direct reference to the child by name on the parent instance.
+ // If two of the same component are used, different names should be supplied
+ // for each
+ parent[name] = parent.addChild(name, opts);
+ };
+
+ // Allow for an array of children details to passed in the options
+ if (vjs.obj.isArray(children)) {
+ for (var i = 0; i < children.length; i++) {
+ child = children[i];
+
+ if (typeof child == 'string') {
+ // ['myComponent']
+ name = child;
+ opts = {};
+ } else {
+ // [{ name: 'myComponent', otherOption: true }]
+ name = child.name;
+ opts = child;
+ }
+
+ handleAdd(name, opts);
+ }
+ } else {
+ vjs.obj.each(children, handleAdd);
+ }
+ }
+};
+
+/**
+ * Allows sub components to stack CSS class names
+ *
+ * @return {String} The constructed class name
+ */
+vjs.Component.prototype.buildCSSClass = function(){
+ // Child classes can include a function that does:
+ // return 'CLASS NAME' + this._super();
+ return '';
+};
+
+/* Events
+============================================================================= */
+
+/**
+ * Add an event listener to this component's element
+ *
+ * var myFunc = function(){
+ * var myComponent = this;
+ * // Do something when the event is fired
+ * };
+ *
+ * myComponent.on('eventType', myFunc);
+ *
+ * The context of myFunc will be myComponent unless previously bound.
+ *
+ * Alternatively, you can add a listener to another element or component.
+ *
+ * myComponent.on(otherElement, 'eventName', myFunc);
+ * myComponent.on(otherComponent, 'eventName', myFunc);
+ *
+ * The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+ * and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+ * will be automatically cleaned up when either component is disposed.
+ * It will also bind myComponent as the context of myFunc.
+ *
+ * **NOTE**: When using this on elements in the page other than window
+ * and document (both permanent), if you remove the element from the DOM
+ * you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+ * references to it and allow the browser to garbage collect it.
+ *
+ * @param {String|vjs.Component} first The event type or other component
+ * @param {Function|String} second The event handler or event type
+ * @param {Function} third The event handler
+ * @return {vjs.Component} self
+ */
+vjs.Component.prototype.on = function(first, second, third){
+ var target, type, fn, removeOnDispose, cleanRemover, thisComponent;
+
+ if (typeof first === 'string' || vjs.obj.isArray(first)) {
+ vjs.on(this.el_, first, vjs.bind(this, second));
+
+ // Targeting another component or element
+ } else {
+ target = first;
+ type = second;
+ fn = vjs.bind(this, third);
+ thisComponent = this;
+
+ // When this component is disposed, remove the listener from the other component
+ removeOnDispose = function(){
+ thisComponent.off(target, type, fn);
+ };
+ // Use the same function ID so we can remove it later it using the ID
+ // of the original listener
+ removeOnDispose.guid = fn.guid;
+ this.on('dispose', removeOnDispose);
+
+ // If the other component is disposed first we need to clean the reference
+ // to the other component in this component's removeOnDispose listener
+ // Otherwise we create a memory leak.
+ cleanRemover = function(){
+ thisComponent.off('dispose', removeOnDispose);
+ };
+ // Add the same function ID so we can easily remove it later
+ cleanRemover.guid = fn.guid;
+
+ // Check if this is a DOM node
+ if (first.nodeName) {
+ // Add the listener to the other element
+ vjs.on(target, type, fn);
+ vjs.on(target, 'dispose', cleanRemover);
+
+ // Should be a component
+ // Not using `instanceof vjs.Component` because it makes mock players difficult
+ } else if (typeof first.on === 'function') {
+ // Add the listener to the other component
+ target.on(type, fn);
+ target.on('dispose', cleanRemover);
+ }
+ }
+
+ return this;
+};
+
+/**
+ * Remove an event listener from this component's element
+ *
+ * myComponent.off('eventType', myFunc);
+ *
+ * If myFunc is excluded, ALL listeners for the event type will be removed.
+ * If eventType is excluded, ALL listeners will be removed from the component.
+ *
+ * Alternatively you can use `off` to remove listeners that were added to other
+ * elements or components using `myComponent.on(otherComponent...`.
+ * In this case both the event type and listener function are REQUIRED.
+ *
+ * myComponent.off(otherElement, 'eventType', myFunc);
+ * myComponent.off(otherComponent, 'eventType', myFunc);
+ *
+ * @param {String=|vjs.Component} first The event type or other component
+ * @param {Function=|String} second The listener function or event type
+ * @param {Function=} third The listener for other component
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.off = function(first, second, third){
+ var target, otherComponent, type, fn, otherEl;
+
+ if (!first || typeof first === 'string' || vjs.obj.isArray(first)) {
+ vjs.off(this.el_, first, second);
+ } else {
+ target = first;
+ type = second;
+ // Ensure there's at least a guid, even if the function hasn't been used
+ fn = vjs.bind(this, third);
+
+ // Remove the dispose listener on this component,
+ // which was given the same guid as the event listener
+ this.off('dispose', fn);
+
+ if (first.nodeName) {
+ // Remove the listener
+ vjs.off(target, type, fn);
+ // Remove the listener for cleaning the dispose listener
+ vjs.off(target, 'dispose', fn);
+ } else {
+ target.off(type, fn);
+ target.off('dispose', fn);
+ }
+ }
+
+ return this;
+};
+
+/**
+ * Add an event listener to be triggered only once and then removed
+ *
+ * myComponent.one('eventName', myFunc);
+ *
+ * Alternatively you can add a listener to another element or component
+ * that will be triggered only once.
+ *
+ * myComponent.one(otherElement, 'eventName', myFunc);
+ * myComponent.one(otherComponent, 'eventName', myFunc);
+ *
+ * @param {String|vjs.Component} first The event type or other component
+ * @param {Function|String} second The listener function or event type
+ * @param {Function=} third The listener function for other component
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.one = function(first, second, third) {
+ var target, type, fn, thisComponent, newFunc;
+
+ if (typeof first === 'string' || vjs.obj.isArray(first)) {
+ vjs.one(this.el_, first, vjs.bind(this, second));
+ } else {
+ target = first;
+ type = second;
+ fn = vjs.bind(this, third);
+ thisComponent = this;
+
+ newFunc = function(){
+ thisComponent.off(target, type, newFunc);
+ fn.apply(this, arguments);
+ };
+ // Keep the same function ID so we can remove it later
+ newFunc.guid = fn.guid;
+
+ this.on(target, type, newFunc);
+ }
+
+ return this;
+};
+
+/**
+ * Trigger an event on an element
+ *
+ * myComponent.trigger('eventName');
+ * myComponent.trigger({'type':'eventName'});
+ *
+ * @param {Event|Object|String} event A string (the type) or an event object with a type attribute
+ * @return {vjs.Component} self
+ */
+vjs.Component.prototype.trigger = function(event){
+ vjs.trigger(this.el_, event);
+ return this;
+};
+
+/* Ready
+================================================================================ */
+/**
+ * Is the component loaded
+ * This can mean different things depending on the component.
+ *
+ * @private
+ * @type {Boolean}
+ */
+vjs.Component.prototype.isReady_;
+
+/**
+ * Trigger ready as soon as initialization is finished
+ *
+ * Allows for delaying ready. Override on a sub class prototype.
+ * If you set this.isReadyOnInitFinish_ it will affect all components.
+ * Specially used when waiting for the Flash player to asynchronously load.
+ *
+ * @type {Boolean}
+ * @private
+ */
+vjs.Component.prototype.isReadyOnInitFinish_ = true;
+
+/**
+ * List of ready listeners
+ *
+ * @type {Array}
+ * @private
+ */
+vjs.Component.prototype.readyQueue_;
+
+/**
+ * Bind a listener to the component's ready state
+ *
+ * Different from event listeners in that if the ready event has already happened
+ * it will trigger the function immediately.
+ *
+ * @param {Function} fn Ready listener
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.ready = function(fn){
+ if (fn) {
+ if (this.isReady_) {
+ fn.call(this);
+ } else {
+ if (this.readyQueue_ === undefined) {
+ this.readyQueue_ = [];
+ }
+ this.readyQueue_.push(fn);
+ }
+ }
+ return this;
+};
+
+/**
+ * Trigger the ready listeners
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.triggerReady = function(){
+ this.isReady_ = true;
+
+ var readyQueue = this.readyQueue_;
+
+ if (readyQueue && readyQueue.length > 0) {
+
+ for (var i = 0, j = readyQueue.length; i < j; i++) {
+ readyQueue[i].call(this);
+ }
+
+ // Reset Ready Queue
+ this.readyQueue_ = [];
+
+ // Allow for using event listeners also, in case you want to do something everytime a source is ready.
+ this.trigger('ready');
+ }
+};
+
+/* Display
+============================================================================= */
+
+/**
+ * Check if a component's element has a CSS class name
+ *
+ * @param {String} classToCheck Classname to check
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.hasClass = function(classToCheck){
+ return vjs.hasClass(this.el_, classToCheck);
+};
+
+/**
+ * Add a CSS class name to the component's element
+ *
+ * @param {String} classToAdd Classname to add
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.addClass = function(classToAdd){
+ vjs.addClass(this.el_, classToAdd);
+ return this;
+};
+
+/**
+ * Remove a CSS class name from the component's element
+ *
+ * @param {String} classToRemove Classname to remove
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.removeClass = function(classToRemove){
+ vjs.removeClass(this.el_, classToRemove);
+ return this;
+};
+
+/**
+ * Show the component element if hidden
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.show = function(){
+ this.removeClass('vjs-hidden');
+ return this;
+};
+
+/**
+ * Hide the component element if currently showing
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.hide = function(){
+ this.addClass('vjs-hidden');
+ return this;
+};
+
+/**
+ * Lock an item in its visible state
+ * To be used with fadeIn/fadeOut.
+ *
+ * @return {vjs.Component}
+ * @private
+ */
+vjs.Component.prototype.lockShowing = function(){
+ this.addClass('vjs-lock-showing');
+ return this;
+};
+
+/**
+ * Unlock an item to be hidden
+ * To be used with fadeIn/fadeOut.
+ *
+ * @return {vjs.Component}
+ * @private
+ */
+vjs.Component.prototype.unlockShowing = function(){
+ this.removeClass('vjs-lock-showing');
+ return this;
+};
+
+/**
+ * Disable component by making it unshowable
+ *
+ * Currently private because we're moving towards more css-based states.
+ * @private
+ */
+vjs.Component.prototype.disable = function(){
+ this.hide();
+ this.show = function(){};
+};
+
+/**
+ * Set or get the width of the component (CSS values)
+ *
+ * Setting the video tag dimension values only works with values in pixels.
+ * Percent values will not work.
+ * Some percents can be used, but width()/height() will return the number + %,
+ * not the actual computed width/height.
+ *
+ * @param {Number|String=} num Optional width number
+ * @param {Boolean} skipListeners Skip the 'resize' event trigger
+ * @return {vjs.Component} This component, when setting the width
+ * @return {Number|String} The width, when getting
+ */
+vjs.Component.prototype.width = function(num, skipListeners){
+ return this.dimension('width', num, skipListeners);
+};
+
+/**
+ * Get or set the height of the component (CSS values)
+ *
+ * Setting the video tag dimension values only works with values in pixels.
+ * Percent values will not work.
+ * Some percents can be used, but width()/height() will return the number + %,
+ * not the actual computed width/height.
+ *
+ * @param {Number|String=} num New component height
+ * @param {Boolean=} skipListeners Skip the resize event trigger
+ * @return {vjs.Component} This component, when setting the height
+ * @return {Number|String} The height, when getting
+ */
+vjs.Component.prototype.height = function(num, skipListeners){
+ return this.dimension('height', num, skipListeners);
+};
+
+/**
+ * Set both width and height at the same time
+ *
+ * @param {Number|String} width
+ * @param {Number|String} height
+ * @return {vjs.Component} The component
+ */
+vjs.Component.prototype.dimensions = function(width, height){
+ // Skip resize listeners on width for optimization
+ return this.width(width, true).height(height);
+};
+
+/**
+ * Get or set width or height
+ *
+ * This is the shared code for the width() and height() methods.
+ * All for an integer, integer + 'px' or integer + '%';
+ *
+ * Known issue: Hidden elements officially have a width of 0. We're defaulting
+ * to the style.width value and falling back to computedStyle which has the
+ * hidden element issue. Info, but probably not an efficient fix:
+ * http://www.foliotek.com/devblog/getting-the-width-of-a-hidden-element-with-jquery-using-width/
+ *
+ * @param {String} widthOrHeight 'width' or 'height'
+ * @param {Number|String=} num New dimension
+ * @param {Boolean=} skipListeners Skip resize event trigger
+ * @return {vjs.Component} The component if a dimension was set
+ * @return {Number|String} The dimension if nothing was set
+ * @private
+ */
+vjs.Component.prototype.dimension = function(widthOrHeight, num, skipListeners){
+ if (num !== undefined) {
+ if (num === null || vjs.isNaN(num)) {
+ num = 0;
+ }
+
+ // Check if using css width/height (% or px) and adjust
+ if ((''+num).indexOf('%') !== -1 || (''+num).indexOf('px') !== -1) {
+ this.el_.style[widthOrHeight] = num;
+ } else if (num === 'auto') {
+ this.el_.style[widthOrHeight] = '';
+ } else {
+ this.el_.style[widthOrHeight] = num+'px';
+ }
+
+ // skipListeners allows us to avoid triggering the resize event when setting both width and height
+ if (!skipListeners) { this.trigger('resize'); }
+
+ // Return component
+ return this;
+ }
+
+ // Not setting a value, so getting it
+ // Make sure element exists
+ if (!this.el_) return 0;
+
+ // Get dimension value from style
+ var val = this.el_.style[widthOrHeight];
+ var pxIndex = val.indexOf('px');
+ if (pxIndex !== -1) {
+ // Return the pixel value with no 'px'
+ return parseInt(val.slice(0,pxIndex), 10);
+
+ // No px so using % or no style was set, so falling back to offsetWidth/height
+ // If component has display:none, offset will return 0
+ // TODO: handle display:none and no dimension style using px
+ } else {
+
+ return parseInt(this.el_['offset'+vjs.capitalize(widthOrHeight)], 10);
+
+ // ComputedStyle version.
+ // Only difference is if the element is hidden it will return
+ // the percent value (e.g. '100%'')
+ // instead of zero like offsetWidth returns.
+ // var val = vjs.getComputedStyleValue(this.el_, widthOrHeight);
+ // var pxIndex = val.indexOf('px');
+
+ // if (pxIndex !== -1) {
+ // return val.slice(0, pxIndex);
+ // } else {
+ // return val;
+ // }
+ }
+};
+
+/**
+ * Fired when the width and/or height of the component changes
+ * @event resize
+ */
+vjs.Component.prototype.onResize;
+
+/**
+ * Emit 'tap' events when touch events are supported
+ *
+ * This is used to support toggling the controls through a tap on the video.
+ *
+ * We're requiring them to be enabled because otherwise every component would
+ * have this extra overhead unnecessarily, on mobile devices where extra
+ * overhead is especially bad.
+ * @private
+ */
+vjs.Component.prototype.emitTapEvents = function(){
+ var touchStart, firstTouch, touchTime, couldBeTap, noTap,
+ xdiff, ydiff, touchDistance, tapMovementThreshold, touchTimeThreshold;
+
+ // Track the start time so we can determine how long the touch lasted
+ touchStart = 0;
+ firstTouch = null;
+
+ // Maximum movement allowed during a touch event to still be considered a tap
+ // Other popular libs use anywhere from 2 (hammer.js) to 15, so 10 seems like a nice, round number.
+ tapMovementThreshold = 10;
+
+ // The maximum length a touch can be while still being considered a tap
+ touchTimeThreshold = 200;
+
+ this.on('touchstart', function(event) {
+ // If more than one finger, don't consider treating this as a click
+ if (event.touches.length === 1) {
+ firstTouch = vjs.obj.copy(event.touches[0]);
+ // Record start time so we can detect a tap vs. "touch and hold"
+ touchStart = new Date().getTime();
+ // Reset couldBeTap tracking
+ couldBeTap = true;
+ }
+ });
+
+ this.on('touchmove', function(event) {
+ // If more than one finger, don't consider treating this as a click
+ if (event.touches.length > 1) {
+ couldBeTap = false;
+ } else if (firstTouch) {
+ // Some devices will throw touchmoves for all but the slightest of taps.
+ // So, if we moved only a small distance, this could still be a tap
+ xdiff = event.touches[0].pageX - firstTouch.pageX;
+ ydiff = event.touches[0].pageY - firstTouch.pageY;
+ touchDistance = Math.sqrt(xdiff * xdiff + ydiff * ydiff);
+ if (touchDistance > tapMovementThreshold) {
+ couldBeTap = false;
+ }
+ }
+ });
+
+ noTap = function(){
+ couldBeTap = false;
+ };
+ // TODO: Listen to the original target. http://youtu.be/DujfpXOKUp8?t=13m8s
+ this.on('touchleave', noTap);
+ this.on('touchcancel', noTap);
+
+ // When the touch ends, measure how long it took and trigger the appropriate
+ // event
+ this.on('touchend', function(event) {
+ firstTouch = null;
+ // Proceed only if the touchmove/leave/cancel event didn't happen
+ if (couldBeTap === true) {
+ // Measure how long the touch lasted
+ touchTime = new Date().getTime() - touchStart;
+ // Make sure the touch was less than the threshold to be considered a tap
+ if (touchTime < touchTimeThreshold) {
+ event.preventDefault(); // Don't let browser turn this into a click
+ this.trigger('tap');
+ // It may be good to copy the touchend event object and change the
+ // type to tap, if the other event properties aren't exact after
+ // vjs.fixEvent runs (e.g. event.target)
+ }
+ }
+ });
+};
+
+/**
+ * Report user touch activity when touch events occur
+ *
+ * User activity is used to determine when controls should show/hide. It's
+ * relatively simple when it comes to mouse events, because any mouse event
+ * should show the controls. So we capture mouse events that bubble up to the
+ * player and report activity when that happens.
+ *
+ * With touch events it isn't as easy. We can't rely on touch events at the
+ * player level, because a tap (touchstart + touchend) on the video itself on
+ * mobile devices is meant to turn controls off (and on). User activity is
+ * checked asynchronously, so what could happen is a tap event on the video
+ * turns the controls off, then the touchend event bubbles up to the player,
+ * which if it reported user activity, would turn the controls right back on.
+ * (We also don't want to completely block touch events from bubbling up)
+ *
+ * Also a touchmove, touch+hold, and anything other than a tap is not supposed
+ * to turn the controls back on on a mobile device.
+ *
+ * Here we're setting the default component behavior to report user activity
+ * whenever touch events happen, and this can be turned off by components that
+ * want touch events to act differently.
+ */
+vjs.Component.prototype.enableTouchActivity = function() {
+ var report, touchHolding, touchEnd;
+
+ // Don't continue if the root player doesn't support reporting user activity
+ if (!this.player().reportUserActivity) {
+ return;
+ }
+
+ // listener for reporting that the user is active
+ report = vjs.bind(this.player(), this.player().reportUserActivity);
+
+ this.on('touchstart', function() {
+ report();
+ // For as long as the they are touching the device or have their mouse down,
+ // we consider them active even if they're not moving their finger or mouse.
+ // So we want to continue to update that they are active
+ this.clearInterval(touchHolding);
+ // report at the same interval as activityCheck
+ touchHolding = this.setInterval(report, 250);
+ });
+
+ touchEnd = function(event) {
+ report();
+ // stop the interval that maintains activity if the touch is holding
+ this.clearInterval(touchHolding);
+ };
+
+ this.on('touchmove', report);
+ this.on('touchend', touchEnd);
+ this.on('touchcancel', touchEnd);
+};
+
+/**
+ * Creates timeout and sets up disposal automatically.
+ * @param {Function} fn The function to run after the timeout.
+ * @param {Number} timeout Number of ms to delay before executing specified function.
+ * @return {Number} Returns the timeout ID
+ */
+vjs.Component.prototype.setTimeout = function(fn, timeout) {
+ fn = vjs.bind(this, fn);
+
+ // window.setTimeout would be preferable here, but due to some bizarre issue with Sinon and/or Phantomjs, we can't.
+ var timeoutId = setTimeout(fn, timeout);
+
+ var disposeFn = function() {
+ this.clearTimeout(timeoutId);
+ };
+
+ disposeFn.guid = 'vjs-timeout-'+ timeoutId;
+
+ this.on('dispose', disposeFn);
+
+ return timeoutId;
+};
+
+
+/**
+ * Clears a timeout and removes the associated dispose listener
+ * @param {Number} timeoutId The id of the timeout to clear
+ * @return {Number} Returns the timeout ID
+ */
+vjs.Component.prototype.clearTimeout = function(timeoutId) {
+ clearTimeout(timeoutId);
+
+ var disposeFn = function(){};
+ disposeFn.guid = 'vjs-timeout-'+ timeoutId;
+
+ this.off('dispose', disposeFn);
+
+ return timeoutId;
+};
+
+/**
+ * Creates an interval and sets up disposal automatically.
+ * @param {Function} fn The function to run every N seconds.
+ * @param {Number} interval Number of ms to delay before executing specified function.
+ * @return {Number} Returns the interval ID
+ */
+vjs.Component.prototype.setInterval = function(fn, interval) {
+ fn = vjs.bind(this, fn);
+
+ var intervalId = setInterval(fn, interval);
+
+ var disposeFn = function() {
+ this.clearInterval(intervalId);
+ };
+
+ disposeFn.guid = 'vjs-interval-'+ intervalId;
+
+ this.on('dispose', disposeFn);
+
+ return intervalId;
+};
+
+/**
+ * Clears an interval and removes the associated dispose listener
+ * @param {Number} intervalId The id of the interval to clear
+ * @return {Number} Returns the interval ID
+ */
+vjs.Component.prototype.clearInterval = function(intervalId) {
+ clearInterval(intervalId);
+
+ var disposeFn = function(){};
+ disposeFn.guid = 'vjs-interval-'+ intervalId;
+
+ this.off('dispose', disposeFn);
+
+ return intervalId;
+};
+/* Button - Base class for all buttons
+================================================================================ */
+/**
+ * Base class for all buttons
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.Button = vjs.Component.extend({
+ /**
+ * @constructor
+ * @inheritDoc
+ */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.emitTapEvents();
+
+ this.on('tap', this.onClick);
+ this.on('click', this.onClick);
+ this.on('focus', this.onFocus);
+ this.on('blur', this.onBlur);
+ }
+});
+
+vjs.Button.prototype.createEl = function(type, props){
+ var el;
+
+ // Add standard Aria and Tabindex info
+ props = vjs.obj.merge({
+ className: this.buildCSSClass(),
+ 'role': 'button',
+ 'aria-live': 'polite', // let the screen reader user know that the text of the button may change
+ tabIndex: 0
+ }, props);
+
+ el = vjs.Component.prototype.createEl.call(this, type, props);
+
+ // if innerHTML hasn't been overridden (bigPlayButton), add content elements
+ if (!props.innerHTML) {
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-control-content'
+ });
+
+ this.controlText_ = vjs.createEl('span', {
+ className: 'vjs-control-text',
+ innerHTML: this.localize(this.buttonText) || 'Need Text'
+ });
+
+ this.contentEl_.appendChild(this.controlText_);
+ el.appendChild(this.contentEl_);
+ }
+
+ return el;
+};
+
+vjs.Button.prototype.buildCSSClass = function(){
+ // TODO: Change vjs-control to vjs-button?
+ return 'vjs-control ' + vjs.Component.prototype.buildCSSClass.call(this);
+};
+
+ // Click - Override with specific functionality for button
+vjs.Button.prototype.onClick = function(){};
+
+ // Focus - Add keyboard functionality to element
+vjs.Button.prototype.onFocus = function(){
+ vjs.on(document, 'keydown', vjs.bind(this, this.onKeyPress));
+};
+
+ // KeyPress (document level) - Trigger click when keys are pressed
+vjs.Button.prototype.onKeyPress = function(event){
+ // Check for space bar (32) or enter (13) keys
+ if (event.which == 32 || event.which == 13) {
+ event.preventDefault();
+ this.onClick();
+ }
+};
+
+// Blur - Remove keyboard triggers
+vjs.Button.prototype.onBlur = function(){
+ vjs.off(document, 'keydown', vjs.bind(this, this.onKeyPress));
+};
+/* Slider
+================================================================================ */
+/**
+ * The base functionality for sliders like the volume bar and seek bar
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.Slider = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ // Set property names to bar and handle to match with the child Slider class is looking for
+ this.bar = this.getChild(this.options_['barName']);
+ this.handle = this.getChild(this.options_['handleName']);
+
+ this.on('mousedown', this.onMouseDown);
+ this.on('touchstart', this.onMouseDown);
+ this.on('focus', this.onFocus);
+ this.on('blur', this.onBlur);
+ this.on('click', this.onClick);
+
+ this.on(player, 'controlsvisible', this.update);
+ this.on(player, this.playerEvent, this.update);
+ }
+});
+
+vjs.Slider.prototype.createEl = function(type, props) {
+ props = props || {};
+ // Add the slider element class to all sub classes
+ props.className = props.className + ' vjs-slider';
+ props = vjs.obj.merge({
+ 'role': 'slider',
+ 'aria-valuenow': 0,
+ 'aria-valuemin': 0,
+ 'aria-valuemax': 100,
+ tabIndex: 0
+ }, props);
+
+ return vjs.Component.prototype.createEl.call(this, type, props);
+};
+
+vjs.Slider.prototype.onMouseDown = function(event){
+ event.preventDefault();
+ vjs.blockTextSelection();
+ this.addClass('vjs-sliding');
+
+ this.on(document, 'mousemove', this.onMouseMove);
+ this.on(document, 'mouseup', this.onMouseUp);
+ this.on(document, 'touchmove', this.onMouseMove);
+ this.on(document, 'touchend', this.onMouseUp);
+
+ this.onMouseMove(event);
+};
+
+// To be overridden by a subclass
+vjs.Slider.prototype.onMouseMove = function(){};
+
+vjs.Slider.prototype.onMouseUp = function() {
+ vjs.unblockTextSelection();
+ this.removeClass('vjs-sliding');
+
+ this.off(document, 'mousemove', this.onMouseMove);
+ this.off(document, 'mouseup', this.onMouseUp);
+ this.off(document, 'touchmove', this.onMouseMove);
+ this.off(document, 'touchend', this.onMouseUp);
+
+ this.update();
+};
+
+vjs.Slider.prototype.update = function(){
+ // In VolumeBar init we have a setTimeout for update that pops and update to the end of the
+ // execution stack. The player is destroyed before then update will cause an error
+ if (!this.el_) return;
+
+ // If scrubbing, we could use a cached value to make the handle keep up with the user's mouse.
+ // On HTML5 browsers scrubbing is really smooth, but some flash players are slow, so we might want to utilize this later.
+ // var progress = (this.player_.scrubbing) ? this.player_.getCache().currentTime / this.player_.duration() : this.player_.currentTime() / this.player_.duration();
+
+ var barProgress,
+ progress = this.getPercent(),
+ handle = this.handle,
+ bar = this.bar;
+
+ // Protect against no duration and other division issues
+ if (typeof progress !== 'number' ||
+ progress !== progress ||
+ progress < 0 ||
+ progress === Infinity) {
+ progress = 0;
+ }
+
+ barProgress = progress;
+
+ // If there is a handle, we need to account for the handle in our calculation for progress bar
+ // so that it doesn't fall short of or extend past the handle.
+ if (handle) {
+
+ var box = this.el_,
+ boxWidth = box.offsetWidth,
+
+ handleWidth = handle.el().offsetWidth,
+
+ // The width of the handle in percent of the containing box
+ // In IE, widths may not be ready yet causing NaN
+ handlePercent = (handleWidth) ? handleWidth / boxWidth : 0,
+
+ // Get the adjusted size of the box, considering that the handle's center never touches the left or right side.
+ // There is a margin of half the handle's width on both sides.
+ boxAdjustedPercent = 1 - handlePercent,
+
+ // Adjust the progress that we'll use to set widths to the new adjusted box width
+ adjustedProgress = progress * boxAdjustedPercent;
+
+ // The bar does reach the left side, so we need to account for this in the bar's width
+ barProgress = adjustedProgress + (handlePercent / 2);
+
+ // Move the handle from the left based on the adjected progress
+ handle.el().style.left = vjs.round(adjustedProgress * 100, 2) + '%';
+ }
+
+ // Set the new bar width
+ if (bar) {
+ bar.el().style.width = vjs.round(barProgress * 100, 2) + '%';
+ }
+};
+
+vjs.Slider.prototype.calculateDistance = function(event){
+ var el, box, boxX, boxY, boxW, boxH, handle, pageX, pageY;
+
+ el = this.el_;
+ box = vjs.findPosition(el);
+ boxW = boxH = el.offsetWidth;
+ handle = this.handle;
+
+ if (this.options()['vertical']) {
+ boxY = box.top;
+
+ if (event.changedTouches) {
+ pageY = event.changedTouches[0].pageY;
+ } else {
+ pageY = event.pageY;
+ }
+
+ if (handle) {
+ var handleH = handle.el().offsetHeight;
+ // Adjusted X and Width, so handle doesn't go outside the bar
+ boxY = boxY + (handleH / 2);
+ boxH = boxH - handleH;
+ }
+
+ // Percent that the click is through the adjusted area
+ return Math.max(0, Math.min(1, ((boxY - pageY) + boxH) / boxH));
+
+ } else {
+ boxX = box.left;
+
+ if (event.changedTouches) {
+ pageX = event.changedTouches[0].pageX;
+ } else {
+ pageX = event.pageX;
+ }
+
+ if (handle) {
+ var handleW = handle.el().offsetWidth;
+
+ // Adjusted X and Width, so handle doesn't go outside the bar
+ boxX = boxX + (handleW / 2);
+ boxW = boxW - handleW;
+ }
+
+ // Percent that the click is through the adjusted area
+ return Math.max(0, Math.min(1, (pageX - boxX) / boxW));
+ }
+};
+
+vjs.Slider.prototype.onFocus = function(){
+ this.on(document, 'keydown', this.onKeyPress);
+};
+
+vjs.Slider.prototype.onKeyPress = function(event){
+ if (event.which == 37 || event.which == 40) { // Left and Down Arrows
+ event.preventDefault();
+ this.stepBack();
+ } else if (event.which == 38 || event.which == 39) { // Up and Right Arrows
+ event.preventDefault();
+ this.stepForward();
+ }
+};
+
+vjs.Slider.prototype.onBlur = function(){
+ this.off(document, 'keydown', this.onKeyPress);
+};
+
+/**
+ * Listener for click events on slider, used to prevent clicks
+ * from bubbling up to parent elements like button menus.
+ * @param {Object} event Event object
+ */
+vjs.Slider.prototype.onClick = function(event){
+ event.stopImmediatePropagation();
+ event.preventDefault();
+};
+
+/**
+ * SeekBar Behavior includes play progress bar, and seek handle
+ * Needed so it can determine seek position based on handle position/size
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.SliderHandle = vjs.Component.extend();
+
+/**
+ * Default value of the slider
+ *
+ * @type {Number}
+ * @private
+ */
+vjs.SliderHandle.prototype.defaultValue = 0;
+
+/** @inheritDoc */
+vjs.SliderHandle.prototype.createEl = function(type, props) {
+ props = props || {};
+ // Add the slider element class to all sub classes
+ props.className = props.className + ' vjs-slider-handle';
+ props = vjs.obj.merge({
+ innerHTML: '
'+this.defaultValue+' '
+ }, props);
+
+ return vjs.Component.prototype.createEl.call(this, 'div', props);
+};
+/* Menu
+================================================================================ */
+/**
+ * The Menu component is used to build pop up menus, including subtitle and
+ * captions selection menus.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.Menu = vjs.Component.extend();
+
+/**
+ * Add a menu item to the menu
+ * @param {Object|String} component Component or component type to add
+ */
+vjs.Menu.prototype.addItem = function(component){
+ this.addChild(component);
+ component.on('click', vjs.bind(this, function(){
+ this.unlockShowing();
+ }));
+};
+
+/** @inheritDoc */
+vjs.Menu.prototype.createEl = function(){
+ var contentElType = this.options().contentElType || 'ul';
+ this.contentEl_ = vjs.createEl(contentElType, {
+ className: 'vjs-menu-content'
+ });
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ append: this.contentEl_,
+ className: 'vjs-menu'
+ });
+ el.appendChild(this.contentEl_);
+
+ // Prevent clicks from bubbling up. Needed for Menu Buttons,
+ // where a click on the parent is significant
+ vjs.on(el, 'click', function(event){
+ event.preventDefault();
+ event.stopImmediatePropagation();
+ });
+
+ return el;
+};
+
+/**
+ * The component for a menu item. `
`
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.MenuItem = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+ this.selected(options['selected']);
+ }
+});
+
+/** @inheritDoc */
+vjs.MenuItem.prototype.createEl = function(type, props){
+ return vjs.Button.prototype.createEl.call(this, 'li', vjs.obj.merge({
+ className: 'vjs-menu-item',
+ innerHTML: this.localize(this.options_['label'])
+ }, props));
+};
+
+/**
+ * Handle a click on the menu item, and set it to selected
+ */
+vjs.MenuItem.prototype.onClick = function(){
+ this.selected(true);
+};
+
+/**
+ * Set this menu item as selected or not
+ * @param {Boolean} selected
+ */
+vjs.MenuItem.prototype.selected = function(selected){
+ if (selected) {
+ this.addClass('vjs-selected');
+ this.el_.setAttribute('aria-selected',true);
+ } else {
+ this.removeClass('vjs-selected');
+ this.el_.setAttribute('aria-selected',false);
+ }
+};
+
+
+/**
+ * A button class with a popup menu
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.MenuButton = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.update();
+
+ this.on('keydown', this.onKeyPress);
+ this.el_.setAttribute('aria-haspopup', true);
+ this.el_.setAttribute('role', 'button');
+ }
+});
+
+vjs.MenuButton.prototype.update = function() {
+ var menu = this.createMenu();
+
+ if (this.menu) {
+ this.removeChild(this.menu);
+ }
+
+ this.menu = menu;
+ this.addChild(menu);
+
+ if (this.items && this.items.length === 0) {
+ this.hide();
+ } else if (this.items && this.items.length > 1) {
+ this.show();
+ }
+};
+
+/**
+ * Track the state of the menu button
+ * @type {Boolean}
+ * @private
+ */
+vjs.MenuButton.prototype.buttonPressed_ = false;
+
+vjs.MenuButton.prototype.createMenu = function(){
+ var menu = new vjs.Menu(this.player_);
+
+ // Add a title list item to the top
+ if (this.options().title) {
+ menu.contentEl().appendChild(vjs.createEl('li', {
+ className: 'vjs-menu-title',
+ innerHTML: vjs.capitalize(this.options().title),
+ tabindex: -1
+ }));
+ }
+
+ this.items = this['createItems']();
+
+ if (this.items) {
+ // Add menu items to the menu
+ for (var i = 0; i < this.items.length; i++) {
+ menu.addItem(this.items[i]);
+ }
+ }
+
+ return menu;
+};
+
+/**
+ * Create the list of menu items. Specific to each subclass.
+ */
+vjs.MenuButton.prototype.createItems = function(){};
+
+/** @inheritDoc */
+vjs.MenuButton.prototype.buildCSSClass = function(){
+ return this.className + ' vjs-menu-button ' + vjs.Button.prototype.buildCSSClass.call(this);
+};
+
+// Focus - Add keyboard functionality to element
+// This function is not needed anymore. Instead, the keyboard functionality is handled by
+// treating the button as triggering a submenu. When the button is pressed, the submenu
+// appears. Pressing the button again makes the submenu disappear.
+vjs.MenuButton.prototype.onFocus = function(){};
+// Can't turn off list display that we turned on with focus, because list would go away.
+vjs.MenuButton.prototype.onBlur = function(){};
+
+vjs.MenuButton.prototype.onClick = function(){
+ // When you click the button it adds focus, which will show the menu indefinitely.
+ // So we'll remove focus when the mouse leaves the button.
+ // Focus is needed for tab navigation.
+ this.one('mouseout', vjs.bind(this, function(){
+ this.menu.unlockShowing();
+ this.el_.blur();
+ }));
+ if (this.buttonPressed_){
+ this.unpressButton();
+ } else {
+ this.pressButton();
+ }
+};
+
+vjs.MenuButton.prototype.onKeyPress = function(event){
+
+ // Check for space bar (32) or enter (13) keys
+ if (event.which == 32 || event.which == 13) {
+ if (this.buttonPressed_){
+ this.unpressButton();
+ } else {
+ this.pressButton();
+ }
+ event.preventDefault();
+ // Check for escape (27) key
+ } else if (event.which == 27){
+ if (this.buttonPressed_){
+ this.unpressButton();
+ }
+ event.preventDefault();
+ }
+};
+
+vjs.MenuButton.prototype.pressButton = function(){
+ this.buttonPressed_ = true;
+ this.menu.lockShowing();
+ this.el_.setAttribute('aria-pressed', true);
+ if (this.items && this.items.length > 0) {
+ this.items[0].el().focus(); // set the focus to the title of the submenu
+ }
+};
+
+vjs.MenuButton.prototype.unpressButton = function(){
+ this.buttonPressed_ = false;
+ this.menu.unlockShowing();
+ this.el_.setAttribute('aria-pressed', false);
+};
+/**
+ * Custom MediaError to mimic the HTML5 MediaError
+ * @param {Number} code The media error code
+ */
+vjs.MediaError = function(code){
+ if (typeof code === 'number') {
+ this.code = code;
+ } else if (typeof code === 'string') {
+ // default code is zero, so this is a custom error
+ this.message = code;
+ } else if (typeof code === 'object') { // object
+ vjs.obj.merge(this, code);
+ }
+
+ if (!this.message) {
+ this.message = vjs.MediaError.defaultMessages[this.code] || '';
+ }
+};
+
+/**
+ * The error code that refers two one of the defined
+ * MediaError types
+ * @type {Number}
+ */
+vjs.MediaError.prototype.code = 0;
+
+/**
+ * An optional message to be shown with the error.
+ * Message is not part of the HTML5 video spec
+ * but allows for more informative custom errors.
+ * @type {String}
+ */
+vjs.MediaError.prototype.message = '';
+
+/**
+ * An optional status code that can be set by plugins
+ * to allow even more detail about the error.
+ * For example the HLS plugin might provide the specific
+ * HTTP status code that was returned when the error
+ * occurred, then allowing a custom error overlay
+ * to display more information.
+ * @type {[type]}
+ */
+vjs.MediaError.prototype.status = null;
+
+vjs.MediaError.errorTypes = [
+ 'MEDIA_ERR_CUSTOM', // = 0
+ 'MEDIA_ERR_ABORTED', // = 1
+ 'MEDIA_ERR_NETWORK', // = 2
+ 'MEDIA_ERR_DECODE', // = 3
+ 'MEDIA_ERR_SRC_NOT_SUPPORTED', // = 4
+ 'MEDIA_ERR_ENCRYPTED' // = 5
+];
+
+vjs.MediaError.defaultMessages = {
+ 1: 'You aborted the video playback',
+ 2: 'A network error caused the video download to fail part-way.',
+ 3: 'The video playback was aborted due to a corruption problem or because the video used features your browser did not support.',
+ 4: 'The video could not be loaded, either because the server or network failed or because the format is not supported.',
+ 5: 'The video is encrypted and we do not have the keys to decrypt it.'
+};
+
+// Add types as properties on MediaError
+// e.g. MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
+for (var errNum = 0; errNum < vjs.MediaError.errorTypes.length; errNum++) {
+ vjs.MediaError[vjs.MediaError.errorTypes[errNum]] = errNum;
+ // values should be accessible on both the class and instance
+ vjs.MediaError.prototype[vjs.MediaError.errorTypes[errNum]] = errNum;
+}
+(function(){
+ var apiMap, specApi, browserApi, i;
+
+ /**
+ * Store the browser-specific methods for the fullscreen API
+ * @type {Object|undefined}
+ * @private
+ */
+ vjs.browser.fullscreenAPI;
+
+ // browser API methods
+ // map approach from Screenful.js - https://github.com/sindresorhus/screenfull.js
+ apiMap = [
+ // Spec: https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html
+ [
+ 'requestFullscreen',
+ 'exitFullscreen',
+ 'fullscreenElement',
+ 'fullscreenEnabled',
+ 'fullscreenchange',
+ 'fullscreenerror'
+ ],
+ // WebKit
+ [
+ 'webkitRequestFullscreen',
+ 'webkitExitFullscreen',
+ 'webkitFullscreenElement',
+ 'webkitFullscreenEnabled',
+ 'webkitfullscreenchange',
+ 'webkitfullscreenerror'
+ ],
+ // Old WebKit (Safari 5.1)
+ [
+ 'webkitRequestFullScreen',
+ 'webkitCancelFullScreen',
+ 'webkitCurrentFullScreenElement',
+ 'webkitCancelFullScreen',
+ 'webkitfullscreenchange',
+ 'webkitfullscreenerror'
+ ],
+ // Mozilla
+ [
+ 'mozRequestFullScreen',
+ 'mozCancelFullScreen',
+ 'mozFullScreenElement',
+ 'mozFullScreenEnabled',
+ 'mozfullscreenchange',
+ 'mozfullscreenerror'
+ ],
+ // Microsoft
+ [
+ 'msRequestFullscreen',
+ 'msExitFullscreen',
+ 'msFullscreenElement',
+ 'msFullscreenEnabled',
+ 'MSFullscreenChange',
+ 'MSFullscreenError'
+ ]
+ ];
+
+ specApi = apiMap[0];
+
+ // determine the supported set of functions
+ for (i=0; i
+ *
+ *
+ * ```
+ *
+ * After an instance has been created it can be accessed globally using `Video('example_video_1')`.
+ *
+ * @class
+ * @extends vjs.Component
+ */
+vjs.Player = vjs.Component.extend({
+
+ /**
+ * player's constructor function
+ *
+ * @constructs
+ * @method init
+ * @param {Element} tag The original video tag used for configuring options
+ * @param {Object=} options Player options
+ * @param {Function=} ready Ready callback function
+ */
+ init: function(tag, options, ready){
+ this.tag = tag; // Store the original tag used to set options
+
+ // Make sure tag ID exists
+ tag.id = tag.id || 'vjs_video_' + vjs.guid++;
+
+ // Store the tag attributes used to restore html5 element
+ this.tagAttributes = tag && vjs.getElementAttributes(tag);
+
+ // Set Options
+ // The options argument overrides options set in the video tag
+ // which overrides globally set options.
+ // This latter part coincides with the load order
+ // (tag must exist before Player)
+ options = vjs.obj.merge(this.getTagSettings(tag), options);
+
+ // Update Current Language
+ this.language_ = options['language'] || vjs.options['language'];
+
+ // Update Supported Languages
+ this.languages_ = options['languages'] || vjs.options['languages'];
+
+ // Cache for video property values.
+ this.cache_ = {};
+
+ // Set poster
+ this.poster_ = options['poster'] || '';
+
+ // Set controls
+ this.controls_ = !!options['controls'];
+ // Original tag settings stored in options
+ // now remove immediately so native controls don't flash.
+ // May be turned back on by HTML5 tech if nativeControlsForTouch is true
+ tag.controls = false;
+
+ // we don't want the player to report touch activity on itself
+ // see enableTouchActivity in Component
+ options.reportTouchActivity = false;
+
+ // Set isAudio based on whether or not an audio tag was used
+ this.isAudio(this.tag.nodeName.toLowerCase() === 'audio');
+
+ // Run base component initializing with new options.
+ // Builds the element through createEl()
+ // Inits and embeds any child components in opts
+ vjs.Component.call(this, this, options, ready);
+
+ // Update controls className. Can't do this when the controls are initially
+ // set because the element doesn't exist yet.
+ if (this.controls()) {
+ this.addClass('vjs-controls-enabled');
+ } else {
+ this.addClass('vjs-controls-disabled');
+ }
+
+ if (this.isAudio()) {
+ this.addClass('vjs-audio');
+ }
+
+ // TODO: Make this smarter. Toggle user state between touching/mousing
+ // using events, since devices can have both touch and mouse events.
+ // if (vjs.TOUCH_ENABLED) {
+ // this.addClass('vjs-touch-enabled');
+ // }
+
+ // Make player easily findable by ID
+ vjs.players[this.id_] = this;
+
+ if (options['plugins']) {
+ vjs.obj.each(options['plugins'], function(key, val){
+ this[key](val);
+ }, this);
+ }
+
+ this.listenForUserActivity();
+ }
+});
+
+/**
+ * The player's stored language code
+ *
+ * @type {String}
+ * @private
+ */
+vjs.Player.prototype.language_;
+
+/**
+ * The player's language code
+ * @param {String} languageCode The locale string
+ * @return {String} The locale string when getting
+ * @return {vjs.Player} self, when setting
+ */
+vjs.Player.prototype.language = function (languageCode) {
+ if (languageCode === undefined) {
+ return this.language_;
+ }
+
+ this.language_ = languageCode;
+ return this;
+};
+
+/**
+ * The player's stored language dictionary
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Player.prototype.languages_;
+
+vjs.Player.prototype.languages = function(){
+ return this.languages_;
+};
+
+/**
+ * Player instance options, surfaced using vjs.options
+ * vjs.options = vjs.Player.prototype.options_
+ * Make changes in vjs.options, not here.
+ * All options should use string keys so they avoid
+ * renaming by closure compiler
+ * @type {Object}
+ * @private
+ */
+vjs.Player.prototype.options_ = vjs.options;
+
+/**
+ * Destroys the video player and does any necessary cleanup
+ *
+ * myPlayer.dispose();
+ *
+ * This is especially helpful if you are dynamically adding and removing videos
+ * to/from the DOM.
+ */
+vjs.Player.prototype.dispose = function(){
+ this.trigger('dispose');
+ // prevent dispose from being called twice
+ this.off('dispose');
+
+ // Kill reference to this player
+ vjs.players[this.id_] = null;
+ if (this.tag && this.tag['player']) { this.tag['player'] = null; }
+ if (this.el_ && this.el_['player']) { this.el_['player'] = null; }
+
+ if (this.tech) { this.tech.dispose(); }
+
+ // Component dispose
+ vjs.Component.prototype.dispose.call(this);
+};
+
+vjs.Player.prototype.getTagSettings = function(tag){
+ var tagOptions,
+ dataSetup,
+ options = {
+ 'sources': [],
+ 'tracks': []
+ };
+
+ tagOptions = vjs.getElementAttributes(tag);
+ dataSetup = tagOptions['data-setup'];
+
+ // Check if data-setup attr exists.
+ if (dataSetup !== null){
+ // Parse options JSON
+ // If empty string, make it a parsable json object.
+ vjs.obj.merge(tagOptions, vjs.JSON.parse(dataSetup || '{}'));
+ }
+
+ vjs.obj.merge(options, tagOptions);
+
+ // Get tag children settings
+ if (tag.hasChildNodes()) {
+ var children, child, childName, i, j;
+
+ children = tag.childNodes;
+
+ for (i=0,j=children.length; i 0) {
+ techOptions['startTime'] = this.cache_.currentTime;
+ }
+
+ this.cache_.src = source.src;
+ }
+
+ // Initialize tech instance
+ this.tech = new window['videojs'][techName](this, techOptions);
+
+ this.tech.ready(techReady);
+};
+
+vjs.Player.prototype.unloadTech = function(){
+ this.isReady_ = false;
+
+ this.tech.dispose();
+
+ this.tech = false;
+};
+
+// There's many issues around changing the size of a Flash (or other plugin) object.
+// First is a plugin reload issue in Firefox that has been around for 11 years: https://bugzilla.mozilla.org/show_bug.cgi?id=90268
+// Then with the new fullscreen API, Mozilla and webkit browsers will reload the flash object after going to fullscreen.
+// To get around this, we're unloading the tech, caching source and currentTime values, and reloading the tech once the plugin is resized.
+// reloadTech: function(betweenFn){
+// vjs.log('unloadingTech')
+// this.unloadTech();
+// vjs.log('unloadedTech')
+// if (betweenFn) { betweenFn.call(); }
+// vjs.log('LoadingTech')
+// this.loadTech(this.techName, { src: this.cache_.src })
+// vjs.log('loadedTech')
+// },
+
+// /* Player event handlers (how the player reacts to certain events)
+// ================================================================================ */
+
+/**
+ * Fired when the user agent begins looking for media data
+ * @event loadstart
+ */
+vjs.Player.prototype.onLoadStart = function() {
+ // TODO: Update to use `emptied` event instead. See #1277.
+
+ this.removeClass('vjs-ended');
+
+ // reset the error state
+ this.error(null);
+
+ // If it's already playing we want to trigger a firstplay event now.
+ // The firstplay event relies on both the play and loadstart events
+ // which can happen in any order for a new source
+ if (!this.paused()) {
+ this.trigger('firstplay');
+ } else {
+ // reset the hasStarted state
+ this.hasStarted(false);
+ }
+};
+
+vjs.Player.prototype.hasStarted_ = false;
+
+vjs.Player.prototype.hasStarted = function(hasStarted){
+ if (hasStarted !== undefined) {
+ // only update if this is a new value
+ if (this.hasStarted_ !== hasStarted) {
+ this.hasStarted_ = hasStarted;
+ if (hasStarted) {
+ this.addClass('vjs-has-started');
+ // trigger the firstplay event if this newly has played
+ this.trigger('firstplay');
+ } else {
+ this.removeClass('vjs-has-started');
+ }
+ }
+ return this;
+ }
+ return this.hasStarted_;
+};
+
+/**
+ * Fired when the player has initial duration and dimension information
+ * @event loadedmetadata
+ */
+vjs.Player.prototype.onLoadedMetaData;
+
+/**
+ * Fired when the player has downloaded data at the current playback position
+ * @event loadeddata
+ */
+vjs.Player.prototype.onLoadedData;
+
+/**
+ * Fired when the player has finished downloading the source data
+ * @event loadedalldata
+ */
+vjs.Player.prototype.onLoadedAllData;
+
+/**
+ * Fired whenever the media begins or resumes playback
+ * @event play
+ */
+vjs.Player.prototype.onPlay = function(){
+ this.removeClass('vjs-ended');
+ this.removeClass('vjs-paused');
+ this.addClass('vjs-playing');
+
+ // hide the poster when the user hits play
+ // https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-play
+ this.hasStarted(true);
+};
+
+/**
+ * Fired whenever the media begins waiting
+ * @event waiting
+ */
+vjs.Player.prototype.onWaiting = function(){
+ this.addClass('vjs-waiting');
+};
+
+/**
+ * A handler for events that signal that waiting has ended
+ * which is not consistent between browsers. See #1351
+ * @private
+ */
+vjs.Player.prototype.onWaitEnd = function(){
+ this.removeClass('vjs-waiting');
+};
+
+/**
+ * Fired whenever the player is jumping to a new time
+ * @event seeking
+ */
+vjs.Player.prototype.onSeeking = function(){
+ this.addClass('vjs-seeking');
+};
+
+/**
+ * Fired when the player has finished jumping to a new time
+ * @event seeked
+ */
+vjs.Player.prototype.onSeeked = function(){
+ this.removeClass('vjs-seeking');
+};
+
+/**
+ * Fired the first time a video is played
+ *
+ * Not part of the HLS spec, and we're not sure if this is the best
+ * implementation yet, so use sparingly. If you don't have a reason to
+ * prevent playback, use `myPlayer.one('play');` instead.
+ *
+ * @event firstplay
+ */
+vjs.Player.prototype.onFirstPlay = function(){
+ //If the first starttime attribute is specified
+ //then we will start at the given offset in seconds
+ if(this.options_['starttime']){
+ this.currentTime(this.options_['starttime']);
+ }
+
+ this.addClass('vjs-has-started');
+};
+
+/**
+ * Fired whenever the media has been paused
+ * @event pause
+ */
+vjs.Player.prototype.onPause = function(){
+ this.removeClass('vjs-playing');
+ this.addClass('vjs-paused');
+};
+
+/**
+ * Fired when the current playback position has changed
+ *
+ * During playback this is fired every 15-250 milliseconds, depending on the
+ * playback technology in use.
+ * @event timeupdate
+ */
+vjs.Player.prototype.onTimeUpdate;
+
+/**
+ * Fired while the user agent is downloading media data
+ * @event progress
+ */
+vjs.Player.prototype.onProgress = function(){
+ // Add custom event for when source is finished downloading.
+ if (this.bufferedPercent() == 1) {
+ this.trigger('loadedalldata');
+ }
+};
+
+/**
+ * Fired when the end of the media resource is reached (currentTime == duration)
+ * @event ended
+ */
+vjs.Player.prototype.onEnded = function(){
+ this.addClass('vjs-ended');
+ if (this.options_['loop']) {
+ this.currentTime(0);
+ this.play();
+ } else if (!this.paused()) {
+ this.pause();
+ }
+};
+
+/**
+ * Fired when the duration of the media resource is first known or changed
+ * @event durationchange
+ */
+vjs.Player.prototype.onDurationChange = function(){
+ // Allows for caching value instead of asking player each time.
+ // We need to get the techGet response and check for a value so we don't
+ // accidentally cause the stack to blow up.
+ var duration = this.techGet('duration');
+ if (duration) {
+ if (duration < 0) {
+ duration = Infinity;
+ }
+ this.duration(duration);
+ // Determine if the stream is live and propagate styles down to UI.
+ if (duration === Infinity) {
+ this.addClass('vjs-live');
+ } else {
+ this.removeClass('vjs-live');
+ }
+ }
+};
+
+/**
+ * Fired when the volume changes
+ * @event volumechange
+ */
+vjs.Player.prototype.onVolumeChange;
+
+/**
+ * Fired when the player switches in or out of fullscreen mode
+ * @event fullscreenchange
+ */
+vjs.Player.prototype.onFullscreenChange = function() {
+ if (this.isFullscreen()) {
+ this.addClass('vjs-fullscreen');
+ } else {
+ this.removeClass('vjs-fullscreen');
+ }
+};
+
+/**
+ * Fired when an error occurs
+ * @event error
+ */
+vjs.Player.prototype.onError;
+
+// /* Player API
+// ================================================================================ */
+
+/**
+ * Object for cached values.
+ * @private
+ */
+vjs.Player.prototype.cache_;
+
+vjs.Player.prototype.getCache = function(){
+ return this.cache_;
+};
+
+// Pass values to the playback tech
+vjs.Player.prototype.techCall = function(method, arg){
+ // If it's not ready yet, call method when it is
+ if (this.tech && !this.tech.isReady_) {
+ this.tech.ready(function(){
+ this[method](arg);
+ });
+
+ // Otherwise call method now
+ } else {
+ try {
+ this.tech[method](arg);
+ } catch(e) {
+ vjs.log(e);
+ throw e;
+ }
+ }
+};
+
+// Get calls can't wait for the tech, and sometimes don't need to.
+vjs.Player.prototype.techGet = function(method){
+ if (this.tech && this.tech.isReady_) {
+
+ // Flash likes to die and reload when you hide or reposition it.
+ // In these cases the object methods go away and we get errors.
+ // When that happens we'll catch the errors and inform tech that it's not ready any more.
+ try {
+ return this.tech[method]();
+ } catch(e) {
+ // When building additional tech libs, an expected method may not be defined yet
+ if (this.tech[method] === undefined) {
+ vjs.log('Video.js: ' + method + ' method not defined for '+this.techName+' playback technology.', e);
+ } else {
+ // When a method isn't available on the object it throws a TypeError
+ if (e.name == 'TypeError') {
+ vjs.log('Video.js: ' + method + ' unavailable on '+this.techName+' playback technology element.', e);
+ this.tech.isReady_ = false;
+ } else {
+ vjs.log(e);
+ }
+ }
+ throw e;
+ }
+ }
+
+ return;
+};
+
+/**
+ * start media playback
+ *
+ * myPlayer.play();
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.play = function(){
+ this.techCall('play');
+ return this;
+};
+
+/**
+ * Pause the video playback
+ *
+ * myPlayer.pause();
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.pause = function(){
+ this.techCall('pause');
+ return this;
+};
+
+/**
+ * Check if the player is paused
+ *
+ * var isPaused = myPlayer.paused();
+ * var isPlaying = !myPlayer.paused();
+ *
+ * @return {Boolean} false if the media is currently playing, or true otherwise
+ */
+vjs.Player.prototype.paused = function(){
+ // The initial state of paused should be true (in Safari it's actually false)
+ return (this.techGet('paused') === false) ? false : true;
+};
+
+/**
+ * Get or set the current time (in seconds)
+ *
+ * // get
+ * var whereYouAt = myPlayer.currentTime();
+ *
+ * // set
+ * myPlayer.currentTime(120); // 2 minutes into the video
+ *
+ * @param {Number|String=} seconds The time to seek to
+ * @return {Number} The time in seconds, when not setting
+ * @return {vjs.Player} self, when the current time is set
+ */
+vjs.Player.prototype.currentTime = function(seconds){
+ if (seconds !== undefined) {
+
+ this.techCall('setCurrentTime', seconds);
+
+ return this;
+ }
+
+ // cache last currentTime and return. default to 0 seconds
+ //
+ // Caching the currentTime is meant to prevent a massive amount of reads on the tech's
+ // currentTime when scrubbing, but may not provide much performance benefit afterall.
+ // Should be tested. Also something has to read the actual current time or the cache will
+ // never get updated.
+ return this.cache_.currentTime = (this.techGet('currentTime') || 0);
+};
+
+/**
+ * Get the length in time of the video in seconds
+ *
+ * var lengthOfVideo = myPlayer.duration();
+ *
+ * **NOTE**: The video must have started loading before the duration can be
+ * known, and in the case of Flash, may not be known until the video starts
+ * playing.
+ *
+ * @return {Number} The duration of the video in seconds
+ */
+vjs.Player.prototype.duration = function(seconds){
+ if (seconds !== undefined) {
+
+ // cache the last set value for optimized scrubbing (esp. Flash)
+ this.cache_.duration = parseFloat(seconds);
+
+ return this;
+ }
+
+ if (this.cache_.duration === undefined) {
+ this.onDurationChange();
+ }
+
+ return this.cache_.duration || 0;
+};
+
+/**
+ * Calculates how much time is left.
+ *
+ * var timeLeft = myPlayer.remainingTime();
+ *
+ * Not a native video element function, but useful
+ * @return {Number} The time remaining in seconds
+ */
+vjs.Player.prototype.remainingTime = function(){
+ return this.duration() - this.currentTime();
+};
+
+// http://dev.w3.org/html5/spec/video.html#dom-media-buffered
+// Buffered returns a timerange object.
+// Kind of like an array of portions of the video that have been downloaded.
+
+/**
+ * Get a TimeRange object with the times of the video that have been downloaded
+ *
+ * If you just want the percent of the video that's been downloaded,
+ * use bufferedPercent.
+ *
+ * // Number of different ranges of time have been buffered. Usually 1.
+ * numberOfRanges = bufferedTimeRange.length,
+ *
+ * // Time in seconds when the first range starts. Usually 0.
+ * firstRangeStart = bufferedTimeRange.start(0),
+ *
+ * // Time in seconds when the first range ends
+ * firstRangeEnd = bufferedTimeRange.end(0),
+ *
+ * // Length in seconds of the first time range
+ * firstRangeLength = firstRangeEnd - firstRangeStart;
+ *
+ * @return {Object} A mock TimeRange object (following HTML spec)
+ */
+vjs.Player.prototype.buffered = function(){
+ var buffered = this.techGet('buffered');
+
+ if (!buffered || !buffered.length) {
+ buffered = vjs.createTimeRange(0,0);
+ }
+
+ return buffered;
+};
+
+/**
+ * Get the percent (as a decimal) of the video that's been downloaded
+ *
+ * var howMuchIsDownloaded = myPlayer.bufferedPercent();
+ *
+ * 0 means none, 1 means all.
+ * (This method isn't in the HTML5 spec, but it's very convenient)
+ *
+ * @return {Number} A decimal between 0 and 1 representing the percent
+ */
+vjs.Player.prototype.bufferedPercent = function(){
+ var duration = this.duration(),
+ buffered = this.buffered(),
+ bufferedDuration = 0,
+ start, end;
+
+ if (!duration) {
+ return 0;
+ }
+
+ for (var i=0; i duration) {
+ end = duration;
+ }
+
+ bufferedDuration += end - start;
+ }
+
+ return bufferedDuration / duration;
+};
+
+/**
+ * Get the ending time of the last buffered time range
+ *
+ * This is used in the progress bar to encapsulate all time ranges.
+ * @return {Number} The end of the last buffered time range
+ */
+vjs.Player.prototype.bufferedEnd = function(){
+ var buffered = this.buffered(),
+ duration = this.duration(),
+ end = buffered.end(buffered.length-1);
+
+ if (end > duration) {
+ end = duration;
+ }
+
+ return end;
+};
+
+/**
+ * Get or set the current volume of the media
+ *
+ * // get
+ * var howLoudIsIt = myPlayer.volume();
+ *
+ * // set
+ * myPlayer.volume(0.5); // Set volume to half
+ *
+ * 0 is off (muted), 1.0 is all the way up, 0.5 is half way.
+ *
+ * @param {Number} percentAsDecimal The new volume as a decimal percent
+ * @return {Number} The current volume, when getting
+ * @return {vjs.Player} self, when setting
+ */
+vjs.Player.prototype.volume = function(percentAsDecimal){
+ var vol;
+
+ if (percentAsDecimal !== undefined) {
+ vol = Math.max(0, Math.min(1, parseFloat(percentAsDecimal))); // Force value to between 0 and 1
+ this.cache_.volume = vol;
+ this.techCall('setVolume', vol);
+ vjs.setLocalStorage('volume', vol);
+ return this;
+ }
+
+ // Default to 1 when returning current volume.
+ vol = parseFloat(this.techGet('volume'));
+ return (isNaN(vol)) ? 1 : vol;
+};
+
+
+/**
+ * Get the current muted state, or turn mute on or off
+ *
+ * // get
+ * var isVolumeMuted = myPlayer.muted();
+ *
+ * // set
+ * myPlayer.muted(true); // mute the volume
+ *
+ * @param {Boolean=} muted True to mute, false to unmute
+ * @return {Boolean} True if mute is on, false if not, when getting
+ * @return {vjs.Player} self, when setting mute
+ */
+vjs.Player.prototype.muted = function(muted){
+ if (muted !== undefined) {
+ this.techCall('setMuted', muted);
+ return this;
+ }
+ return this.techGet('muted') || false; // Default to false
+};
+
+// Check if current tech can support native fullscreen
+// (e.g. with built in controls like iOS, so not our flash swf)
+vjs.Player.prototype.supportsFullScreen = function(){
+ return this.techGet('supportsFullScreen') || false;
+};
+
+/**
+ * is the player in fullscreen
+ * @type {Boolean}
+ * @private
+ */
+vjs.Player.prototype.isFullscreen_ = false;
+
+/**
+ * Check if the player is in fullscreen mode
+ *
+ * // get
+ * var fullscreenOrNot = myPlayer.isFullscreen();
+ *
+ * // set
+ * myPlayer.isFullscreen(true); // tell the player it's in fullscreen
+ *
+ * NOTE: As of the latest HTML5 spec, isFullscreen is no longer an official
+ * property and instead document.fullscreenElement is used. But isFullscreen is
+ * still a valuable property for internal player workings.
+ *
+ * @param {Boolean=} isFS Update the player's fullscreen state
+ * @return {Boolean} true if fullscreen, false if not
+ * @return {vjs.Player} self, when setting
+ */
+vjs.Player.prototype.isFullscreen = function(isFS){
+ if (isFS !== undefined) {
+ this.isFullscreen_ = !!isFS;
+ return this;
+ }
+ return this.isFullscreen_;
+};
+
+/**
+ * Old naming for isFullscreen()
+ * @deprecated for lowercase 's' version
+ */
+vjs.Player.prototype.isFullScreen = function(isFS){
+ vjs.log.warn('player.isFullScreen() has been deprecated, use player.isFullscreen() with a lowercase "s")');
+ return this.isFullscreen(isFS);
+};
+
+/**
+ * Increase the size of the video to full screen
+ *
+ * myPlayer.requestFullscreen();
+ *
+ * In some browsers, full screen is not supported natively, so it enters
+ * "full window mode", where the video fills the browser window.
+ * In browsers and devices that support native full screen, sometimes the
+ * browser's default controls will be shown, and not the Video.js custom skin.
+ * This includes most mobile devices (iOS, Android) and older versions of
+ * Safari.
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.requestFullscreen = function(){
+ var fsApi = vjs.browser.fullscreenAPI;
+
+ this.isFullscreen(true);
+
+ if (fsApi) {
+ // the browser supports going fullscreen at the element level so we can
+ // take the controls fullscreen as well as the video
+
+ // Trigger fullscreenchange event after change
+ // We have to specifically add this each time, and remove
+ // when canceling fullscreen. Otherwise if there's multiple
+ // players on a page, they would all be reacting to the same fullscreen
+ // events
+ vjs.on(document, fsApi['fullscreenchange'], vjs.bind(this, function(e){
+ this.isFullscreen(document[fsApi.fullscreenElement]);
+
+ // If cancelling fullscreen, remove event listener.
+ if (this.isFullscreen() === false) {
+ vjs.off(document, fsApi['fullscreenchange'], arguments.callee);
+ }
+
+ this.trigger('fullscreenchange');
+ }));
+
+ this.el_[fsApi.requestFullscreen]();
+
+ } else if (this.tech.supportsFullScreen()) {
+ // we can't take the video.js controls fullscreen but we can go fullscreen
+ // with native controls
+ this.techCall('enterFullScreen');
+ } else {
+ // fullscreen isn't supported so we'll just stretch the video element to
+ // fill the viewport
+ this.enterFullWindow();
+ this.trigger('fullscreenchange');
+ }
+
+ return this;
+};
+
+/**
+ * Old naming for requestFullscreen
+ * @deprecated for lower case 's' version
+ */
+vjs.Player.prototype.requestFullScreen = function(){
+ vjs.log.warn('player.requestFullScreen() has been deprecated, use player.requestFullscreen() with a lowercase "s")');
+ return this.requestFullscreen();
+};
+
+
+/**
+ * Return the video to its normal size after having been in full screen mode
+ *
+ * myPlayer.exitFullscreen();
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.exitFullscreen = function(){
+ var fsApi = vjs.browser.fullscreenAPI;
+ this.isFullscreen(false);
+
+ // Check for browser element fullscreen support
+ if (fsApi) {
+ document[fsApi.exitFullscreen]();
+ } else if (this.tech.supportsFullScreen()) {
+ this.techCall('exitFullScreen');
+ } else {
+ this.exitFullWindow();
+ this.trigger('fullscreenchange');
+ }
+
+ return this;
+};
+
+/**
+ * Old naming for exitFullscreen
+ * @deprecated for exitFullscreen
+ */
+vjs.Player.prototype.cancelFullScreen = function(){
+ vjs.log.warn('player.cancelFullScreen() has been deprecated, use player.exitFullscreen()');
+ return this.exitFullscreen();
+};
+
+// When fullscreen isn't supported we can stretch the video container to as wide as the browser will let us.
+vjs.Player.prototype.enterFullWindow = function(){
+ this.isFullWindow = true;
+
+ // Storing original doc overflow value to return to when fullscreen is off
+ this.docOrigOverflow = document.documentElement.style.overflow;
+
+ // Add listener for esc key to exit fullscreen
+ vjs.on(document, 'keydown', vjs.bind(this, this.fullWindowOnEscKey));
+
+ // Hide any scroll bars
+ document.documentElement.style.overflow = 'hidden';
+
+ // Apply fullscreen styles
+ vjs.addClass(document.body, 'vjs-full-window');
+
+ this.trigger('enterFullWindow');
+};
+vjs.Player.prototype.fullWindowOnEscKey = function(event){
+ if (event.keyCode === 27) {
+ if (this.isFullscreen() === true) {
+ this.exitFullscreen();
+ } else {
+ this.exitFullWindow();
+ }
+ }
+};
+
+vjs.Player.prototype.exitFullWindow = function(){
+ this.isFullWindow = false;
+ vjs.off(document, 'keydown', this.fullWindowOnEscKey);
+
+ // Unhide scroll bars.
+ document.documentElement.style.overflow = this.docOrigOverflow;
+
+ // Remove fullscreen styles
+ vjs.removeClass(document.body, 'vjs-full-window');
+
+ // Resize the box, controller, and poster to original sizes
+ // this.positionAll();
+ this.trigger('exitFullWindow');
+};
+
+vjs.Player.prototype.selectSource = function(sources){
+ // Loop through each playback technology in the options order
+ for (var i=0,j=this.options_['techOrder'];i 0) {
+ // In milliseconds, if no more activity has occurred the
+ // user will be considered inactive
+ inactivityTimeout = this.setTimeout(function () {
+ // Protect against the case where the inactivityTimeout can trigger just
+ // before the next user activity is picked up by the activityCheck loop
+ // causing a flicker
+ if (!this.userActivity_) {
+ this.userActive(false);
+ }
+ }, timeout);
+ }
+ }
+ }, 250);
+};
+
+/**
+ * Gets or sets the current playback rate.
+ * @param {Boolean} rate New playback rate to set.
+ * @return {Number} Returns the new playback rate when setting
+ * @return {Number} Returns the current playback rate when getting
+ */
+vjs.Player.prototype.playbackRate = function(rate) {
+ if (rate !== undefined) {
+ this.techCall('setPlaybackRate', rate);
+ return this;
+ }
+
+ if (this.tech && this.tech['featuresPlaybackRate']) {
+ return this.techGet('playbackRate');
+ } else {
+ return 1.0;
+ }
+
+};
+
+/**
+ * Store the current audio state
+ * @type {Boolean}
+ * @private
+ */
+vjs.Player.prototype.isAudio_ = false;
+
+/**
+ * Gets or sets the audio flag
+ *
+ * @param {Boolean} bool True signals that this is an audio player.
+ * @return {Boolean} Returns true if player is audio, false if not when getting
+ * @return {vjs.Player} Returns the player if setting
+ * @private
+ */
+vjs.Player.prototype.isAudio = function(bool) {
+ if (bool !== undefined) {
+ this.isAudio_ = !!bool;
+ return this;
+ }
+
+ return this.isAudio_;
+};
+
+/**
+ * Returns the current state of network activity for the element, from
+ * the codes in the list below.
+ * - NETWORK_EMPTY (numeric value 0)
+ * The element has not yet been initialised. All attributes are in
+ * their initial states.
+ * - NETWORK_IDLE (numeric value 1)
+ * The element's resource selection algorithm is active and has
+ * selected a resource, but it is not actually using the network at
+ * this time.
+ * - NETWORK_LOADING (numeric value 2)
+ * The user agent is actively trying to download data.
+ * - NETWORK_NO_SOURCE (numeric value 3)
+ * The element's resource selection algorithm is active, but it has
+ * not yet found a resource to use.
+ * @return {Number} the current network activity state
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#network-states
+ */
+vjs.Player.prototype.networkState = function(){
+ return this.techGet('networkState');
+};
+
+/**
+ * Returns a value that expresses the current state of the element
+ * with respect to rendering the current playback position, from the
+ * codes in the list below.
+ * - HAVE_NOTHING (numeric value 0)
+ * No information regarding the media resource is available.
+ * - HAVE_METADATA (numeric value 1)
+ * Enough of the resource has been obtained that the duration of the
+ * resource is available.
+ * - HAVE_CURRENT_DATA (numeric value 2)
+ * Data for the immediate current playback position is available.
+ * - HAVE_FUTURE_DATA (numeric value 3)
+ * Data for the immediate current playback position is available, as
+ * well as enough data for the user agent to advance the current
+ * playback position in the direction of playback.
+ * - HAVE_ENOUGH_DATA (numeric value 4)
+ * The user agent estimates that enough data is available for
+ * playback to proceed uninterrupted.
+ * @return {Number} the current playback rendering state
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-readystate
+ */
+vjs.Player.prototype.readyState = function(){
+ return this.techGet('readyState');
+};
+
+/**
+ * Text tracks are tracks of timed text events.
+ * Captions - text displayed over the video for the hearing impaired
+ * Subtitles - text displayed over the video for those who don't understand language in the video
+ * Chapters - text displayed in a menu allowing the user to jump to particular points (chapters) in the video
+ * Descriptions (not supported yet) - audio descriptions that are read back to the user by a screen reading device
+ */
+
+/**
+ * Get an array of associated text tracks. captions, subtitles, chapters, descriptions
+ * http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-texttracks
+ * @return {Array} Array of track objects
+ */
+vjs.Player.prototype.textTracks = function(){
+ // cannot use techGet directly because it checks to see whether the tech is ready.
+ // Flash is unlikely to be ready in time but textTracks should still work.
+ return this.tech && this.tech['textTracks']();
+};
+
+vjs.Player.prototype.remoteTextTracks = function() {
+ return this.tech && this.tech['remoteTextTracks']();
+};
+
+/**
+ * Add a text track
+ * In addition to the W3C settings we allow adding additional info through options.
+ * http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-addtexttrack
+ * @param {String} kind Captions, subtitles, chapters, descriptions, or metadata
+ * @param {String=} label Optional label
+ * @param {String=} language Optional language
+ */
+vjs.Player.prototype.addTextTrack = function(kind, label, language) {
+ return this.tech && this.tech['addTextTrack'](kind, label, language);
+};
+
+vjs.Player.prototype.addRemoteTextTrack = function(options) {
+ return this.tech && this.tech['addRemoteTextTrack'](options);
+};
+
+vjs.Player.prototype.removeRemoteTextTrack = function(track) {
+ this.tech && this.tech['removeRemoteTextTrack'](track);
+};
+
+// Methods to add support for
+// initialTime: function(){ return this.techCall('initialTime'); },
+// startOffsetTime: function(){ return this.techCall('startOffsetTime'); },
+// played: function(){ return this.techCall('played'); },
+// seekable: function(){ return this.techCall('seekable'); },
+// videoTracks: function(){ return this.techCall('videoTracks'); },
+// audioTracks: function(){ return this.techCall('audioTracks'); },
+// videoWidth: function(){ return this.techCall('videoWidth'); },
+// videoHeight: function(){ return this.techCall('videoHeight'); },
+// defaultPlaybackRate: function(){ return this.techCall('defaultPlaybackRate'); },
+// mediaGroup: function(){ return this.techCall('mediaGroup'); },
+// controller: function(){ return this.techCall('controller'); },
+// defaultMuted: function(){ return this.techCall('defaultMuted'); }
+
+// TODO
+// currentSrcList: the array of sources including other formats and bitrates
+// playList: array of source lists in order of playback
+/**
+ * Container of main controls
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ * @extends vjs.Component
+ */
+vjs.ControlBar = vjs.Component.extend();
+
+vjs.ControlBar.prototype.options_ = {
+ loadEvent: 'play',
+ children: {
+ 'playToggle': {},
+ 'currentTimeDisplay': {},
+ 'timeDivider': {},
+ 'durationDisplay': {},
+ 'remainingTimeDisplay': {},
+ 'liveDisplay': {},
+ 'progressControl': {},
+ 'fullscreenToggle': {},
+ 'volumeControl': {},
+ 'muteToggle': {},
+ // 'volumeMenuButton': {},
+ 'playbackRateMenuButton': {},
+ 'subtitlesButton': {},
+ 'captionsButton': {},
+ 'chaptersButton': {}
+ }
+};
+
+vjs.ControlBar.prototype.createEl = function(){
+ return vjs.createEl('div', {
+ className: 'vjs-control-bar'
+ });
+};
+/**
+ * Displays the live indicator
+ * TODO - Future make it click to snap to live
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.LiveDisplay = vjs.Component.extend({
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.LiveDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-live-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-live-display',
+ innerHTML: '' + this.localize('Stream Type') + ' ' + this.localize('LIVE'),
+ 'aria-live': 'off'
+ });
+
+ el.appendChild(this.contentEl_);
+
+ return el;
+};
+/**
+ * Button to toggle between play and pause
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.PlayToggle = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.on(player, 'play', this.onPlay);
+ this.on(player, 'pause', this.onPause);
+ }
+});
+
+vjs.PlayToggle.prototype.buttonText = 'Play';
+
+vjs.PlayToggle.prototype.buildCSSClass = function(){
+ return 'vjs-play-control ' + vjs.Button.prototype.buildCSSClass.call(this);
+};
+
+// OnClick - Toggle between play and pause
+vjs.PlayToggle.prototype.onClick = function(){
+ if (this.player_.paused()) {
+ this.player_.play();
+ } else {
+ this.player_.pause();
+ }
+};
+
+ // OnPlay - Add the vjs-playing class to the element so it can change appearance
+vjs.PlayToggle.prototype.onPlay = function(){
+ this.removeClass('vjs-paused');
+ this.addClass('vjs-playing');
+ this.el_.children[0].children[0].innerHTML = this.localize('Pause'); // change the button text to "Pause"
+};
+
+ // OnPause - Add the vjs-paused class to the element so it can change appearance
+vjs.PlayToggle.prototype.onPause = function(){
+ this.removeClass('vjs-playing');
+ this.addClass('vjs-paused');
+ this.el_.children[0].children[0].innerHTML = this.localize('Play'); // change the button text to "Play"
+};
+/**
+ * Displays the current time
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.CurrentTimeDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+vjs.CurrentTimeDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-current-time vjs-time-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-current-time-display',
+ innerHTML: 'Current Time ' + '0:00', // label the current time for screen reader users
+ 'aria-live': 'off' // tell screen readers not to automatically read the time as it changes
+ });
+
+ el.appendChild(this.contentEl_);
+ return el;
+};
+
+vjs.CurrentTimeDisplay.prototype.updateContent = function(){
+ // Allows for smooth scrubbing, when player can't keep up.
+ var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ this.contentEl_.innerHTML = '' + this.localize('Current Time') + ' ' + vjs.formatTime(time, this.player_.duration());
+};
+
+/**
+ * Displays the duration
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.DurationDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ // this might need to be changed to 'durationchange' instead of 'timeupdate' eventually,
+ // however the durationchange event fires before this.player_.duration() is set,
+ // so the value cannot be written out using this method.
+ // Once the order of durationchange and this.player_.duration() being set is figured out,
+ // this can be updated.
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+vjs.DurationDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-duration vjs-time-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-duration-display',
+ innerHTML: '' + this.localize('Duration Time') + ' ' + '0:00', // label the duration time for screen reader users
+ 'aria-live': 'off' // tell screen readers not to automatically read the time as it changes
+ });
+
+ el.appendChild(this.contentEl_);
+ return el;
+};
+
+vjs.DurationDisplay.prototype.updateContent = function(){
+ var duration = this.player_.duration();
+ if (duration) {
+ this.contentEl_.innerHTML = '' + this.localize('Duration Time') + ' ' + vjs.formatTime(duration); // label the duration time for screen reader users
+ }
+};
+
+/**
+ * The separator between the current time and duration
+ *
+ * Can be hidden if it's not needed in the design.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.TimeDivider = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.TimeDivider.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-time-divider',
+ innerHTML: '/
'
+ });
+};
+
+/**
+ * Displays the time left in the video
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.RemainingTimeDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+vjs.RemainingTimeDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-remaining-time vjs-time-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-remaining-time-display',
+ innerHTML: '' + this.localize('Remaining Time') + ' ' + '-0:00', // label the remaining time for screen reader users
+ 'aria-live': 'off' // tell screen readers not to automatically read the time as it changes
+ });
+
+ el.appendChild(this.contentEl_);
+ return el;
+};
+
+vjs.RemainingTimeDisplay.prototype.updateContent = function(){
+ if (this.player_.duration()) {
+ this.contentEl_.innerHTML = '' + this.localize('Remaining Time') + ' ' + '-'+ vjs.formatTime(this.player_.remainingTime());
+ }
+
+ // Allows for smooth scrubbing, when player can't keep up.
+ // var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ // this.contentEl_.innerHTML = vjs.formatTime(time, this.player_.duration());
+};
+/**
+ * Toggle fullscreen video
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @extends vjs.Button
+ */
+vjs.FullscreenToggle = vjs.Button.extend({
+ /**
+ * @constructor
+ * @memberof vjs.FullscreenToggle
+ * @instance
+ */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+ }
+});
+
+vjs.FullscreenToggle.prototype.buttonText = 'Fullscreen';
+
+vjs.FullscreenToggle.prototype.buildCSSClass = function(){
+ return 'vjs-fullscreen-control ' + vjs.Button.prototype.buildCSSClass.call(this);
+};
+
+vjs.FullscreenToggle.prototype.onClick = function(){
+ if (!this.player_.isFullscreen()) {
+ this.player_.requestFullscreen();
+ this.controlText_.innerHTML = this.localize('Non-Fullscreen');
+ } else {
+ this.player_.exitFullscreen();
+ this.controlText_.innerHTML = this.localize('Fullscreen');
+ }
+};
+/**
+ * The Progress Control component contains the seek bar, load progress,
+ * and play progress
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.ProgressControl = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.ProgressControl.prototype.options_ = {
+ children: {
+ 'seekBar': {}
+ }
+};
+
+vjs.ProgressControl.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-progress-control vjs-control'
+ });
+};
+
+/**
+ * Seek Bar and holder for the progress bars
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.SeekBar = vjs.Slider.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Slider.call(this, player, options);
+ this.on(player, 'timeupdate', this.updateARIAAttributes);
+ player.ready(vjs.bind(this, this.updateARIAAttributes));
+ }
+});
+
+vjs.SeekBar.prototype.options_ = {
+ children: {
+ 'loadProgressBar': {},
+ 'playProgressBar': {},
+ 'seekHandle': {}
+ },
+ 'barName': 'playProgressBar',
+ 'handleName': 'seekHandle'
+};
+
+vjs.SeekBar.prototype.playerEvent = 'timeupdate';
+
+vjs.SeekBar.prototype.createEl = function(){
+ return vjs.Slider.prototype.createEl.call(this, 'div', {
+ className: 'vjs-progress-holder',
+ 'aria-label': 'video progress bar'
+ });
+};
+
+vjs.SeekBar.prototype.updateARIAAttributes = function(){
+ // Allows for smooth scrubbing, when player can't keep up.
+ var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ this.el_.setAttribute('aria-valuenow',vjs.round(this.getPercent()*100, 2)); // machine readable value of progress bar (percentage complete)
+ this.el_.setAttribute('aria-valuetext',vjs.formatTime(time, this.player_.duration())); // human readable value of progress bar (time complete)
+};
+
+vjs.SeekBar.prototype.getPercent = function(){
+ return this.player_.currentTime() / this.player_.duration();
+};
+
+vjs.SeekBar.prototype.onMouseDown = function(event){
+ vjs.Slider.prototype.onMouseDown.call(this, event);
+
+ this.player_.scrubbing = true;
+ this.player_.addClass('vjs-scrubbing');
+
+ this.videoWasPlaying = !this.player_.paused();
+ this.player_.pause();
+};
+
+vjs.SeekBar.prototype.onMouseMove = function(event){
+ var newTime = this.calculateDistance(event) * this.player_.duration();
+
+ // Don't let video end while scrubbing.
+ if (newTime == this.player_.duration()) { newTime = newTime - 0.1; }
+
+ // Set new time (tell player to seek to new time)
+ this.player_.currentTime(newTime);
+};
+
+vjs.SeekBar.prototype.onMouseUp = function(event){
+ vjs.Slider.prototype.onMouseUp.call(this, event);
+
+ this.player_.scrubbing = false;
+ this.player_.removeClass('vjs-scrubbing');
+ if (this.videoWasPlaying) {
+ this.player_.play();
+ }
+};
+
+vjs.SeekBar.prototype.stepForward = function(){
+ this.player_.currentTime(this.player_.currentTime() + 5); // more quickly fast forward for keyboard-only users
+};
+
+vjs.SeekBar.prototype.stepBack = function(){
+ this.player_.currentTime(this.player_.currentTime() - 5); // more quickly rewind for keyboard-only users
+};
+
+/**
+ * Shows load progress
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.LoadProgressBar = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ this.on(player, 'progress', this.update);
+ }
+});
+
+vjs.LoadProgressBar.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-load-progress',
+ innerHTML: '' + this.localize('Loaded') + ' : 0% '
+ });
+};
+
+vjs.LoadProgressBar.prototype.update = function(){
+ var i, start, end, part,
+ buffered = this.player_.buffered(),
+ duration = this.player_.duration(),
+ bufferedEnd = this.player_.bufferedEnd(),
+ children = this.el_.children,
+ // get the percent width of a time compared to the total end
+ percentify = function (time, end){
+ var percent = (time / end) || 0; // no NaN
+ return (percent * 100) + '%';
+ };
+
+ // update the width of the progress bar
+ this.el_.style.width = percentify(bufferedEnd, duration);
+
+ // add child elements to represent the individual buffered time ranges
+ for (i = 0; i < buffered.length; i++) {
+ start = buffered.start(i),
+ end = buffered.end(i),
+ part = children[i];
+
+ if (!part) {
+ part = this.el_.appendChild(vjs.createEl());
+ }
+
+ // set the percent based on the width of the progress bar (bufferedEnd)
+ part.style.left = percentify(start, bufferedEnd);
+ part.style.width = percentify(end - start, bufferedEnd);
+ }
+
+ // remove unused buffered range elements
+ for (i = children.length; i > buffered.length; i--) {
+ this.el_.removeChild(children[i-1]);
+ }
+};
+
+/**
+ * Shows play progress
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.PlayProgressBar = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.PlayProgressBar.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-play-progress',
+ innerHTML: '' + this.localize('Progress') + ' : 0% '
+ });
+};
+
+/**
+ * The Seek Handle shows the current position of the playhead during playback,
+ * and can be dragged to adjust the playhead.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.SeekHandle = vjs.SliderHandle.extend({
+ init: function(player, options) {
+ vjs.SliderHandle.call(this, player, options);
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+/**
+ * The default value for the handle content, which may be read by screen readers
+ *
+ * @type {String}
+ * @private
+ */
+vjs.SeekHandle.prototype.defaultValue = '00:00';
+
+/** @inheritDoc */
+vjs.SeekHandle.prototype.createEl = function() {
+ return vjs.SliderHandle.prototype.createEl.call(this, 'div', {
+ className: 'vjs-seek-handle',
+ 'aria-live': 'off'
+ });
+};
+
+vjs.SeekHandle.prototype.updateContent = function() {
+ var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ this.el_.innerHTML = '' + vjs.formatTime(time, this.player_.duration()) + ' ';
+};
+/**
+ * The component for controlling the volume level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.VolumeControl = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ // hide volume controls when they're not supported by the current tech
+ if (player.tech && player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ }
+ this.on(player, 'loadstart', function(){
+ if (player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ } else {
+ this.removeClass('vjs-hidden');
+ }
+ });
+ }
+});
+
+vjs.VolumeControl.prototype.options_ = {
+ children: {
+ 'volumeBar': {}
+ }
+};
+
+vjs.VolumeControl.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-control vjs-control'
+ });
+};
+
+/**
+ * The bar that contains the volume level and can be clicked on to adjust the level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.VolumeBar = vjs.Slider.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Slider.call(this, player, options);
+ this.on(player, 'volumechange', this.updateARIAAttributes);
+ player.ready(vjs.bind(this, this.updateARIAAttributes));
+ }
+});
+
+vjs.VolumeBar.prototype.updateARIAAttributes = function(){
+ // Current value of volume bar as a percentage
+ this.el_.setAttribute('aria-valuenow',vjs.round(this.player_.volume()*100, 2));
+ this.el_.setAttribute('aria-valuetext',vjs.round(this.player_.volume()*100, 2)+'%');
+};
+
+vjs.VolumeBar.prototype.options_ = {
+ children: {
+ 'volumeLevel': {},
+ 'volumeHandle': {}
+ },
+ 'barName': 'volumeLevel',
+ 'handleName': 'volumeHandle'
+};
+
+vjs.VolumeBar.prototype.playerEvent = 'volumechange';
+
+vjs.VolumeBar.prototype.createEl = function(){
+ return vjs.Slider.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-bar',
+ 'aria-label': 'volume level'
+ });
+};
+
+vjs.VolumeBar.prototype.onMouseMove = function(event) {
+ if (this.player_.muted()) {
+ this.player_.muted(false);
+ }
+
+ this.player_.volume(this.calculateDistance(event));
+};
+
+vjs.VolumeBar.prototype.getPercent = function(){
+ if (this.player_.muted()) {
+ return 0;
+ } else {
+ return this.player_.volume();
+ }
+};
+
+vjs.VolumeBar.prototype.stepForward = function(){
+ this.player_.volume(this.player_.volume() + 0.1);
+};
+
+vjs.VolumeBar.prototype.stepBack = function(){
+ this.player_.volume(this.player_.volume() - 0.1);
+};
+
+/**
+ * Shows volume level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.VolumeLevel = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.VolumeLevel.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-level',
+ innerHTML: ' '
+ });
+};
+
+/**
+ * The volume handle can be dragged to adjust the volume level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+ vjs.VolumeHandle = vjs.SliderHandle.extend();
+
+ vjs.VolumeHandle.prototype.defaultValue = '00:00';
+
+ /** @inheritDoc */
+ vjs.VolumeHandle.prototype.createEl = function(){
+ return vjs.SliderHandle.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-handle'
+ });
+ };
+/**
+ * A button component for muting the audio
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.MuteToggle = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.on(player, 'volumechange', this.update);
+
+ // hide mute toggle if the current tech doesn't support volume control
+ if (player.tech && player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ }
+
+ this.on(player, 'loadstart', function(){
+ if (player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ } else {
+ this.removeClass('vjs-hidden');
+ }
+ });
+ }
+});
+
+vjs.MuteToggle.prototype.createEl = function(){
+ return vjs.Button.prototype.createEl.call(this, 'div', {
+ className: 'vjs-mute-control vjs-control',
+ innerHTML: '' + this.localize('Mute') + '
'
+ });
+};
+
+vjs.MuteToggle.prototype.onClick = function(){
+ this.player_.muted( this.player_.muted() ? false : true );
+};
+
+vjs.MuteToggle.prototype.update = function(){
+ var vol = this.player_.volume(),
+ level = 3;
+
+ if (vol === 0 || this.player_.muted()) {
+ level = 0;
+ } else if (vol < 0.33) {
+ level = 1;
+ } else if (vol < 0.67) {
+ level = 2;
+ }
+
+ // Don't rewrite the button text if the actual text doesn't change.
+ // This causes unnecessary and confusing information for screen reader users.
+ // This check is needed because this function gets called every time the volume level is changed.
+ if(this.player_.muted()){
+ if(this.el_.children[0].children[0].innerHTML!=this.localize('Unmute')){
+ this.el_.children[0].children[0].innerHTML = this.localize('Unmute'); // change the button text to "Unmute"
+ }
+ } else {
+ if(this.el_.children[0].children[0].innerHTML!=this.localize('Mute')){
+ this.el_.children[0].children[0].innerHTML = this.localize('Mute'); // change the button text to "Mute"
+ }
+ }
+
+ /* TODO improve muted icon classes */
+ for (var i = 0; i < 4; i++) {
+ vjs.removeClass(this.el_, 'vjs-vol-'+i);
+ }
+ vjs.addClass(this.el_, 'vjs-vol-'+level);
+};
+/**
+ * Menu button with a popup for showing the volume slider.
+ * @constructor
+ */
+vjs.VolumeMenuButton = vjs.MenuButton.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.MenuButton.call(this, player, options);
+
+ // Same listeners as MuteToggle
+ this.on(player, 'volumechange', this.volumeUpdate);
+
+ // hide mute toggle if the current tech doesn't support volume control
+ if (player.tech && player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ }
+ this.on(player, 'loadstart', function(){
+ if (player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ } else {
+ this.removeClass('vjs-hidden');
+ }
+ });
+ this.addClass('vjs-menu-button');
+ }
+});
+
+vjs.VolumeMenuButton.prototype.createMenu = function(){
+ var menu = new vjs.Menu(this.player_, {
+ contentElType: 'div'
+ });
+ var vc = new vjs.VolumeBar(this.player_, this.options_['volumeBar']);
+ vc.on('focus', function() {
+ menu.lockShowing();
+ });
+ vc.on('blur', function() {
+ menu.unlockShowing();
+ });
+ menu.addChild(vc);
+ return menu;
+};
+
+vjs.VolumeMenuButton.prototype.onClick = function(){
+ vjs.MuteToggle.prototype.onClick.call(this);
+ vjs.MenuButton.prototype.onClick.call(this);
+};
+
+vjs.VolumeMenuButton.prototype.createEl = function(){
+ return vjs.Button.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-menu-button vjs-menu-button vjs-control',
+ innerHTML: '' + this.localize('Mute') + '
'
+ });
+};
+vjs.VolumeMenuButton.prototype.volumeUpdate = vjs.MuteToggle.prototype.update;
+/**
+ * The component for controlling the playback rate
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.PlaybackRateMenuButton = vjs.MenuButton.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.MenuButton.call(this, player, options);
+
+ this.updateVisibility();
+ this.updateLabel();
+
+ this.on(player, 'loadstart', this.updateVisibility);
+ this.on(player, 'ratechange', this.updateLabel);
+ }
+});
+
+vjs.PlaybackRateMenuButton.prototype.buttonText = 'Playback Rate';
+vjs.PlaybackRateMenuButton.prototype.className = 'vjs-playback-rate';
+
+vjs.PlaybackRateMenuButton.prototype.createEl = function(){
+ var el = vjs.MenuButton.prototype.createEl.call(this);
+
+ this.labelEl_ = vjs.createEl('div', {
+ className: 'vjs-playback-rate-value',
+ innerHTML: 1.0
+ });
+
+ el.appendChild(this.labelEl_);
+
+ return el;
+};
+
+// Menu creation
+vjs.PlaybackRateMenuButton.prototype.createMenu = function(){
+ var menu = new vjs.Menu(this.player());
+ var rates = this.player().options()['playbackRates'];
+
+ if (rates) {
+ for (var i = rates.length - 1; i >= 0; i--) {
+ menu.addChild(
+ new vjs.PlaybackRateMenuItem(this.player(), { 'rate': rates[i] + 'x'})
+ );
+ }
+ }
+
+ return menu;
+};
+
+vjs.PlaybackRateMenuButton.prototype.updateARIAAttributes = function(){
+ // Current playback rate
+ this.el().setAttribute('aria-valuenow', this.player().playbackRate());
+};
+
+vjs.PlaybackRateMenuButton.prototype.onClick = function(){
+ // select next rate option
+ var currentRate = this.player().playbackRate();
+ var rates = this.player().options()['playbackRates'];
+ // this will select first one if the last one currently selected
+ var newRate = rates[0];
+ for (var i = 0; i currentRate) {
+ newRate = rates[i];
+ break;
+ }
+ }
+ this.player().playbackRate(newRate);
+};
+
+vjs.PlaybackRateMenuButton.prototype.playbackRateSupported = function(){
+ return this.player().tech
+ && this.player().tech['featuresPlaybackRate']
+ && this.player().options()['playbackRates']
+ && this.player().options()['playbackRates'].length > 0
+ ;
+};
+
+/**
+ * Hide playback rate controls when they're no playback rate options to select
+ */
+vjs.PlaybackRateMenuButton.prototype.updateVisibility = function(){
+ if (this.playbackRateSupported()) {
+ this.removeClass('vjs-hidden');
+ } else {
+ this.addClass('vjs-hidden');
+ }
+};
+
+/**
+ * Update button label when rate changed
+ */
+vjs.PlaybackRateMenuButton.prototype.updateLabel = function(){
+ if (this.playbackRateSupported()) {
+ this.labelEl_.innerHTML = this.player().playbackRate() + 'x';
+ }
+};
+
+/**
+ * The specific menu item type for selecting a playback rate
+ *
+ * @constructor
+ */
+vjs.PlaybackRateMenuItem = vjs.MenuItem.extend({
+ contentElType: 'button',
+ /** @constructor */
+ init: function(player, options){
+ var label = this.label = options['rate'];
+ var rate = this.rate = parseFloat(label, 10);
+
+ // Modify options for parent MenuItem class's init.
+ options['label'] = label;
+ options['selected'] = rate === 1;
+ vjs.MenuItem.call(this, player, options);
+
+ this.on(player, 'ratechange', this.update);
+ }
+});
+
+vjs.PlaybackRateMenuItem.prototype.onClick = function(){
+ vjs.MenuItem.prototype.onClick.call(this);
+ this.player().playbackRate(this.rate);
+};
+
+vjs.PlaybackRateMenuItem.prototype.update = function(){
+ this.selected(this.player().playbackRate() == this.rate);
+};
+/* Poster Image
+================================================================================ */
+/**
+ * The component that handles showing the poster image.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.PosterImage = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.update();
+ player.on('posterchange', vjs.bind(this, this.update));
+ }
+});
+
+/**
+ * Clean up the poster image
+ */
+vjs.PosterImage.prototype.dispose = function(){
+ this.player().off('posterchange', this.update);
+ vjs.Button.prototype.dispose.call(this);
+};
+
+/**
+ * Create the poster image element
+ * @return {Element}
+ */
+vjs.PosterImage.prototype.createEl = function(){
+ var el = vjs.createEl('div', {
+ className: 'vjs-poster',
+
+ // Don't want poster to be tabbable.
+ tabIndex: -1
+ });
+
+ // To ensure the poster image resizes while maintaining its original aspect
+ // ratio, use a div with `background-size` when available. For browsers that
+ // do not support `background-size` (e.g. IE8), fall back on using a regular
+ // img element.
+ if (!vjs.BACKGROUND_SIZE_SUPPORTED) {
+ this.fallbackImg_ = vjs.createEl('img');
+ el.appendChild(this.fallbackImg_);
+ }
+
+ return el;
+};
+
+/**
+ * Event handler for updates to the player's poster source
+ */
+vjs.PosterImage.prototype.update = function(){
+ var url = this.player().poster();
+
+ this.setSrc(url);
+
+ // If there's no poster source we should display:none on this component
+ // so it's not still clickable or right-clickable
+ if (url) {
+ this.show();
+ } else {
+ this.hide();
+ }
+};
+
+/**
+ * Set the poster source depending on the display method
+ */
+vjs.PosterImage.prototype.setSrc = function(url){
+ var backgroundImage;
+
+ if (this.fallbackImg_) {
+ this.fallbackImg_.src = url;
+ } else {
+ backgroundImage = '';
+ // Any falsey values should stay as an empty string, otherwise
+ // this will throw an extra error
+ if (url) {
+ backgroundImage = 'url("' + url + '")';
+ }
+
+ this.el_.style.backgroundImage = backgroundImage;
+ }
+};
+
+/**
+ * Event handler for clicks on the poster image
+ */
+vjs.PosterImage.prototype.onClick = function(){
+ // We don't want a click to trigger playback when controls are disabled
+ // but CSS should be hiding the poster to prevent that from happening
+ this.player_.play();
+};
+/* Loading Spinner
+================================================================================ */
+/**
+ * Loading spinner for waiting events
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.LoadingSpinner = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ // MOVING DISPLAY HANDLING TO CSS
+
+ // player.on('canplay', vjs.bind(this, this.hide));
+ // player.on('canplaythrough', vjs.bind(this, this.hide));
+ // player.on('playing', vjs.bind(this, this.hide));
+ // player.on('seeking', vjs.bind(this, this.show));
+
+ // in some browsers seeking does not trigger the 'playing' event,
+ // so we also need to trap 'seeked' if we are going to set a
+ // 'seeking' event
+ // player.on('seeked', vjs.bind(this, this.hide));
+
+ // player.on('ended', vjs.bind(this, this.hide));
+
+ // Not showing spinner on stalled any more. Browsers may stall and then not trigger any events that would remove the spinner.
+ // Checked in Chrome 16 and Safari 5.1.2. http://help.videojs.com/discussions/problems/883-why-is-the-download-progress-showing
+ // player.on('stalled', vjs.bind(this, this.show));
+
+ // player.on('waiting', vjs.bind(this, this.show));
+ }
+});
+
+vjs.LoadingSpinner.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-loading-spinner'
+ });
+};
+/* Big Play Button
+================================================================================ */
+/**
+ * Initial play button. Shows before the video has played. The hiding of the
+ * big play button is done via CSS and player states.
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.BigPlayButton = vjs.Button.extend();
+
+vjs.BigPlayButton.prototype.createEl = function(){
+ return vjs.Button.prototype.createEl.call(this, 'div', {
+ className: 'vjs-big-play-button',
+ innerHTML: ' ',
+ 'aria-label': 'play video'
+ });
+};
+
+vjs.BigPlayButton.prototype.onClick = function(){
+ this.player_.play();
+};
+/**
+ * Display that an error has occurred making the video unplayable
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.ErrorDisplay = vjs.Component.extend({
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.update();
+ this.on(player, 'error', this.update);
+ }
+});
+
+vjs.ErrorDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-error-display'
+ });
+
+ this.contentEl_ = vjs.createEl('div');
+ el.appendChild(this.contentEl_);
+
+ return el;
+};
+
+vjs.ErrorDisplay.prototype.update = function(){
+ if (this.player().error()) {
+ this.contentEl_.innerHTML = this.localize(this.player().error().message);
+ }
+};
+(function() {
+ var createTrackHelper;
+/**
+ * @fileoverview Media Technology Controller - Base class for media playback
+ * technology controllers like Flash and HTML5
+ */
+
+/**
+ * Base class for media (HTML5 Video, Flash) controllers
+ * @param {vjs.Player|Object} player Central player instance
+ * @param {Object=} options Options object
+ * @constructor
+ */
+vjs.MediaTechController = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ options = options || {};
+ // we don't want the tech to report user activity automatically.
+ // This is done manually in addControlsListeners
+ options.reportTouchActivity = false;
+ vjs.Component.call(this, player, options, ready);
+
+ // Manually track progress in cases where the browser/flash player doesn't report it.
+ if (!this['featuresProgressEvents']) {
+ this.manualProgressOn();
+ }
+
+ // Manually track timeupdates in cases where the browser/flash player doesn't report it.
+ if (!this['featuresTimeupdateEvents']) {
+ this.manualTimeUpdatesOn();
+ }
+
+ this.initControlsListeners();
+
+ if (!this['featuresNativeTextTracks']) {
+ this.emulateTextTracks();
+ }
+
+ this.initTextTrackListeners();
+ }
+});
+
+/**
+ * Set up click and touch listeners for the playback element
+ * On desktops, a click on the video itself will toggle playback,
+ * on a mobile device a click on the video toggles controls.
+ * (toggling controls is done by toggling the user state between active and
+ * inactive)
+ *
+ * A tap can signal that a user has become active, or has become inactive
+ * e.g. a quick tap on an iPhone movie should reveal the controls. Another
+ * quick tap should hide them again (signaling the user is in an inactive
+ * viewing state)
+ *
+ * In addition to this, we still want the user to be considered inactive after
+ * a few seconds of inactivity.
+ *
+ * Note: the only part of iOS interaction we can't mimic with this setup
+ * is a touch and hold on the video element counting as activity in order to
+ * keep the controls showing, but that shouldn't be an issue. A touch and hold on
+ * any controls will still keep the user active
+ */
+vjs.MediaTechController.prototype.initControlsListeners = function(){
+ var player, activateControls;
+
+ player = this.player();
+
+ activateControls = function(){
+ if (player.controls() && !player.usingNativeControls()) {
+ this.addControlsListeners();
+ }
+ };
+
+ // Set up event listeners once the tech is ready and has an element to apply
+ // listeners to
+ this.ready(activateControls);
+ this.on(player, 'controlsenabled', activateControls);
+ this.on(player, 'controlsdisabled', this.removeControlsListeners);
+
+ // if we're loading the playback object after it has started loading or playing the
+ // video (often with autoplay on) then the loadstart event has already fired and we
+ // need to fire it manually because many things rely on it.
+ // Long term we might consider how we would do this for other events like 'canplay'
+ // that may also have fired.
+ this.ready(function(){
+ if (this.networkState && this.networkState() > 0) {
+ this.player().trigger('loadstart');
+ }
+ });
+};
+
+vjs.MediaTechController.prototype.addControlsListeners = function(){
+ var userWasActive;
+
+ // Some browsers (Chrome & IE) don't trigger a click on a flash swf, but do
+ // trigger mousedown/up.
+ // http://stackoverflow.com/questions/1444562/javascript-onclick-event-over-flash-object
+ // Any touch events are set to block the mousedown event from happening
+ this.on('mousedown', this.onClick);
+
+ // If the controls were hidden we don't want that to change without a tap event
+ // so we'll check if the controls were already showing before reporting user
+ // activity
+ this.on('touchstart', function(event) {
+ userWasActive = this.player_.userActive();
+ });
+
+ this.on('touchmove', function(event) {
+ if (userWasActive){
+ this.player().reportUserActivity();
+ }
+ });
+
+ this.on('touchend', function(event) {
+ // Stop the mouse events from also happening
+ event.preventDefault();
+ });
+
+ // Turn on component tap events
+ this.emitTapEvents();
+
+ // The tap listener needs to come after the touchend listener because the tap
+ // listener cancels out any reportedUserActivity when setting userActive(false)
+ this.on('tap', this.onTap);
+};
+
+/**
+ * Remove the listeners used for click and tap controls. This is needed for
+ * toggling to controls disabled, where a tap/touch should do nothing.
+ */
+vjs.MediaTechController.prototype.removeControlsListeners = function(){
+ // We don't want to just use `this.off()` because there might be other needed
+ // listeners added by techs that extend this.
+ this.off('tap');
+ this.off('touchstart');
+ this.off('touchmove');
+ this.off('touchleave');
+ this.off('touchcancel');
+ this.off('touchend');
+ this.off('click');
+ this.off('mousedown');
+};
+
+/**
+ * Handle a click on the media element. By default will play/pause the media.
+ */
+vjs.MediaTechController.prototype.onClick = function(event){
+ // We're using mousedown to detect clicks thanks to Flash, but mousedown
+ // will also be triggered with right-clicks, so we need to prevent that
+ if (event.button !== 0) return;
+
+ // When controls are disabled a click should not toggle playback because
+ // the click is considered a control
+ if (this.player().controls()) {
+ if (this.player().paused()) {
+ this.player().play();
+ } else {
+ this.player().pause();
+ }
+ }
+};
+
+/**
+ * Handle a tap on the media element. By default it will toggle the user
+ * activity state, which hides and shows the controls.
+ */
+vjs.MediaTechController.prototype.onTap = function(){
+ this.player().userActive(!this.player().userActive());
+};
+
+/* Fallbacks for unsupported event types
+================================================================================ */
+// Manually trigger progress events based on changes to the buffered amount
+// Many flash players and older HTML5 browsers don't send progress or progress-like events
+vjs.MediaTechController.prototype.manualProgressOn = function(){
+ this.manualProgress = true;
+
+ // Trigger progress watching when a source begins loading
+ this.trackProgress();
+};
+
+vjs.MediaTechController.prototype.manualProgressOff = function(){
+ this.manualProgress = false;
+ this.stopTrackingProgress();
+};
+
+vjs.MediaTechController.prototype.trackProgress = function(){
+ this.progressInterval = this.setInterval(function(){
+ // Don't trigger unless buffered amount is greater than last time
+
+ var bufferedPercent = this.player().bufferedPercent();
+
+ if (this.bufferedPercent_ != bufferedPercent) {
+ this.player().trigger('progress');
+ }
+
+ this.bufferedPercent_ = bufferedPercent;
+
+ if (bufferedPercent === 1) {
+ this.stopTrackingProgress();
+ }
+ }, 500);
+};
+vjs.MediaTechController.prototype.stopTrackingProgress = function(){ this.clearInterval(this.progressInterval); };
+
+/*! Time Tracking -------------------------------------------------------------- */
+vjs.MediaTechController.prototype.manualTimeUpdatesOn = function(){
+ var player = this.player_;
+
+ this.manualTimeUpdates = true;
+
+ this.on(player, 'play', this.trackCurrentTime);
+ this.on(player, 'pause', this.stopTrackingCurrentTime);
+ // timeupdate is also called by .currentTime whenever current time is set
+
+ // Watch for native timeupdate event
+ this.one('timeupdate', function(){
+ // Update known progress support for this playback technology
+ this['featuresTimeupdateEvents'] = true;
+ // Turn off manual progress tracking
+ this.manualTimeUpdatesOff();
+ });
+};
+
+vjs.MediaTechController.prototype.manualTimeUpdatesOff = function(){
+ var player = this.player_;
+
+ this.manualTimeUpdates = false;
+ this.stopTrackingCurrentTime();
+ this.off(player, 'play', this.trackCurrentTime);
+ this.off(player, 'pause', this.stopTrackingCurrentTime);
+};
+
+vjs.MediaTechController.prototype.trackCurrentTime = function(){
+ if (this.currentTimeInterval) { this.stopTrackingCurrentTime(); }
+ this.currentTimeInterval = this.setInterval(function(){
+ this.player().trigger('timeupdate');
+ }, 250); // 42 = 24 fps // 250 is what Webkit uses // FF uses 15
+};
+
+// Turn off play progress tracking (when paused or dragging)
+vjs.MediaTechController.prototype.stopTrackingCurrentTime = function(){
+ this.clearInterval(this.currentTimeInterval);
+
+ // #1002 - if the video ends right before the next timeupdate would happen,
+ // the progress bar won't make it all the way to the end
+ this.player().trigger('timeupdate');
+};
+
+vjs.MediaTechController.prototype.dispose = function() {
+ // Turn off any manual progress or timeupdate tracking
+ if (this.manualProgress) { this.manualProgressOff(); }
+
+ if (this.manualTimeUpdates) { this.manualTimeUpdatesOff(); }
+
+ vjs.Component.prototype.dispose.call(this);
+};
+
+vjs.MediaTechController.prototype.setCurrentTime = function() {
+ // improve the accuracy of manual timeupdates
+ if (this.manualTimeUpdates) { this.player().trigger('timeupdate'); }
+};
+
+// TODO: Consider looking at moving this into the text track display directly
+// https://github.com/videojs/video.js/issues/1863
+vjs.MediaTechController.prototype.initTextTrackListeners = function() {
+ var player = this.player_,
+ tracks,
+ textTrackListChanges = function() {
+ var textTrackDisplay = player.getChild('textTrackDisplay'),
+ controlBar;
+
+ if (textTrackDisplay) {
+ textTrackDisplay.updateDisplay();
+ }
+ };
+
+ tracks = this.textTracks();
+
+ if (!tracks) {
+ return;
+ }
+
+ tracks.addEventListener('removetrack', textTrackListChanges);
+ tracks.addEventListener('addtrack', textTrackListChanges);
+
+ this.on('dispose', vjs.bind(this, function() {
+ tracks.removeEventListener('removetrack', textTrackListChanges);
+ tracks.removeEventListener('addtrack', textTrackListChanges);
+ }));
+};
+
+vjs.MediaTechController.prototype.emulateTextTracks = function() {
+ var player = this.player_,
+ textTracksChanges,
+ tracks,
+ script;
+
+ if (!window['WebVTT']) {
+ script = document.createElement('script');
+ script.src = player.options()['vtt.js'] || '../node_modules/vtt.js/dist/vtt.js';
+ player.el().appendChild(script);
+ window['WebVTT'] = true;
+ }
+
+ tracks = this.textTracks();
+ if (!tracks) {
+ return;
+ }
+
+ textTracksChanges = function() {
+ var i, track, textTrackDisplay;
+
+ textTrackDisplay = player.getChild('textTrackDisplay'),
+
+ textTrackDisplay.updateDisplay();
+
+ for (i = 0; i < this.length; i++) {
+ track = this[i];
+ track.removeEventListener('cuechange', vjs.bind(textTrackDisplay, textTrackDisplay.updateDisplay));
+ if (track.mode === 'showing') {
+ track.addEventListener('cuechange', vjs.bind(textTrackDisplay, textTrackDisplay.updateDisplay));
+ }
+ }
+ };
+
+ tracks.addEventListener('change', textTracksChanges);
+
+ this.on('dispose', vjs.bind(this, function() {
+ tracks.removeEventListener('change', textTracksChanges);
+ }));
+};
+
+/**
+ * Provide default methods for text tracks.
+ *
+ * Html5 tech overrides these.
+ */
+
+/**
+ * List of associated text tracks
+ * @type {Array}
+ * @private
+ */
+vjs.MediaTechController.prototype.textTracks_;
+
+vjs.MediaTechController.prototype.textTracks = function() {
+ this.player_.textTracks_ = this.player_.textTracks_ || new vjs.TextTrackList();
+ return this.player_.textTracks_;
+};
+
+vjs.MediaTechController.prototype.remoteTextTracks = function() {
+ this.player_.remoteTextTracks_ = this.player_.remoteTextTracks_ || new vjs.TextTrackList();
+ return this.player_.remoteTextTracks_;
+};
+
+createTrackHelper = function(self, kind, label, language, options) {
+ var tracks = self.textTracks(),
+ track;
+
+ options = options || {};
+
+ options['kind'] = kind;
+ if (label) {
+ options['label'] = label;
+ }
+ if (language) {
+ options['language'] = language;
+ }
+ options['player'] = self.player_;
+
+ track = new vjs.TextTrack(options);
+ tracks.addTrack_(track);
+
+ return track;
+};
+
+vjs.MediaTechController.prototype.addTextTrack = function(kind, label, language) {
+ if (!kind) {
+ throw new Error('TextTrack kind is required but was not provided');
+ }
+
+ return createTrackHelper(this, kind, label, language);
+};
+
+vjs.MediaTechController.prototype.addRemoteTextTrack = function(options) {
+ var track = createTrackHelper(this, options['kind'], options['label'], options['language'], options);
+ this.remoteTextTracks().addTrack_(track);
+ return {
+ track: track
+ };
+};
+
+vjs.MediaTechController.prototype.removeRemoteTextTrack = function(track) {
+ this.textTracks().removeTrack_(track);
+ this.remoteTextTracks().removeTrack_(track);
+};
+
+/**
+ * Provide a default setPoster method for techs
+ *
+ * Poster support for techs should be optional, so we don't want techs to
+ * break if they don't have a way to set a poster.
+ */
+vjs.MediaTechController.prototype.setPoster = function(){};
+
+vjs.MediaTechController.prototype['featuresVolumeControl'] = true;
+
+// Resizing plugins using request fullscreen reloads the plugin
+vjs.MediaTechController.prototype['featuresFullscreenResize'] = false;
+vjs.MediaTechController.prototype['featuresPlaybackRate'] = false;
+
+// Optional events that we can manually mimic with timers
+// currently not triggered by video-js-swf
+vjs.MediaTechController.prototype['featuresProgressEvents'] = false;
+vjs.MediaTechController.prototype['featuresTimeupdateEvents'] = false;
+
+vjs.MediaTechController.prototype['featuresNativeTextTracks'] = false;
+
+/**
+ * A functional mixin for techs that want to use the Source Handler pattern.
+ *
+ * ##### EXAMPLE:
+ *
+ * videojs.MediaTechController.withSourceHandlers.call(MyTech);
+ *
+ */
+vjs.MediaTechController.withSourceHandlers = function(Tech){
+ /**
+ * Register a source handler
+ * Source handlers are scripts for handling specific formats.
+ * The source handler pattern is used for adaptive formats (HLS, DASH) that
+ * manually load video data and feed it into a Source Buffer (Media Source Extensions)
+ * @param {Function} handler The source handler
+ * @param {Boolean} first Register it before any existing handlers
+ */
+ Tech.registerSourceHandler = function(handler, index){
+ var handlers = Tech.sourceHandlers;
+
+ if (!handlers) {
+ handlers = Tech.sourceHandlers = [];
+ }
+
+ if (index === undefined) {
+ // add to the end of the list
+ index = handlers.length;
+ }
+
+ handlers.splice(index, 0, handler);
+ };
+
+ /**
+ * Return the first source handler that supports the source
+ * TODO: Answer question: should 'probably' be prioritized over 'maybe'
+ * @param {Object} source The source object
+ * @returns {Object} The first source handler that supports the source
+ * @returns {null} Null if no source handler is found
+ */
+ Tech.selectSourceHandler = function(source){
+ var handlers = Tech.sourceHandlers || [],
+ can;
+
+ for (var i = 0; i < handlers.length; i++) {
+ can = handlers[i].canHandleSource(source);
+
+ if (can) {
+ return handlers[i];
+ }
+ }
+
+ return null;
+ };
+
+ /**
+ * Check if the tech can support the given source
+ * @param {Object} srcObj The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+ Tech.canPlaySource = function(srcObj){
+ var sh = Tech.selectSourceHandler(srcObj);
+
+ if (sh) {
+ return sh.canHandleSource(srcObj);
+ }
+
+ return '';
+ };
+
+ /**
+ * Create a function for setting the source using a source object
+ * and source handlers.
+ * Should never be called unless a source handler was found.
+ * @param {Object} source A source object with src and type keys
+ * @return {vjs.MediaTechController} self
+ */
+ Tech.prototype.setSource = function(source){
+ var sh = Tech.selectSourceHandler(source);
+
+ // Dispose any existing source handler
+ this.disposeSourceHandler();
+ this.off('dispose', this.disposeSourceHandler);
+
+ this.currentSource_ = source;
+ this.sourceHandler_ = sh.handleSource(source, this);
+ this.on('dispose', this.disposeSourceHandler);
+
+ return this;
+ };
+
+ /**
+ * Clean up any existing source handler
+ */
+ Tech.prototype.disposeSourceHandler = function(){
+ if (this.sourceHandler_ && this.sourceHandler_.dispose) {
+ this.sourceHandler_.dispose();
+ }
+ };
+
+};
+
+vjs.media = {};
+
+})();
+/**
+ * @fileoverview HTML5 Media Controller - Wrapper for HTML5 Media API
+ */
+
+/**
+ * HTML5 Media Controller - Wrapper for HTML5 Media API
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @param {Function=} ready
+ * @constructor
+ */
+vjs.Html5 = vjs.MediaTechController.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ var nodes, nodesLength, i, node, nodeName, removeNodes;
+
+ if (options['nativeCaptions'] === false || options['nativeTextTracks'] === false) {
+ this['featuresNativeTextTracks'] = false;
+ }
+
+ vjs.MediaTechController.call(this, player, options, ready);
+
+ this.setupTriggers();
+
+ var source = options['source'];
+
+ // Set the source if one is provided
+ // 1) Check if the source is new (if not, we want to keep the original so playback isn't interrupted)
+ // 2) Check to see if the network state of the tag was failed at init, and if so, reset the source
+ // anyway so the error gets fired.
+ if (source && (this.el_.currentSrc !== source.src || (player.tag && player.tag.initNetworkState_ === 3))) {
+ this.setSource(source);
+ }
+
+ if (this.el_.hasChildNodes()) {
+
+ nodes = this.el_.childNodes;
+ nodesLength = nodes.length;
+ removeNodes = [];
+
+ while (nodesLength--) {
+ node = nodes[nodesLength];
+ nodeName = node.nodeName.toLowerCase();
+ if (nodeName === 'track') {
+ if (!this['featuresNativeTextTracks']) {
+ // Empty video tag tracks so the built-in player doesn't use them also.
+ // This may not be fast enough to stop HTML5 browsers from reading the tags
+ // so we'll need to turn off any default tracks if we're manually doing
+ // captions and subtitles. videoElement.textTracks
+ removeNodes.push(node);
+ } else {
+ this.remoteTextTracks().addTrack_(node['track']);
+ }
+ }
+ }
+
+ for (i=0; i= 0; i--) {
+ var attr = settingsAttrs[i];
+ var overwriteAttrs = {};
+ if (typeof player.options_[attr] !== 'undefined') {
+ overwriteAttrs[attr] = player.options_[attr];
+ }
+ vjs.setElementAttributes(el, overwriteAttrs);
+ }
+
+ return el;
+ // jenniisawesome = true;
+};
+
+
+vjs.Html5.prototype.hideCaptions = function() {
+ var tracks = this.el_.textTracks,
+ track,
+ i = tracks.length,
+ kinds = {
+ 'captions': 1,
+ 'subtitles': 1
+ };
+
+ while (i--) {
+ track = tracks[i];
+ if (track && track['kind'] in kinds) {
+ track.mode = 'disabled';
+ }
+ }
+};
+
+// Make video events trigger player events
+// May seem verbose here, but makes other APIs possible.
+// Triggers removed using this.off when disposed
+vjs.Html5.prototype.setupTriggers = function(){
+ for (var i = vjs.Html5.Events.length - 1; i >= 0; i--) {
+ this.on(vjs.Html5.Events[i], this.eventHandler);
+ }
+};
+
+vjs.Html5.prototype.eventHandler = function(evt){
+ // In the case of an error on the video element, set the error prop
+ // on the player and let the player handle triggering the event. On
+ // some platforms, error events fire that do not cause the error
+ // property on the video element to be set. See #1465 for an example.
+ if (evt.type == 'error' && this.error()) {
+ this.player().error(this.error().code);
+
+ // in some cases we pass the event directly to the player
+ } else {
+ // No need for media events to bubble up.
+ evt.bubbles = false;
+
+ this.player().trigger(evt);
+ }
+};
+
+vjs.Html5.prototype.useNativeControls = function(){
+ var tech, player, controlsOn, controlsOff, cleanUp;
+
+ tech = this;
+ player = this.player();
+
+ // If the player controls are enabled turn on the native controls
+ tech.setControls(player.controls());
+
+ // Update the native controls when player controls state is updated
+ controlsOn = function(){
+ tech.setControls(true);
+ };
+ controlsOff = function(){
+ tech.setControls(false);
+ };
+ player.on('controlsenabled', controlsOn);
+ player.on('controlsdisabled', controlsOff);
+
+ // Clean up when not using native controls anymore
+ cleanUp = function(){
+ player.off('controlsenabled', controlsOn);
+ player.off('controlsdisabled', controlsOff);
+ };
+ tech.on('dispose', cleanUp);
+ player.on('usingcustomcontrols', cleanUp);
+
+ // Update the state of the player to using native controls
+ player.usingNativeControls(true);
+};
+
+
+vjs.Html5.prototype.play = function(){ this.el_.play(); };
+vjs.Html5.prototype.pause = function(){ this.el_.pause(); };
+vjs.Html5.prototype.paused = function(){ return this.el_.paused; };
+
+vjs.Html5.prototype.currentTime = function(){ return this.el_.currentTime; };
+vjs.Html5.prototype.setCurrentTime = function(seconds){
+ try {
+ this.el_.currentTime = seconds;
+ } catch(e) {
+ vjs.log(e, 'Video is not ready. (Video.js)');
+ // this.warning(VideoJS.warnings.videoNotReady);
+ }
+};
+
+vjs.Html5.prototype.duration = function(){ return this.el_.duration || 0; };
+vjs.Html5.prototype.buffered = function(){ return this.el_.buffered; };
+
+vjs.Html5.prototype.volume = function(){ return this.el_.volume; };
+vjs.Html5.prototype.setVolume = function(percentAsDecimal){ this.el_.volume = percentAsDecimal; };
+vjs.Html5.prototype.muted = function(){ return this.el_.muted; };
+vjs.Html5.prototype.setMuted = function(muted){ this.el_.muted = muted; };
+
+vjs.Html5.prototype.width = function(){ return this.el_.offsetWidth; };
+vjs.Html5.prototype.height = function(){ return this.el_.offsetHeight; };
+
+vjs.Html5.prototype.supportsFullScreen = function(){
+ if (typeof this.el_.webkitEnterFullScreen == 'function') {
+
+ // Seems to be broken in Chromium/Chrome && Safari in Leopard
+ if (/Android/.test(vjs.USER_AGENT) || !/Chrome|Mac OS X 10.5/.test(vjs.USER_AGENT)) {
+ return true;
+ }
+ }
+ return false;
+};
+
+vjs.Html5.prototype.enterFullScreen = function(){
+ var video = this.el_;
+
+ if ('webkitDisplayingFullscreen' in video) {
+ this.one('webkitbeginfullscreen', function() {
+ this.player_.isFullscreen(true);
+
+ this.one('webkitendfullscreen', function() {
+ this.player_.isFullscreen(false);
+ this.player_.trigger('fullscreenchange');
+ });
+
+ this.player_.trigger('fullscreenchange');
+ });
+ }
+
+ if (video.paused && video.networkState <= video.HAVE_METADATA) {
+ // attempt to prime the video element for programmatic access
+ // this isn't necessary on the desktop but shouldn't hurt
+ this.el_.play();
+
+ // playing and pausing synchronously during the transition to fullscreen
+ // can get iOS ~6.1 devices into a play/pause loop
+ this.setTimeout(function(){
+ video.pause();
+ video.webkitEnterFullScreen();
+ }, 0);
+ } else {
+ video.webkitEnterFullScreen();
+ }
+};
+
+vjs.Html5.prototype.exitFullScreen = function(){
+ this.el_.webkitExitFullScreen();
+};
+
+
+vjs.Html5.prototype.src = function(src) {
+ if (src === undefined) {
+ return this.el_.src;
+ } else {
+ // Setting src through `src` instead of `setSrc` will be deprecated
+ this.setSrc(src);
+ }
+};
+
+vjs.Html5.prototype.setSrc = function(src) {
+ this.el_.src = src;
+};
+
+vjs.Html5.prototype.load = function(){ this.el_.load(); };
+vjs.Html5.prototype.currentSrc = function(){ return this.el_.currentSrc; };
+
+vjs.Html5.prototype.poster = function(){ return this.el_.poster; };
+vjs.Html5.prototype.setPoster = function(val){ this.el_.poster = val; };
+
+vjs.Html5.prototype.preload = function(){ return this.el_.preload; };
+vjs.Html5.prototype.setPreload = function(val){ this.el_.preload = val; };
+
+vjs.Html5.prototype.autoplay = function(){ return this.el_.autoplay; };
+vjs.Html5.prototype.setAutoplay = function(val){ this.el_.autoplay = val; };
+
+vjs.Html5.prototype.controls = function(){ return this.el_.controls; };
+vjs.Html5.prototype.setControls = function(val){ this.el_.controls = !!val; };
+
+vjs.Html5.prototype.loop = function(){ return this.el_.loop; };
+vjs.Html5.prototype.setLoop = function(val){ this.el_.loop = val; };
+
+vjs.Html5.prototype.error = function(){ return this.el_.error; };
+vjs.Html5.prototype.seeking = function(){ return this.el_.seeking; };
+vjs.Html5.prototype.ended = function(){ return this.el_.ended; };
+vjs.Html5.prototype.defaultMuted = function(){ return this.el_.defaultMuted; };
+
+vjs.Html5.prototype.playbackRate = function(){ return this.el_.playbackRate; };
+vjs.Html5.prototype.setPlaybackRate = function(val){ this.el_.playbackRate = val; };
+
+vjs.Html5.prototype.networkState = function(){ return this.el_.networkState; };
+vjs.Html5.prototype.readyState = function(){ return this.el_.readyState; };
+
+vjs.Html5.prototype.textTracks = function() {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.textTracks.call(this);
+ }
+
+ return this.el_.textTracks;
+};
+vjs.Html5.prototype.addTextTrack = function(kind, label, language) {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.addTextTrack.call(this, kind, label, language);
+ }
+
+ return this.el_.addTextTrack(kind, label, language);
+};
+
+vjs.Html5.prototype.addRemoteTextTrack = function(options) {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.addRemoteTextTrack.call(this, options);
+ }
+
+ var track = document.createElement('track');
+ options = options || {};
+
+ if (options['kind']) {
+ track['kind'] = options['kind'];
+ }
+ if (options['label']) {
+ track['label'] = options['label'];
+ }
+ if (options['language'] || options['srclang']) {
+ track['srclang'] = options['language'] || options['srclang'];
+ }
+ if (options['default']) {
+ track['default'] = options['default'];
+ }
+ if (options['id']) {
+ track['id'] = options['id'];
+ }
+ if (options['src']) {
+ track['src'] = options['src'];
+ }
+
+ this.el().appendChild(track);
+
+ if (track.track['kind'] === 'metadata') {
+ track['track']['mode'] = 'hidden';
+ } else {
+ track['track']['mode'] = 'disabled';
+ }
+
+ track['onload'] = function() {
+ var tt = track['track'];
+ if (track.readyState >= 2) {
+ if (tt['kind'] === 'metadata' && tt['mode'] !== 'hidden') {
+ tt['mode'] = 'hidden';
+ } else if (tt['kind'] !== 'metadata' && tt['mode'] !== 'disabled') {
+ tt['mode'] = 'disabled';
+ }
+ track['onload'] = null;
+ }
+ };
+
+ this.remoteTextTracks().addTrack_(track.track);
+
+ return track;
+};
+
+vjs.Html5.prototype.removeRemoteTextTrack = function(track) {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.removeRemoteTextTrack.call(this, track);
+ }
+
+ var tracks, i;
+
+ this.remoteTextTracks().removeTrack_(track);
+
+ tracks = this.el()['querySelectorAll']('track');
+
+ for (i = 0; i < tracks.length; i++) {
+ if (tracks[i] === track || tracks[i]['track'] === track) {
+ tracks[i]['parentNode']['removeChild'](tracks[i]);
+ break;
+ }
+ }
+};
+
+/* HTML5 Support Testing ---------------------------------------------------- */
+
+/**
+ * Check if HTML5 video is supported by this browser/device
+ * @return {Boolean}
+ */
+vjs.Html5.isSupported = function(){
+ // IE9 with no Media Player is a LIAR! (#984)
+ try {
+ vjs.TEST_VID['volume'] = 0.5;
+ } catch (e) {
+ return false;
+ }
+
+ return !!vjs.TEST_VID.canPlayType;
+};
+
+// Add Source Handler pattern functions to this tech
+vjs.MediaTechController.withSourceHandlers(vjs.Html5);
+
+/**
+ * The default native source handler.
+ * This simply passes the source to the video element. Nothing fancy.
+ * @param {Object} source The source object
+ * @param {vjs.Html5} tech The instance of the HTML5 tech
+ */
+vjs.Html5.nativeSourceHandler = {};
+
+/**
+ * Check if the video element can handle the source natively
+ * @param {Object} source The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+vjs.Html5.nativeSourceHandler.canHandleSource = function(source){
+ var match, ext;
+
+ function canPlayType(type){
+ // IE9 on Windows 7 without MediaPlayer throws an error here
+ // https://github.com/videojs/video.js/issues/519
+ try {
+ return vjs.TEST_VID.canPlayType(type);
+ } catch(e) {
+ return '';
+ }
+ }
+
+ // If a type was provided we should rely on that
+ if (source.type) {
+ return canPlayType(source.type);
+ } else if (source.src) {
+ // If no type, fall back to checking 'video/[EXTENSION]'
+ match = source.src.match(/\.([^.\/\?]+)(\?[^\/]+)?$/i);
+ ext = match && match[1];
+
+ return canPlayType('video/'+ext);
+ }
+
+ return '';
+};
+
+/**
+ * Pass the source to the video element
+ * Adaptive source handlers will have more complicated workflows before passing
+ * video data to the video element
+ * @param {Object} source The source object
+ * @param {vjs.Html5} tech The instance of the Html5 tech
+ */
+vjs.Html5.nativeSourceHandler.handleSource = function(source, tech){
+ tech.setSrc(source.src);
+};
+
+/**
+ * Clean up the source handler when disposing the player or switching sources..
+ * (no cleanup is needed when supporting the format natively)
+ */
+vjs.Html5.nativeSourceHandler.dispose = function(){};
+
+// Register the native source handler
+vjs.Html5.registerSourceHandler(vjs.Html5.nativeSourceHandler);
+
+/**
+ * Check if the volume can be changed in this browser/device.
+ * Volume cannot be changed in a lot of mobile devices.
+ * Specifically, it can't be changed from 1 on iOS.
+ * @return {Boolean}
+ */
+vjs.Html5.canControlVolume = function(){
+ var volume = vjs.TEST_VID.volume;
+ vjs.TEST_VID.volume = (volume / 2) + 0.1;
+ return volume !== vjs.TEST_VID.volume;
+};
+
+/**
+ * Check if playbackRate is supported in this browser/device.
+ * @return {[type]} [description]
+ */
+vjs.Html5.canControlPlaybackRate = function(){
+ var playbackRate = vjs.TEST_VID.playbackRate;
+ vjs.TEST_VID.playbackRate = (playbackRate / 2) + 0.1;
+ return playbackRate !== vjs.TEST_VID.playbackRate;
+};
+
+/**
+ * Check to see if native text tracks are supported by this browser/device
+ * @return {Boolean}
+ */
+vjs.Html5.supportsNativeTextTracks = function() {
+ var supportsTextTracks;
+
+ // Figure out native text track support
+ // If mode is a number, we cannot change it because it'll disappear from view.
+ // Browsers with numeric modes include IE10 and older (<=2013) samsung android models.
+ // Firefox isn't playing nice either with modifying the mode
+ // TODO: Investigate firefox: https://github.com/videojs/video.js/issues/1862
+ supportsTextTracks = !!vjs.TEST_VID.textTracks;
+ if (supportsTextTracks && vjs.TEST_VID.textTracks.length > 0) {
+ supportsTextTracks = typeof vjs.TEST_VID.textTracks[0]['mode'] !== 'number';
+ }
+ if (supportsTextTracks && vjs.IS_FIREFOX) {
+ supportsTextTracks = false;
+ }
+
+ return supportsTextTracks;
+};
+
+/**
+ * Set the tech's volume control support status
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['featuresVolumeControl'] = vjs.Html5.canControlVolume();
+
+/**
+ * Set the tech's playbackRate support status
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['featuresPlaybackRate'] = vjs.Html5.canControlPlaybackRate();
+
+/**
+ * Set the tech's status on moving the video element.
+ * In iOS, if you move a video element in the DOM, it breaks video playback.
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['movingMediaElementInDOM'] = !vjs.IS_IOS;
+
+/**
+ * Set the the tech's fullscreen resize support status.
+ * HTML video is able to automatically resize when going to fullscreen.
+ * (No longer appears to be used. Can probably be removed.)
+ */
+vjs.Html5.prototype['featuresFullscreenResize'] = true;
+
+/**
+ * Set the tech's progress event support status
+ * (this disables the manual progress events of the MediaTechController)
+ */
+vjs.Html5.prototype['featuresProgressEvents'] = true;
+
+/**
+ * Sets the tech's status on native text track support
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['featuresNativeTextTracks'] = vjs.Html5.supportsNativeTextTracks();
+
+// HTML5 Feature detection and Device Fixes --------------------------------- //
+(function() {
+ var canPlayType,
+ mpegurlRE = /^application\/(?:x-|vnd\.apple\.)mpegurl/i,
+ mp4RE = /^video\/mp4/i;
+
+ vjs.Html5.patchCanPlayType = function() {
+ // Android 4.0 and above can play HLS to some extent but it reports being unable to do so
+ if (vjs.ANDROID_VERSION >= 4.0) {
+ if (!canPlayType) {
+ canPlayType = vjs.TEST_VID.constructor.prototype.canPlayType;
+ }
+
+ vjs.TEST_VID.constructor.prototype.canPlayType = function(type) {
+ if (type && mpegurlRE.test(type)) {
+ return 'maybe';
+ }
+ return canPlayType.call(this, type);
+ };
+ }
+
+ // Override Android 2.2 and less canPlayType method which is broken
+ if (vjs.IS_OLD_ANDROID) {
+ if (!canPlayType) {
+ canPlayType = vjs.TEST_VID.constructor.prototype.canPlayType;
+ }
+
+ vjs.TEST_VID.constructor.prototype.canPlayType = function(type){
+ if (type && mp4RE.test(type)) {
+ return 'maybe';
+ }
+ return canPlayType.call(this, type);
+ };
+ }
+ };
+
+ vjs.Html5.unpatchCanPlayType = function() {
+ var r = vjs.TEST_VID.constructor.prototype.canPlayType;
+ vjs.TEST_VID.constructor.prototype.canPlayType = canPlayType;
+ canPlayType = null;
+ return r;
+ };
+
+ // by default, patch the video element
+ vjs.Html5.patchCanPlayType();
+})();
+
+// List of all HTML5 events (various uses).
+vjs.Html5.Events = 'loadstart,suspend,abort,error,emptied,stalled,loadedmetadata,loadeddata,canplay,canplaythrough,playing,waiting,seeking,seeked,ended,durationchange,timeupdate,progress,play,pause,ratechange,volumechange'.split(',');
+
+vjs.Html5.disposeMediaElement = function(el){
+ if (!el) { return; }
+
+ el['player'] = null;
+
+ if (el.parentNode) {
+ el.parentNode.removeChild(el);
+ }
+
+ // remove any child track or source nodes to prevent their loading
+ while(el.hasChildNodes()) {
+ el.removeChild(el.firstChild);
+ }
+
+ // remove any src reference. not setting `src=''` because that causes a warning
+ // in firefox
+ el.removeAttribute('src');
+
+ // force the media element to update its loading state by calling load()
+ // however IE on Windows 7N has a bug that throws an error so need a try/catch (#793)
+ if (typeof el.load === 'function') {
+ // wrapping in an iife so it's not deoptimized (#1060#discussion_r10324473)
+ (function() {
+ try {
+ el.load();
+ } catch (e) {
+ // not supported
+ }
+ })();
+ }
+};
+/**
+ * @fileoverview VideoJS-SWF - Custom Flash Player with HTML5-ish API
+ * https://github.com/zencoder/video-js-swf
+ * Not using setupTriggers. Using global onEvent func to distribute events
+ */
+
+/**
+ * Flash Media Controller - Wrapper for fallback SWF API
+ *
+ * @param {vjs.Player} player
+ * @param {Object=} options
+ * @param {Function=} ready
+ * @constructor
+ */
+vjs.Flash = vjs.MediaTechController.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.MediaTechController.call(this, player, options, ready);
+
+ var source = options['source'],
+
+ // Which element to embed in
+ parentEl = options['parentEl'],
+
+ // Create a temporary element to be replaced by swf object
+ placeHolder = this.el_ = vjs.createEl('div', { id: player.id() + '_temp_flash' }),
+
+ // Generate ID for swf object
+ objId = player.id()+'_flash_api',
+
+ // Store player options in local var for optimization
+ // TODO: switch to using player methods instead of options
+ // e.g. player.autoplay();
+ playerOptions = player.options_,
+
+ // Merge default flashvars with ones passed in to init
+ flashVars = vjs.obj.merge({
+
+ // SWF Callback Functions
+ 'readyFunction': 'videojs.Flash.onReady',
+ 'eventProxyFunction': 'videojs.Flash.onEvent',
+ 'errorEventProxyFunction': 'videojs.Flash.onError',
+
+ // Player Settings
+ 'autoplay': playerOptions.autoplay,
+ 'preload': playerOptions.preload,
+ 'loop': playerOptions.loop,
+ 'muted': playerOptions.muted
+
+ }, options['flashVars']),
+
+ // Merge default parames with ones passed in
+ params = vjs.obj.merge({
+ 'wmode': 'opaque', // Opaque is needed to overlay controls, but can affect playback performance
+ 'bgcolor': '#000000' // Using bgcolor prevents a white flash when the object is loading
+ }, options['params']),
+
+ // Merge default attributes with ones passed in
+ attributes = vjs.obj.merge({
+ 'id': objId,
+ 'name': objId, // Both ID and Name needed or swf to identify itself
+ 'class': 'vjs-tech'
+ }, options['attributes'])
+ ;
+
+ // If source was supplied pass as a flash var.
+ if (source) {
+ this.ready(function(){
+ this.setSource(source);
+ });
+ }
+
+ // Add placeholder to player div
+ vjs.insertFirst(placeHolder, parentEl);
+
+ // Having issues with Flash reloading on certain page actions (hide/resize/fullscreen) in certain browsers
+ // This allows resetting the playhead when we catch the reload
+ if (options['startTime']) {
+ this.ready(function(){
+ this.load();
+ this.play();
+ this['currentTime'](options['startTime']);
+ });
+ }
+
+ // firefox doesn't bubble mousemove events to parent. videojs/video-js-swf#37
+ // bugzilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=836786
+ if (vjs.IS_FIREFOX) {
+ this.ready(function(){
+ this.on('mousemove', function(){
+ // since it's a custom event, don't bubble higher than the player
+ this.player().trigger({ 'type':'mousemove', 'bubbles': false });
+ });
+ });
+ }
+
+ // native click events on the SWF aren't triggered on IE11, Win8.1RT
+ // use stageclick events triggered from inside the SWF instead
+ player.on('stageclick', player.reportUserActivity);
+
+ this.el_ = vjs.Flash.embed(options['swf'], placeHolder, flashVars, params, attributes);
+ }
+});
+
+vjs.Flash.prototype.dispose = function(){
+ vjs.MediaTechController.prototype.dispose.call(this);
+};
+
+vjs.Flash.prototype.play = function(){
+ this.el_.vjs_play();
+};
+
+vjs.Flash.prototype.pause = function(){
+ this.el_.vjs_pause();
+};
+
+vjs.Flash.prototype.src = function(src){
+ if (src === undefined) {
+ return this['currentSrc']();
+ }
+
+ // Setting src through `src` not `setSrc` will be deprecated
+ return this.setSrc(src);
+};
+
+vjs.Flash.prototype.setSrc = function(src){
+ // Make sure source URL is absolute.
+ src = vjs.getAbsoluteURL(src);
+ this.el_.vjs_src(src);
+
+ // Currently the SWF doesn't autoplay if you load a source later.
+ // e.g. Load player w/ no source, wait 2s, set src.
+ if (this.player_.autoplay()) {
+ var tech = this;
+ this.setTimeout(function(){ tech.play(); }, 0);
+ }
+};
+
+vjs.Flash.prototype['setCurrentTime'] = function(time){
+ this.lastSeekTarget_ = time;
+ this.el_.vjs_setProperty('currentTime', time);
+ vjs.MediaTechController.prototype.setCurrentTime.call(this);
+};
+
+vjs.Flash.prototype['currentTime'] = function(time){
+ // when seeking make the reported time keep up with the requested time
+ // by reading the time we're seeking to
+ if (this.seeking()) {
+ return this.lastSeekTarget_ || 0;
+ }
+ return this.el_.vjs_getProperty('currentTime');
+};
+
+vjs.Flash.prototype['currentSrc'] = function(){
+ if (this.currentSource_) {
+ return this.currentSource_.src;
+ } else {
+ return this.el_.vjs_getProperty('currentSrc');
+ }
+};
+
+vjs.Flash.prototype.load = function(){
+ this.el_.vjs_load();
+};
+
+vjs.Flash.prototype.poster = function(){
+ this.el_.vjs_getProperty('poster');
+};
+vjs.Flash.prototype['setPoster'] = function(){
+ // poster images are not handled by the Flash tech so make this a no-op
+};
+
+vjs.Flash.prototype.buffered = function(){
+ return vjs.createTimeRange(0, this.el_.vjs_getProperty('buffered'));
+};
+
+vjs.Flash.prototype.supportsFullScreen = function(){
+ return false; // Flash does not allow fullscreen through javascript
+};
+
+vjs.Flash.prototype.enterFullScreen = function(){
+ return false;
+};
+
+(function(){
+ // Create setters and getters for attributes
+ var api = vjs.Flash.prototype,
+ readWrite = 'rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted'.split(','),
+ readOnly = 'error,networkState,readyState,seeking,initialTime,duration,startOffsetTime,paused,played,seekable,ended,videoTracks,audioTracks,videoWidth,videoHeight'.split(','),
+ // Overridden: buffered, currentTime, currentSrc
+ i;
+
+ function createSetter(attr){
+ var attrUpper = attr.charAt(0).toUpperCase() + attr.slice(1);
+ api['set'+attrUpper] = function(val){ return this.el_.vjs_setProperty(attr, val); };
+ }
+ function createGetter(attr) {
+ api[attr] = function(){ return this.el_.vjs_getProperty(attr); };
+ }
+
+ // Create getter and setters for all read/write attributes
+ for (i = 0; i < readWrite.length; i++) {
+ createGetter(readWrite[i]);
+ createSetter(readWrite[i]);
+ }
+
+ // Create getters for read-only attributes
+ for (i = 0; i < readOnly.length; i++) {
+ createGetter(readOnly[i]);
+ }
+})();
+
+/* Flash Support Testing -------------------------------------------------------- */
+
+vjs.Flash.isSupported = function(){
+ return vjs.Flash.version()[0] >= 10;
+ // return swfobject.hasFlashPlayerVersion('10');
+};
+
+// Add Source Handler pattern functions to this tech
+vjs.MediaTechController.withSourceHandlers(vjs.Flash);
+
+/**
+ * The default native source handler.
+ * This simply passes the source to the video element. Nothing fancy.
+ * @param {Object} source The source object
+ * @param {vjs.Flash} tech The instance of the Flash tech
+ */
+vjs.Flash.nativeSourceHandler = {};
+
+/**
+ * Check Flash can handle the source natively
+ * @param {Object} source The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+vjs.Flash.nativeSourceHandler.canHandleSource = function(source){
+ var type;
+
+ if (!source.type) {
+ return '';
+ }
+
+ // Strip code information from the type because we don't get that specific
+ type = source.type.replace(/;.*/,'').toLowerCase();
+
+ if (type in vjs.Flash.formats) {
+ return 'maybe';
+ }
+
+ return '';
+};
+
+/**
+ * Pass the source to the flash object
+ * Adaptive source handlers will have more complicated workflows before passing
+ * video data to the video element
+ * @param {Object} source The source object
+ * @param {vjs.Flash} tech The instance of the Flash tech
+ */
+vjs.Flash.nativeSourceHandler.handleSource = function(source, tech){
+ tech.setSrc(source.src);
+};
+
+/**
+ * Clean up the source handler when disposing the player or switching sources..
+ * (no cleanup is needed when supporting the format natively)
+ */
+vjs.Flash.nativeSourceHandler.dispose = function(){};
+
+// Register the native source handler
+vjs.Flash.registerSourceHandler(vjs.Flash.nativeSourceHandler);
+
+vjs.Flash.formats = {
+ 'video/flv': 'FLV',
+ 'video/x-flv': 'FLV',
+ 'video/mp4': 'MP4',
+ 'video/m4v': 'MP4'
+};
+
+vjs.Flash['onReady'] = function(currSwf){
+ var el, player;
+
+ el = vjs.el(currSwf);
+
+ // get player from the player div property
+ player = el && el.parentNode && el.parentNode['player'];
+
+ // if there is no el or player then the tech has been disposed
+ // and the tech element was removed from the player div
+ if (player) {
+ // reference player on tech element
+ el['player'] = player;
+ // check that the flash object is really ready
+ vjs.Flash['checkReady'](player.tech);
+ }
+};
+
+// The SWF isn't always ready when it says it is. Sometimes the API functions still need to be added to the object.
+// If it's not ready, we set a timeout to check again shortly.
+vjs.Flash['checkReady'] = function(tech){
+ // stop worrying if the tech has been disposed
+ if (!tech.el()) {
+ return;
+ }
+
+ // check if API property exists
+ if (tech.el().vjs_getProperty) {
+ // tell tech it's ready
+ tech.triggerReady();
+ } else {
+ // wait longer
+ this.setTimeout(function(){
+ vjs.Flash['checkReady'](tech);
+ }, 50);
+ }
+};
+
+// Trigger events from the swf on the player
+vjs.Flash['onEvent'] = function(swfID, eventName){
+ var player = vjs.el(swfID)['player'];
+ player.trigger(eventName);
+};
+
+// Log errors from the swf
+vjs.Flash['onError'] = function(swfID, err){
+ var player = vjs.el(swfID)['player'];
+ var msg = 'FLASH: '+err;
+
+ if (err == 'srcnotfound') {
+ player.error({ code: 4, message: msg });
+
+ // errors we haven't categorized into the media errors
+ } else {
+ player.error(msg);
+ }
+};
+
+// Flash Version Check
+vjs.Flash.version = function(){
+ var version = '0,0,0';
+
+ // IE
+ try {
+ version = new window.ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
+
+ // other browsers
+ } catch(e) {
+ try {
+ if (navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin){
+ version = (navigator.plugins['Shockwave Flash 2.0'] || navigator.plugins['Shockwave Flash']).description.replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
+ }
+ } catch(err) {}
+ }
+ return version.split(',');
+};
+
+// Flash embedding method. Only used in non-iframe mode
+vjs.Flash.embed = function(swf, placeHolder, flashVars, params, attributes){
+ var code = vjs.Flash.getEmbedCode(swf, flashVars, params, attributes),
+
+ // Get element by embedding code and retrieving created element
+ obj = vjs.createEl('div', { innerHTML: code }).childNodes[0],
+
+ par = placeHolder.parentNode
+ ;
+
+ placeHolder.parentNode.replaceChild(obj, placeHolder);
+
+ // IE6 seems to have an issue where it won't initialize the swf object after injecting it.
+ // This is a dumb fix
+ var newObj = par.childNodes[0];
+ setTimeout(function(){
+ newObj.style.display = 'block';
+ }, 1000);
+
+ return obj;
+
+};
+
+vjs.Flash.getEmbedCode = function(swf, flashVars, params, attributes){
+
+ var objTag = ' ';
+ });
+
+ attributes = vjs.obj.merge({
+ // Add swf to attributes (need both for IE and Others to work)
+ 'data': swf,
+
+ // Default to 100% width/height
+ 'width': '100%',
+ 'height': '100%'
+
+ }, attributes);
+
+ // Create Attributes string
+ vjs.obj.each(attributes, function(key, val){
+ attrsString += (key + '="' + val + '" ');
+ });
+
+ return objTag + attrsString + '>' + paramsString + '';
+};
+vjs.Flash.streamingFormats = {
+ 'rtmp/mp4': 'MP4',
+ 'rtmp/flv': 'FLV'
+};
+
+vjs.Flash.streamFromParts = function(connection, stream) {
+ return connection + '&' + stream;
+};
+
+vjs.Flash.streamToParts = function(src) {
+ var parts = {
+ connection: '',
+ stream: ''
+ };
+
+ if (! src) {
+ return parts;
+ }
+
+ // Look for the normal URL separator we expect, '&'.
+ // If found, we split the URL into two pieces around the
+ // first '&'.
+ var connEnd = src.indexOf('&');
+ var streamBegin;
+ if (connEnd !== -1) {
+ streamBegin = connEnd + 1;
+ }
+ else {
+ // If there's not a '&', we use the last '/' as the delimiter.
+ connEnd = streamBegin = src.lastIndexOf('/') + 1;
+ if (connEnd === 0) {
+ // really, there's not a '/'?
+ connEnd = streamBegin = src.length;
+ }
+ }
+ parts.connection = src.substring(0, connEnd);
+ parts.stream = src.substring(streamBegin, src.length);
+
+ return parts;
+};
+
+vjs.Flash.isStreamingType = function(srcType) {
+ return srcType in vjs.Flash.streamingFormats;
+};
+
+// RTMP has four variations, any string starting
+// with one of these protocols should be valid
+vjs.Flash.RTMP_RE = /^rtmp[set]?:\/\//i;
+
+vjs.Flash.isStreamingSrc = function(src) {
+ return vjs.Flash.RTMP_RE.test(src);
+};
+
+/**
+ * A source handler for RTMP urls
+ * @type {Object}
+ */
+vjs.Flash.rtmpSourceHandler = {};
+
+/**
+ * Check Flash can handle the source natively
+ * @param {Object} source The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+vjs.Flash.rtmpSourceHandler.canHandleSource = function(source){
+ if (vjs.Flash.isStreamingType(source.type) || vjs.Flash.isStreamingSrc(source.src)) {
+ return 'maybe';
+ }
+
+ return '';
+};
+
+/**
+ * Pass the source to the flash object
+ * Adaptive source handlers will have more complicated workflows before passing
+ * video data to the video element
+ * @param {Object} source The source object
+ * @param {vjs.Flash} tech The instance of the Flash tech
+ */
+vjs.Flash.rtmpSourceHandler.handleSource = function(source, tech){
+ var srcParts = vjs.Flash.streamToParts(source.src);
+
+ tech['setRtmpConnection'](srcParts.connection);
+ tech['setRtmpStream'](srcParts.stream);
+};
+
+// Register the native source handler
+vjs.Flash.registerSourceHandler(vjs.Flash.rtmpSourceHandler);
+/**
+ * The Media Loader is the component that decides which playback technology to load
+ * when the player is initialized.
+ *
+ * @constructor
+ */
+vjs.MediaLoader = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.Component.call(this, player, options, ready);
+
+ // If there are no sources when the player is initialized,
+ // load the first supported playback technology.
+ if (!player.options_['sources'] || player.options_['sources'].length === 0) {
+ for (var i=0,j=player.options_['techOrder']; i= ct) {
+ active.push(cue);
+ } else if (cue['startTime'] === cue['endTime'] && cue['startTime'] <= ct && cue['startTime'] + 0.5 >= ct) {
+ active.push(cue);
+ }
+ }
+
+ changed = false;
+
+ if (active.length !== this.activeCues_.length) {
+ changed = true;
+ } else {
+ for (i = 0; i < active.length; i++) {
+ if (indexOf.call(this.activeCues_, active[i]) === -1) {
+ changed = true;
+ }
+ }
+ }
+
+ this.activeCues_ = active;
+ activeCues.setCues_(this.activeCues_);
+
+ return activeCues;
+ },
+ set: Function.prototype
+ });
+
+ if (options.src) {
+ loadTrack(options.src, tt);
+ } else {
+ tt.loaded_ = true;
+ }
+
+ if (vjs.IS_IE8) {
+ return tt;
+ }
+};
+
+vjs.TextTrack.prototype = vjs.obj.create(vjs.EventEmitter.prototype);
+vjs.TextTrack.prototype.constructor = vjs.TextTrack;
+
+/*
+ * cuechange - One or more cues in the track have become active or stopped being active.
+ */
+vjs.TextTrack.prototype.allowedEvents_ = {
+ 'cuechange': 'cuechange'
+};
+
+vjs.TextTrack.prototype.addCue = function(cue) {
+ var tracks = this.player_.textTracks(),
+ i = 0;
+
+ if (tracks) {
+ for (; i < tracks.length; i++) {
+ if (tracks[i] !== this) {
+ tracks[i].removeCue(cue);
+ }
+ }
+ }
+
+ this.cues_.push(cue);
+ this['cues'].setCues_(this.cues_);
+};
+
+vjs.TextTrack.prototype.removeCue = function(removeCue) {
+ var i = 0,
+ l = this.cues_.length,
+ cue,
+ removed = false;
+
+ for (; i < l; i++) {
+ cue = this.cues_[i];
+ if (cue === removeCue) {
+ this.cues_.splice(i, 1);
+ removed = true;
+ }
+ }
+
+ if (removed) {
+ this.cues.setCues_(this.cues_);
+ }
+};
+
+/*
+ * Downloading stuff happens below this point
+ */
+var loadTrack, parseCues, indexOf;
+
+loadTrack = function(src, track) {
+ vjs.xhr(src, vjs.bind(this, function(err, response, responseBody){
+ if (err) {
+ return vjs.log.error(err);
+ }
+
+
+ track.loaded_ = true;
+ parseCues(responseBody, track);
+ }));
+};
+
+parseCues = function(srcContent, track) {
+ if (typeof window['WebVTT'] !== 'function') {
+ //try again a bit later
+ return window.setTimeout(function() {
+ parseCues(srcContent, track);
+ }, 25);
+ }
+
+ var parser = new window['WebVTT']['Parser'](window, window['vttjs'], window['WebVTT']['StringDecoder']());
+
+ parser['oncue'] = function(cue) {
+ track.addCue(cue);
+ };
+ parser['onparsingerror'] = function(error) {
+ vjs.log.error(error);
+ };
+
+ parser['parse'](srcContent);
+ parser['flush']();
+};
+
+indexOf = function(searchElement, fromIndex) {
+
+ var k;
+
+ if (this == null) {
+ throw new TypeError('"this" is null or not defined');
+ }
+
+ var O = Object(this);
+
+ var len = O.length >>> 0;
+
+ if (len === 0) {
+ return -1;
+ }
+
+ var n = +fromIndex || 0;
+
+ if (Math.abs(n) === Infinity) {
+ n = 0;
+ }
+
+ if (n >= len) {
+ return -1;
+ }
+
+ k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
+
+ while (k < len) {
+ if (k in O && O[k] === searchElement) {
+ return k;
+ }
+ k++;
+ }
+ return -1;
+};
+
+})();
+/*
+ * https://html.spec.whatwg.org/multipage/embedded-content.html#texttracklist
+ *
+ * interface TextTrackList : EventTarget {
+ * readonly attribute unsigned long length;
+ * getter TextTrack (unsigned long index);
+ * TextTrack? getTrackById(DOMString id);
+ *
+ * attribute EventHandler onchange;
+ * attribute EventHandler onaddtrack;
+ * attribute EventHandler onremovetrack;
+ * };
+ */
+vjs.TextTrackList = function(tracks) {
+ var list = this,
+ prop,
+ i = 0;
+
+ if (vjs.IS_IE8) {
+ list = document.createElement('custom');
+
+ for (prop in vjs.TextTrackList.prototype) {
+ list[prop] = vjs.TextTrackList.prototype[prop];
+ }
+ }
+
+ tracks = tracks || [];
+ list.tracks_ = [];
+
+ Object.defineProperty(list, 'length', {
+ get: function() {
+ return this.tracks_.length;
+ }
+ });
+
+ for (; i < tracks.length; i++) {
+ list.addTrack_(tracks[i]);
+ }
+
+ if (vjs.IS_IE8) {
+ return list;
+ }
+};
+
+vjs.TextTrackList.prototype = vjs.obj.create(vjs.EventEmitter.prototype);
+vjs.TextTrackList.prototype.constructor = vjs.TextTrackList;
+
+/*
+ * change - One or more tracks in the track list have been enabled or disabled.
+ * addtrack - A track has been added to the track list.
+ * removetrack - A track has been removed from the track list.
+*/
+vjs.TextTrackList.prototype.allowedEvents_ = {
+ 'change': 'change',
+ 'addtrack': 'addtrack',
+ 'removetrack': 'removetrack'
+};
+
+// emulate attribute EventHandler support to allow for feature detection
+(function() {
+ var event;
+
+ for (event in vjs.TextTrackList.prototype.allowedEvents_) {
+ vjs.TextTrackList.prototype['on' + event] = null;
+ }
+})();
+
+vjs.TextTrackList.prototype.addTrack_ = function(track) {
+ var index = this.tracks_.length;
+ if (!(''+index in this)) {
+ Object.defineProperty(this, index, {
+ get: function() {
+ return this.tracks_[index];
+ }
+ });
+ }
+
+ track.addEventListener('modechange', vjs.bind(this, function() {
+ this.trigger('change');
+ }));
+ this.tracks_.push(track);
+
+ this.trigger({
+ type: 'addtrack',
+ track: track
+ });
+};
+
+vjs.TextTrackList.prototype.removeTrack_ = function(rtrack) {
+ var i = 0,
+ l = this.length,
+ result = null,
+ track;
+
+ for (; i < l; i++) {
+ track = this[i];
+ if (track === rtrack) {
+ this.tracks_.splice(i, 1);
+ break;
+ }
+ }
+
+ this.trigger({
+ type: 'removetrack',
+ track: rtrack
+ });
+};
+
+vjs.TextTrackList.prototype.getTrackById = function(id) {
+ var i = 0,
+ l = this.length,
+ result = null,
+ track;
+
+ for (; i < l; i++) {
+ track = this[i];
+ if (track.id === id) {
+ result = track;
+ break;
+ }
+ }
+
+ return result;
+};
+/*
+ * https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackcuelist
+ *
+ * interface TextTrackCueList {
+ * readonly attribute unsigned long length;
+ * getter TextTrackCue (unsigned long index);
+ * TextTrackCue? getCueById(DOMString id);
+ * };
+ */
+
+vjs.TextTrackCueList = function(cues) {
+ var list = this,
+ prop;
+
+ if (vjs.IS_IE8) {
+ list = document.createElement('custom');
+
+ for (prop in vjs.TextTrackCueList.prototype) {
+ list[prop] = vjs.TextTrackCueList.prototype[prop];
+ }
+ }
+
+ vjs.TextTrackCueList.prototype.setCues_.call(list, cues);
+
+ Object.defineProperty(list, 'length', {
+ get: function() {
+ return this.length_;
+ }
+ });
+
+ if (vjs.IS_IE8) {
+ return list;
+ }
+};
+
+vjs.TextTrackCueList.prototype.setCues_ = function(cues) {
+ var oldLength = this.length || 0,
+ i = 0,
+ l = cues.length,
+ defineProp;
+
+ this.cues_ = cues;
+ this.length_ = cues.length;
+
+ defineProp = function(i) {
+ if (!(''+i in this)) {
+ Object.defineProperty(this, '' + i, {
+ get: function() {
+ return this.cues_[i];
+ }
+ });
+ }
+ };
+
+ if (oldLength < l) {
+ i = oldLength;
+ for(; i < l; i++) {
+ defineProp.call(this, i);
+ }
+ }
+};
+
+vjs.TextTrackCueList.prototype.getCueById = function(id) {
+ var i = 0,
+ l = this.length,
+ result = null,
+ cue;
+
+ for (; i < l; i++) {
+ cue = this[i];
+ if (cue.id === id) {
+ result = cue;
+ break;
+ }
+ }
+
+ return result;
+};
+(function() {
+'use strict';
+
+/* Text Track Display
+============================================================================= */
+// Global container for both subtitle and captions text. Simple div container.
+
+/**
+ * The component for displaying text track cues
+ *
+ * @constructor
+ */
+vjs.TextTrackDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.Component.call(this, player, options, ready);
+
+ player.on('loadstart', vjs.bind(this, this.toggleDisplay));
+
+ // This used to be called during player init, but was causing an error
+ // if a track should show by default and the display hadn't loaded yet.
+ // Should probably be moved to an external track loader when we support
+ // tracks that don't need a display.
+ player.ready(vjs.bind(this, function() {
+ if (player.tech && player.tech['featuresNativeTextTracks']) {
+ this.hide();
+ return;
+ }
+
+ var i, tracks, track;
+
+ player.on('fullscreenchange', vjs.bind(this, this.updateDisplay));
+
+ tracks = player.options_['tracks'] || [];
+ for (i = 0; i < tracks.length; i++) {
+ track = tracks[i];
+ this.player_.addRemoteTextTrack(track);
+ }
+ }));
+ }
+});
+
+vjs.TextTrackDisplay.prototype.toggleDisplay = function() {
+ if (this.player_.tech && this.player_.tech['featuresNativeTextTracks']) {
+ this.hide();
+ } else {
+ this.show();
+ }
+};
+
+vjs.TextTrackDisplay.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-text-track-display'
+ });
+};
+
+vjs.TextTrackDisplay.prototype.clearDisplay = function() {
+ if (typeof window['WebVTT'] === 'function') {
+ window['WebVTT']['processCues'](window, [], this.el_);
+ }
+};
+
+// Add cue HTML to display
+var constructColor = function(color, opacity) {
+ return 'rgba(' +
+ // color looks like "#f0e"
+ parseInt(color[1] + color[1], 16) + ',' +
+ parseInt(color[2] + color[2], 16) + ',' +
+ parseInt(color[3] + color[3], 16) + ',' +
+ opacity + ')';
+};
+var darkGray = '#222';
+var lightGray = '#ccc';
+var fontMap = {
+ monospace: 'monospace',
+ sansSerif: 'sans-serif',
+ serif: 'serif',
+ monospaceSansSerif: '"Andale Mono", "Lucida Console", monospace',
+ monospaceSerif: '"Courier New", monospace',
+ proportionalSansSerif: 'sans-serif',
+ proportionalSerif: 'serif',
+ casual: '"Comic Sans MS", Impact, fantasy',
+ script: '"Monotype Corsiva", cursive',
+ smallcaps: '"Andale Mono", "Lucida Console", monospace, sans-serif'
+};
+var tryUpdateStyle = function(el, style, rule) {
+ // some style changes will throw an error, particularly in IE8. Those should be noops.
+ try {
+ el.style[style] = rule;
+ } catch (e) {}
+};
+
+vjs.TextTrackDisplay.prototype.updateDisplay = function() {
+ var tracks = this.player_.textTracks(),
+ i = 0,
+ track;
+
+ this.clearDisplay();
+
+ if (!tracks) {
+ return;
+ }
+
+ for (; i < tracks.length; i++) {
+ track = tracks[i];
+ if (track['mode'] === 'showing') {
+ this.updateForTrack(track);
+ }
+ }
+};
+
+vjs.TextTrackDisplay.prototype.updateForTrack = function(track) {
+ if (typeof window['WebVTT'] !== 'function' || !track['activeCues']) {
+ return;
+ }
+
+ var i = 0,
+ property,
+ cueDiv,
+ overrides = this.player_['textTrackSettings'].getValues(),
+ fontSize,
+ cues = [];
+
+ for (; i < track['activeCues'].length; i++) {
+ cues.push(track['activeCues'][i]);
+ }
+
+ window['WebVTT']['processCues'](window, track['activeCues'], this.el_);
+
+ i = cues.length;
+ while (i--) {
+ cueDiv = cues[i].displayState;
+ if (overrides.color) {
+ cueDiv.firstChild.style.color = overrides.color;
+ }
+ if (overrides.textOpacity) {
+ tryUpdateStyle(cueDiv.firstChild,
+ 'color',
+ constructColor(overrides.color || '#fff',
+ overrides.textOpacity));
+ }
+ if (overrides.backgroundColor) {
+ cueDiv.firstChild.style.backgroundColor = overrides.backgroundColor;
+ }
+ if (overrides.backgroundOpacity) {
+ tryUpdateStyle(cueDiv.firstChild,
+ 'backgroundColor',
+ constructColor(overrides.backgroundColor || '#000',
+ overrides.backgroundOpacity));
+ }
+ if (overrides.windowColor) {
+ if (overrides.windowOpacity) {
+ tryUpdateStyle(cueDiv,
+ 'backgroundColor',
+ constructColor(overrides.windowColor, overrides.windowOpacity));
+ } else {
+ cueDiv.style.backgroundColor = overrides.windowColor;
+ }
+ }
+ if (overrides.edgeStyle) {
+ if (overrides.edgeStyle === 'dropshadow') {
+ cueDiv.firstChild.style.textShadow = '2px 2px 3px ' + darkGray + ', 2px 2px 4px ' + darkGray + ', 2px 2px 5px ' + darkGray;
+ } else if (overrides.edgeStyle === 'raised') {
+ cueDiv.firstChild.style.textShadow = '1px 1px ' + darkGray + ', 2px 2px ' + darkGray + ', 3px 3px ' + darkGray;
+ } else if (overrides.edgeStyle === 'depressed') {
+ cueDiv.firstChild.style.textShadow = '1px 1px ' + lightGray + ', 0 1px ' + lightGray + ', -1px -1px ' + darkGray + ', 0 -1px ' + darkGray;
+ } else if (overrides.edgeStyle === 'uniform') {
+ cueDiv.firstChild.style.textShadow = '0 0 4px ' + darkGray + ', 0 0 4px ' + darkGray + ', 0 0 4px ' + darkGray + ', 0 0 4px ' + darkGray;
+ }
+ }
+ if (overrides.fontPercent && overrides.fontPercent !== 1) {
+ fontSize = window.parseFloat(cueDiv.style.fontSize);
+ cueDiv.style.fontSize = (fontSize * overrides.fontPercent) + 'px';
+ cueDiv.style.height = 'auto';
+ cueDiv.style.top = 'auto';
+ cueDiv.style.bottom = '2px';
+ }
+ if (overrides.fontFamily && overrides.fontFamily !== 'default') {
+ if (overrides.fontFamily === 'small-caps') {
+ cueDiv.firstChild.style.fontVariant = 'small-caps';
+ } else {
+ cueDiv.firstChild.style.fontFamily = fontMap[overrides.fontFamily];
+ }
+ }
+ }
+};
+
+
+/**
+ * The specific menu item type for selecting a language within a text track kind
+ *
+ * @constructor
+ */
+vjs.TextTrackMenuItem = vjs.MenuItem.extend({
+ /** @constructor */
+ init: function(player, options){
+ var track = this.track = options['track'],
+ tracks = player.textTracks(),
+ changeHandler,
+ event;
+
+ if (tracks) {
+ changeHandler = vjs.bind(this, function() {
+ var selected = this.track['mode'] === 'showing',
+ track,
+ i,
+ l;
+
+ if (this instanceof vjs.OffTextTrackMenuItem) {
+ selected = true;
+
+ i = 0,
+ l = tracks.length;
+
+ for (; i < l; i++) {
+ track = tracks[i];
+ if (track['kind'] === this.track['kind'] && track['mode'] === 'showing') {
+ selected = false;
+ break;
+ }
+ }
+ }
+
+ this.selected(selected);
+ });
+ tracks.addEventListener('change', changeHandler);
+ player.on('dispose', function() {
+ tracks.removeEventListener('change', changeHandler);
+ });
+ }
+
+ // Modify options for parent MenuItem class's init.
+ options['label'] = track['label'] || track['language'] || 'Unknown';
+ options['selected'] = track['default'] || track['mode'] === 'showing';
+ vjs.MenuItem.call(this, player, options);
+
+ // iOS7 doesn't dispatch change events to TextTrackLists when an
+ // associated track's mode changes. Without something like
+ // Object.observe() (also not present on iOS7), it's not
+ // possible to detect changes to the mode attribute and polyfill
+ // the change event. As a poor substitute, we manually dispatch
+ // change events whenever the controls modify the mode.
+ if (tracks && tracks.onchange === undefined) {
+ this.on(['tap', 'click'], function() {
+ if (typeof window.Event !== 'object') {
+ // Android 2.3 throws an Illegal Constructor error for window.Event
+ try {
+ event = new window.Event('change');
+ } catch(err){}
+ }
+
+ if (!event) {
+ event = document.createEvent('Event');
+ event.initEvent('change', true, true);
+ }
+
+ tracks.dispatchEvent(event);
+ });
+ }
+ }
+});
+
+vjs.TextTrackMenuItem.prototype.onClick = function(){
+ var kind = this.track['kind'],
+ tracks = this.player_.textTracks(),
+ mode,
+ track,
+ i = 0;
+
+ vjs.MenuItem.prototype.onClick.call(this);
+
+ if (!tracks) {
+ return;
+ }
+
+ for (; i < tracks.length; i++) {
+ track = tracks[i];
+
+ if (track['kind'] !== kind) {
+ continue;
+ }
+
+ if (track === this.track) {
+ track['mode'] = 'showing';
+ } else {
+ track['mode'] = 'disabled';
+ }
+ }
+};
+
+/**
+ * A special menu item for turning of a specific type of text track
+ *
+ * @constructor
+ */
+vjs.OffTextTrackMenuItem = vjs.TextTrackMenuItem.extend({
+ /** @constructor */
+ init: function(player, options){
+ // Create pseudo track info
+ // Requires options['kind']
+ options['track'] = {
+ 'kind': options['kind'],
+ 'player': player,
+ 'label': options['kind'] + ' off',
+ 'default': false,
+ 'mode': 'disabled'
+ };
+ vjs.TextTrackMenuItem.call(this, player, options);
+ this.selected(true);
+ }
+});
+
+vjs.CaptionSettingsMenuItem = vjs.TextTrackMenuItem.extend({
+ init: function(player, options) {
+ options['track'] = {
+ 'kind': options['kind'],
+ 'player': player,
+ 'label': options['kind'] + ' settings',
+ 'default': false,
+ mode: 'disabled'
+ };
+
+ vjs.TextTrackMenuItem.call(this, player, options);
+ this.addClass('vjs-texttrack-settings');
+ }
+});
+
+vjs.CaptionSettingsMenuItem.prototype.onClick = function() {
+ this.player().getChild('textTrackSettings').show();
+};
+
+/**
+ * The base class for buttons that toggle specific text track types (e.g. subtitles)
+ *
+ * @constructor
+ */
+vjs.TextTrackButton = vjs.MenuButton.extend({
+ /** @constructor */
+ init: function(player, options){
+ var tracks, updateHandler;
+
+ vjs.MenuButton.call(this, player, options);
+
+ tracks = this.player_.textTracks();
+
+ if (this.items.length <= 1) {
+ this.hide();
+ }
+
+ if (!tracks) {
+ return;
+ }
+
+ updateHandler = vjs.bind(this, this.update);
+ tracks.addEventListener('removetrack', updateHandler);
+ tracks.addEventListener('addtrack', updateHandler);
+
+ this.player_.on('dispose', function() {
+ tracks.removeEventListener('removetrack', updateHandler);
+ tracks.removeEventListener('addtrack', updateHandler);
+ });
+ }
+});
+
+// Create a menu item for each text track
+vjs.TextTrackButton.prototype.createItems = function(){
+ var items = [], track, tracks;
+
+ if (this instanceof vjs.CaptionsButton && !(this.player().tech && this.player().tech['featuresNativeTextTracks'])) {
+ items.push(new vjs.CaptionSettingsMenuItem(this.player_, { 'kind': this.kind_ }));
+ }
+
+ // Add an OFF menu item to turn all tracks off
+ items.push(new vjs.OffTextTrackMenuItem(this.player_, { 'kind': this.kind_ }));
+
+ tracks = this.player_.textTracks();
+
+ if (!tracks) {
+ return items;
+ }
+
+ for (var i = 0; i < tracks.length; i++) {
+ track = tracks[i];
+
+ // only add tracks that are of the appropriate kind and have a label
+ if (track['kind'] === this.kind_) {
+ items.push(new vjs.TextTrackMenuItem(this.player_, {
+ 'track': track
+ }));
+ }
+ }
+
+ return items;
+};
+
+/**
+ * The button component for toggling and selecting captions
+ *
+ * @constructor
+ */
+vjs.CaptionsButton = vjs.TextTrackButton.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.TextTrackButton.call(this, player, options, ready);
+ this.el_.setAttribute('aria-label','Captions Menu');
+ }
+});
+vjs.CaptionsButton.prototype.kind_ = 'captions';
+vjs.CaptionsButton.prototype.buttonText = 'Captions';
+vjs.CaptionsButton.prototype.className = 'vjs-captions-button';
+
+vjs.CaptionsButton.prototype.update = function() {
+ var threshold = 2;
+ vjs.TextTrackButton.prototype.update.call(this);
+
+ // if native, then threshold is 1 because no settings button
+ if (this.player().tech && this.player().tech['featuresNativeTextTracks']) {
+ threshold = 1;
+ }
+
+ if (this.items && this.items.length > threshold) {
+ this.show();
+ } else {
+ this.hide();
+ }
+};
+
+/**
+ * The button component for toggling and selecting subtitles
+ *
+ * @constructor
+ */
+vjs.SubtitlesButton = vjs.TextTrackButton.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.TextTrackButton.call(this, player, options, ready);
+ this.el_.setAttribute('aria-label','Subtitles Menu');
+ }
+});
+vjs.SubtitlesButton.prototype.kind_ = 'subtitles';
+vjs.SubtitlesButton.prototype.buttonText = 'Subtitles';
+vjs.SubtitlesButton.prototype.className = 'vjs-subtitles-button';
+
+// Chapters act much differently than other text tracks
+// Cues are navigation vs. other tracks of alternative languages
+/**
+ * The button component for toggling and selecting chapters
+ *
+ * @constructor
+ */
+vjs.ChaptersButton = vjs.TextTrackButton.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.TextTrackButton.call(this, player, options, ready);
+ this.el_.setAttribute('aria-label','Chapters Menu');
+ }
+});
+vjs.ChaptersButton.prototype.kind_ = 'chapters';
+vjs.ChaptersButton.prototype.buttonText = 'Chapters';
+vjs.ChaptersButton.prototype.className = 'vjs-chapters-button';
+
+// Create a menu item for each text track
+vjs.ChaptersButton.prototype.createItems = function(){
+ var items = [], track, tracks;
+
+ tracks = this.player_.textTracks();
+
+ if (!tracks) {
+ return items;
+ }
+
+ for (var i = 0; i < tracks.length; i++) {
+ track = tracks[i];
+ if (track['kind'] === this.kind_) {
+ items.push(new vjs.TextTrackMenuItem(this.player_, {
+ 'track': track
+ }));
+ }
+ }
+
+ return items;
+};
+
+vjs.ChaptersButton.prototype.createMenu = function(){
+ var tracks = this.player_.textTracks() || [],
+ i = 0,
+ l = tracks.length,
+ track, chaptersTrack,
+ items = this.items = [];
+
+ for (; i < l; i++) {
+ track = tracks[i];
+ if (track['kind'] == this.kind_) {
+ if (!track.cues) {
+ track['mode'] = 'hidden';
+ /* jshint loopfunc:true */
+ // TODO see if we can figure out a better way of doing this https://github.com/videojs/video.js/issues/1864
+ window.setTimeout(vjs.bind(this, function() {
+ this.createMenu();
+ }), 100);
+ /* jshint loopfunc:false */
+ } else {
+ chaptersTrack = track;
+ break;
+ }
+ }
+ }
+
+ var menu = this.menu;
+ if (menu === undefined) {
+ menu = new vjs.Menu(this.player_);
+ menu.contentEl().appendChild(vjs.createEl('li', {
+ className: 'vjs-menu-title',
+ innerHTML: vjs.capitalize(this.kind_),
+ tabindex: -1
+ }));
+ }
+
+ if (chaptersTrack) {
+ var cues = chaptersTrack['cues'], cue, mi;
+ i = 0;
+ l = cues.length;
+
+ for (; i < l; i++) {
+ cue = cues[i];
+
+ mi = new vjs.ChaptersTrackMenuItem(this.player_, {
+ 'track': chaptersTrack,
+ 'cue': cue
+ });
+
+ items.push(mi);
+
+ menu.addChild(mi);
+ }
+ this.addChild(menu);
+ }
+
+ if (this.items.length > 0) {
+ this.show();
+ }
+
+ return menu;
+};
+
+
+/**
+ * @constructor
+ */
+vjs.ChaptersTrackMenuItem = vjs.MenuItem.extend({
+ /** @constructor */
+ init: function(player, options){
+ var track = this.track = options['track'],
+ cue = this.cue = options['cue'],
+ currentTime = player.currentTime();
+
+ // Modify options for parent MenuItem class's init.
+ options['label'] = cue.text;
+ options['selected'] = (cue['startTime'] <= currentTime && currentTime < cue['endTime']);
+ vjs.MenuItem.call(this, player, options);
+
+ track.addEventListener('cuechange', vjs.bind(this, this.update));
+ }
+});
+
+vjs.ChaptersTrackMenuItem.prototype.onClick = function(){
+ vjs.MenuItem.prototype.onClick.call(this);
+ this.player_.currentTime(this.cue.startTime);
+ this.update(this.cue.startTime);
+};
+
+vjs.ChaptersTrackMenuItem.prototype.update = function(){
+ var cue = this.cue,
+ currentTime = this.player_.currentTime();
+
+ // vjs.log(currentTime, cue.startTime);
+ this.selected(cue['startTime'] <= currentTime && currentTime < cue['endTime']);
+};
+})();
+(function() {
+ 'use strict';
+
+ vjs.TextTrackSettings = vjs.Component.extend({
+ init: function(player, options) {
+ vjs.Component.call(this, player, options);
+ this.hide();
+
+ vjs.on(this.el().querySelector('.vjs-done-button'), 'click', vjs.bind(this, function() {
+ this.saveSettings();
+ this.hide();
+ }));
+
+ vjs.on(this.el().querySelector('.vjs-default-button'), 'click', vjs.bind(this, function() {
+ this.el().querySelector('.vjs-fg-color > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-bg-color > select').selectedIndex = 0;
+ this.el().querySelector('.window-color > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-text-opacity > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-bg-opacity > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-window-opacity > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-edge-style select').selectedIndex = 0;
+ this.el().querySelector('.vjs-font-family select').selectedIndex = 0;
+ this.el().querySelector('.vjs-font-percent select').selectedIndex = 2;
+ this.updateDisplay();
+ }));
+
+ vjs.on(this.el().querySelector('.vjs-fg-color > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-bg-color > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.window-color > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-text-opacity > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-bg-opacity > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-window-opacity > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-font-percent select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-edge-style select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-font-family select'), 'change', vjs.bind(this, this.updateDisplay));
+
+ if (player.options()['persistTextTrackSettings']) {
+ this.restoreSettings();
+ }
+ }
+ });
+
+ vjs.TextTrackSettings.prototype.createEl = function() {
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-caption-settings vjs-modal-overlay',
+ innerHTML: captionOptionsMenuTemplate()
+ });
+ };
+
+ vjs.TextTrackSettings.prototype.getValues = function() {
+ var el, bgOpacity, textOpacity, windowOpacity, textEdge, fontFamily, fgColor, bgColor, windowColor, result, name, fontPercent;
+
+ el = this.el();
+
+ textEdge = getSelectedOptionValue(el.querySelector('.vjs-edge-style select'));
+ fontFamily = getSelectedOptionValue(el.querySelector('.vjs-font-family select'));
+ fgColor = getSelectedOptionValue(el.querySelector('.vjs-fg-color > select'));
+ textOpacity = getSelectedOptionValue(el.querySelector('.vjs-text-opacity > select'));
+ bgColor = getSelectedOptionValue(el.querySelector('.vjs-bg-color > select'));
+ bgOpacity = getSelectedOptionValue(el.querySelector('.vjs-bg-opacity > select'));
+ windowColor = getSelectedOptionValue(el.querySelector('.window-color > select'));
+ windowOpacity = getSelectedOptionValue(el.querySelector('.vjs-window-opacity > select'));
+ fontPercent = window['parseFloat'](getSelectedOptionValue(el.querySelector('.vjs-font-percent > select')));
+
+ result = {
+ 'backgroundOpacity': bgOpacity,
+ 'textOpacity': textOpacity,
+ 'windowOpacity': windowOpacity,
+ 'edgeStyle': textEdge,
+ 'fontFamily': fontFamily,
+ 'color': fgColor,
+ 'backgroundColor': bgColor,
+ 'windowColor': windowColor,
+ 'fontPercent': fontPercent
+ };
+ for (name in result) {
+ if (result[name] === '' || result[name] === 'none' || (name === 'fontPercent' && result[name] === 1.00)) {
+ delete result[name];
+ }
+ }
+ return result;
+ };
+
+ vjs.TextTrackSettings.prototype.setValues = function(values) {
+ var el = this.el(), fontPercent;
+
+ setSelectedOption(el.querySelector('.vjs-edge-style select'), values.edgeStyle);
+ setSelectedOption(el.querySelector('.vjs-font-family select'), values.fontFamily);
+ setSelectedOption(el.querySelector('.vjs-fg-color > select'), values.color);
+ setSelectedOption(el.querySelector('.vjs-text-opacity > select'), values.textOpacity);
+ setSelectedOption(el.querySelector('.vjs-bg-color > select'), values.backgroundColor);
+ setSelectedOption(el.querySelector('.vjs-bg-opacity > select'), values.backgroundOpacity);
+ setSelectedOption(el.querySelector('.window-color > select'), values.windowColor);
+ setSelectedOption(el.querySelector('.vjs-window-opacity > select'), values.windowOpacity);
+
+ fontPercent = values.fontPercent;
+
+ if (fontPercent) {
+ fontPercent = fontPercent.toFixed(2);
+ }
+
+ setSelectedOption(el.querySelector('.vjs-font-percent > select'), fontPercent);
+ };
+
+ vjs.TextTrackSettings.prototype.restoreSettings = function() {
+ var values;
+ try {
+ values = JSON.parse(window.localStorage.getItem('vjs-text-track-settings'));
+ } catch (e) {}
+
+ if (values) {
+ this.setValues(values);
+ }
+ };
+
+ vjs.TextTrackSettings.prototype.saveSettings = function() {
+ var values;
+
+ if (!this.player_.options()['persistTextTrackSettings']) {
+ return;
+ }
+
+ values = this.getValues();
+ try {
+ if (!vjs.isEmpty(values)) {
+ window.localStorage.setItem('vjs-text-track-settings', JSON.stringify(values));
+ } else {
+ window.localStorage.removeItem('vjs-text-track-settings');
+ }
+ } catch (e) {}
+ };
+
+ vjs.TextTrackSettings.prototype.updateDisplay = function() {
+ var ttDisplay = this.player_.getChild('textTrackDisplay');
+ if (ttDisplay) {
+ ttDisplay.updateDisplay();
+ }
+ };
+
+ function getSelectedOptionValue(target) {
+ var selectedOption;
+ // not all browsers support selectedOptions, so, fallback to options
+ if (target.selectedOptions) {
+ selectedOption = target.selectedOptions[0];
+ } else if (target.options) {
+ selectedOption = target.options[target.options.selectedIndex];
+ }
+
+ return selectedOption.value;
+ }
+
+ function setSelectedOption(target, value) {
+ var i, option;
+
+ if (!value) {
+ return;
+ }
+
+ for (i = 0; i < target.options.length; i++) {
+ option = target.options[i];
+ if (option.value === value) {
+ break;
+ }
+ }
+
+ target.selectedIndex = i;
+ }
+
+ function captionOptionsMenuTemplate() {
+ return '' +
+ '
' +
+ '
' +
+ 'Foreground ' +
+ '' +
+ '--- ' +
+ 'White ' +
+ 'Black ' +
+ 'Red ' +
+ 'Green ' +
+ 'Blue ' +
+ 'Yellow ' +
+ 'Magenta ' +
+ 'Cyan ' +
+ ' ' +
+ '' +
+ '' +
+ '--- ' +
+ 'Opaque ' +
+ 'Semi-Opaque ' +
+ ' ' +
+ ' ' +
+ '
' + // vjs-fg-color
+ '
' +
+ 'Background ' +
+ '' +
+ '--- ' +
+ 'White ' +
+ 'Black ' +
+ 'Red ' +
+ 'Green ' +
+ 'Blue ' +
+ 'Yellow ' +
+ 'Magenta ' +
+ 'Cyan ' +
+ ' ' +
+ '' +
+ '' +
+ '--- ' +
+ 'Opaque ' +
+ 'Semi-Transparent ' +
+ 'Transparent ' +
+ ' ' +
+ ' ' +
+ '
' + // vjs-bg-color
+ '
' +
+ 'Window ' +
+ '' +
+ '--- ' +
+ 'White ' +
+ 'Black ' +
+ 'Red ' +
+ 'Green ' +
+ 'Blue ' +
+ 'Yellow ' +
+ 'Magenta ' +
+ 'Cyan ' +
+ ' ' +
+ '' +
+ '' +
+ '--- ' +
+ 'Opaque ' +
+ 'Semi-Transparent ' +
+ 'Transparent ' +
+ ' ' +
+ ' ' +
+ '
' + // vjs-window-color
+ '
' + // vjs-tracksettings
+ '
' +
+ '
' +
+ 'Font Size ' +
+ '' +
+ '50% ' +
+ '75% ' +
+ '100% ' +
+ '125% ' +
+ '150% ' +
+ '175% ' +
+ '200% ' +
+ '300% ' +
+ '400% ' +
+ ' ' +
+ '
' + // vjs-font-percent
+ '
' +
+ 'Text Edge Style ' +
+ '' +
+ 'None ' +
+ 'Raised ' +
+ 'Depressed ' +
+ 'Uniform ' +
+ 'Dropshadow ' +
+ ' ' +
+ '
' + // vjs-edge-style
+ '
' +
+ 'Font Family ' +
+ '' +
+ 'Default ' +
+ 'Monospace Serif ' +
+ 'Proportional Serif ' +
+ 'Monospace Sans-Serif ' +
+ 'Proportional Sans-Serif ' +
+ 'Casual ' +
+ 'Script ' +
+ 'Small Caps ' +
+ ' ' +
+ '
' + // vjs-font-family
+ '
' +
+ '
' +
+ '' +
+ 'Defaults ' +
+ 'Done ' +
+ '
';
+ }
+
+})();
+/**
+ * @fileoverview Add JSON support
+ * @suppress {undefinedVars}
+ * (Compiler doesn't like JSON not being declared)
+ */
+
+/**
+ * Javascript JSON implementation
+ * (Parse Method Only)
+ * https://github.com/douglascrockford/JSON-js/blob/master/json2.js
+ * Only using for parse method when parsing data-setup attribute JSON.
+ * @suppress {undefinedVars}
+ * @namespace
+ * @private
+ */
+vjs.JSON;
+
+if (typeof window.JSON !== 'undefined' && typeof window.JSON.parse === 'function') {
+ vjs.JSON = window.JSON;
+
+} else {
+ vjs.JSON = {};
+
+ var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
+
+ /**
+ * parse the json
+ *
+ * @memberof vjs.JSON
+ * @param {String} text The JSON string to parse
+ * @param {Function=} [reviver] Optional function that can transform the results
+ * @return {Object|Array} The parsed JSON
+ */
+ vjs.JSON.parse = function (text, reviver) {
+ var j;
+
+ function walk(holder, key) {
+ var k, v, value = holder[key];
+ if (value && typeof value === 'object') {
+ for (k in value) {
+ if (Object.prototype.hasOwnProperty.call(value, k)) {
+ v = walk(value, k);
+ if (v !== undefined) {
+ value[k] = v;
+ } else {
+ delete value[k];
+ }
+ }
+ }
+ }
+ return reviver.call(holder, key, value);
+ }
+ text = String(text);
+ cx.lastIndex = 0;
+ if (cx.test(text)) {
+ text = text.replace(cx, function (a) {
+ return '\\u' +
+ ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
+ });
+ }
+
+ if (/^[\],:{}\s]*$/
+ .test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')
+ .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']')
+ .replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
+
+ j = eval('(' + text + ')');
+
+ return typeof reviver === 'function' ?
+ walk({'': j}, '') : j;
+ }
+
+ throw new SyntaxError('JSON.parse(): invalid or malformed JSON data');
+ };
+}
+/**
+ * @fileoverview Functions for automatically setting up a player
+ * based on the data-setup attribute of the video tag
+ */
+
+// Automatically set up any tags that have a data-setup attribute
+vjs.autoSetup = function(){
+ var options, mediaEl, player, i, e;
+
+ // One day, when we stop supporting IE8, go back to this, but in the meantime...*hack hack hack*
+ // var vids = Array.prototype.slice.call(document.getElementsByTagName('video'));
+ // var audios = Array.prototype.slice.call(document.getElementsByTagName('audio'));
+ // var mediaEls = vids.concat(audios);
+
+ // Because IE8 doesn't support calling slice on a node list, we need to loop through each list of elements
+ // to build up a new, combined list of elements.
+ var vids = document.getElementsByTagName('video');
+ var audios = document.getElementsByTagName('audio');
+ var mediaEls = [];
+ if (vids && vids.length > 0) {
+ for(i=0, e=vids.length; i 0) {
+ for(i=0, e=audios.length; i 0) {
+
+ for (i=0,e=mediaEls.length; it.hc;t.jc=/Firefox/i.test(t.P);t.lf=/Chrome/i.test(t.P);t.oa=/MSIE\s8\.0/.test(t.P);t.Eb=!!("ontouchstart"in window||window.xd&&document instanceof window.xd);t.wd="backgroundSize"in t.A.style;
+t.ed=function(a,c){t.i.da(c,function(c,e){e===j||"undefined"===typeof e||e===l?a.removeAttribute(c):a.setAttribute(c,e===f?"":e)})};t.Na=function(a){var c,d,e,g;c={};if(a&&a.attributes&&0e?"0"+e:e)+":")+(10>d?"0"+d:d)};t.Ld=function(){document.body.focus();document.onselectstart=q(l)};t.af=function(){document.onselectstart=q(f)};t.trim=function(a){return(a+"").replace(/^\s+|\s+$/g,"")};t.round=function(a,c){c||(c=0);return Math.round(a*Math.pow(10,c))/Math.pow(10,c)};
+t.Lb=function(a,c){return{length:1,start:function(){return a},end:function(){return c}}};t.Me=function(a){try{var c=window.localStorage||l;c&&(c.volume=a)}catch(d){22==d.code||1014==d.code?t.log("LocalStorage Full (VideoJS)",d):18==d.code?t.log("LocalStorage not allowed (VideoJS)",d):t.log("LocalStorage Error (VideoJS)",d)}};t.$d=function(a){a.match(/^https?:\/\//)||(a=t.e("div",{innerHTML:'x '}).firstChild.href);return a};
+t.Ee=function(a){var c,d,e,g;g="protocol hostname port pathname search hash host".split(" ");d=t.e("a",{href:a});if(e=""===d.host&&"file:"!==d.protocol)c=t.e("div"),c.innerHTML=' ',d=c.firstChild,c.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(c);a={};for(var h=0;he&&(a.preventDefault(),this.o("tap")))})}
+s.setTimeout=function(a,c){function d(){this.clearTimeout(e)}a=t.bind(this,a);var e=setTimeout(a,c);d.s="vjs-timeout-"+e;this.b("dispose",d);return e};s.clearTimeout=function(a){function c(){}clearTimeout(a);c.s="vjs-timeout-"+a;this.n("dispose",c);return a};s.setInterval=function(a,c){function d(){this.clearInterval(e)}a=t.bind(this,a);var e=setInterval(a,c);d.s="vjs-interval-"+e;this.b("dispose",d);return e};
+s.clearInterval=function(a){function c(){}clearInterval(a);c.s="vjs-interval-"+a;this.n("dispose",c);return a};t.w=t.a.extend({l:function(a,c){t.a.call(this,a,c);da(this);this.b("tap",this.u);this.b("click",this.u);this.b("focus",this.lb);this.b("blur",this.kb)}});s=t.w.prototype;
+s.e=function(a,c){var d;c=t.i.D({className:this.T(),role:"button","aria-live":"polite",tabIndex:0},c);d=t.a.prototype.e.call(this,a,c);c.innerHTML||(this.B=t.e("div",{className:"vjs-control-content"}),this.Jb=t.e("span",{className:"vjs-control-text",innerHTML:this.v(this.sa)||"Need Text"}),this.B.appendChild(this.Jb),d.appendChild(this.B));return d};s.T=function(){return"vjs-control "+t.a.prototype.T.call(this)};s.u=m();s.lb=function(){t.b(document,"keydown",t.bind(this,this.ja))};
+s.ja=function(a){if(32==a.which||13==a.which)a.preventDefault(),this.u()};s.kb=function(){t.n(document,"keydown",t.bind(this,this.ja))};t.S=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.Kd=this.ea(this.q.barName);this.handle=this.ea(this.q.handleName);this.b("mousedown",this.mb);this.b("touchstart",this.mb);this.b("focus",this.lb);this.b("blur",this.kb);this.b("click",this.u);this.b(a,"controlsvisible",this.update);this.b(a,this.Yc,this.update)}});s=t.S.prototype;
+s.e=function(a,c){c=c||{};c.className+=" vjs-slider";c=t.i.D({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},c);return t.a.prototype.e.call(this,a,c)};s.mb=function(a){a.preventDefault();t.Ld();this.p("vjs-sliding");this.b(document,"mousemove",this.ka);this.b(document,"mouseup",this.za);this.b(document,"touchmove",this.ka);this.b(document,"touchend",this.za);this.ka(a)};s.ka=m();
+s.za=function(){t.af();this.r("vjs-sliding");this.n(document,"mousemove",this.ka);this.n(document,"mouseup",this.za);this.n(document,"touchmove",this.ka);this.n(document,"touchend",this.za);this.update()};s.update=function(){if(this.c){var a,c=this.Sb(),d=this.handle,e=this.Kd;if("number"!==typeof c||c!==c||0>c||Infinity===c)c=0;a=c;if(d){a=this.c.offsetWidth;var g=d.m().offsetWidth;a=g?g/a:0;c*=1-a;a=c+a/2;d.m().style.left=t.round(100*c,2)+"%"}e&&(e.m().style.width=t.round(100*a,2)+"%")}};
+function ea(a,c){var d,e,g,h;d=a.c;e=t.Yd(d);h=g=d.offsetWidth;d=a.handle;if(a.options().vertical)return h=e.top,e=c.changedTouches?c.changedTouches[0].pageY:c.pageY,d&&(d=d.m().offsetHeight,h+=d/2,g-=d),Math.max(0,Math.min(1,(h-e+g)/g));g=e.left;e=c.changedTouches?c.changedTouches[0].pageX:c.pageX;d&&(d=d.m().offsetWidth,g+=d/2,h-=d);return Math.max(0,Math.min(1,(e-g)/h))}s.lb=function(){this.b(document,"keydown",this.ja)};
+s.ja=function(a){if(37==a.which||40==a.which)a.preventDefault(),this.jd();else if(38==a.which||39==a.which)a.preventDefault(),this.kd()};s.kb=function(){this.n(document,"keydown",this.ja)};s.u=function(a){a.stopImmediatePropagation();a.preventDefault()};t.ga=t.a.extend();t.ga.prototype.defaultValue=0;t.ga.prototype.e=function(a,c){c=c||{};c.className+=" vjs-slider-handle";c=t.i.D({innerHTML:''+this.defaultValue+" "},c);return t.a.prototype.e.call(this,"div",c)};
+t.pa=t.a.extend();function fa(a,c){a.ba(c);c.b("click",t.bind(a,function(){G(this)}))}t.pa.prototype.e=function(){var a=this.options().Cc||"ul";this.B=t.e(a,{className:"vjs-menu-content"});a=t.a.prototype.e.call(this,"div",{append:this.B,className:"vjs-menu"});a.appendChild(this.B);t.b(a,"click",function(a){a.preventDefault();a.stopImmediatePropagation()});return a};t.M=t.w.extend({l:function(a,c){t.w.call(this,a,c);this.selected(c.selected)}});
+t.M.prototype.e=function(a,c){return t.w.prototype.e.call(this,"li",t.i.D({className:"vjs-menu-item",innerHTML:this.v(this.q.label)},c))};t.M.prototype.u=function(){this.selected(f)};t.M.prototype.selected=function(a){a?(this.p("vjs-selected"),this.c.setAttribute("aria-selected",f)):(this.r("vjs-selected"),this.c.setAttribute("aria-selected",l))};
+t.O=t.w.extend({l:function(a,c){t.w.call(this,a,c);this.update();this.b("keydown",this.ja);this.c.setAttribute("aria-haspopup",f);this.c.setAttribute("role","button")}});s=t.O.prototype;s.update=function(){var a=this.Ja();this.xa&&this.removeChild(this.xa);this.xa=a;this.ba(a);this.H&&0===this.H.length?this.X():this.H&&1a&&(a=Infinity),this.duration(a),Infinity===a?this.p("vjs-live"):this.r("vjs-live"))};s.we=function(){this.isFullscreen()?this.p("vjs-fullscreen"):this.r("vjs-fullscreen")};
+function N(a,c,d){if(a.h&&!a.h.wa)a.h.I(function(){this[c](d)});else try{a.h[c](d)}catch(e){throw t.log(e),e;}}function M(a,c){if(a.h&&a.h.wa)try{return a.h[c]()}catch(d){throw a.h[c]===b?t.log("Video.js: "+c+" method not defined for "+a.Ua+" playback technology.",d):"TypeError"==d.name?(t.log("Video.js: "+c+" unavailable on "+a.Ua+" playback technology element.",d),a.h.wa=l):t.log(d),d;}}s.play=function(){N(this,"play");return this};s.pause=function(){N(this,"pause");return this};
+s.paused=function(){return M(this,"paused")===l?l:f};s.currentTime=function(a){return a!==b?(N(this,"setCurrentTime",a),this):this.K.currentTime=M(this,"currentTime")||0};s.duration=function(a){if(a!==b)return this.K.duration=parseFloat(a),this;this.K.duration===b&&this.Wc();return this.K.duration||0};s.remainingTime=function(){return this.duration()-this.currentTime()};s.buffered=function(){var a=M(this,"buffered");if(!a||!a.length)a=t.Lb(0,0);return a};
+s.bufferedPercent=function(){var a=this.duration(),c=this.buffered(),d=0,e,g;if(!a)return 0;for(var h=0;ha&&(g=a),d+=g-e;return d/a};s.volume=function(a){if(a!==b)return a=Math.max(0,Math.min(1,parseFloat(a))),this.K.volume=a,N(this,"setVolume",a),t.Me(a),this;a=parseFloat(M(this,"volume"));return isNaN(a)?1:a};s.muted=function(a){return a!==b?(N(this,"setMuted",a),this):M(this,"muted")||l};s.Ta=function(){return M(this,"supportsFullScreen")||l};s.Qc=l;
+s.isFullscreen=function(a){return a!==b?(this.Qc=!!a,this):this.Qc};s.isFullScreen=function(a){t.log.warn('player.isFullScreen() has been deprecated, use player.isFullscreen() with a lowercase "s")');return this.isFullscreen(a)};
+s.requestFullscreen=function(){var a=t.cb.Rb;this.isFullscreen(f);a?(t.b(document,a.fullscreenchange,t.bind(this,function(c){this.isFullscreen(document[a.fullscreenElement]);this.isFullscreen()===l&&t.n(document,a.fullscreenchange,arguments.callee);this.o("fullscreenchange")})),this.c[a.requestFullscreen]()):this.h.Ta()?N(this,"enterFullScreen"):(this.Jc(),this.o("fullscreenchange"));return this};
+s.requestFullScreen=function(){t.log.warn('player.requestFullScreen() has been deprecated, use player.requestFullscreen() with a lowercase "s")');return this.requestFullscreen()};s.exitFullscreen=function(){var a=t.cb.Rb;this.isFullscreen(l);if(a)document[a.exitFullscreen]();else this.h.Ta()?N(this,"exitFullScreen"):(this.Nb(),this.o("fullscreenchange"));return this};s.cancelFullScreen=function(){t.log.warn("player.cancelFullScreen() has been deprecated, use player.exitFullscreen()");return this.exitFullscreen()};
+s.Jc=function(){this.je=f;this.Ud=document.documentElement.style.overflow;t.b(document,"keydown",t.bind(this,this.Kc));document.documentElement.style.overflow="hidden";t.p(document.body,"vjs-full-window");this.o("enterFullWindow")};s.Kc=function(a){27===a.keyCode&&(this.isFullscreen()===f?this.exitFullscreen():this.Nb())};s.Nb=function(){this.je=l;t.n(document,"keydown",this.Kc);document.documentElement.style.overflow=this.Ud;t.r(document.body,"vjs-full-window");this.o("exitFullWindow")};
+s.selectSource=function(a){for(var c=0,d=this.q.techOrder;c'+this.v("Stream Type")+""+this.v("LIVE"),"aria-live":"off"});a.appendChild(this.B);return a};t.nc=t.w.extend({l:function(a,c){t.w.call(this,a,c);this.b(a,"play",this.$b);this.b(a,"pause",this.Zb)}});s=t.nc.prototype;s.sa="Play";
+s.T=function(){return"vjs-play-control "+t.w.prototype.T.call(this)};s.u=function(){this.d.paused()?this.d.play():this.d.pause()};s.$b=function(){this.r("vjs-paused");this.p("vjs-playing");this.c.children[0].children[0].innerHTML=this.v("Pause")};s.Zb=function(){this.r("vjs-playing");this.p("vjs-paused");this.c.children[0].children[0].innerHTML=this.v("Play")};t.vb=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.b(a,"timeupdate",this.ma)}});
+t.vb.prototype.e=function(){var a=t.a.prototype.e.call(this,"div",{className:"vjs-current-time vjs-time-controls vjs-control"});this.B=t.e("div",{className:"vjs-current-time-display",innerHTML:'Current Time 0:00',"aria-live":"off"});a.appendChild(this.B);return a};t.vb.prototype.ma=function(){var a=this.d.ob?this.d.K.currentTime:this.d.currentTime();this.B.innerHTML=''+this.v("Current Time")+" "+t.Ma(a,this.d.duration())};
+t.wb=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.b(a,"timeupdate",this.ma)}});t.wb.prototype.e=function(){var a=t.a.prototype.e.call(this,"div",{className:"vjs-duration vjs-time-controls vjs-control"});this.B=t.e("div",{className:"vjs-duration-display",innerHTML:''+this.v("Duration Time")+" 0:00","aria-live":"off"});a.appendChild(this.B);return a};
+t.wb.prototype.ma=function(){var a=this.d.duration();a&&(this.B.innerHTML=''+this.v("Duration Time")+" "+t.Ma(a))};t.tc=t.a.extend({l:function(a,c){t.a.call(this,a,c)}});t.tc.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-time-divider",innerHTML:"/
"})};t.Db=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.b(a,"timeupdate",this.ma)}});
+t.Db.prototype.e=function(){var a=t.a.prototype.e.call(this,"div",{className:"vjs-remaining-time vjs-time-controls vjs-control"});this.B=t.e("div",{className:"vjs-remaining-time-display",innerHTML:''+this.v("Remaining Time")+" -0:00","aria-live":"off"});a.appendChild(this.B);return a};t.Db.prototype.ma=function(){this.d.duration()&&(this.B.innerHTML=''+this.v("Remaining Time")+" -"+t.Ma(this.d.remainingTime()))};
+t.Za=t.w.extend({l:function(a,c){t.w.call(this,a,c)}});t.Za.prototype.sa="Fullscreen";t.Za.prototype.T=function(){return"vjs-fullscreen-control "+t.w.prototype.T.call(this)};t.Za.prototype.u=function(){this.d.isFullscreen()?(this.d.exitFullscreen(),this.Jb.innerHTML=this.v("Fullscreen")):(this.d.requestFullscreen(),this.Jb.innerHTML=this.v("Non-Fullscreen"))};t.Cb=t.a.extend({l:function(a,c){t.a.call(this,a,c)}});t.Cb.prototype.q={children:{seekBar:{}}};
+t.Cb.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-progress-control vjs-control"})};t.qc=t.S.extend({l:function(a,c){t.S.call(this,a,c);this.b(a,"timeupdate",this.Ca);a.I(t.bind(this,this.Ca))}});s=t.qc.prototype;s.q={children:{loadProgressBar:{},playProgressBar:{},seekHandle:{}},barName:"playProgressBar",handleName:"seekHandle"};s.Yc="timeupdate";s.e=function(){return t.S.prototype.e.call(this,"div",{className:"vjs-progress-holder","aria-label":"video progress bar"})};
+s.Ca=function(){var a=this.d.ob?this.d.K.currentTime:this.d.currentTime();this.c.setAttribute("aria-valuenow",t.round(100*this.Sb(),2));this.c.setAttribute("aria-valuetext",t.Ma(a,this.d.duration()))};s.Sb=function(){return this.d.currentTime()/this.d.duration()};s.mb=function(a){t.S.prototype.mb.call(this,a);this.d.ob=f;this.d.p("vjs-scrubbing");this.df=!this.d.paused();this.d.pause()};s.ka=function(a){a=ea(this,a)*this.d.duration();a==this.d.duration()&&(a-=0.1);this.d.currentTime(a)};
+s.za=function(a){t.S.prototype.za.call(this,a);this.d.ob=l;this.d.r("vjs-scrubbing");this.df&&this.d.play()};s.kd=function(){this.d.currentTime(this.d.currentTime()+5)};s.jd=function(){this.d.currentTime(this.d.currentTime()-5)};t.zb=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.b(a,"progress",this.update)}});t.zb.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.v("Loaded")+" : 0% "})};
+t.zb.prototype.update=function(){var a,c,d,e,g=this.d.buffered();a=this.d.duration();var h,k=this.d;h=k.buffered();k=k.duration();h=h.end(h.length-1);h>k&&(h=k);k=this.c.children;this.c.style.width=100*(h/a||0)+"%";for(a=0;ag.length;a--)this.c.removeChild(k[a-1])};t.mc=t.a.extend({l:function(a,c){t.a.call(this,a,c)}});
+t.mc.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-play-progress",innerHTML:''+this.v("Progress")+" : 0% "})};t.$a=t.ga.extend({l:function(a,c){t.ga.call(this,a,c);this.b(a,"timeupdate",this.ma)}});t.$a.prototype.defaultValue="00:00";t.$a.prototype.e=function(){return t.ga.prototype.e.call(this,"div",{className:"vjs-seek-handle","aria-live":"off"})};
+t.$a.prototype.ma=function(){var a=this.d.ob?this.d.K.currentTime:this.d.currentTime();this.c.innerHTML=''+t.Ma(a,this.d.duration())+" "};t.Gb=t.a.extend({l:function(a,c){t.a.call(this,a,c);a.h&&a.h.featuresVolumeControl===l&&this.p("vjs-hidden");this.b(a,"loadstart",function(){a.h.featuresVolumeControl===l?this.p("vjs-hidden"):this.r("vjs-hidden")})}});t.Gb.prototype.q={children:{volumeBar:{}}};
+t.Gb.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-volume-control vjs-control"})};t.Fb=t.S.extend({l:function(a,c){t.S.call(this,a,c);this.b(a,"volumechange",this.Ca);a.I(t.bind(this,this.Ca))}});s=t.Fb.prototype;s.Ca=function(){this.c.setAttribute("aria-valuenow",t.round(100*this.d.volume(),2));this.c.setAttribute("aria-valuetext",t.round(100*this.d.volume(),2)+"%")};s.q={children:{volumeLevel:{},volumeHandle:{}},barName:"volumeLevel",handleName:"volumeHandle"};
+s.Yc="volumechange";s.e=function(){return t.S.prototype.e.call(this,"div",{className:"vjs-volume-bar","aria-label":"volume level"})};s.ka=function(a){this.d.muted()&&this.d.muted(l);this.d.volume(ea(this,a))};s.Sb=function(){return this.d.muted()?0:this.d.volume()};s.kd=function(){this.d.volume(this.d.volume()+0.1)};s.jd=function(){this.d.volume(this.d.volume()-0.1)};t.uc=t.a.extend({l:function(a,c){t.a.call(this,a,c)}});
+t.uc.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-volume-level",innerHTML:' '})};t.Hb=t.ga.extend();t.Hb.prototype.defaultValue="00:00";t.Hb.prototype.e=function(){return t.ga.prototype.e.call(this,"div",{className:"vjs-volume-handle"})};
+t.qa=t.w.extend({l:function(a,c){t.w.call(this,a,c);this.b(a,"volumechange",this.update);a.h&&a.h.featuresVolumeControl===l&&this.p("vjs-hidden");this.b(a,"loadstart",function(){a.h.featuresVolumeControl===l?this.p("vjs-hidden"):this.r("vjs-hidden")})}});t.qa.prototype.e=function(){return t.w.prototype.e.call(this,"div",{className:"vjs-mute-control vjs-control",innerHTML:''+this.v("Mute")+"
"})};
+t.qa.prototype.u=function(){this.d.muted(this.d.muted()?l:f)};t.qa.prototype.update=function(){var a=this.d.volume(),c=3;0===a||this.d.muted()?c=0:0.33>a?c=1:0.67>a&&(c=2);this.d.muted()?this.c.children[0].children[0].innerHTML!=this.v("Unmute")&&(this.c.children[0].children[0].innerHTML=this.v("Unmute")):this.c.children[0].children[0].innerHTML!=this.v("Mute")&&(this.c.children[0].children[0].innerHTML=this.v("Mute"));for(a=0;4>a;a++)t.r(this.c,"vjs-vol-"+a);t.p(this.c,"vjs-vol-"+c)};
+t.Fa=t.O.extend({l:function(a,c){t.O.call(this,a,c);this.b(a,"volumechange",this.ef);a.h&&a.h.featuresVolumeControl===l&&this.p("vjs-hidden");this.b(a,"loadstart",function(){a.h.featuresVolumeControl===l?this.p("vjs-hidden"):this.r("vjs-hidden")});this.p("vjs-menu-button")}});t.Fa.prototype.Ja=function(){var a=new t.pa(this.d,{Cc:"div"}),c=new t.Fb(this.d,this.q.volumeBar);c.b("focus",function(){a.p("vjs-lock-showing")});c.b("blur",function(){G(a)});a.ba(c);return a};
+t.Fa.prototype.u=function(){t.qa.prototype.u.call(this);t.O.prototype.u.call(this)};t.Fa.prototype.e=function(){return t.w.prototype.e.call(this,"div",{className:"vjs-volume-menu-button vjs-menu-button vjs-control",innerHTML:''+this.v("Mute")+"
"})};t.Fa.prototype.ef=t.qa.prototype.update;t.oc=t.O.extend({l:function(a,c){t.O.call(this,a,c);this.sd();this.rd();this.b(a,"loadstart",this.sd);this.b(a,"ratechange",this.rd)}});s=t.oc.prototype;s.sa="Playback Rate";
+s.className="vjs-playback-rate";s.e=function(){var a=t.O.prototype.e.call(this);this.Sc=t.e("div",{className:"vjs-playback-rate-value",innerHTML:1});a.appendChild(this.Sc);return a};s.Ja=function(){var a=new t.pa(this.k()),c=this.k().options().playbackRates;if(c)for(var d=c.length-1;0<=d;d--)a.ba(new t.Bb(this.k(),{rate:c[d]+"x"}));return a};s.Ca=function(){this.m().setAttribute("aria-valuenow",this.k().playbackRate())};
+s.u=function(){for(var a=this.k().playbackRate(),c=this.k().options().playbackRates,d=c[0],e=0;ea){d=c[e];break}this.k().playbackRate(d)};function na(a){return a.k().h&&a.k().h.featuresPlaybackRate&&a.k().options().playbackRates&&0',"aria-label":"play video"})};t.sb.prototype.u=function(){this.d.play()};t.xb=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.update();this.b(a,"error",this.update)}});
+t.xb.prototype.e=function(){var a=t.a.prototype.e.call(this,"div",{className:"vjs-error-display"});this.B=t.e("div");a.appendChild(this.B);return a};t.xb.prototype.update=function(){this.k().error()&&(this.B.innerHTML=this.v(this.k().error().message))};var O;t.j=t.a.extend({l:function(a,c,d){c=c||{};c.dd=l;t.a.call(this,a,c,d);this.featuresProgressEvents||this.re();this.featuresTimeupdateEvents||this.se();this.fe();this.featuresNativeTextTracks||this.Vd();this.he()}});s=t.j.prototype;
+s.fe=function(){var a,c;a=this.k();c=function(){a.controls()&&!a.usingNativeControls()&&this.Id()};this.I(c);this.b(a,"controlsenabled",c);this.b(a,"controlsdisabled",this.He);this.I(function(){this.networkState&&0 '});e=t.i.D({data:a,width:"100%",height:"100%"},e);t.i.da(e,function(a,c){k+=a+'="'+c+'" '});return'"+h+" "};t.g.Ue={"rtmp/mp4":"MP4","rtmp/flv":"FLV"};t.g.Hf=function(a,c){return a+"&"+c};
+t.g.Te=function(a){var c={Bc:"",md:""};if(!a)return c;var d=a.indexOf("&"),e;-1!==d?e=d+1:(d=e=a.lastIndexOf("/")+1,0===d&&(d=e=a.length));c.Bc=a.substring(0,d);c.md=a.substring(e,a.length);return c};t.g.me=function(a){return a in t.g.Ue};t.g.Gd=/^rtmp[set]?:\/\//i;t.g.le=function(a){return t.g.Gd.test(a)};t.g.ac={};t.g.ac.eb=function(a){return t.g.me(a.type)||t.g.le(a.src)?"maybe":""};t.g.ac.Tb=function(a,c){var d=t.g.Te(a.src);c.setRtmpConnection(d.Bc);c.setRtmpStream(d.md)};t.g.Ra(t.g.ac);
+t.Fd=t.a.extend({l:function(a,c,d){t.a.call(this,a,c,d);if(!a.q.sources||0===a.q.sources.length){c=0;for(d=a.q.techOrder;c=e?d.push(g):g.startTime===g.endTime&&(g.startTime<=e&&g.startTime+0.5>=e)&&d.push(g);A=l;if(d.length!==this.Ga.length)A=f;else for(a=0;a>>0;if(0===g)return-1;d=+c||0;Infinity===Math.abs(d)&&(d=0);if(d>=g)return-1;for(d=Math.max(0<=d?d:g-Math.abs(d),0);d=this.H.length&&this.X();d&&(e=t.bind(this,this.update),d.addEventListener("removetrack",e),d.addEventListener("addtrack",e),this.d.b("dispose",function(){d.removeEventListener("removetrack",e);d.removeEventListener("addtrack",e)}))}});
+t.Q.prototype.Ia=function(){var a=[],c,d;this instanceof t.na&&(!this.k().h||!this.k().h.featuresNativeTextTracks)&&a.push(new t.tb(this.d,{kind:this.fa}));a.push(new t.Ab(this.d,{kind:this.fa}));d=this.d.textTracks();if(!d)return a;for(var e=0;ea?this.show():this.X()};t.ab=t.Q.extend({l:function(a,c,d){t.Q.call(this,a,c,d);this.c.setAttribute("aria-label","Subtitles Menu")}});t.ab.prototype.fa="subtitles";t.ab.prototype.sa="Subtitles";t.ab.prototype.className="vjs-subtitles-button";
+t.Xa=t.Q.extend({l:function(a,c,d){t.Q.call(this,a,c,d);this.c.setAttribute("aria-label","Chapters Menu")}});s=t.Xa.prototype;s.fa="chapters";s.sa="Chapters";s.className="vjs-chapters-button";s.Ia=function(){var a=[],c,d;d=this.d.textTracks();if(!d)return a;for(var e=0;e select").selectedIndex=0;this.m().querySelector(".vjs-bg-color > select").selectedIndex=0;this.m().querySelector(".window-color > select").selectedIndex=0;this.m().querySelector(".vjs-text-opacity > select").selectedIndex=
+0;this.m().querySelector(".vjs-bg-opacity > select").selectedIndex=0;this.m().querySelector(".vjs-window-opacity > select").selectedIndex=0;this.m().querySelector(".vjs-edge-style select").selectedIndex=0;this.m().querySelector(".vjs-font-family select").selectedIndex=0;this.m().querySelector(".vjs-font-percent select").selectedIndex=2;this.C()}));t.b(this.m().querySelector(".vjs-fg-color > select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-bg-color > select"),"change",t.bind(this,
+this.C));t.b(this.m().querySelector(".window-color > select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-text-opacity > select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-bg-opacity > select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-window-opacity > select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-font-percent select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-edge-style select"),"change",t.bind(this,
+this.C));t.b(this.m().querySelector(".vjs-font-family select"),"change",t.bind(this,this.C));a.options().persistTextTrackSettings&&this.Ie()}});s=t.sc.prototype;s.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:'Foreground --- White Black Red Green Blue Yellow Magenta Cyan --- Opaque Semi-Opaque
Background --- White Black Red Green Blue Yellow Magenta Cyan --- Opaque Semi-Transparent Transparent
Window --- White Black Red Green Blue Yellow Magenta Cyan --- Opaque Semi-Transparent Transparent
Font Size 50% 75% 100% 125% 150% 175% 200% 300% 400%
Text Edge Style None Raised Depressed Uniform Dropshadow
Font Family Default Monospace Serif Proportional Serif Monospace Sans-Serif Proportional Sans-Serif Casual Script Small Caps
Defaults Done
'})};
+s.Lc=function(){var a,c,d,e,g,h,k,p,r,u;a=this.m();g=X(a.querySelector(".vjs-edge-style select"));h=X(a.querySelector(".vjs-font-family select"));k=X(a.querySelector(".vjs-fg-color > select"));d=X(a.querySelector(".vjs-text-opacity > select"));p=X(a.querySelector(".vjs-bg-color > select"));c=X(a.querySelector(".vjs-bg-opacity > select"));r=X(a.querySelector(".window-color > select"));e=X(a.querySelector(".vjs-window-opacity > select"));a=window.parseFloat(X(a.querySelector(".vjs-font-percent > select")));
+c={backgroundOpacity:c,textOpacity:d,windowOpacity:e,edgeStyle:g,fontFamily:h,color:k,backgroundColor:p,windowColor:r,fontPercent:a};for(u in c)(""===c[u]||"none"===c[u]||"fontPercent"===u&&1===c[u])&&delete c[u];return c};
+s.Re=function(a){var c=this.m();Y(c.querySelector(".vjs-edge-style select"),a.La);Y(c.querySelector(".vjs-font-family select"),a.fontFamily);Y(c.querySelector(".vjs-fg-color > select"),a.color);Y(c.querySelector(".vjs-text-opacity > select"),a.nd);Y(c.querySelector(".vjs-bg-color > select"),a.backgroundColor);Y(c.querySelector(".vjs-bg-opacity > select"),a.yc);Y(c.querySelector(".window-color > select"),a.fc);Y(c.querySelector(".vjs-window-opacity > select"),a.ud);(a=a.Qb)&&(a=a.toFixed(2));Y(c.querySelector(".vjs-font-percent > select"),
+a)};s.Ie=function(){var a;try{a=JSON.parse(window.localStorage.getItem("vjs-text-track-settings"))}catch(c){}a&&this.Re(a)};s.Je=function(){var a;if(this.d.options().persistTextTrackSettings){a=this.Lc();try{t.ib(a)?window.localStorage.removeItem("vjs-text-track-settings"):window.localStorage.setItem("vjs-text-track-settings",JSON.stringify(a))}catch(c){}}};s.C=function(){var a=this.d.ea("textTrackDisplay");a&&a.C()};
+if("undefined"!==typeof window.JSON&&"function"===typeof window.JSON.parse)t.JSON=window.JSON;else{t.JSON={};var Z=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;t.JSON.parse=function(a,c){function d(a,e){var k,p,r=a[e];if(r&&"object"===typeof r)for(k in r)Object.prototype.hasOwnProperty.call(r,k)&&(p=d(r,k),p!==b?r[k]=p:delete r[k]);return c.call(a,e,r)}var e;a=String(a);Z.lastIndex=0;Z.test(a)&&(a=a.replace(Z,function(a){return"\\u"+("0000"+
+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof c?d({"":e},""):e;throw new SyntaxError("JSON.parse(): invalid or malformed JSON data");}}
+t.xc=function(){var a,c,d,e;a=document.getElementsByTagName("video");c=document.getElementsByTagName("audio");var g=[];if(a&&0
+
+# vjs.BigPlayButton
+
+__EXTENDS__: [vjs.Button](vjs.Button.md)
+__DEFINED IN__: [src/js/big-play-button.js#L11](https://github.com/videojs/video.js/blob/master/src/js/big-play-button.js#L11)
+
+Initial play button. Shows before the video has played. The hiding of the
+big play button is done via CSS and player states.
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [init](#init-player-options-ready-) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // -> myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options, ready )
+> the constructor function for the class
+
+##### PARAMETERS:
+* __player__
+* __options__
+* __ready__
+
+_inherited from_: [src/js/button.js#L15](https://github.com/videojs/video.js/blob/master/src/js/button.js#L15)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.Button.md b/bower_components/video.js/docs/api/vjs.Button.md
new file mode 100644
index 0000000..162b87a
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.Button.md
@@ -0,0 +1,659 @@
+
+
+# vjs.Button
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/button.js#L10](https://github.com/videojs/video.js/blob/master/src/js/button.js#L10)
+
+Base class for all buttons
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-ready-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options, ready )
+> the constructor function for the class
+
+##### PARAMETERS:
+* __player__
+* __options__
+* __ready__
+
+_defined in_: [src/js/button.js#L15](https://github.com/videojs/video.js/blob/master/src/js/button.js#L15)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.CaptionsButton.md b/bower_components/video.js/docs/api/vjs.CaptionsButton.md
new file mode 100644
index 0000000..efa2ab7
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.CaptionsButton.md
@@ -0,0 +1,10 @@
+
+
+# vjs.CaptionsButton
+
+__DEFINED IN__: [src/js/tracks/text-track-controls.js#L401](https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-controls.js#L401)
+
+The button component for toggling and selecting captions
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.CaptionsTrack.md b/bower_components/video.js/docs/api/vjs.CaptionsTrack.md
new file mode 100644
index 0000000..d5fec74
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.CaptionsTrack.md
@@ -0,0 +1,793 @@
+
+
+# vjs.CaptionsTrack
+
+__EXTENDS__: [vjs.TextTrack](vjs.TextTrack.md)
+__DEFINED IN__: [src/js/tracks.js#L676](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L676)
+
+The track component for managing the hiding and showing of captions
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [activate](#activate) _`inherited`_
+ - [activeCues](#activecues) _`inherited`_
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel) _`inherited`_
+ - [cues](#cues) _`inherited`_
+ - [deactivate](#deactivate) _`inherited`_
+ - [dflt](#dflt) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [disable](#disable) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [init](#init-player-options-) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [kind](#kind) _`inherited`_
+ - [label](#label) _`inherited`_
+ - [language](#language) _`inherited`_
+ - [mode](#mode) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [readyState](#readystate) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [src](#src) _`inherited`_
+ - [title](#title) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### activate()
+> Turn on cue tracking. Tracks that are showing OR hidden are active.
+
+_inherited from_: [src/js/tracks.js#L375](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L375)
+
+---
+
+### activeCues()
+> Get the track active cues
+
+##### RETURNS:
+* `Array`
+
+_inherited from_: [src/js/tracks.js#L270](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L270)
+
+---
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1219](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1219)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1181](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1181)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl()
+> Create basic div to hold cue text
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/tracks.js#L315](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L315)
+
+---
+
+### cues()
+> Get the track cues
+
+##### RETURNS:
+* `Array`
+
+_inherited from_: [src/js/tracks.js#L255](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L255)
+
+---
+
+### deactivate()
+> Turn off cue tracking.
+
+_inherited from_: [src/js/tracks.js#L398](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L398)
+
+---
+
+### dflt()
+> Get the track default value. ('default' is a reserved keyword)
+
+##### RETURNS:
+* `Boolean`
+
+_inherited from_: [src/js/tracks.js#L196](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L196)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### disable()
+> Disable: Mode Off/Disable (0)
+> Indicates that the text track is not active. Other than for the purposes of exposing the track in the DOM, the user agent is ignoring the text track.
+> No cues are active, no events are fired, and the user agent will not attempt to obtain the track's cues.
+
+_inherited from_: [src/js/tracks.js#L361](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L361)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1120](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1120)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide: Mode Hidden (1)
+> Indicates that the text track is active, but that the user agent is not actively displaying the cues.
+> If no attempt has yet been made to obtain the track's cues, the user agent will perform such an attempt momentarily.
+> The user agent is maintaining a list of which cues are active, and events are being fired accordingly.
+
+_inherited from_: [src/js/tracks.js#L346](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L346)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_inherited from_: [src/js/tracks.js#L134](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L134)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### kind()
+> Get the track kind value
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/tracks.js#L167](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L167)
+
+---
+
+### label()
+> Get the track label value
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/tracks.js#L240](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L240)
+
+---
+
+### language()
+> Get the track language value
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/tracks.js#L225](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L225)
+
+---
+
+### mode()
+> Get the track mode
+
+##### RETURNS:
+* `Number`
+
+_inherited from_: [src/js/tracks.js#L307](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L307)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### readyState()
+> Get the track readyState
+
+##### RETURNS:
+* `Number`
+
+_inherited from_: [src/js/tracks.js#L289](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L289)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1198](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1198)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1158](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1158)
+
+---
+
+### show()
+> Show: Mode Showing (2)
+> Indicates that the text track is active. If no attempt has yet been made to obtain the track's cues, the user agent will perform such an attempt momentarily.
+> The user agent is maintaining a list of which cues are active, and events are being fired accordingly.
+> In addition, for text tracks whose kind is subtitles or captions, the cues are being displayed over the video as appropriate;
+> for text tracks whose kind is descriptions, the user agent is making the cues available to the user in a non-visual fashion;
+> and for text tracks whose kind is chapters, the user agent is making available to the user a mechanism by which the user can navigate to any point in the media resource by selecting a cue.
+> The showing by default state is used in conjunction with the default attribute on track elements to indicate that the text track was enabled due to that attribute.
+> This allows the user agent to override the state if a later track is discovered that is more appropriate per the user's preferences.
+
+_inherited from_: [src/js/tracks.js#L331](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L331)
+
+---
+
+### src()
+> Get the track src value
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/tracks.js#L181](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L181)
+
+---
+
+### title()
+> Get the track title value
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/tracks.js#L210](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L210)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.ChaptersButton.md b/bower_components/video.js/docs/api/vjs.ChaptersButton.md
new file mode 100644
index 0000000..b3fd88a
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.ChaptersButton.md
@@ -0,0 +1,10 @@
+
+
+# vjs.ChaptersButton
+
+__DEFINED IN__: [src/js/tracks/text-track-controls.js#L451](https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-controls.js#L451)
+
+The button component for toggling and selecting chapters
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.ChaptersTrack.md b/bower_components/video.js/docs/api/vjs.ChaptersTrack.md
new file mode 100644
index 0000000..382cf98
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.ChaptersTrack.md
@@ -0,0 +1,793 @@
+
+
+# vjs.ChaptersTrack
+
+__EXTENDS__: [vjs.TextTrack](vjs.TextTrack.md)
+__DEFINED IN__: [src/js/tracks.js#L694](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L694)
+
+The track component for managing the hiding and showing of chapters
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [activate](#activate) _`inherited`_
+ - [activeCues](#activecues) _`inherited`_
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel) _`inherited`_
+ - [cues](#cues) _`inherited`_
+ - [deactivate](#deactivate) _`inherited`_
+ - [dflt](#dflt) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [disable](#disable) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [init](#init-player-options-) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [kind](#kind) _`inherited`_
+ - [label](#label) _`inherited`_
+ - [language](#language) _`inherited`_
+ - [mode](#mode) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [readyState](#readystate) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [src](#src) _`inherited`_
+ - [title](#title) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### activate()
+> Turn on cue tracking. Tracks that are showing OR hidden are active.
+
+_inherited from_: [src/js/tracks.js#L375](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L375)
+
+---
+
+### activeCues()
+> Get the track active cues
+
+##### RETURNS:
+* `Array`
+
+_inherited from_: [src/js/tracks.js#L270](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L270)
+
+---
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1219](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1219)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1181](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1181)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl()
+> Create basic div to hold cue text
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/tracks.js#L315](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L315)
+
+---
+
+### cues()
+> Get the track cues
+
+##### RETURNS:
+* `Array`
+
+_inherited from_: [src/js/tracks.js#L255](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L255)
+
+---
+
+### deactivate()
+> Turn off cue tracking.
+
+_inherited from_: [src/js/tracks.js#L398](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L398)
+
+---
+
+### dflt()
+> Get the track default value. ('default' is a reserved keyword)
+
+##### RETURNS:
+* `Boolean`
+
+_inherited from_: [src/js/tracks.js#L196](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L196)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### disable()
+> Disable: Mode Off/Disable (0)
+> Indicates that the text track is not active. Other than for the purposes of exposing the track in the DOM, the user agent is ignoring the text track.
+> No cues are active, no events are fired, and the user agent will not attempt to obtain the track's cues.
+
+_inherited from_: [src/js/tracks.js#L361](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L361)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1120](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1120)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide: Mode Hidden (1)
+> Indicates that the text track is active, but that the user agent is not actively displaying the cues.
+> If no attempt has yet been made to obtain the track's cues, the user agent will perform such an attempt momentarily.
+> The user agent is maintaining a list of which cues are active, and events are being fired accordingly.
+
+_inherited from_: [src/js/tracks.js#L346](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L346)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_inherited from_: [src/js/tracks.js#L134](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L134)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### kind()
+> Get the track kind value
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/tracks.js#L167](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L167)
+
+---
+
+### label()
+> Get the track label value
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/tracks.js#L240](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L240)
+
+---
+
+### language()
+> Get the track language value
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/tracks.js#L225](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L225)
+
+---
+
+### mode()
+> Get the track mode
+
+##### RETURNS:
+* `Number`
+
+_inherited from_: [src/js/tracks.js#L307](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L307)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### readyState()
+> Get the track readyState
+
+##### RETURNS:
+* `Number`
+
+_inherited from_: [src/js/tracks.js#L289](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L289)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1198](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1198)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1158](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1158)
+
+---
+
+### show()
+> Show: Mode Showing (2)
+> Indicates that the text track is active. If no attempt has yet been made to obtain the track's cues, the user agent will perform such an attempt momentarily.
+> The user agent is maintaining a list of which cues are active, and events are being fired accordingly.
+> In addition, for text tracks whose kind is subtitles or captions, the cues are being displayed over the video as appropriate;
+> for text tracks whose kind is descriptions, the user agent is making the cues available to the user in a non-visual fashion;
+> and for text tracks whose kind is chapters, the user agent is making available to the user a mechanism by which the user can navigate to any point in the media resource by selecting a cue.
+> The showing by default state is used in conjunction with the default attribute on track elements to indicate that the text track was enabled due to that attribute.
+> This allows the user agent to override the state if a later track is discovered that is more appropriate per the user's preferences.
+
+_inherited from_: [src/js/tracks.js#L331](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L331)
+
+---
+
+### src()
+> Get the track src value
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/tracks.js#L181](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L181)
+
+---
+
+### title()
+> Get the track title value
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/tracks.js#L210](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L210)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.ChaptersTrackMenuItem.md b/bower_components/video.js/docs/api/vjs.ChaptersTrackMenuItem.md
new file mode 100644
index 0000000..f62158a
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.ChaptersTrackMenuItem.md
@@ -0,0 +1,8 @@
+
+
+# vjs.ChaptersTrackMenuItem
+
+__DEFINED IN__: [src/js/tracks/text-track-controls.js#L550](https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-controls.js#L550)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.Component.md b/bower_components/video.js/docs/api/vjs.Component.md
new file mode 100644
index 0000000..3b2e17a
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.Component.md
@@ -0,0 +1,679 @@
+
+
+# vjs.Component
+
+__EXTENDS__: [vjs.CoreObject](vjs.CoreObject.md)
+__DEFINED IN__: [src/js/component.js#L35](https://github.com/videojs/video.js/blob/master/src/js/component.js#L35)
+
+Base UI Component class
+
+Components are embeddable UI objects that are represented by both a
+javascript object and an element in the DOM. They can be children of other
+components, and can have many children themselves.
+
+ // adding a button to the player
+ var button = player.addChild('button');
+ button.el(); // -> button element
+
+
+
+Components are also event emitters.
+
+ button.on('click', function(){
+ console.log('Button Clicked!');
+ });
+
+ button.trigger('customevent');
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [addChild](#addchild-child-options-)
+ - [addClass](#addclass-classtoadd-)
+ - [buildCSSClass](#buildcssclass)
+ - [children](#children)
+ - [clearInterval](#clearinterval-intervalid-)
+ - [clearTimeout](#cleartimeout-timeoutid-)
+ - [contentEl](#contentel)
+ - [createEl](#createel-tagname-attributes-)
+ - [dimensions](#dimensions-width-height-)
+ - [dispose](#dispose)
+ - [el](#el)
+ - [enableTouchActivity](#enabletouchactivity)
+ - [getChild](#getchild-name-)
+ - [getChildById](#getchildbyid-id-)
+ - [hasClass](#hasclass-classtocheck-)
+ - [height](#height-num-skiplisteners-)
+ - [hide](#hide)
+ - [id](#id)
+ - [init](#init-player-options-ready-)
+ - [initChildren](#initchildren)
+ - [name](#name)
+ - [off](#off-first-second-third-)
+ - [on](#on-first-second-third-)
+ - [one](#one-first-second-third-)
+ - [options](#options-obj-)
+ - [player](#player)
+ - [ready](#ready-fn-)
+ - [removeChild](#removechild-component-)
+ - [removeClass](#removeclass-classtoremove-)
+ - [setInterval](#setinterval-fn-interval-)
+ - [setTimeout](#settimeout-fn-timeout-)
+ - [show](#show)
+ - [trigger](#trigger-event-)
+ - [triggerReady](#triggerready)
+ - [width](#width-num-skiplisteners-)
+
+- [EVENTS](#events)
+ - [resize](#resize-event)
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_defined in_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_defined in_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_defined in_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_defined in_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_defined in_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_defined in_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_defined in_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_defined in_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_defined in_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_defined in_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_defined in_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_defined in_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_defined in_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_defined in_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_defined in_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_defined in_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_defined in_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_defined in_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options, ready )
+> the constructor function for the class
+
+##### PARAMETERS:
+* __player__
+* __options__
+* __ready__
+
+_defined in_: [src/js/component.js#L41](https://github.com/videojs/video.js/blob/master/src/js/component.js#L41)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_defined in_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_defined in_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_defined in_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_defined in_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_defined in_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_defined in_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_defined in_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_defined in_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_defined in_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_defined in_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_defined in_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_defined in_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_defined in_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_defined in_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_defined in_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_defined in_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_defined in_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.ControlBar.md b/bower_components/video.js/docs/api/vjs.ControlBar.md
new file mode 100644
index 0000000..9840565
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.ControlBar.md
@@ -0,0 +1,659 @@
+
+
+# vjs.ControlBar
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/control-bar/control-bar.js#L9](https://github.com/videojs/video.js/blob/master/src/js/control-bar/control-bar.js#L9)
+
+Container of main controls
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [init](#init-player-options-ready-) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options, ready )
+> the constructor function for the class
+
+##### PARAMETERS:
+* __player__
+* __options__
+* __ready__
+
+_inherited from_: [src/js/component.js#L41](https://github.com/videojs/video.js/blob/master/src/js/component.js#L41)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.CoreObject.md b/bower_components/video.js/docs/api/vjs.CoreObject.md
new file mode 100644
index 0000000..3d677eb
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.CoreObject.md
@@ -0,0 +1,93 @@
+
+
+# vjs.CoreObject
+
+__DEFINED IN__: [src/js/core-object.js#L52](https://github.com/videojs/video.js/blob/master/src/js/core-object.js#L52)
+
+Core Object/Class for objects that use inheritance + constructors
+
+To create a class that can be subclassed itself, extend the CoreObject class.
+
+ var Animal = CoreObject.extend();
+ var Horse = Animal.extend();
+
+The constructor can be defined through the init property of an object argument.
+
+ var Animal = CoreObject.extend({
+ init: function(name, sound){
+ this.name = name;
+ }
+ });
+
+Other methods and properties can be added the same way, or directly to the
+prototype.
+
+ var Animal = CoreObject.extend({
+ init: function(name){
+ this.name = name;
+ },
+ getName: function(){
+ return this.name;
+ },
+ sound: '...'
+ });
+
+ Animal.prototype.makeSound = function(){
+ alert(this.sound);
+ };
+
+To create an instance of a class, use the create method.
+
+ var fluffy = Animal.create('Fluffy');
+ fluffy.getName(); // -> Fluffy
+
+Methods and properties can be overridden in subclasses.
+
+ var Horse = Animal.extend({
+ sound: 'Neighhhhh!'
+ });
+
+ var horsey = Horse.create('Horsey');
+ horsey.getName(); // -> Horsey
+ horsey.makeSound(); // -> Alert: Neighhhhh!
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [create](#create-static)
+ - [extend](#extend-props--static)
+
+---
+
+## METHODS
+
+### create() `STATIC`
+> Create a new instance of this Object class
+>
+> var myAnimal = Animal.create();
+
+##### RETURNS:
+* `vjs.CoreObject` An instance of a CoreObject subclass
+
+_defined in_: [src/js/core-object.js#L120](https://github.com/videojs/video.js/blob/master/src/js/core-object.js#L120)
+
+---
+
+### extend( props ) `STATIC`
+> Create a new object that inherits from this Object
+>
+> var Animal = CoreObject.extend();
+> var Horse = Animal.extend();
+
+##### PARAMETERS:
+* __props__ `Object` Functions and properties to be applied to the
+
+##### RETURNS:
+* `vjs.CoreObject` An object that inherits from CoreObject
+
+_defined in_: [src/js/core-object.js#L70](https://github.com/videojs/video.js/blob/master/src/js/core-object.js#L70)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.CurrentTimeDisplay.md b/bower_components/video.js/docs/api/vjs.CurrentTimeDisplay.md
new file mode 100644
index 0000000..0df2174
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.CurrentTimeDisplay.md
@@ -0,0 +1,657 @@
+
+
+# vjs.CurrentTimeDisplay
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/control-bar/time-display.js#L7](https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-display.js#L7)
+
+Displays the current time
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/control-bar/time-display.js#L9](https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-display.js#L9)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.DurationDisplay.md b/bower_components/video.js/docs/api/vjs.DurationDisplay.md
new file mode 100644
index 0000000..33d8119
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.DurationDisplay.md
@@ -0,0 +1,657 @@
+
+
+# vjs.DurationDisplay
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/control-bar/time-display.js#L43](https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-display.js#L43)
+
+Displays the duration
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/control-bar/time-display.js#L45](https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-display.js#L45)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.Flash.md b/bower_components/video.js/docs/api/vjs.Flash.md
new file mode 100644
index 0000000..4b18f21
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.Flash.md
@@ -0,0 +1,56 @@
+
+
+# vjs.Flash
+
+__EXTENDS__: [vjs.MediaTechController](vjs.MediaTechController.md)
+__DEFINED IN__: [src/js/media/flash.js#L15](https://github.com/videojs/video.js/blob/master/src/js/media/flash.js#L15)
+
+Flash Media Controller - Wrapper for fallback SWF API
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-ready-)
+
+- [UNDEFINED](#undefined)
+ - [nativeSourceHandler](#nativesourcehandler-static)
+ - [rtmpSourceHandler](#rtmpsourcehandler-static)
+
+---
+
+## METHODS
+
+### init( player, options, ready )
+
+##### PARAMETERS:
+* __player__
+* __options__
+* __ready__
+
+_defined in_: [src/js/media/flash.js#L17](https://github.com/videojs/video.js/blob/master/src/js/media/flash.js#L17)
+
+---
+
+## UNDEFINED
+
+### nativeSourceHandler `STATIC`
+> The default native source handler.
+> This simply passes the source to the video element. Nothing fancy.
+
+##### PARAMETERS:
+* __source__ `Object` The source object
+* __tech__ `vjs.Flash` The instance of the Flash tech
+
+_defined in_: [src/js/media/flash.js#L229](https://github.com/videojs/video.js/blob/master/src/js/media/flash.js#L229)
+
+---
+
+### rtmpSourceHandler `STATIC`
+> A source handler for RTMP urls
+
+_defined in_: [src/js/media/flash.rtmp.js#L58](https://github.com/videojs/video.js/blob/master/src/js/media/flash.rtmp.js#L58)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.FullscreenToggle.md b/bower_components/video.js/docs/api/vjs.FullscreenToggle.md
new file mode 100644
index 0000000..716a745
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.FullscreenToggle.md
@@ -0,0 +1,657 @@
+
+
+# vjs.FullscreenToggle
+
+__EXTENDS__: [vjs.Button](vjs.Button.md)
+__DEFINED IN__: [src/js/control-bar/fullscreen-toggle.js#L8](https://github.com/videojs/video.js/blob/master/src/js/control-bar/fullscreen-toggle.js#L8)
+
+Toggle fullscreen video
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/control-bar/fullscreen-toggle.js#L14](https://github.com/videojs/video.js/blob/master/src/js/control-bar/fullscreen-toggle.js#L14)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.Html5.md b/bower_components/video.js/docs/api/vjs.Html5.md
new file mode 100644
index 0000000..2fe1e70
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.Html5.md
@@ -0,0 +1,94 @@
+
+
+# vjs.Html5
+
+__EXTENDS__: [vjs.MediaTechController](vjs.MediaTechController.md)
+__DEFINED IN__: [src/js/media/html5.js#L12](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L12)
+
+HTML5 Media Controller - Wrapper for HTML5 Media API
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [canControlPlaybackRate](#cancontrolplaybackrate-static)
+ - [canControlVolume](#cancontrolvolume-static)
+ - [init](#init-player-options-ready-)
+ - [isSupported](#issupported-static)
+ - [supportsNativeTextTracks](#supportsnativetexttracks-static)
+
+- [UNDEFINED](#undefined)
+ - [nativeSourceHandler](#nativesourcehandler-static)
+
+---
+
+## METHODS
+
+### canControlPlaybackRate() `STATIC`
+> Check if playbackRate is supported in this browser/device.
+
+##### RETURNS:
+* `[type]` [description]
+
+_defined in_: [src/js/media/html5.js#L541](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L541)
+
+---
+
+### canControlVolume() `STATIC`
+> Check if the volume can be changed in this browser/device.
+> Volume cannot be changed in a lot of mobile devices.
+> Specifically, it can't be changed from 1 on iOS.
+
+##### RETURNS:
+* `Boolean`
+
+_defined in_: [src/js/media/html5.js#L531](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L531)
+
+---
+
+### init( player, options, ready )
+
+##### PARAMETERS:
+* __player__
+* __options__
+* __ready__
+
+_defined in_: [src/js/media/html5.js#L14](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L14)
+
+---
+
+### isSupported() `STATIC`
+> Check if HTML5 video is supported by this browser/device
+
+##### RETURNS:
+* `Boolean`
+
+_defined in_: [src/js/media/html5.js#L451](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L451)
+
+---
+
+### supportsNativeTextTracks() `STATIC`
+> Check to see if native text tracks are supported by this browser/device
+
+##### RETURNS:
+* `Boolean`
+
+_defined in_: [src/js/media/html5.js#L551](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L551)
+
+---
+
+## UNDEFINED
+
+### nativeSourceHandler `STATIC`
+> The default native source handler.
+> This simply passes the source to the video element. Nothing fancy.
+
+##### PARAMETERS:
+* __source__ `Object` The source object
+* __tech__ `vjs.Html5` The instance of the HTML5 tech
+
+_defined in_: [src/js/media/html5.js#L471](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L471)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.JSON.md b/bower_components/video.js/docs/api/vjs.JSON.md
new file mode 100644
index 0000000..623ace8
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.JSON.md
@@ -0,0 +1,30 @@
+
+
+# vjs.JSON
+
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [parse](#parse-text-reviver-)
+
+---
+
+## METHODS
+
+### parse( text, [reviver] )
+> parse the json
+
+##### PARAMETERS:
+* __text__ `String` The JSON string to parse
+* __reviver__ `Function` _(OPTIONAL)_ Optional function that can transform the results
+
+##### RETURNS:
+* `Object|Array` The parsed JSON
+
+_defined in_: [src/js/json.js#L34](https://github.com/videojs/video.js/blob/master/src/js/json.js#L34)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.LoadProgressBar.md b/bower_components/video.js/docs/api/vjs.LoadProgressBar.md
new file mode 100644
index 0000000..38e63c1
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.LoadProgressBar.md
@@ -0,0 +1,657 @@
+
+
+# vjs.LoadProgressBar
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/control-bar/progress-control.js#L119](https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control.js#L119)
+
+Shows load progress
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/control-bar/progress-control.js#L121](https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control.js#L121)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.LoadingSpinner.md b/bower_components/video.js/docs/api/vjs.LoadingSpinner.md
new file mode 100644
index 0000000..cdb4635
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.LoadingSpinner.md
@@ -0,0 +1,657 @@
+
+
+# vjs.LoadingSpinner
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/loading-spinner.js#L10](https://github.com/videojs/video.js/blob/master/src/js/loading-spinner.js#L10)
+
+Loading spinner for waiting events
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/loading-spinner.js#L12](https://github.com/videojs/video.js/blob/master/src/js/loading-spinner.js#L12)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.MediaLoader.md b/bower_components/video.js/docs/api/vjs.MediaLoader.md
new file mode 100644
index 0000000..1b45889
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.MediaLoader.md
@@ -0,0 +1,659 @@
+
+
+# vjs.MediaLoader
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/media/loader.js#L7](https://github.com/videojs/video.js/blob/master/src/js/media/loader.js#L7)
+
+The Media Loader is the component that decides which playback technology to load
+when the player is initialized.
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-ready-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options, ready )
+
+##### PARAMETERS:
+* __player__
+* __options__
+* __ready__
+
+_defined in_: [src/js/media/loader.js#L9](https://github.com/videojs/video.js/blob/master/src/js/media/loader.js#L9)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.MediaTechController.md b/bower_components/video.js/docs/api/vjs.MediaTechController.md
new file mode 100644
index 0000000..78c8f4a
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.MediaTechController.md
@@ -0,0 +1,33 @@
+
+
+# vjs.MediaTechController
+
+__DEFINED IN__: [src/js/media/media.js#L14](https://github.com/videojs/video.js/blob/master/src/js/media/media.js#L14)
+
+Base class for media (HTML5 Video, Flash) controllers
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [withSourceHandlers](#withsourcehandlers-tech--static)
+
+---
+
+## METHODS
+
+### withSourceHandlers( Tech ) `STATIC`
+> A functional mixin for techs that want to use the Source Handler pattern.
+>
+> ##### EXAMPLE:
+>
+> videojs.MediaTechController.withSourceHandlers.call(MyTech);
+
+##### PARAMETERS:
+* __Tech__
+
+_defined in_: [src/js/media/media.js#L428](https://github.com/videojs/video.js/blob/master/src/js/media/media.js#L428)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.Menu.md b/bower_components/video.js/docs/api/vjs.Menu.md
new file mode 100644
index 0000000..690b226
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.Menu.md
@@ -0,0 +1,668 @@
+
+
+# vjs.Menu
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/menu.js#L12](https://github.com/videojs/video.js/blob/master/src/js/menu.js#L12)
+
+The Menu component is used to build pop up menus, including subtitle and
+captions selection menus.
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [addItem](#additem-component-)
+ - [createEl](#createel-tagname-attributes-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [init](#init-player-options-ready-) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### addItem( component )
+> Add a menu item to the menu
+
+##### PARAMETERS:
+* __component__ `Object|String` Component or component type to add
+
+_defined in_: [src/js/menu.js#L18](https://github.com/videojs/video.js/blob/master/src/js/menu.js#L18)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+_defined in_: [src/js/menu.js#L26](https://github.com/videojs/video.js/blob/master/src/js/menu.js#L26)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options, ready )
+> the constructor function for the class
+
+##### PARAMETERS:
+* __player__
+* __options__
+* __ready__
+
+_inherited from_: [src/js/component.js#L41](https://github.com/videojs/video.js/blob/master/src/js/component.js#L41)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.MenuButton.md b/bower_components/video.js/docs/api/vjs.MenuButton.md
new file mode 100644
index 0000000..26f89a0
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.MenuButton.md
@@ -0,0 +1,662 @@
+
+
+# vjs.MenuButton
+
+__EXTENDS__: [vjs.Button](vjs.Button.md)
+__DEFINED IN__: [src/js/menu.js#L99](https://github.com/videojs/video.js/blob/master/src/js/menu.js#L99)
+
+A button class with a popup menu
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [buildCSSClass](#buildcssclass)
+ - [createItems](#createitems)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+_defined in_: [src/js/menu.js#L166](https://github.com/videojs/video.js/blob/master/src/js/menu.js#L166)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### createItems()
+> Create the list of menu items. Specific to each subclass.
+
+_defined in_: [src/js/menu.js#L163](https://github.com/videojs/video.js/blob/master/src/js/menu.js#L163)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/menu.js#L101](https://github.com/videojs/video.js/blob/master/src/js/menu.js#L101)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.MenuItem.md b/bower_components/video.js/docs/api/vjs.MenuItem.md
new file mode 100644
index 0000000..af86f48
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.MenuItem.md
@@ -0,0 +1,673 @@
+
+
+# vjs.MenuItem
+
+__EXTENDS__: [vjs.Button](vjs.Button.md)
+__DEFINED IN__: [src/js/menu.js#L55](https://github.com/videojs/video.js/blob/master/src/js/menu.js#L55)
+
+The component for a menu item. `
`
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [createEl](#createel-tagname-attributes-)
+ - [init](#init-player-options-)
+ - [onClick](#onclick)
+ - [selected](#selected-selected-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // -> myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+_defined in_: [src/js/menu.js#L64](https://github.com/videojs/video.js/blob/master/src/js/menu.js#L64)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/menu.js#L57](https://github.com/videojs/video.js/blob/master/src/js/menu.js#L57)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### onClick()
+> Handle a click on the menu item, and set it to selected
+
+_defined in_: [src/js/menu.js#L74](https://github.com/videojs/video.js/blob/master/src/js/menu.js#L74)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### selected( selected )
+> Set this menu item as selected or not
+
+##### PARAMETERS:
+* __selected__ `Boolean`
+
+_defined in_: [src/js/menu.js#L82](https://github.com/videojs/video.js/blob/master/src/js/menu.js#L82)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.MuteToggle.md b/bower_components/video.js/docs/api/vjs.MuteToggle.md
new file mode 100644
index 0000000..49b3e58
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.MuteToggle.md
@@ -0,0 +1,657 @@
+
+
+# vjs.MuteToggle
+
+__EXTENDS__: [vjs.Button](vjs.Button.md)
+__DEFINED IN__: [src/js/control-bar/mute-toggle.js#L8](https://github.com/videojs/video.js/blob/master/src/js/control-bar/mute-toggle.js#L8)
+
+A button component for muting the audio
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/control-bar/mute-toggle.js#L10](https://github.com/videojs/video.js/blob/master/src/js/control-bar/mute-toggle.js#L10)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.OffTextTrackMenuItem.md b/bower_components/video.js/docs/api/vjs.OffTextTrackMenuItem.md
new file mode 100644
index 0000000..e71a520
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.OffTextTrackMenuItem.md
@@ -0,0 +1,10 @@
+
+
+# vjs.OffTextTrackMenuItem
+
+__DEFINED IN__: [src/js/tracks/text-track-controls.js#L296](https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-controls.js#L296)
+
+A special menu item for turning of a specific type of text track
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.PlayProgressBar.md b/bower_components/video.js/docs/api/vjs.PlayProgressBar.md
new file mode 100644
index 0000000..bae0a40
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.PlayProgressBar.md
@@ -0,0 +1,657 @@
+
+
+# vjs.PlayProgressBar
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/control-bar/progress-control.js#L177](https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control.js#L177)
+
+Shows play progress
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/control-bar/progress-control.js#L179](https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control.js#L179)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.PlayToggle.md b/bower_components/video.js/docs/api/vjs.PlayToggle.md
new file mode 100644
index 0000000..b15812a
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.PlayToggle.md
@@ -0,0 +1,657 @@
+
+
+# vjs.PlayToggle
+
+__EXTENDS__: [vjs.Button](vjs.Button.md)
+__DEFINED IN__: [src/js/control-bar/play-toggle.js#L8](https://github.com/videojs/video.js/blob/master/src/js/control-bar/play-toggle.js#L8)
+
+Button to toggle between play and pause
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/control-bar/play-toggle.js#L10](https://github.com/videojs/video.js/blob/master/src/js/control-bar/play-toggle.js#L10)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.Player.md b/bower_components/video.js/docs/api/vjs.Player.md
new file mode 100644
index 0000000..cbbeecd
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.Player.md
@@ -0,0 +1,1407 @@
+
+
+# vjs.Player
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/player.js#L21](https://github.com/videojs/video.js/blob/master/src/js/player.js#L21)
+
+An instance of the `vjs.Player` class is created when any of the Video.js setup methods are used to initialize a video.
+
+```js
+var myPlayer = videojs('example_video_1');
+```
+
+In the following example, the `data-setup` attribute tells the Video.js library to create a player instance when the library is ready.
+
+```html
+
+
+
+```
+
+After an instance has been created it can be accessed globally using `Video('example_video_1')`.
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [addTextTrack](#addtexttrack-kind-label-language-)
+ - [autoplay](#autoplay-value-)
+ - [buffered](#buffered)
+ - [bufferedEnd](#bufferedend)
+ - [bufferedPercent](#bufferedpercent)
+ - [cancelFullScreen](#cancelfullscreen) _`deprecated`_
+ - [controls](#controls-controls-)
+ - [currentSrc](#currentsrc)
+ - [currentTime](#currenttime-seconds-)
+ - [currentType](#currenttype)
+ - [dispose](#dispose)
+ - [duration](#duration-seconds-)
+ - [ended](#ended)
+ - [error](#error-err-)
+ - [exitFullscreen](#exitfullscreen)
+ - [init](#init-tag-options-ready-)
+ - [isFullScreen](#isfullscreen-isfs-) _`deprecated`_
+ - [isFullscreen](#isfullscreen-isfs-)
+ - [language](#language-languagecode-)
+ - [load](#load)
+ - [loop](#loop-value-)
+ - [muted](#muted-muted-)
+ - [networkState](#networkstate)
+ - [pause](#pause)
+ - [paused](#paused)
+ - [play](#play)
+ - [playbackRate](#playbackrate-rate-)
+ - [poster](#poster-src-)
+ - [preload](#preload-value-)
+ - [readyState](#readystate)
+ - [remainingTime](#remainingtime)
+ - [requestFullScreen](#requestfullscreen) _`deprecated`_
+ - [requestFullscreen](#requestfullscreen)
+ - [seeking](#seeking)
+ - [src](#src-source-)
+ - [textTracks](#texttracks)
+ - [volume](#volume-percentasdecimal-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [durationchange](#durationchange-event)
+ - [ended](#ended-event)
+ - [error](#error-event)
+ - [firstplay](#firstplay-event)
+ - [fullscreenchange](#fullscreenchange-event)
+ - [loadedalldata](#loadedalldata-event)
+ - [loadeddata](#loadeddata-event)
+ - [loadedmetadata](#loadedmetadata-event)
+ - [loadstart](#loadstart-event)
+ - [pause](#pause-event)
+ - [play](#play-event)
+ - [progress](#progress-event)
+ - [seeked](#seeked-event)
+ - [seeking](#seeking-event)
+ - [timeupdate](#timeupdate-event)
+ - [volumechange](#volumechange-event)
+ - [waiting](#waiting-event)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### addTextTrack( kind, [label], [language] )
+> Add a text track
+> In addition to the W3C settings we allow adding additional info through options.
+> http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-addtexttrack
+
+##### PARAMETERS:
+* __kind__ `String` Captions, subtitles, chapters, descriptions, or metadata
+* __label__ `String` _(OPTIONAL)_ Optional label
+* __language__ `String` _(OPTIONAL)_ Optional language
+
+_defined in_: [src/js/player.js#L1722](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1722)
+
+---
+
+### autoplay( value )
+> Get or set the autoplay attribute.
+
+##### PARAMETERS:
+* __value__
+
+##### RETURNS:
+* `String` The autoplay attribute value when getting
+* `vjs.Player` Returns the player when setting
+
+_defined in_: [src/js/player.js#L1263](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1263)
+
+---
+
+### buffered()
+> Get a TimeRange object with the times of the video that have been downloaded
+>
+> If you just want the percent of the video that's been downloaded,
+> use bufferedPercent.
+>
+> // Number of different ranges of time have been buffered. Usually 1.
+> numberOfRanges = bufferedTimeRange.length,
+>
+> // Time in seconds when the first range starts. Usually 0.
+> firstRangeStart = bufferedTimeRange.start(0),
+>
+> // Time in seconds when the first range ends
+> firstRangeEnd = bufferedTimeRange.end(0),
+>
+> // Length in seconds of the first time range
+> firstRangeLength = firstRangeEnd - firstRangeStart;
+
+##### RETURNS:
+* `Object` A mock TimeRange object (following HTML spec)
+
+_defined in_: [src/js/player.js#L770](https://github.com/videojs/video.js/blob/master/src/js/player.js#L770)
+
+---
+
+### bufferedEnd()
+> Get the ending time of the last buffered time range
+>
+> This is used in the progress bar to encapsulate all time ranges.
+
+##### RETURNS:
+* `Number` The end of the last buffered time range
+
+_defined in_: [src/js/player.js#L821](https://github.com/videojs/video.js/blob/master/src/js/player.js#L821)
+
+---
+
+### bufferedPercent()
+> Get the percent (as a decimal) of the video that's been downloaded
+>
+> var howMuchIsDownloaded = myPlayer.bufferedPercent();
+>
+> 0 means none, 1 means all.
+> (This method isn't in the HTML5 spec, but it's very convenient)
+
+##### RETURNS:
+* `Number` A decimal between 0 and 1 representing the percent
+
+_defined in_: [src/js/player.js#L790](https://github.com/videojs/video.js/blob/master/src/js/player.js#L790)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### cancelFullScreen()
+> Old naming for exitFullscreen
+**Deprecated** true
+
+_defined in_: [src/js/player.js#L1026](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1026)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### controls( controls )
+> Get or set whether or not the controls are showing.
+
+##### PARAMETERS:
+* __controls__ `Boolean` Set controls to showing or not
+
+##### RETURNS:
+* `Boolean` Controls are showing
+
+_defined in_: [src/js/player.js#L1343](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1343)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### currentSrc()
+> Returns the fully qualified URL of the current source value e.g. http://mysite.com/video.mp4
+> Can be used in conjuction with `currentType` to assist in rebuilding the current source object.
+
+##### RETURNS:
+* `String` The current source
+
+_defined in_: [src/js/player.js#L1230](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1230)
+
+---
+
+### currentTime( [seconds] )
+> Get or set the current time (in seconds)
+>
+> // get
+> var whereYouAt = myPlayer.currentTime();
+>
+> // set
+> myPlayer.currentTime(120); // 2 minutes into the video
+
+##### PARAMETERS:
+* __seconds__ `Number|String` _(OPTIONAL)_ The time to seek to
+
+##### RETURNS:
+* `Number` The time in seconds, when not setting
+* `vjs.Player` self, when the current time is set
+
+_defined in_: [src/js/player.js#L690](https://github.com/videojs/video.js/blob/master/src/js/player.js#L690)
+
+---
+
+### currentType()
+> Get the current source type e.g. video/mp4
+> This can allow you rebuild the current source object so that you could load the same
+> source and tech later
+
+##### RETURNS:
+* `String` The source MIME type
+
+_defined in_: [src/js/player.js#L1240](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1240)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Destroys the video player and does any necessary cleanup
+>
+> myPlayer.dispose();
+>
+> This is especially helpful if you are dynamically adding and removing videos
+> to/from the DOM.
+
+_defined in_: [src/js/player.js#L164](https://github.com/videojs/video.js/blob/master/src/js/player.js#L164)
+
+---
+
+### duration( seconds )
+> Get the length in time of the video in seconds
+>
+> var lengthOfVideo = myPlayer.duration();
+>
+> **NOTE**: The video must have started loading before the duration can be
+> known, and in the case of Flash, may not be known until the video starts
+> playing.
+
+##### PARAMETERS:
+* __seconds__
+
+##### RETURNS:
+* `Number` The duration of the video in seconds
+
+_defined in_: [src/js/player.js#L718](https://github.com/videojs/video.js/blob/master/src/js/player.js#L718)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### ended()
+> Returns whether or not the player is in the "ended" state.
+
+##### RETURNS:
+* `Boolean` True if the player is in the ended state, false if not.
+
+_defined in_: [src/js/player.js#L1464](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1464)
+
+---
+
+### error( err )
+> Set or get the current MediaError
+
+##### PARAMETERS:
+* __err__ `*` A MediaError or a String/Number to be turned into a MediaError
+
+##### RETURNS:
+* `vjs.MediaError|null` when getting
+* `vjs.Player` when setting
+
+_defined in_: [src/js/player.js#L1428](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1428)
+
+---
+
+### exitFullscreen()
+> Return the video to its normal size after having been in full screen mode
+>
+> myPlayer.exitFullscreen();
+
+##### RETURNS:
+* `vjs.Player` self
+
+_defined in_: [src/js/player.js#L1005](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1005)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( tag, [options], [ready] )
+> player's constructor function
+
+##### PARAMETERS:
+* __tag__ `Element` The original video tag used for configuring options
+* __options__ `Object` _(OPTIONAL)_ Player options
+* __ready__ `Function` _(OPTIONAL)_ Ready callback function
+
+_defined in_: [src/js/player.js#L32](https://github.com/videojs/video.js/blob/master/src/js/player.js#L32)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### isFullScreen( isFS )
+> Old naming for isFullscreen()
+**Deprecated** true
+
+##### PARAMETERS:
+* __isFS__
+
+_defined in_: [src/js/player.js#L928](https://github.com/videojs/video.js/blob/master/src/js/player.js#L928)
+
+---
+
+### isFullscreen( [isFS] )
+> Check if the player is in fullscreen mode
+>
+> // get
+> var fullscreenOrNot = myPlayer.isFullscreen();
+>
+> // set
+> myPlayer.isFullscreen(true); // tell the player it's in fullscreen
+>
+> NOTE: As of the latest HTML5 spec, isFullscreen is no longer an official
+> property and instead document.fullscreenElement is used. But isFullscreen is
+> still a valuable property for internal player workings.
+
+##### PARAMETERS:
+* __isFS__ `Boolean` _(OPTIONAL)_ Update the player's fullscreen state
+
+##### RETURNS:
+* `Boolean` true if fullscreen, false if not
+* `vjs.Player` self, when setting
+
+_defined in_: [src/js/player.js#L916](https://github.com/videojs/video.js/blob/master/src/js/player.js#L916)
+
+---
+
+### language( languageCode )
+> The player's language code
+
+##### PARAMETERS:
+* __languageCode__ `String` The locale string
+
+##### RETURNS:
+* `String` The locale string when getting
+* `vjs.Player` self, when setting
+
+_defined in_: [src/js/player.js#L124](https://github.com/videojs/video.js/blob/master/src/js/player.js#L124)
+
+---
+
+### load()
+> Begin loading the src data.
+
+##### RETURNS:
+* `vjs.Player` Returns the player
+
+_defined in_: [src/js/player.js#L1220](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1220)
+
+---
+
+### loop( value )
+> Get or set the loop attribute on the video element.
+
+##### PARAMETERS:
+* __value__
+
+##### RETURNS:
+* `String` The loop attribute value when getting
+* `vjs.Player` Returns the player when setting
+
+_defined in_: [src/js/player.js#L1277](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1277)
+
+---
+
+### muted( [muted] )
+> Get the current muted state, or turn mute on or off
+>
+> // get
+> var isVolumeMuted = myPlayer.muted();
+>
+> // set
+> myPlayer.muted(true); // mute the volume
+
+##### PARAMETERS:
+* __muted__ `Boolean` _(OPTIONAL)_ True to mute, false to unmute
+
+##### RETURNS:
+* `Boolean` True if mute is on, false if not, when getting
+* `vjs.Player` self, when setting mute
+
+_defined in_: [src/js/player.js#L878](https://github.com/videojs/video.js/blob/master/src/js/player.js#L878)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### networkState()
+> Returns the current state of network activity for the element, from
+> the codes in the list below.
+> - NETWORK_EMPTY (numeric value 0)
+> The element has not yet been initialised. All attributes are in
+> their initial states.
+> - NETWORK_IDLE (numeric value 1)
+> The element's resource selection algorithm is active and has
+> selected a resource, but it is not actually using the network at
+> this time.
+> - NETWORK_LOADING (numeric value 2)
+> The user agent is actively trying to download data.
+> - NETWORK_NO_SOURCE (numeric value 3)
+> The element's resource selection algorithm is active, but it has
+> not yet found a resource to use.
+
+##### RETURNS:
+* `Number` the current network activity state
+
+_defined in_: [src/js/player.js#L1662](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1662)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### pause()
+> Pause the video playback
+>
+> myPlayer.pause();
+
+##### RETURNS:
+* `vjs.Player` self
+
+_defined in_: [src/js/player.js#L659](https://github.com/videojs/video.js/blob/master/src/js/player.js#L659)
+
+---
+
+### paused()
+> Check if the player is paused
+>
+> var isPaused = myPlayer.paused();
+> var isPlaying = !myPlayer.paused();
+
+##### RETURNS:
+* `Boolean` false if the media is currently playing, or true otherwise
+
+_defined in_: [src/js/player.js#L672](https://github.com/videojs/video.js/blob/master/src/js/player.js#L672)
+
+---
+
+### play()
+> start media playback
+>
+> myPlayer.play();
+
+##### RETURNS:
+* `vjs.Player` self
+
+_defined in_: [src/js/player.js#L647](https://github.com/videojs/video.js/blob/master/src/js/player.js#L647)
+
+---
+
+### playbackRate( rate )
+> Gets or sets the current playback rate.
+
+##### PARAMETERS:
+* __rate__ `Boolean` New playback rate to set.
+
+##### RETURNS:
+* `Number` Returns the new playback rate when setting
+* `Number` Returns the current playback rate when getting
+
+_defined in_: [src/js/player.js#L1606](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1606)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### poster( [src] )
+> get or set the poster image source url
+>
+> ##### EXAMPLE:
+>
+> // getting
+> var currentPoster = myPlayer.poster();
+>
+> // setting
+> myPlayer.poster('http://example.com/myImage.jpg');
+
+##### PARAMETERS:
+* __src__ `String` _(OPTIONAL)_ Poster image source URL
+
+##### RETURNS:
+* `String` poster URL when getting
+* `vjs.Player` self when setting
+
+_defined in_: [src/js/player.js#L1308](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1308)
+
+---
+
+### preload( value )
+> Get or set the preload attribute.
+
+##### PARAMETERS:
+* __value__
+
+##### RETURNS:
+* `String` The preload attribute value when getting
+* `vjs.Player` Returns the player when setting
+
+_defined in_: [src/js/player.js#L1249](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1249)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### readyState()
+> Returns a value that expresses the current state of the element
+> with respect to rendering the current playback position, from the
+> codes in the list below.
+> - HAVE_NOTHING (numeric value 0)
+> No information regarding the media resource is available.
+> - HAVE_METADATA (numeric value 1)
+> Enough of the resource has been obtained that the duration of the
+> resource is available.
+> - HAVE_CURRENT_DATA (numeric value 2)
+> Data for the immediate current playback position is available.
+> - HAVE_FUTURE_DATA (numeric value 3)
+> Data for the immediate current playback position is available, as
+> well as enough data for the user agent to advance the current
+> playback position in the direction of playback.
+> - HAVE_ENOUGH_DATA (numeric value 4)
+> The user agent estimates that enough data is available for
+> playback to proceed uninterrupted.
+
+##### RETURNS:
+* `Number` the current playback rendering state
+
+_defined in_: [src/js/player.js#L1687](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1687)
+
+---
+
+### remainingTime()
+> Calculates how much time is left.
+>
+> var timeLeft = myPlayer.remainingTime();
+>
+> Not a native video element function, but useful
+
+##### RETURNS:
+* `Number` The time remaining in seconds
+
+_defined in_: [src/js/player.js#L742](https://github.com/videojs/video.js/blob/master/src/js/player.js#L742)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### requestFullScreen()
+> Old naming for requestFullscreen
+**Deprecated** true
+
+_defined in_: [src/js/player.js#L992](https://github.com/videojs/video.js/blob/master/src/js/player.js#L992)
+
+---
+
+### requestFullscreen()
+> Increase the size of the video to full screen
+>
+> myPlayer.requestFullscreen();
+>
+> In some browsers, full screen is not supported natively, so it enters
+> "full window mode", where the video fills the browser window.
+> In browsers and devices that support native full screen, sometimes the
+> browser's default controls will be shown, and not the Video.js custom skin.
+> This includes most mobile devices (iOS, Android) and older versions of
+> Safari.
+
+##### RETURNS:
+* `vjs.Player` self
+
+_defined in_: [src/js/player.js#L947](https://github.com/videojs/video.js/blob/master/src/js/player.js#L947)
+
+---
+
+### seeking()
+> Returns whether or not the player is in the "seeking" state.
+
+##### RETURNS:
+* `Boolean` True if the player is in the seeking state, false if not.
+
+_defined in_: [src/js/player.js#L1470](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1470)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### src( [source] )
+> The source function updates the video source
+>
+> There are three types of variables you can pass as the argument.
+>
+> **URL String**: A URL to the the video file. Use this method if you are sure
+> the current playback technology (HTML5/Flash) can support the source you
+> provide. Currently only MP4 files can be used in both HTML5 and Flash.
+>
+> myPlayer.src("http://www.example.com/path/to/video.mp4");
+>
+> **Source Object (or element):** A javascript object containing information
+> about the source file. Use this method if you want the player to determine if
+> it can support the file using the type information.
+>
+> myPlayer.src({ type: "video/mp4", src: "http://www.example.com/path/to/video.mp4" });
+>
+> **Array of Source Objects:** To provide multiple versions of the source so
+> that it can be played using HTML5 across browsers you can use an array of
+> source objects. Video.js will detect which version is supported and load that
+> file.
+>
+> myPlayer.src([
+> { type: "video/mp4", src: "http://www.example.com/path/to/video.mp4" },
+> { type: "video/webm", src: "http://www.example.com/path/to/video.webm" },
+> { type: "video/ogg", src: "http://www.example.com/path/to/video.ogv" }
+> ]);
+
+##### PARAMETERS:
+* __source__ `String|Object|Array` _(OPTIONAL)_ The source URL, object, or array of sources
+
+##### RETURNS:
+* `String` The current video source when getting
+* `String` The player when setting
+
+_defined in_: [src/js/player.js#L1135](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1135)
+
+---
+
+### textTracks()
+> Get an array of associated text tracks. captions, subtitles, chapters, descriptions
+> http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-texttracks
+
+##### RETURNS:
+* `Array` Array of track objects
+
+_defined in_: [src/js/player.js#L1704](https://github.com/videojs/video.js/blob/master/src/js/player.js#L1704)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### volume( percentAsDecimal )
+> Get or set the current volume of the media
+>
+> // get
+> var howLoudIsIt = myPlayer.volume();
+>
+> // set
+> myPlayer.volume(0.5); // Set volume to half
+>
+> 0 is off (muted), 1.0 is all the way up, 0.5 is half way.
+
+##### PARAMETERS:
+* __percentAsDecimal__ `Number` The new volume as a decimal percent
+
+##### RETURNS:
+* `Number` The current volume, when getting
+* `vjs.Player` self, when setting
+
+_defined in_: [src/js/player.js#L848](https://github.com/videojs/video.js/blob/master/src/js/player.js#L848)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### durationchange `EVENT`
+> Fired when the duration of the media resource is first known or changed
+
+_defined in_: [src/js/player.js#L536](https://github.com/videojs/video.js/blob/master/src/js/player.js#L536)
+
+---
+
+### ended `EVENT`
+> Fired when the end of the media resource is reached (currentTime == duration)
+
+_defined in_: [src/js/player.js#L522](https://github.com/videojs/video.js/blob/master/src/js/player.js#L522)
+
+---
+
+### error `EVENT`
+> Fired when an error occurs
+
+_defined in_: [src/js/player.js#L577](https://github.com/videojs/video.js/blob/master/src/js/player.js#L577)
+
+---
+
+### firstplay `EVENT`
+> Fired the first time a video is played
+>
+> Not part of the HLS spec, and we're not sure if this is the best
+> implementation yet, so use sparingly. If you don't have a reason to
+> prevent playback, use `myPlayer.one('play');` instead.
+
+_defined in_: [src/js/player.js#L479](https://github.com/videojs/video.js/blob/master/src/js/player.js#L479)
+
+---
+
+### fullscreenchange `EVENT`
+> Fired when the player switches in or out of fullscreen mode
+
+_defined in_: [src/js/player.js#L565](https://github.com/videojs/video.js/blob/master/src/js/player.js#L565)
+
+---
+
+### loadedalldata `EVENT`
+> Fired when the player has finished downloading the source data
+
+_defined in_: [src/js/player.js#L421](https://github.com/videojs/video.js/blob/master/src/js/player.js#L421)
+
+---
+
+### loadeddata `EVENT`
+> Fired when the player has downloaded data at the current playback position
+
+_defined in_: [src/js/player.js#L415](https://github.com/videojs/video.js/blob/master/src/js/player.js#L415)
+
+---
+
+### loadedmetadata `EVENT`
+> Fired when the player has initial duration and dimension information
+
+_defined in_: [src/js/player.js#L409](https://github.com/videojs/video.js/blob/master/src/js/player.js#L409)
+
+---
+
+### loadstart `EVENT`
+> Fired when the user agent begins looking for media data
+
+_defined in_: [src/js/player.js#L366](https://github.com/videojs/video.js/blob/master/src/js/player.js#L366)
+
+---
+
+### pause `EVENT`
+> Fired whenever the media has been paused
+
+_defined in_: [src/js/player.js#L493](https://github.com/videojs/video.js/blob/master/src/js/player.js#L493)
+
+---
+
+### play `EVENT`
+> Fired whenever the media begins or resumes playback
+
+_defined in_: [src/js/player.js#L427](https://github.com/videojs/video.js/blob/master/src/js/player.js#L427)
+
+---
+
+### progress `EVENT`
+> Fired while the user agent is downloading media data
+
+_defined in_: [src/js/player.js#L511](https://github.com/videojs/video.js/blob/master/src/js/player.js#L511)
+
+---
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
+### seeked `EVENT`
+> Fired when the player has finished jumping to a new time
+
+_defined in_: [src/js/player.js#L466](https://github.com/videojs/video.js/blob/master/src/js/player.js#L466)
+
+---
+
+### seeking `EVENT`
+> Fired whenever the player is jumping to a new time
+
+_defined in_: [src/js/player.js#L458](https://github.com/videojs/video.js/blob/master/src/js/player.js#L458)
+
+---
+
+### timeupdate `EVENT`
+> Fired when the current playback position has changed
+>
+> During playback this is fired every 15-250 milliseconds, depending on the
+> playback technology in use.
+
+_defined in_: [src/js/player.js#L505](https://github.com/videojs/video.js/blob/master/src/js/player.js#L505)
+
+---
+
+### volumechange `EVENT`
+> Fired when the volume changes
+
+_defined in_: [src/js/player.js#L559](https://github.com/videojs/video.js/blob/master/src/js/player.js#L559)
+
+---
+
+### waiting `EVENT`
+> Fired whenever the media begins waiting
+
+_defined in_: [src/js/player.js#L441](https://github.com/videojs/video.js/blob/master/src/js/player.js#L441)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.PosterImage.md b/bower_components/video.js/docs/api/vjs.PosterImage.md
new file mode 100644
index 0000000..e49c773
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.PosterImage.md
@@ -0,0 +1,680 @@
+
+
+# vjs.PosterImage
+
+__EXTENDS__: [vjs.Button](vjs.Button.md)
+__DEFINED IN__: [src/js/poster.js#L10](https://github.com/videojs/video.js/blob/master/src/js/poster.js#L10)
+
+The component that handles showing the poster image.
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [createEl](#createel)
+ - [dispose](#dispose)
+ - [init](#init-player-options-)
+ - [onClick](#onclick)
+ - [setSrc](#setsrc-url-)
+ - [update](#update)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl()
+> Create the poster image element
+
+##### RETURNS:
+* `Element`
+
+_defined in_: [src/js/poster.js#L32](https://github.com/videojs/video.js/blob/master/src/js/poster.js#L32)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Clean up the poster image
+
+_defined in_: [src/js/poster.js#L23](https://github.com/videojs/video.js/blob/master/src/js/poster.js#L23)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/poster.js#L12](https://github.com/videojs/video.js/blob/master/src/js/poster.js#L12)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### onClick()
+> Event handler for clicks on the poster image
+
+_defined in_: [src/js/poster.js#L92](https://github.com/videojs/video.js/blob/master/src/js/poster.js#L92)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setSrc( url )
+> Set the poster source depending on the display method
+
+##### PARAMETERS:
+* __url__
+
+_defined in_: [src/js/poster.js#L72](https://github.com/videojs/video.js/blob/master/src/js/poster.js#L72)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### update()
+> Event handler for updates to the player's poster source
+
+_defined in_: [src/js/poster.js#L55](https://github.com/videojs/video.js/blob/master/src/js/poster.js#L55)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.ProgressControl.md b/bower_components/video.js/docs/api/vjs.ProgressControl.md
new file mode 100644
index 0000000..6827ece
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.ProgressControl.md
@@ -0,0 +1,658 @@
+
+
+# vjs.ProgressControl
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/control-bar/progress-control.js#L9](https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control.js#L9)
+
+The Progress Control component contains the seek bar, load progress,
+and play progress
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/control-bar/progress-control.js#L11](https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control.js#L11)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.RemainingTimeDisplay.md b/bower_components/video.js/docs/api/vjs.RemainingTimeDisplay.md
new file mode 100644
index 0000000..1cc2313
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.RemainingTimeDisplay.md
@@ -0,0 +1,657 @@
+
+
+# vjs.RemainingTimeDisplay
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/control-bar/time-display.js#L108](https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-display.js#L108)
+
+Displays the time left in the video
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/control-bar/time-display.js#L110](https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-display.js#L110)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.SeekBar.md b/bower_components/video.js/docs/api/vjs.SeekBar.md
new file mode 100644
index 0000000..563117e
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.SeekBar.md
@@ -0,0 +1,669 @@
+
+
+# vjs.SeekBar
+
+__EXTENDS__: [vjs.Slider](vjs.Slider.md)
+__DEFINED IN__: [src/js/control-bar/progress-control.js#L35](https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control.js#L35)
+
+Seek Bar and holder for the progress bars
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [onClick](#onclick-event-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/control-bar/progress-control.js#L37](https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control.js#L37)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### onClick( event )
+> Listener for click events on slider, used to prevent clicks
+> from bubbling up to parent elements like button menus.
+
+##### PARAMETERS:
+* __event__ `Object` Event object
+
+_inherited from_: [src/js/slider.js#L202](https://github.com/videojs/video.js/blob/master/src/js/slider.js#L202)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.SeekHandle.md b/bower_components/video.js/docs/api/vjs.SeekHandle.md
new file mode 100644
index 0000000..24730a5
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.SeekHandle.md
@@ -0,0 +1,657 @@
+
+
+# vjs.SeekHandle
+
+__EXTENDS__: [vjs.SliderHandle](vjs.SliderHandle.md)
+__DEFINED IN__: [src/js/control-bar/progress-control.js#L199](https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control.js#L199)
+
+The Seek Handle shows the current position of the playhead during playback,
+and can be dragged to adjust the playhead.
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [createEl](#createel-tagname-attributes-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [init](#init-player-options-ready-) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+_defined in_: [src/js/control-bar/progress-control.js#L215](https://github.com/videojs/video.js/blob/master/src/js/control-bar/progress-control.js#L215)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options, ready )
+> the constructor function for the class
+
+##### PARAMETERS:
+* __player__
+* __options__
+* __ready__
+
+_inherited from_: [src/js/component.js#L41](https://github.com/videojs/video.js/blob/master/src/js/component.js#L41)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.Slider.md b/bower_components/video.js/docs/api/vjs.Slider.md
new file mode 100644
index 0000000..6fc4081
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.Slider.md
@@ -0,0 +1,669 @@
+
+
+# vjs.Slider
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/slider.js#L10](https://github.com/videojs/video.js/blob/master/src/js/slider.js#L10)
+
+The base functionality for sliders like the volume bar and seek bar
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [onClick](#onclick-event-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/slider.js#L12](https://github.com/videojs/video.js/blob/master/src/js/slider.js#L12)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### onClick( event )
+> Listener for click events on slider, used to prevent clicks
+> from bubbling up to parent elements like button menus.
+
+##### PARAMETERS:
+* __event__ `Object` Event object
+
+_defined in_: [src/js/slider.js#L202](https://github.com/videojs/video.js/blob/master/src/js/slider.js#L202)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.SliderHandle.md b/bower_components/video.js/docs/api/vjs.SliderHandle.md
new file mode 100644
index 0000000..e633886
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.SliderHandle.md
@@ -0,0 +1,657 @@
+
+
+# vjs.SliderHandle
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/slider.js#L214](https://github.com/videojs/video.js/blob/master/src/js/slider.js#L214)
+
+SeekBar Behavior includes play progress bar, and seek handle
+Needed so it can determine seek position based on handle position/size
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [createEl](#createel-tagname-attributes-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [init](#init-player-options-ready-) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+_defined in_: [src/js/slider.js#L225](https://github.com/videojs/video.js/blob/master/src/js/slider.js#L225)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options, ready )
+> the constructor function for the class
+
+##### PARAMETERS:
+* __player__
+* __options__
+* __ready__
+
+_inherited from_: [src/js/component.js#L41](https://github.com/videojs/video.js/blob/master/src/js/component.js#L41)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.SubtitlesButton.md b/bower_components/video.js/docs/api/vjs.SubtitlesButton.md
new file mode 100644
index 0000000..32e729b
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.SubtitlesButton.md
@@ -0,0 +1,10 @@
+
+
+# vjs.SubtitlesButton
+
+__DEFINED IN__: [src/js/tracks/text-track-controls.js#L433](https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-controls.js#L433)
+
+The button component for toggling and selecting subtitles
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.SubtitlesTrack.md b/bower_components/video.js/docs/api/vjs.SubtitlesTrack.md
new file mode 100644
index 0000000..344c0d7
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.SubtitlesTrack.md
@@ -0,0 +1,793 @@
+
+
+# vjs.SubtitlesTrack
+
+__EXTENDS__: [vjs.TextTrack](vjs.TextTrack.md)
+__DEFINED IN__: [src/js/tracks.js#L686](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L686)
+
+The track component for managing the hiding and showing of subtitles
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [activate](#activate) _`inherited`_
+ - [activeCues](#activecues) _`inherited`_
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel) _`inherited`_
+ - [cues](#cues) _`inherited`_
+ - [deactivate](#deactivate) _`inherited`_
+ - [dflt](#dflt) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [disable](#disable) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [init](#init-player-options-) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [kind](#kind) _`inherited`_
+ - [label](#label) _`inherited`_
+ - [language](#language) _`inherited`_
+ - [mode](#mode) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [readyState](#readystate) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [src](#src) _`inherited`_
+ - [title](#title) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### activate()
+> Turn on cue tracking. Tracks that are showing OR hidden are active.
+
+_inherited from_: [src/js/tracks.js#L375](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L375)
+
+---
+
+### activeCues()
+> Get the track active cues
+
+##### RETURNS:
+* `Array`
+
+_inherited from_: [src/js/tracks.js#L270](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L270)
+
+---
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1219](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1219)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1181](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1181)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl()
+> Create basic div to hold cue text
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/tracks.js#L315](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L315)
+
+---
+
+### cues()
+> Get the track cues
+
+##### RETURNS:
+* `Array`
+
+_inherited from_: [src/js/tracks.js#L255](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L255)
+
+---
+
+### deactivate()
+> Turn off cue tracking.
+
+_inherited from_: [src/js/tracks.js#L398](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L398)
+
+---
+
+### dflt()
+> Get the track default value. ('default' is a reserved keyword)
+
+##### RETURNS:
+* `Boolean`
+
+_inherited from_: [src/js/tracks.js#L196](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L196)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### disable()
+> Disable: Mode Off/Disable (0)
+> Indicates that the text track is not active. Other than for the purposes of exposing the track in the DOM, the user agent is ignoring the text track.
+> No cues are active, no events are fired, and the user agent will not attempt to obtain the track's cues.
+
+_inherited from_: [src/js/tracks.js#L361](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L361)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1120](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1120)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide: Mode Hidden (1)
+> Indicates that the text track is active, but that the user agent is not actively displaying the cues.
+> If no attempt has yet been made to obtain the track's cues, the user agent will perform such an attempt momentarily.
+> The user agent is maintaining a list of which cues are active, and events are being fired accordingly.
+
+_inherited from_: [src/js/tracks.js#L346](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L346)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_inherited from_: [src/js/tracks.js#L134](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L134)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### kind()
+> Get the track kind value
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/tracks.js#L167](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L167)
+
+---
+
+### label()
+> Get the track label value
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/tracks.js#L240](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L240)
+
+---
+
+### language()
+> Get the track language value
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/tracks.js#L225](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L225)
+
+---
+
+### mode()
+> Get the track mode
+
+##### RETURNS:
+* `Number`
+
+_inherited from_: [src/js/tracks.js#L307](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L307)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### readyState()
+> Get the track readyState
+
+##### RETURNS:
+* `Number`
+
+_inherited from_: [src/js/tracks.js#L289](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L289)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1198](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1198)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1158](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1158)
+
+---
+
+### show()
+> Show: Mode Showing (2)
+> Indicates that the text track is active. If no attempt has yet been made to obtain the track's cues, the user agent will perform such an attempt momentarily.
+> The user agent is maintaining a list of which cues are active, and events are being fired accordingly.
+> In addition, for text tracks whose kind is subtitles or captions, the cues are being displayed over the video as appropriate;
+> for text tracks whose kind is descriptions, the user agent is making the cues available to the user in a non-visual fashion;
+> and for text tracks whose kind is chapters, the user agent is making available to the user a mechanism by which the user can navigate to any point in the media resource by selecting a cue.
+> The showing by default state is used in conjunction with the default attribute on track elements to indicate that the text track was enabled due to that attribute.
+> This allows the user agent to override the state if a later track is discovered that is more appropriate per the user's preferences.
+
+_inherited from_: [src/js/tracks.js#L331](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L331)
+
+---
+
+### src()
+> Get the track src value
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/tracks.js#L181](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L181)
+
+---
+
+### title()
+> Get the track title value
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/tracks.js#L210](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L210)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.TextTrack.md b/bower_components/video.js/docs/api/vjs.TextTrack.md
new file mode 100644
index 0000000..80ead7f
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.TextTrack.md
@@ -0,0 +1,795 @@
+
+
+# vjs.TextTrack
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/tracks.js#L132](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L132)
+
+The base class for all text tracks
+
+Handles the parsing, hiding, and showing of text track cues
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [activate](#activate)
+ - [activeCues](#activecues)
+ - [createEl](#createel)
+ - [cues](#cues)
+ - [deactivate](#deactivate)
+ - [dflt](#dflt)
+ - [disable](#disable)
+ - [hide](#hide)
+ - [init](#init-player-options-)
+ - [kind](#kind)
+ - [label](#label)
+ - [language](#language)
+ - [mode](#mode)
+ - [readyState](#readystate)
+ - [show](#show)
+ - [src](#src)
+ - [title](#title)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### activate()
+> Turn on cue tracking. Tracks that are showing OR hidden are active.
+
+_defined in_: [src/js/tracks.js#L375](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L375)
+
+---
+
+### activeCues()
+> Get the track active cues
+
+##### RETURNS:
+* `Array`
+
+_defined in_: [src/js/tracks.js#L270](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L270)
+
+---
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1219](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1219)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1181](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1181)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl()
+> Create basic div to hold cue text
+
+##### RETURNS:
+* `Element`
+
+_defined in_: [src/js/tracks.js#L315](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L315)
+
+---
+
+### cues()
+> Get the track cues
+
+##### RETURNS:
+* `Array`
+
+_defined in_: [src/js/tracks.js#L255](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L255)
+
+---
+
+### deactivate()
+> Turn off cue tracking.
+
+_defined in_: [src/js/tracks.js#L398](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L398)
+
+---
+
+### dflt()
+> Get the track default value. ('default' is a reserved keyword)
+
+##### RETURNS:
+* `Boolean`
+
+_defined in_: [src/js/tracks.js#L196](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L196)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### disable()
+> Disable: Mode Off/Disable (0)
+> Indicates that the text track is not active. Other than for the purposes of exposing the track in the DOM, the user agent is ignoring the text track.
+> No cues are active, no events are fired, and the user agent will not attempt to obtain the track's cues.
+
+_defined in_: [src/js/tracks.js#L361](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L361)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1120](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1120)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide: Mode Hidden (1)
+> Indicates that the text track is active, but that the user agent is not actively displaying the cues.
+> If no attempt has yet been made to obtain the track's cues, the user agent will perform such an attempt momentarily.
+> The user agent is maintaining a list of which cues are active, and events are being fired accordingly.
+
+_defined in_: [src/js/tracks.js#L346](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L346)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/tracks.js#L134](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L134)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### kind()
+> Get the track kind value
+
+##### RETURNS:
+* `String`
+
+_defined in_: [src/js/tracks.js#L167](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L167)
+
+---
+
+### label()
+> Get the track label value
+
+##### RETURNS:
+* `String`
+
+_defined in_: [src/js/tracks.js#L240](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L240)
+
+---
+
+### language()
+> Get the track language value
+
+##### RETURNS:
+* `String`
+
+_defined in_: [src/js/tracks.js#L225](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L225)
+
+---
+
+### mode()
+> Get the track mode
+
+##### RETURNS:
+* `Number`
+
+_defined in_: [src/js/tracks.js#L307](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L307)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### readyState()
+> Get the track readyState
+
+##### RETURNS:
+* `Number`
+
+_defined in_: [src/js/tracks.js#L289](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L289)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1198](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1198)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1158](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1158)
+
+---
+
+### show()
+> Show: Mode Showing (2)
+> Indicates that the text track is active. If no attempt has yet been made to obtain the track's cues, the user agent will perform such an attempt momentarily.
+> The user agent is maintaining a list of which cues are active, and events are being fired accordingly.
+> In addition, for text tracks whose kind is subtitles or captions, the cues are being displayed over the video as appropriate;
+> for text tracks whose kind is descriptions, the user agent is making the cues available to the user in a non-visual fashion;
+> and for text tracks whose kind is chapters, the user agent is making available to the user a mechanism by which the user can navigate to any point in the media resource by selecting a cue.
+> The showing by default state is used in conjunction with the default attribute on track elements to indicate that the text track was enabled due to that attribute.
+> This allows the user agent to override the state if a later track is discovered that is more appropriate per the user's preferences.
+
+_defined in_: [src/js/tracks.js#L331](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L331)
+
+---
+
+### src()
+> Get the track src value
+
+##### RETURNS:
+* `String`
+
+_defined in_: [src/js/tracks.js#L181](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L181)
+
+---
+
+### title()
+> Get the track title value
+
+##### RETURNS:
+* `String`
+
+_defined in_: [src/js/tracks.js#L210](https://github.com/videojs/video.js/blob/master/src/js/tracks.js#L210)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.TextTrackButton.md b/bower_components/video.js/docs/api/vjs.TextTrackButton.md
new file mode 100644
index 0000000..c67e73c
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.TextTrackButton.md
@@ -0,0 +1,10 @@
+
+
+# vjs.TextTrackButton
+
+__DEFINED IN__: [src/js/tracks/text-track-controls.js#L337](https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-controls.js#L337)
+
+The base class for buttons that toggle specific text track types (e.g. subtitles)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.TextTrackDisplay.md b/bower_components/video.js/docs/api/vjs.TextTrackDisplay.md
new file mode 100644
index 0000000..7dcff3e
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.TextTrackDisplay.md
@@ -0,0 +1,10 @@
+
+
+# vjs.TextTrackDisplay
+
+__DEFINED IN__: [src/js/tracks/text-track-controls.js#L13](https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-controls.js#L13)
+
+The component for displaying text track cues
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.TextTrackMenuItem.md b/bower_components/video.js/docs/api/vjs.TextTrackMenuItem.md
new file mode 100644
index 0000000..43d9db9
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.TextTrackMenuItem.md
@@ -0,0 +1,10 @@
+
+
+# vjs.TextTrackMenuItem
+
+__DEFINED IN__: [src/js/tracks/text-track-controls.js#L194](https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-controls.js#L194)
+
+The specific menu item type for selecting a language within a text track kind
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.TimeDivider.md b/bower_components/video.js/docs/api/vjs.TimeDivider.md
new file mode 100644
index 0000000..e77a368
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.TimeDivider.md
@@ -0,0 +1,659 @@
+
+
+# vjs.TimeDivider
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/control-bar/time-display.js#L88](https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-display.js#L88)
+
+The separator between the current time and duration
+
+Can be hidden if it's not needed in the design.
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/control-bar/time-display.js#L90](https://github.com/videojs/video.js/blob/master/src/js/control-bar/time-display.js#L90)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.VolumeBar.md b/bower_components/video.js/docs/api/vjs.VolumeBar.md
new file mode 100644
index 0000000..b444efb
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.VolumeBar.md
@@ -0,0 +1,669 @@
+
+
+# vjs.VolumeBar
+
+__EXTENDS__: [vjs.Slider](vjs.Slider.md)
+__DEFINED IN__: [src/js/control-bar/volume-control.js#L46](https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control.js#L46)
+
+The bar that contains the volume level and can be clicked on to adjust the level
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [onClick](#onclick-event-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/control-bar/volume-control.js#L48](https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control.js#L48)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### onClick( event )
+> Listener for click events on slider, used to prevent clicks
+> from bubbling up to parent elements like button menus.
+
+##### PARAMETERS:
+* __event__ `Object` Event object
+
+_inherited from_: [src/js/slider.js#L202](https://github.com/videojs/video.js/blob/master/src/js/slider.js#L202)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.VolumeControl.md b/bower_components/video.js/docs/api/vjs.VolumeControl.md
new file mode 100644
index 0000000..1871944
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.VolumeControl.md
@@ -0,0 +1,657 @@
+
+
+# vjs.VolumeControl
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/control-bar/volume-control.js#L8](https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control.js#L8)
+
+The component for controlling the volume level
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/control-bar/volume-control.js#L10](https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control.js#L10)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.VolumeHandle.md b/bower_components/video.js/docs/api/vjs.VolumeHandle.md
new file mode 100644
index 0000000..afa04be
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.VolumeHandle.md
@@ -0,0 +1,656 @@
+
+
+# vjs.VolumeHandle
+
+__EXTENDS__: [vjs.SliderHandle](vjs.SliderHandle.md)
+__DEFINED IN__: [src/js/control-bar/volume-control.js#L131](https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control.js#L131)
+
+The volume handle can be dragged to adjust the volume level
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [createEl](#createel-tagname-attributes-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [init](#init-player-options-ready-) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+_defined in_: [src/js/control-bar/volume-control.js#L136](https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control.js#L136)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options, ready )
+> the constructor function for the class
+
+##### PARAMETERS:
+* __player__
+* __options__
+* __ready__
+
+_inherited from_: [src/js/component.js#L41](https://github.com/videojs/video.js/blob/master/src/js/component.js#L41)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.VolumeLevel.md b/bower_components/video.js/docs/api/vjs.VolumeLevel.md
new file mode 100644
index 0000000..f5e8988
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.VolumeLevel.md
@@ -0,0 +1,657 @@
+
+
+# vjs.VolumeLevel
+
+__EXTENDS__: [vjs.Component](vjs.Component.md)
+__DEFINED IN__: [src/js/control-bar/volume-control.js#L110](https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control.js#L110)
+
+Shows volume level
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+##### RETURNS:
+* `String` The constructed class name
+
+_inherited from_: [src/js/component.js#L536](https://github.com/videojs/video.js/blob/master/src/js/component.js#L536)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/control-bar/volume-control.js#L112](https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-control.js#L112)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.VolumeMenuButton.md b/bower_components/video.js/docs/api/vjs.VolumeMenuButton.md
new file mode 100644
index 0000000..8eb27e4
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.VolumeMenuButton.md
@@ -0,0 +1,662 @@
+
+
+# vjs.VolumeMenuButton
+
+__EXTENDS__: [vjs.MenuButton](vjs.MenuButton.md)
+__DEFINED IN__: [src/js/control-bar/volume-menu-button.js#L5](https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-menu-button.js#L5)
+
+Menu button with a popup for showing the volume slider.
+
+---
+
+## INDEX
+
+- [METHODS](#methods)
+ - [init](#init-player-options-)
+ - [addChild](#addchild-child-options-) _`inherited`_
+ - [addClass](#addclass-classtoadd-) _`inherited`_
+ - [buildCSSClass](#buildcssclass) _`inherited`_
+ - [children](#children) _`inherited`_
+ - [clearInterval](#clearinterval-intervalid-) _`inherited`_
+ - [clearTimeout](#cleartimeout-timeoutid-) _`inherited`_
+ - [contentEl](#contentel) _`inherited`_
+ - [createEl](#createel-tagname-attributes-) _`inherited`_
+ - [createItems](#createitems) _`inherited`_
+ - [dimensions](#dimensions-width-height-) _`inherited`_
+ - [dispose](#dispose) _`inherited`_
+ - [el](#el) _`inherited`_
+ - [enableTouchActivity](#enabletouchactivity) _`inherited`_
+ - [getChild](#getchild-name-) _`inherited`_
+ - [getChildById](#getchildbyid-id-) _`inherited`_
+ - [hasClass](#hasclass-classtocheck-) _`inherited`_
+ - [height](#height-num-skiplisteners-) _`inherited`_
+ - [hide](#hide) _`inherited`_
+ - [id](#id) _`inherited`_
+ - [initChildren](#initchildren) _`inherited`_
+ - [name](#name) _`inherited`_
+ - [off](#off-first-second-third-) _`inherited`_
+ - [on](#on-first-second-third-) _`inherited`_
+ - [one](#one-first-second-third-) _`inherited`_
+ - [options](#options-obj-) _`inherited`_
+ - [player](#player) _`inherited`_
+ - [ready](#ready-fn-) _`inherited`_
+ - [removeChild](#removechild-component-) _`inherited`_
+ - [removeClass](#removeclass-classtoremove-) _`inherited`_
+ - [setInterval](#setinterval-fn-interval-) _`inherited`_
+ - [setTimeout](#settimeout-fn-timeout-) _`inherited`_
+ - [show](#show) _`inherited`_
+ - [trigger](#trigger-event-) _`inherited`_
+ - [triggerReady](#triggerready) _`inherited`_
+ - [width](#width-num-skiplisteners-) _`inherited`_
+
+- [EVENTS](#events)
+ - [resize](#resize-event) _`inherited`_
+
+---
+
+## METHODS
+
+### addChild( child, [options] )
+> Adds a child component inside this component
+>
+> myComponent.el();
+> // ->
+> myComonent.children();
+> // [empty array]
+>
+> var myButton = myComponent.addChild('MyButton');
+> // ->
myButton
+> // -> myButton === myComonent.children()[0];
+>
+> Pass in options for child constructors and options for children of the child
+>
+> var myButton = myComponent.addChild('MyButton', {
+> text: 'Press Me',
+> children: {
+> buttonChildExample: {
+> buttonChildOption: true
+> }
+> }
+> });
+
+##### PARAMETERS:
+* __child__ `String|vjs.Component` The class name or instance of a child to add
+* __options__ `Object` _(OPTIONAL)_ Options, including options to be passed to children of the child.
+
+##### RETURNS:
+* `vjs.Component` The child component (created by this process if a string was used)
+
+_inherited from_: [src/js/component.js#L362](https://github.com/videojs/video.js/blob/master/src/js/component.js#L362)
+
+---
+
+### addClass( classToAdd )
+> Add a CSS class name to the component's element
+
+##### PARAMETERS:
+* __classToAdd__ `String` Classname to add
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L826](https://github.com/videojs/video.js/blob/master/src/js/component.js#L826)
+
+---
+
+### buildCSSClass()
+> Allows sub components to stack CSS class names
+
+_inherited from_: [src/js/menu.js#L166](https://github.com/videojs/video.js/blob/master/src/js/menu.js#L166)
+
+---
+
+### children()
+> Get an array of all child components
+>
+> var kids = myComponent.children();
+
+##### RETURNS:
+* `Array` The children
+
+_inherited from_: [src/js/component.js#L296](https://github.com/videojs/video.js/blob/master/src/js/component.js#L296)
+
+---
+
+### clearInterval( intervalId )
+> Clears an interval and removes the associated dispose listener
+
+##### PARAMETERS:
+* __intervalId__ `Number` The id of the interval to clear
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1223](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1223)
+
+---
+
+### clearTimeout( timeoutId )
+> Clears a timeout and removes the associated dispose listener
+
+##### PARAMETERS:
+* __timeoutId__ `Number` The id of the timeout to clear
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1185](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1185)
+
+---
+
+### contentEl()
+> Return the component's DOM element for embedding content.
+> Will either be el_ or a new element defined in createEl.
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L239](https://github.com/videojs/video.js/blob/master/src/js/component.js#L239)
+
+---
+
+### createEl( [tagName], [attributes] )
+> Create the component's DOM element
+
+##### PARAMETERS:
+* __tagName__ `String` _(OPTIONAL)_ Element's node type. e.g. 'div'
+* __attributes__ `Object` _(OPTIONAL)_ An object of element attributes that should be set on the element
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L200](https://github.com/videojs/video.js/blob/master/src/js/component.js#L200)
+
+---
+
+### createItems()
+> Create the list of menu items. Specific to each subclass.
+
+_inherited from_: [src/js/menu.js#L163](https://github.com/videojs/video.js/blob/master/src/js/menu.js#L163)
+
+---
+
+### dimensions( width, height )
+> Set both width and height at the same time
+
+##### PARAMETERS:
+* __width__ `Number|String`
+* __height__ `Number|String`
+
+##### RETURNS:
+* `vjs.Component` The component
+
+_inherited from_: [src/js/component.js#L938](https://github.com/videojs/video.js/blob/master/src/js/component.js#L938)
+
+---
+
+### dispose()
+> Dispose of the component and all child components
+
+_inherited from_: [src/js/component.js#L84](https://github.com/videojs/video.js/blob/master/src/js/component.js#L84)
+
+---
+
+### el()
+> Get the component's DOM element
+>
+> var domEl = myComponent.el();
+
+##### RETURNS:
+* `Element`
+
+_inherited from_: [src/js/component.js#L220](https://github.com/videojs/video.js/blob/master/src/js/component.js#L220)
+
+---
+
+### enableTouchActivity()
+> Report user touch activity when touch events occur
+>
+> User activity is used to determine when controls should show/hide. It's
+> relatively simple when it comes to mouse events, because any mouse event
+> should show the controls. So we capture mouse events that bubble up to the
+> player and report activity when that happens.
+>
+> With touch events it isn't as easy. We can't rely on touch events at the
+> player level, because a tap (touchstart + touchend) on the video itself on
+> mobile devices is meant to turn controls off (and on). User activity is
+> checked asynchronously, so what could happen is a tap event on the video
+> turns the controls off, then the touchend event bubbles up to the player,
+> which if it reported user activity, would turn the controls right back on.
+> (We also don't want to completely block touch events from bubbling up)
+>
+> Also a touchmove, touch+hold, and anything other than a tap is not supposed
+> to turn the controls back on on a mobile device.
+>
+> Here we're setting the default component behavior to report user activity
+> whenever touch events happen, and this can be turned off by components that
+> want touch events to act differently.
+
+_inherited from_: [src/js/component.js#L1124](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1124)
+
+---
+
+### getChild( name )
+> Returns a child component with the provided name
+
+##### PARAMETERS:
+* __name__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L330](https://github.com/videojs/video.js/blob/master/src/js/component.js#L330)
+
+---
+
+### getChildById( id )
+> Returns a child component with the provided ID
+
+##### PARAMETERS:
+* __id__
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L313](https://github.com/videojs/video.js/blob/master/src/js/component.js#L313)
+
+---
+
+### hasClass( classToCheck )
+> Check if a component's element has a CSS class name
+
+##### PARAMETERS:
+* __classToCheck__ `String` Classname to check
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L816](https://github.com/videojs/video.js/blob/master/src/js/component.js#L816)
+
+---
+
+### height( [num], [skipListeners] )
+> Get or set the height of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ New component height
+* __skipListeners__ `Boolean` _(OPTIONAL)_ Skip the resize event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the height
+* `Number|String` The height, when getting
+
+_inherited from_: [src/js/component.js#L927](https://github.com/videojs/video.js/blob/master/src/js/component.js#L927)
+
+---
+
+### hide()
+> Hide the component element if currently showing
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L857](https://github.com/videojs/video.js/blob/master/src/js/component.js#L857)
+
+---
+
+### id()
+> Get the component's ID
+>
+> var id = myComponent.id();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L258](https://github.com/videojs/video.js/blob/master/src/js/component.js#L258)
+
+---
+
+### init( player, options )
+
+##### PARAMETERS:
+* __player__
+* __options__
+
+_defined in_: [src/js/control-bar/volume-menu-button.js#L7](https://github.com/videojs/video.js/blob/master/src/js/control-bar/volume-menu-button.js#L7)
+
+---
+
+### initChildren()
+> Add and initialize default child components from options
+>
+> // when an instance of MyComponent is created, all children in options
+> // will be added to the instance by their name strings and options
+> MyComponent.prototype.options_.children = {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+>
+> // Or when creating the component
+> var myComp = new MyComponent(player, {
+> children: {
+> myChildComponent: {
+> myChildOption: true
+> }
+> }
+> });
+>
+> The children option can also be an Array of child names or
+> child options objects (that also include a 'name' key).
+>
+> var myComp = new MyComponent(player, {
+> children: [
+> 'button',
+> {
+> name: 'button',
+> someOtherOption: true
+> }
+> ]
+> });
+
+_inherited from_: [src/js/component.js#L481](https://github.com/videojs/video.js/blob/master/src/js/component.js#L481)
+
+---
+
+### name()
+> Get the component's name. The name is often used to reference the component.
+>
+> var name = myComponent.name();
+
+##### RETURNS:
+* `String`
+
+_inherited from_: [src/js/component.js#L277](https://github.com/videojs/video.js/blob/master/src/js/component.js#L277)
+
+---
+
+### off( [first], [second], [third] )
+> Remove an event listener from this component's element
+>
+> myComponent.off('eventType', myFunc);
+>
+> If myFunc is excluded, ALL listeners for the event type will be removed.
+> If eventType is excluded, ALL listeners will be removed from the component.
+>
+> Alternatively you can use `off` to remove listeners that were added to other
+> elements or components using `myComponent.on(otherComponent...`.
+> In this case both the event type and listener function are REQUIRED.
+>
+> myComponent.off(otherElement, 'eventType', myFunc);
+> myComponent.off(otherComponent, 'eventType', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` _(OPTIONAL)_ The event type or other component
+* __second__ `Function|String` _(OPTIONAL)_ The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L646](https://github.com/videojs/video.js/blob/master/src/js/component.js#L646)
+
+---
+
+### on( first, second, third )
+> Add an event listener to this component's element
+>
+> var myFunc = function(){
+> var myComponent = this;
+> // Do something when the event is fired
+> };
+>
+> myComponent.on('eventType', myFunc);
+>
+> The context of myFunc will be myComponent unless previously bound.
+>
+> Alternatively, you can add a listener to another element or component.
+>
+> myComponent.on(otherElement, 'eventName', myFunc);
+> myComponent.on(otherComponent, 'eventName', myFunc);
+>
+> The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+> and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+> will be automatically cleaned up when either component is disposed.
+> It will also bind myComponent as the context of myFunc.
+>
+> **NOTE**: When using this on elements in the page other than window
+> and document (both permanent), if you remove the element from the DOM
+> you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+> references to it and allow the browser to garbage collect it.
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The event handler or event type
+* __third__ `Function` The event handler
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L577](https://github.com/videojs/video.js/blob/master/src/js/component.js#L577)
+
+---
+
+### one( first, second, [third] )
+> Add an event listener to be triggered only once and then removed
+>
+> myComponent.one('eventName', myFunc);
+>
+> Alternatively you can add a listener to another element or component
+> that will be triggered only once.
+>
+> myComponent.one(otherElement, 'eventName', myFunc);
+> myComponent.one(otherComponent, 'eventName', myFunc);
+
+##### PARAMETERS:
+* __first__ `String|vjs.Component` The event type or other component
+* __second__ `Function|String` The listener function or event type
+* __third__ `Function` _(OPTIONAL)_ The listener function for other component
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L691](https://github.com/videojs/video.js/blob/master/src/js/component.js#L691)
+
+---
+
+### options( obj )
+> Deep merge of options objects
+>
+> Whenever a property is an object on both options objects
+> the two properties will be merged using vjs.obj.deepMerge.
+>
+> This is used for merging options for child components. We
+> want it to be easy to override individual options on a child
+> component without having to rewrite all the other default options.
+>
+> Parent.prototype.options_ = {
+> children: {
+> 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+> 'childTwo': {},
+> 'childThree': {}
+> }
+> }
+> newOptions = {
+> children: {
+> 'childOne': { 'foo': 'baz', 'abc': '123' }
+> 'childTwo': null,
+> 'childFour': {}
+> }
+> }
+>
+> this.options(newOptions);
+>
+> RESULT
+>
+> {
+> children: {
+> 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+> 'childTwo': null, // Disabled. Won't be initialized.
+> 'childThree': {},
+> 'childFour': {}
+> }
+> }
+
+##### PARAMETERS:
+* __obj__ `Object` Object of new option values
+
+##### RETURNS:
+* `Object` A NEW object of this.options_ and obj merged
+
+_inherited from_: [src/js/component.js#L179](https://github.com/videojs/video.js/blob/master/src/js/component.js#L179)
+
+---
+
+### player()
+> Return the component's player
+
+##### RETURNS:
+* `vjs.Player`
+
+_inherited from_: [src/js/component.js#L126](https://github.com/videojs/video.js/blob/master/src/js/component.js#L126)
+
+---
+
+### ready( fn )
+> Bind a listener to the component's ready state
+>
+> Different from event listeners in that if the ready event has already happened
+> it will trigger the function immediately.
+
+##### PARAMETERS:
+* __fn__ `Function` Ready listener
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L769](https://github.com/videojs/video.js/blob/master/src/js/component.js#L769)
+
+---
+
+### removeChild( component )
+> Remove a child component from this component's list of children, and the
+> child component's element from this component's element
+
+##### PARAMETERS:
+* __component__ `vjs.Component` Component to remove
+
+_inherited from_: [src/js/component.js#L420](https://github.com/videojs/video.js/blob/master/src/js/component.js#L420)
+
+---
+
+### removeClass( classToRemove )
+> Remove a CSS class name from the component's element
+
+##### PARAMETERS:
+* __classToRemove__ `String` Classname to remove
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L837](https://github.com/videojs/video.js/blob/master/src/js/component.js#L837)
+
+---
+
+### setInterval( fn, interval )
+> Creates an interval and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run every N seconds.
+* __interval__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the interval ID
+
+_inherited from_: [src/js/component.js#L1202](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1202)
+
+---
+
+### setTimeout( fn, timeout )
+> Creates timeout and sets up disposal automatically.
+
+##### PARAMETERS:
+* __fn__ `Function` The function to run after the timeout.
+* __timeout__ `Number` Number of ms to delay before executing specified function.
+
+##### RETURNS:
+* `Number` Returns the timeout ID
+
+_inherited from_: [src/js/component.js#L1162](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1162)
+
+---
+
+### show()
+> Show the component element if hidden
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L847](https://github.com/videojs/video.js/blob/master/src/js/component.js#L847)
+
+---
+
+### trigger( event )
+> Trigger an event on an element
+>
+> myComponent.trigger('eventName');
+> myComponent.trigger({'type':'eventName'});
+
+##### PARAMETERS:
+* __event__ `Event|Object|String` A string (the type) or an event object with a type attribute
+
+##### RETURNS:
+* `vjs.Component` self
+
+_inherited from_: [src/js/component.js#L724](https://github.com/videojs/video.js/blob/master/src/js/component.js#L724)
+
+---
+
+### triggerReady()
+> Trigger the ready listeners
+
+##### RETURNS:
+* `vjs.Component`
+
+_inherited from_: [src/js/component.js#L788](https://github.com/videojs/video.js/blob/master/src/js/component.js#L788)
+
+---
+
+### width( [num], skipListeners )
+> Set or get the width of the component (CSS values)
+>
+> Setting the video tag dimension values only works with values in pixels.
+> Percent values will not work.
+> Some percents can be used, but width()/height() will return the number + %,
+> not the actual computed width/height.
+
+##### PARAMETERS:
+* __num__ `Number|String` _(OPTIONAL)_ Optional width number
+* __skipListeners__ `Boolean` Skip the 'resize' event trigger
+
+##### RETURNS:
+* `vjs.Component` This component, when setting the width
+* `Number|String` The width, when getting
+
+_inherited from_: [src/js/component.js#L910](https://github.com/videojs/video.js/blob/master/src/js/component.js#L910)
+
+---
+
+## EVENTS
+
+### resize `EVENT`
+> Fired when the width and/or height of the component changes
+
+_inherited from_: [src/js/component.js#L1020](https://github.com/videojs/video.js/blob/master/src/js/component.js#L1020)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.md b/bower_components/video.js/docs/api/vjs.md
new file mode 100644
index 0000000..e6ed133
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.md
@@ -0,0 +1,183 @@
+
+
+# vjs
+
+__DEFINED IN__: [src/js/core.js#L26](https://github.com/videojs/video.js/blob/master/src/js/core.js#L26)
+
+Doubles as the main function for users to create a player instance and also
+the main library object.
+
+**ALIASES** videojs, _V_ (deprecated)
+
+The `vjs` function can be used to initialize or retrieve a player.
+
+ var myPlayer = vjs('my_video_id');
+
+---
+
+## INDEX
+
+- [PROPERTIES](#properties)
+ - [options](#options)
+ - [players](#players)
+
+- [METHODS](#methods)
+ - [addLanguage](#addlanguage-code-data-)
+ - [parseUrl](#parseurl-url-)
+ - [plugin](#plugin-name-init-)
+ - [xhr](#xhr-options-callback-)
+
+- CLASSES
+ - [BigPlayButton](vjs.BigPlayButton.md)
+ - [Button](vjs.Button.md)
+ - [CaptionsButton](undefined.md)
+ - [ChaptersButton](undefined.md)
+ - [ChaptersTrackMenuItem](undefined.md)
+ - [Component](vjs.Component.md)
+ - [ControlBar](vjs.ControlBar.md)
+ - [CoreObject](vjs.CoreObject.md)
+ - [CurrentTimeDisplay](vjs.CurrentTimeDisplay.md)
+ - [DurationDisplay](vjs.DurationDisplay.md)
+ - [ErrorDisplay](vjs.ErrorDisplay.md)
+ - [Flash](vjs.Flash.md)
+ - [FullscreenToggle](vjs.FullscreenToggle.md)
+ - [Html5](vjs.Html5.md)
+ - [LiveDisplay](vjs.LiveDisplay.md)
+ - [LoadProgressBar](vjs.LoadProgressBar.md)
+ - [LoadingSpinner](vjs.LoadingSpinner.md)
+ - [MediaError](vjs.MediaError.md)
+ - [MediaLoader](vjs.MediaLoader.md)
+ - [MediaTechController](undefined.md)
+ - [Menu](vjs.Menu.md)
+ - [MenuButton](vjs.MenuButton.md)
+ - [MenuItem](vjs.MenuItem.md)
+ - [MuteToggle](vjs.MuteToggle.md)
+ - [OffTextTrackMenuItem](undefined.md)
+ - [PlayProgressBar](vjs.PlayProgressBar.md)
+ - [PlayToggle](vjs.PlayToggle.md)
+ - [PlaybackRateMenuButton](vjs.PlaybackRateMenuButton.md)
+ - [PlaybackRateMenuItem](vjs.PlaybackRateMenuItem.md)
+ - [Player](vjs.Player.md)
+ - [PosterImage](vjs.PosterImage.md)
+ - [ProgressControl](vjs.ProgressControl.md)
+ - [RemainingTimeDisplay](vjs.RemainingTimeDisplay.md)
+ - [SeekBar](vjs.SeekBar.md)
+ - [SeekHandle](vjs.SeekHandle.md)
+ - [Slider](vjs.Slider.md)
+ - [SliderHandle](vjs.SliderHandle.md)
+ - [SubtitlesButton](undefined.md)
+ - [TextTrackButton](undefined.md)
+ - [TextTrackDisplay](undefined.md)
+ - [TextTrackMenuItem](undefined.md)
+ - [TimeDivider](vjs.TimeDivider.md)
+ - [VolumeBar](vjs.VolumeBar.md)
+ - [VolumeControl](vjs.VolumeControl.md)
+ - [VolumeHandle](vjs.VolumeHandle.md)
+ - [VolumeLevel](vjs.VolumeLevel.md)
+ - [VolumeMenuButton](vjs.VolumeMenuButton.md)
+
+- NAMESPACES
+ - [log](vjs.log.md)
+ - [util](vjs.util.md)
+
+---
+
+## PROPERTIES
+
+### options
+> Global Player instance options, surfaced from vjs.Player.prototype.options_
+> vjs.options = vjs.Player.prototype.options_
+> All options should use string keys so they avoid
+> renaming by closure compiler
+
+_defined in_: [src/js/core.js#L92](https://github.com/videojs/video.js/blob/master/src/js/core.js#L92)
+
+---
+
+### players
+> Global player list
+
+_defined in_: [src/js/core.js#L164](https://github.com/videojs/video.js/blob/master/src/js/core.js#L164)
+
+---
+
+## METHODS
+
+### addLanguage( code, data )
+> Utility function for adding languages to the default options. Useful for
+> amending multiple language support at runtime.
+>
+> Example: vjs.addLanguage('es', {'Hello':'Hola'});
+
+##### PARAMETERS:
+* __code__ `String` The language code or dictionary property
+* __data__ `Object` The data values to be translated
+
+##### RETURNS:
+* `Object` The resulting global languages dictionary object
+
+_defined in_: [src/js/core.js#L151](https://github.com/videojs/video.js/blob/master/src/js/core.js#L151)
+
+---
+
+### parseUrl( url )
+> Resolve and parse the elements of a URL
+
+##### PARAMETERS:
+* __url__ `String` The url to parse
+
+##### RETURNS:
+* `Object` An object of url details
+
+_defined in_: [src/js/lib.js#L676](https://github.com/videojs/video.js/blob/master/src/js/lib.js#L676)
+
+---
+
+### plugin( name, init )
+> the method for registering a video.js plugin
+
+##### PARAMETERS:
+* __name__ `String` The name of the plugin
+* __init__ `Function` The function that is run when the player inits
+
+_defined in_: [src/js/plugins.js#L7](https://github.com/videojs/video.js/blob/master/src/js/plugins.js#L7)
+
+---
+
+### xhr( options, callback )
+> Simple http request for retrieving external files (e.g. text tracks)
+>
+> ##### Example
+>
+> // using url string
+> videojs.xhr('http://example.com/myfile.vtt', function(error, response, responseBody){});
+>
+> // or options block
+> videojs.xhr({
+> uri: 'http://example.com/myfile.vtt',
+> method: 'GET',
+> responseType: 'text'
+> }, function(error, response, responseBody){
+> if (error) {
+> // log the error
+> } else {
+> // successful, do something with the response
+> }
+> });
+>
+>
+> API is modeled after the Raynos/xhr, which we hope to use after
+> getting browserify implemented.
+> https://github.com/Raynos/xhr/blob/master/index.js
+
+##### PARAMETERS:
+* __options__ `Object|String` Options block or URL string
+* __callback__ `Function` The callback function
+
+##### RETURNS:
+* `Object` The request
+
+_defined in_: [src/js/xhr.js#L31](https://github.com/videojs/video.js/blob/master/src/js/xhr.js#L31)
+
+---
+
diff --git a/bower_components/video.js/docs/api/vjs.media.md b/bower_components/video.js/docs/api/vjs.media.md
new file mode 100644
index 0000000..b7bc636
--- /dev/null
+++ b/bower_components/video.js/docs/api/vjs.media.md
@@ -0,0 +1,23 @@
+
+
+# vjs.media
+
+
+---
+
+## INDEX
+
+- [UNDEFINED](#undefined)
+ - [ApiMethods](#apimethods)
+
+---
+
+## UNDEFINED
+
+### ApiMethods
+> List of default API methods for any MediaTechController
+
+_defined in_: [src/js/media/media.js#L169](https://github.com/videojs/video.js/blob/master/src/js/media/media.js#L169)
+
+---
+
diff --git a/bower_components/video.js/docs/guides/api.md b/bower_components/video.js/docs/guides/api.md
new file mode 100644
index 0000000..2e1d133
--- /dev/null
+++ b/bower_components/video.js/docs/guides/api.md
@@ -0,0 +1,44 @@
+API
+===
+
+The Video.js API allows you to interact with the video through JavaScript, whether the browser is playing the video through HTML5 video, Flash, or any other supported playback technologies.
+
+Referencing the Player
+----------------------
+To use the API functions, you need access to the player object. Luckily this is easy to get. You just need to make sure your video tag has an ID. The example embed code has an ID of "example\_video_1". If you have multiple videos on one page, make sure every video tag has a unique ID.
+
+```js
+var myPlayer = videojs('example_video_1');
+```
+
+(If the player hasn't been initialized yet via the data-setup attribute or another method, this will also initialize the player.)
+
+Wait Until the Player is Ready
+------------------------------
+The time it takes Video.js to set up the video and API will vary depending on the playback technology being used (HTML5 will often be much faster to load than Flash). For that reason we want to use the player's 'ready' function to trigger any code that requires the player's API.
+
+```javascript
+videojs("example_video_1").ready(function(){
+ var myPlayer = this;
+
+ // EXAMPLE: Start playing the video.
+ myPlayer.play();
+
+});
+```
+
+API Methods
+-----------
+Now that you have access to a ready player, you can control the video, get values, or respond to video events. The Video.js API function names follow the [HTML5 media API](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html). The main difference is that getter/setter functions are used for video properties.
+
+```js
+
+// setting a property on a bare HTML5 video element
+myVideoElement.currentTime = "120";
+
+// setting a property on a Video.js player
+myPlayer.currentTime(120);
+
+```
+
+The full list of player API methods and events can be found in the [player API docs](../api/vjs.Player.md).
diff --git a/bower_components/video.js/docs/guides/components.md b/bower_components/video.js/docs/guides/components.md
new file mode 100644
index 0000000..130e6c9
--- /dev/null
+++ b/bower_components/video.js/docs/guides/components.md
@@ -0,0 +1,59 @@
+Components
+===
+The Video.js player is built on top of a simple, custom UI components architecture. The player class and all control classes inherit from the Component class, or a subclass of Component.
+
+```js
+videojs.Control = videojs.Component.extend();
+videojs.Button = videojs.Control.extend();
+videojs.PlayToggle = videojs.Button.extend();
+```
+
+The UI component architecture makes it easier to add child components to a parent component and build up an entire user interface, like the controls for the Video.js player.
+
+```js
+// Adding a new control to the player
+myPlayer.addChild('BigPlayButton');
+```
+
+Every component has an associated DOM element, and when you add a child component, it inserts the element of that child into the element of the parent.
+
+```js
+myPlayer.addChild('BigPlayButton');
+```
+
+Results in:
+
+```html
+
+
+```
+
+The actual default component structure of the Video.js player looks something like this:
+
+```
+Player
+ PosterImage
+ TextTrackDisplay
+ LoadingSpinner
+ BigPlayButton
+ ControlBar
+ PlayToggle
+ FullscreenToggle
+ CurrentTimeDisplay
+ TimeDivider
+ DurationDisplay
+ RemainingTimeDisplay
+ ProgressControl
+ SeekBar
+ LoadProgressBar
+ PlayProgressBar
+ SeekHandle
+ VolumeControl
+ VolumeBar
+ VolumeLevel
+ VolumeHandle
+ MuteToggle
+```
diff --git a/bower_components/video.js/docs/guides/glossary.md b/bower_components/video.js/docs/guides/glossary.md
new file mode 100644
index 0000000..86ec1e9
--- /dev/null
+++ b/bower_components/video.js/docs/guides/glossary.md
@@ -0,0 +1,39 @@
+Glossary
+========
+Terms related to web video.
+
+### DOM (Document Object Model)
+The container of elements on the page that must be loaded before you can interact with the elements with through Javascript.
+http://en.wikipedia.org/wiki/Document_Object_Model
+
+
+### Flash Fallback
+The Flash video player (SWF) used to play a video when HTML5 isn't supported.
+
+
+### TimeRange
+
+
+### HTML5 Video
+HTML is the markup language that makes up every page on the web. The newest version, HTML5, includes specifications for a video tag, that is meant to allow website developers to add a video to a page the same way they would add an image. In order for this to work, web browser developers (Mozilla, Apple, Microsoft, Google, Opera, etc.) have to build the video playback functionality into their browsers. The W3C has created directions on how video should work in browsers, and it’s up to browser developers to follow those directions, so that video works the same across all browsers. This doesn’t always happen thanks to technology, legal, and financial choices made by browser developers, but so far no one’s varying too far from the specifications. However the specifications are still being changed and refined, so browsers developers have to keep up with that as well.
+
+Playing video in a web page may not seem so special since you can already view video on a web page through plugins like Flash Player, Quicktime, Silverlight, and RealPlayer, however this is a big step forward for standardizing video playback across web browsers and devices. The goal is that in the future, developers will only need to use one method for embedding a video, that’s based on open standards (not controlled by one company), and it will work everywhere.
+
+A prime example of this is the iPhone and iPad. Apple has decided not to support Flash on their mobile devices, but they do support HTML5 video. Since Flash is currently the most common way video is added to web pages, most web video (aside from YouTube who has a special relationship with Apple) can’t be viewed on the iPhone or iPad. These devices are very popular, so many web sites are switching to hybrid HTML5/Flash player setups (like VideoJS).
+
+
+### Video Tag
+There are a number of great resources that will give you an introduction to the video tag an how it is used including:
+
+ - [Dive into HTML5](http://diveintohtml5.org/video.html)
+ - Lynda.com's ['HTML5 Video and Audio in Depth'](http://www.lynda.com/HTML-5-tutorials/HTML5-Video-and-Audio-in-Depth/80781-2.html) video tutorials created by yours truly.
+
+An if you really want to dig in, you can read the (W3C Spec)[http://www.w3.org/TR/html5/video.html]. (Warning - not for the faint of heart)
+
+
+### Skin
+"Skin" refers to the design of the player's controls, also sometimes called the chrome. With VideoJS, new skins can be built simply by creating a new stylesheet.
+
+
+### Content Delivery Network (CDN)
+A network of servers around the world that host copies of a file. When your browser requests one of these files, the CDN automatically determines which server is closest to your location and delivers the file from there. This drastically increases delivery time, especially internationally.
diff --git a/bower_components/video.js/docs/guides/languages.md b/bower_components/video.js/docs/guides/languages.md
new file mode 100644
index 0000000..94de374
--- /dev/null
+++ b/bower_components/video.js/docs/guides/languages.md
@@ -0,0 +1,313 @@
+Languages
+=========
+
+Multiple language support allows for users of non-English locales to natively interact with the displayed player. Video.js will compile multiple language files (see below) and instantiate with a global dictionary of language key/value support. Video.js player instances can be created with per-player language support that amends/overrides these default values. Player instances can also hard-set default languages to values other than English as of version 4.7.
+
+Creating the Language File
+--------------------------
+Video.js uses key/value object dictionaries in JSON form. A sample dictionary for Spanish `['es']` would look as follows;
+
+```JSON
+{
+ "Play": "Reproducción",
+ "Pause": "Pausa",
+ "Current Time": "Tiempo reproducido",
+ "Duration Time": "Duración total",
+ "Remaining Time": "Tiempo restante",
+ "Stream Type": "Tipo de secuencia",
+ "LIVE": "DIRECTO",
+ "Loaded": "Cargado",
+ "Progress": "Progreso",
+ "Fullscreen": "Pantalla completa",
+ "Non-Fullscreen": "Pantalla no completa",
+ "Mute": "Silenciar",
+ "Unmuted": "No silenciado",
+ "Playback Rate": "Velocidad de reproducción",
+ "Subtitles": "Subtítulos",
+ "subtitles off": "Subtítulos desactivados",
+ "Captions": "Subtítulos especiales",
+ "captions off": "Subtítulos especiales desactivados",
+ "Chapters": "Capítulos",
+ "You aborted the video playback": "Ha interrumpido la reproducción del vídeo.",
+ "A network error caused the video download to fail part-way.": "Un error de red ha interrumpido la descarga del vídeo.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "No se ha podido cargar el vídeo debido a un fallo de red o del servidor o porque el formato es incompatible.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La reproducción de vídeo se ha interrumpido por un problema de corrupción de datos o porque el vídeo precisa funciones que su navegador no ofrece.",
+ "No compatible source was found for this video.": "No se ha encontrado ninguna fuente compatible con este vídeo."
+}
+```
+
+Notes:
+
+- The file name should always be in the format `XX.json`, where `XX` is the two letter value of the language reported to the browser (for options see the bottom of this document).
+- For automatic inclusion at build time, add your language file to the `/lang` directory (see 'Adding Languages to Video.js below').
+
+Adding Languages to Video.js
+----------------------------
+Additional language support can be added to Video.js in multiple ways.
+
+1. Create language scripts out of your JSON objects by using our custom grunt task `vjslanguages`. This task is automatically run as part of the default grunt task in Video.JS, but can be configured to match your `src`/`dist` directories if different. Once these scripts are created, just add them to your DOM like any other script.
+
+NOTE: These need to be added after the core Video.js script.
+
+
+2. Add your JSON objects via the videojs.addLanguage API. Preferably in the HEAD element of your DOM or otherwise prior to player instantiation.
+
+```html
+
+
+
+```
+
+3. During a Video.js player instantiation. Adding the languages to the configuration object provided in the `data-setup` attribute.
+
+```html
+
+
+
+
+
+
+
+
+```
+
+Notes:
+- This will add your language key/values to the Video.js player instances individually. If these values already exist in the global dictionary via the process above, those will be overridden for the player instance in question.
+
+
+Setting Default Language in a Video.js Player
+---------------------------------------------
+During a Video.js player instantiation you can force it to localize to a specific language by including the locale value into the configuration object via the `data-setup` attribute. Valid options listed at the bottom of the page for reference.
+
+```html
+
+
+
+
+
+
+
+
+```
+
+Localization in Plugins
+-----------------------
+
+When you're developing a plugin, you can also introduce new localized strings. Simply wrap the string with the player's `localize` function:
+
+```javascript
+var details = '
' + player.localize('Technical details') + '
';
+```
+
+Language Codes
+--------------
+The following is a list of official language codes.
+
+**NOTE:** For supported language translations, please see the [Languages Folder (/lang)](../../lang) folder located in the project root.
+
+
+
+
+
+
+ ab Abkhazian
+ aa Afar
+ af Afrikaans
+ sq Albanian
+ am Amharic
+ ar Arabic
+ an Aragonese
+ hy Armenian
+ as Assamese
+ ay Aymara
+ az Azerbaijani
+ ba Bashkir
+ eu Basque
+ bn Bengali (Bangla)
+ dz Bhutani
+ bh Bihari
+ bi Bislama
+ br Breton
+ bg Bulgarian
+ my Burmese
+ be Byelorussian (Belarusian)
+ km Cambodian
+ ca Catalan
+ zh Chinese (Simplified)
+ zh Chinese (Traditional)
+ co Corsican
+ hr Croatian
+ cs Czech
+ da Danish
+ nl Dutch
+ en English
+ eo Esperanto
+ et Estonian
+ fo Faeroese
+ fa Farsi
+ fj Fiji
+ fi Finnish
+
+
+
+
+
+
+ fr French
+ fy Frisian
+ gl Galician
+ gd Gaelic (Scottish)
+ gv Gaelic (Manx)
+ ka Georgian
+ de German
+ el Greek
+ kl Greenlandic
+ gn Guarani
+ gu Gujarati
+ ht Haitian Creole
+ ha Hausa
+ he Hebrew
+ hi Hindi
+ hu Hungarian
+ is Icelandic
+ io Ido
+ id Indonesian
+ ia Interlingua
+ ie Interlingue
+ iu Inuktitut
+ ik Inupiak
+ ga Irish
+ it Italian
+ ja Japanese
+ jv Javanese
+ kn Kannada
+ ks Kashmiri
+ kk Kazakh
+ rw Kinyarwanda (Ruanda)
+ ky Kirghiz
+ rn Kirundi (Rundi)
+ ko Korean
+ ku Kurdish
+ lo Laothian
+ la Latin
+
+
+
+
+
+
+ lv Latvian (Lettish)
+ li Limburgish ( Limburger)
+ ln Lingala
+ lt Lithuanian
+ mk Macedonian
+ mg Malagasy
+ ms Malay
+ ml Malayalam
+ mt Maltese
+ mi Maori
+ mr Marathi
+ mo Moldavian
+ mn Mongolian
+ na Nauru
+ ne Nepali
+ no Norwegian
+ oc Occitan
+ or Oriya
+ om Oromo (Afan, Galla)
+ ps Pashto (Pushto)
+ pl Polish
+ pt Portuguese
+ pa Punjabi
+ qu Quechua
+ rm Rhaeto-Romance
+ ro Romanian
+ ru Russian
+ sm Samoan
+ sg Sangro
+ sa Sanskrit
+ sr Serbian
+ sh Serbo-Croatian
+ st Sesotho
+ tn Setswana
+ sn Shona
+ ii Sichuan Yi
+ sd Sindhi
+
+
+
+
+
+
+ si Sinhalese
+ ss Siswati
+ sk Slovak
+ sl Slovenian
+ so Somali
+ es Spanish
+ su Sundanese
+ sw Swahili (Kiswahili)
+ sv Swedish
+ tl Tagalog
+ tg Tajik
+ ta Tamil
+ tt Tatar
+ te Telugu
+ th Thai
+ bo Tibetan
+ ti Tigrinya
+ to Tonga
+ ts Tsonga
+ tr Turkish
+ tk Turkmen
+ tw Twi
+ ug Uighur
+ uk Ukrainian
+ ur Urdu
+ uz Uzbek
+ vi Vietnamese
+ vo Volapük
+ wa Wallon
+ cy Welsh
+ wo Wolof
+ xh Xhosa
+ yi Yiddish
+ yo Yoruba
+ zu Zulu
+
+
+
+
+
diff --git a/bower_components/video.js/docs/guides/options.md b/bower_components/video.js/docs/guides/options.md
new file mode 100644
index 0000000..abba10e
--- /dev/null
+++ b/bower_components/video.js/docs/guides/options.md
@@ -0,0 +1,153 @@
+Options
+=======
+
+Setting Options
+---------------
+
+The Video.js embed code is simply an HTML5 video tag, so for many of the options you can use the standard tag attributes to set the options.
+
+```html
+
+```
+
+Alternatively, you can use the data-setup attribute to provide options in the [JSON](http://json.org/example.html) format. This is also how you would set options that aren't standard to the video tag.
+
+```html
+
+```
+
+Finally, if you're not using the data-setup attribute to trigger the player setup, you can pass in an object with the player options as the second argument in the javascript setup function.
+
+```js
+videojs("example_video_1", { "controls": true, "autoplay": false, "preload": "auto" });
+```
+
+
+Individual Options
+------------------
+
+> ### Note on Video Tag Attributes ###
+> With HTML5 video tag attributes that can only be true or false (boolean), you simply include the attribute (no equals sign) to turn it on, or exclude it to turn it off. For example, to turn controls on:
+
+WRONG
+```html
+
+```
+
+RIGHT
+```html
+
+```
+
+> The biggest issue people run into is trying to set these values to false using false as the value (e.g. controls="false") which actually does the opposite and sets the value to true because the attribute is still included. If you need the attribute to include an equals sign for XHTML validation, you can set the attribute's value to the same as its name (e.g. controls="controls").
+
+
+### controls ###
+The controls option sets whether or not the player has controls that the user can interact with. Without controls the only way to start the video playing is with the autoplay attribute or through the API.
+
+```html
+
+or
+{ "controls": true }
+```
+
+
+### autoplay ###
+If autoplay is true, the video will start playing as soon as page is loaded (without any interaction from the user).
+NOT SUPPORTED BY APPLE iOS DEVICES. Apple blocks the autoplay functionality in an effort to protect it's customers from unwillingly using a lot of their (often expensive) monthly data plans. A user touch/click is required to start the video in this case.
+```html
+
+or
+{ "autoplay": true }
+```
+
+
+### preload ###
+The preload attribute informs the browser whether or not the video data should begin downloading as soon as the video tag is loaded. The options are auto, metadata, and none.
+
+'auto': Start loading the video immediately (if the browser agrees). Some mobile devices like iPhones and iPads will not preload the video in order to protect their users' bandwidth. This is why the value is called 'auto' and not something more final like 'true'.
+
+'metadata': Load only the meta data of the video, which includes information like the duration and dimensions of the video.
+
+'none': Don't preload any of the video data. This will wait until the user clicks play to begin downloading.
+
+```html
+
+or
+{ "preload": "auto" }
+```
+
+
+### poster ###
+The poster attribute sets the image that displays before the video begins playing. This is often a frame of the video or a custom title screen. As soon as the user clicks play the image will go away.
+```html
+
+or
+{ "poster": "myPoster.jpg" }
+```
+
+
+### loop ###
+The loop attribute causes the video to start over as soon as it ends. This could be used for a visual effect like clouds in the background.
+```html
+
+or
+{ "loop": "true" }
+```
+
+
+### width ###
+The width attribute sets the display width of the video.
+```html
+
+or
+{ "width": 640 }
+```
+
+
+### height ###
+The height attribute sets the display height of the video.
+```html
+
+or
+{ "height": 480 }
+```
+
+Component Options
+-----------------
+
+You can set the options for any single player component. For instance, if you wanted to remove the `muteToggle` button, which
+is a child of `controlBar`, you can just set that component to false:
+
+```javascript
+var player = videojs('video-id', {
+ children: {
+ controlBar: {
+ children: {
+ muteToggle: false
+ }
+ }
+ }
+});
+```
+
+All the children can start getting a little verbose, so to simplify things, you can also set options for child components directly on the parent options.
+This is functionally the exact same as the above, for instance.
+
+```javascript
+var player = videojs('video-id', {
+ controlBar: {
+ muteToggle: false
+ }
+});
+```
+
+This also works using the `data-setup` attribute on the video element, just remember the options need to use proper JSON
+notation.
+
+```html
+
+```
+
+The [components guide](components.md) has an excellent breakdown of the structure of a player, you
+just need to remember to nest child components in a `children` object for each level.
diff --git a/bower_components/video.js/docs/guides/plugins.md b/bower_components/video.js/docs/guides/plugins.md
new file mode 100644
index 0000000..1e8a5be
--- /dev/null
+++ b/bower_components/video.js/docs/guides/plugins.md
@@ -0,0 +1,47 @@
+Plugins
+=======
+If you've built something cool with Video.js, you can easily share it with the rest of the world by creating a plugin. Although, you can roll your own, you can also use [generator-videojs-plugin](https://github.com/dmlap/generator-videojs-plugin), a [Yeoman](http://yeoman.io) generator that provides scaffolding for video.js plugins including:
+* [Grunt](http://gruntjs.com) for build management
+* [npm](https://www.npmjs.org) for dependency management
+* [QUnit](http://qunitjs.com) for testing
+
+
+
+Step 1: Write Some Javascript
+-----------------------------
+You may have already done this step. Code up something interesting and then wrap it in a function. At the most basic level, that's all a video.js plugin is. By convention, plugins take a hash of options as their first argument:
+
+ function examplePlugin(options) {
+ this.on('play', function(e) {
+ console.log('playback has started!');
+ });
+ };
+
+When it's activated, `this` will be the Video.js player your plugin is attached to. You can use anything you'd like in the [Video.js API](api.md) when you're writing a plugin: change the `src`, mess up the DOM, or listen for and emit your own events.
+
+Step 2: Registering A Plugin
+-------------------------------
+It's time to give the rest of the world the opportunity to be awed by your genius. When your plugin is loaded, it needs to let Video.js know this amazing new functionality is now available:
+
+ videojs.plugin('examplePlugin', examplePlugin);
+
+From this point on, your plugin will be added to the Video.js prototype and will show up as a property on every instance created. Make sure you choose a unique name that doesn't clash with any of the properties already in Video.js. Which leads us to...
+
+Step 3: Using A Plugin
+----------------------
+There are two ways to initialize a plugin. If you're creating your video tag dynamically, you can specify the plugins you'd like to initialize with it and any options you want to pass to them:
+
+ videojs('vidId', {
+ plugins: {
+ examplePlugin: {
+ exampleOption: true
+ }
+ }
+ });
+
+If you've already initialized your video tag, you can activate a plugin at any time by calling its setup function directly:
+
+ var video = videojs('cool-vid');
+ video.examplePlugin({ exampleOption: true });
+
+That's it. Head on over to the [Video.js wiki](https://github.com/videojs/video.js/wiki/Plugins) and add your plugin to the list so everyone else can check it out.
diff --git a/bower_components/video.js/docs/guides/removing-players.md b/bower_components/video.js/docs/guides/removing-players.md
new file mode 100644
index 0000000..b2cc32e
--- /dev/null
+++ b/bower_components/video.js/docs/guides/removing-players.md
@@ -0,0 +1,41 @@
+Removing Players
+================
+
+Sometimes, you want to remove players after page load (in single page apps or modals, for instance). It's easy to manage, but there are some simple rules you need to follow.
+
+Call `.dispose()`
+-----------------
+
+To remove the html associated with your videojs player from the page always call the player's [`dispose()`](https://github.com/videojs/video.js/blob/stable/docs/api/vjs.Player.md#dispose) method:
+
+```javascript```
+var oldPlayer = document.getElementById('my-player');
+videojs(oldPlayer).dispose();
+```
+
+This method will:
+
+ 1. reset the internal state of videojs
+ 2. remove the player's dom from the page
+
+Showing / Hiding a Player
+-------------------------
+
+For instance, if you have a modal that a player appears in, you should create the player when the modal pops up. When the modal hides, dispose the player. If you try to hide the Flash tech, things will go poorly. Even with other tech, calling `dispose()` on a player that's not needed will free up resources for the browser.
+
+Why Is This Needed?
+-------------------
+
+VideoJS internally tracks all players and their associated data by html id attribute. If you plan to create new players with the same id as previously created players, you'll need to call the player's dispose() method to clear VideoJS's internal state before creating the new player.
+
+Signs You Did It Wrong
+-------------------------
+
+```
+TypeError: this.el_.vjs_getProperty is not a function
+"VIDEOJS:" "Video.js: buffered unavailable on Hls playback technology element." TypeError: this.el_.vjs_getProperty is not a function
+Stack trace:
+...
+```
+
+If you encounter a console error in the browser similar to the above, you've probably forgotten to `dispose()` a player before removing it from the dom. This would happen when using the [contrib-hls](https://github.com/videojs/videojs-contrib-hls) plugin.
diff --git a/bower_components/video.js/docs/guides/setup.md b/bower_components/video.js/docs/guides/setup.md
new file mode 100644
index 0000000..6f11537
--- /dev/null
+++ b/bower_components/video.js/docs/guides/setup.md
@@ -0,0 +1,122 @@
+Setup
+=====
+
+Video.js is pretty easy to set up. It can take a matter of seconds to get the player up and working on your web page.
+
+Step 1: Include the Video.js Javascript and CSS files in the head of your page.
+------------------------------------------------------------------------------
+
+You can download the Video.js source and host it on your own servers, or use the free CDN hosted version. It's often recommended now to put JavaScript before the end body tag (</body>) instead of the head (<head>), but Video.js includes an 'HTML5 Shiv', which needs to be in the head for older IE versions to respect the video tag as a valid element.
+
+> NOTE: If you're already using an HTML5 shiv like [Modernizr](http://modernizr.com/) you can include the Video.js JavaScript anywhere, however make sure your version of Modernizr includes the shiv for video.
+
+> If you're not using something like Modernizr but still want to include Video.JS before the closing body tag, you can add your own shiv. Include this in the head of your document:
+
+> ```html
+
+```
+
+### CDN Version ###
+```html
+
+
+```
+
+
+## Install via package manager
+
+### NPM
+```
+$ npm install --save video.js
+```
+
+### Bower
+```
+$ bower install --save video.js
+```
+
+
+### Self Hosted. ###
+To entirely self-host, you'll need to pull in the font files and let Video.js know where the swf is located. If you simply copy the dist folder or zip file contents into your project everything
+should Just Work™, but the paths can easily be changed by editing the LESS file and re-building, or by modifying the generated CSS file.
+
+```html
+
+
+
+```
+
+
+Step 2: Add an HTML5 video tag to your page.
+--------------------------------------------
+With Video.js you just use an HTML5 video tag to embed a video. Video.js will then read the tag and make it work in all browsers, not just ones that support HTML5 video. Beyond the basic markup, Video.js needs a few extra pieces.
+
+> Note: The `data-setup` attribute described here should not be used if you use the alternative setup described in the next section.
+
+ 1. The 'data-setup' Attribute tells Video.js to automatically set up the video when the page is ready, and read any options (in JSON format) from the attribute (see [options](options.md)). There are other methods for initializing the player, but this is the easiest.
+
+ 2. The 'id' Attribute: Should be used and unique for every video on the same page.
+
+ 3. The 'class' attribute contains two classes:
+ - `video-js` applies styles that are required for Video.js functionality, like fullscreen and subtitles.
+ - `vjs-default-skin` applies the default skin to the HTML controls, and can be removed or overridden to create your own controls design.
+
+Otherwise include/exclude attributes, settings, sources, and tracks exactly as you would for HTML5 video.*
+```html
+
+
+
+
+ To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video
+
+```
+
+By default, the big play button is located in the upper left hand corner so it doesn't cover up the interesting parts of the poster. If you'd prefer to center the big play button, you can add an additional `vjs-big-play-centered` class to your video element. For example:
+
+```html
+
+ ...
+
+```
+
+Alternative Setup for Dynamically Loaded HTML
+---------------------------------------------
+If your web page or application loads the video tag dynamically (ajax, appendChild, etc.), so that it may not exist when the page loads, you'll want to manually set up the player instead of relying on the data-setup attribute. To do this, first remove the data-setup attribute from the tag so there's no confusion around when the player is initialized. Next, run the following javascript some time after the Video.js javascript library has loaded, and after the video tag has been loaded into the DOM.
+```js
+videojs("example_video_1", {}, function(){
+ // Player (this) is initialized and ready.
+});
+```
+
+The first argument in the `videojs` function is the ID of your video tag. Replace it with your own.
+
+The second argument is an options object. It allows you to set additional options like you can with the data-setup attribute.
+
+The third argument is a 'ready' callback. Once Video.js has initialized it will call this function.
+
+Instead of using an element ID, you can also pass a reference to the element itself.
+
+```js
+videojs(document.getElementById('example_video_1'), {}, function() {
+ // This is functionally the same as the previous example.
+});
+```
+
+```js
+videojs(document.getElementsByClassName('awesome_video_class')[0], {}, function() {
+ // You can grab an element by class if you'd like, just make sure
+ // if it's an array that you pick one (here we chose the first).
+});
+```
+
+\* If you have trouble playing back content you know is in the [correct format](http://blog.zencoder.com/2013/09/13/what-formats-do-i-need-for-html5-video/), your HTTP server might not be delivering the content with the correct [MIME type](http://en.wikipedia.org/wiki/Internet_media_type#Type_video). Please double check your content's headers before opening an [issue](https://github.com/videojs/video.js/blob/master/CONTRIBUTING.md).
diff --git a/bower_components/video.js/docs/guides/skins.md b/bower_components/video.js/docs/guides/skins.md
new file mode 100644
index 0000000..c732f22
--- /dev/null
+++ b/bower_components/video.js/docs/guides/skins.md
@@ -0,0 +1,28 @@
+Skins
+=====
+
+The default Video.js skin is made using HTML and CSS, so there's no need to learn a complicated skinning language to update colors or even create an entirely new skin.
+
+## Icons
+
+New in version 4.0 is the use of font icons. All of the icons (play, pause, etc.) use the new custom font, which allows the icons to be scaled and colored just like any other text font.
+
+All of the icons are available as variables in the [LESS](https://github.com/videojs/video.js/blob/master/src/css/video-js.less#L87-L99) source, making it easy to replace icons (such as the loading spinner). The easiest way to try this out is by using the [player skin designer](http://designer.videojs.com/).
+
+
+
+## Customization
+
+When you create a new skin, you can either override styles in the default skin:
+
+```css
+.vjs-default-skin .vjs-play-progress { background: #900; }
+```
+
+Or remove the 'vjs-default-skin' class from the video tag and create a new skin from scratch.
+
+```html
+
+```
+
+More custom skins will be available for download soon. If you have one you like you can share it by forking [this example on CodePen.io](http://codepen.io/heff/pen/EarCt), and adding a link on the [Skins wiki page](https://github.com/videojs/video.js/wiki/Skins).
diff --git a/bower_components/video.js/docs/guides/tech.md b/bower_components/video.js/docs/guides/tech.md
new file mode 100644
index 0000000..763ce4c
--- /dev/null
+++ b/bower_components/video.js/docs/guides/tech.md
@@ -0,0 +1,68 @@
+Playback Technology ("Tech")
+============================
+Playback Technology refers to the specific browser or plugin technology used to play the video or audio. When using HTML5, the playback technology is the video or audio element. When using Flash, the playback technology is the specific Flash player used, e.g. Flowplayer, YouTube Player, video-js.swf, etc. (not just "Flash"). This could also include Silverlight, Quicktime, or any other plugin that will play back video in the browser, as long as there is an API wrapper written for it.
+
+Essentially we're using HTML5 and plugins only as video decoders, and using HTML and JavaScript to create a consistent API and skinning experience across all of them.
+
+Building an API Wrapper
+-----------------------
+We'll write a more complete guide on writing a wrapper soon, but for now the best resource is the [Video.js](https://github.com/zencoder/video-js/tree/master/src) source where you can see how both the HTML5 and video-js.swf API wrappers were created.
+
+Required Methods
+----------------
+canPlayType
+play
+pause
+currentTime
+volume
+duration
+buffered
+supportsFullScreen
+
+Required Events
+---------------
+loadstart
+play
+pause
+playing
+ended
+volumechange
+durationchange
+error
+
+Optional Events (include if supported)
+--------------------------------------
+timeupdate
+progress
+enterFullScreen
+exitFullScreen
+
+Adding Playback Technology
+==================
+When adding additional Tech to a video player, make sure to add the supported tech to the video object.
+
+### Tag Method: ###
+
+
+
+
+You may optionally use the last `/` as the separator between connection and stream strings, for example:
+
+
+
+All four RTMP protocols are valid in the `src` (RTMP, RTMPT, RTMPE, and RTMPS).
diff --git a/bower_components/video.js/docs/guides/tracks.md b/bower_components/video.js/docs/guides/tracks.md
new file mode 100644
index 0000000..e12446c
--- /dev/null
+++ b/bower_components/video.js/docs/guides/tracks.md
@@ -0,0 +1,230 @@
+Tracks
+======
+
+Text Tracks are a function of HTML5 video for providing time triggered text to the viewer. Video.js makes tracks work across all browsers. There are currently five types of tracks:
+
+- **Subtitles**: Translations of the dialogue in the video for when audio is available but not understood. Subtitles are shown over the video.
+- **Captions**: Transcription of the dialogue, sound effects, musical cues, and other audio information for when the viewer is deaf/hard of hearing, or the video is muted. Captions are also shown over the video.
+- **Chapters**: Chapter titles that are used to create navigation within the video. Typically they're in the form of a list of chapters that the viewer can click on to go to a specific chapter.
+- **Descriptions** (not supported yet): Text descriptions of what's happening in the video for when the video portion isn't available, because the viewer is blind, not using a screen, or driving and about to crash because they're trying to enjoy a video while driving. Descriptions are read by a screen reader or turned into a separate audio track.
+- **Metadata** (not supported yet): Tracks that have data meant for javascript to parse and do something with. These aren't shown to the user.
+
+Creating the Text File
+----------------------
+Timed text requires a text file in [WebVTT](http://dev.w3.org/html5/webvtt/) format. This format defines a list of "cues" that have a start time, and end time, and text to display. [Microsoft has a builder](http://ie.microsoft.com/testdrive/Graphics/CaptionMaker/) that can help you get started on the file.
+
+When creating captions, there's also additional [caption formatting techniques] (http://www.theneitherworld.com/mcpoodle/SCC_TOOLS/DOCS/SCC_FORMAT.HTML#style) that would be good to use, like brackets around sound effects: [ sound effect ]. If you'd like a more in depth style guide for captioning, you can reference the [Captioning Key](http://www.dcmp.org/captioningkey/), but keep in mind not all features are supported by WebVTT or (more likely) the Video.js WebVTT implementation.
+
+Adding to Video.js
+------------------
+Once you have your WebVTT file created, you can add it to Video.js using the track tag. Put your track tag after all the source elements, and before any fallback content.
+
+```html
+
+
+
+
+
+
+
+
+```
+
+Subtitles from Another Domain
+-----------------------------
+Because we're pulling in the text track file via Javascript, the [same-origin policy](http://en.wikipedia.org/wiki/Same_origin_policy) applies. If you'd like to have a player served from one domain,
+but the text track served from another, you'll need to [enable CORS](http://enable-cors.org/) in order to do so.
+
+Track Attributes
+----------------
+Additional settings for track tags.
+
+### kind
+One of the five track types listed above. Kind defaults to subtitles if no kind is included.
+
+### label
+The label for the track that will be show to the user, for example in a menu that list the different languages available for subtitles.
+
+### default
+The default attribute can be used to have a track default to showing. Otherwise the viewer would need to select their language from the captions or subtitles menu.
+NOTE: For chapters, default is required if you want the chapters menu to show.
+
+### srclang
+The two-letter code (valid BCP 47 language tag) for the language of the text track, for example "en" for English. Here's a list of available language codes.
+
+
+
+
+
+
+ ab Abkhazian
+ aa Afar
+ af Afrikaans
+ sq Albanian
+ am Amharic
+ ar Arabic
+ an Aragonese
+ hy Armenian
+ as Assamese
+ ay Aymara
+ az Azerbaijani
+ ba Bashkir
+ eu Basque
+ bn Bengali (Bangla)
+ dz Bhutani
+ bh Bihari
+ bi Bislama
+ br Breton
+ bg Bulgarian
+ my Burmese
+ be Byelorussian (Belarusian)
+ km Cambodian
+ ca Catalan
+ zh Chinese (Simplified)
+ zh Chinese (Traditional)
+ co Corsican
+ hr Croatian
+ cs Czech
+ da Danish
+ nl Dutch
+ en English
+ eo Esperanto
+ et Estonian
+ fo Faeroese
+ fa Farsi
+ fj Fiji
+ fi Finnish
+
+
+
+
+
+
+ fr French
+ fy Frisian
+ gl Galician
+ gd Gaelic (Scottish)
+ gv Gaelic (Manx)
+ ka Georgian
+ de German
+ el Greek
+ kl Greenlandic
+ gn Guarani
+ gu Gujarati
+ ht Haitian Creole
+ ha Hausa
+ he Hebrew
+ hi Hindi
+ hu Hungarian
+ is Icelandic
+ io Ido
+ id Indonesian
+ ia Interlingua
+ ie Interlingue
+ iu Inuktitut
+ ik Inupiak
+ ga Irish
+ it Italian
+ ja Japanese
+ jv Javanese
+ kn Kannada
+ ks Kashmiri
+ kk Kazakh
+ rw Kinyarwanda (Ruanda)
+ ky Kirghiz
+ rn Kirundi (Rundi)
+ ko Korean
+ ku Kurdish
+ lo Laothian
+ la Latin
+
+
+
+
+
+
+ lv Latvian (Lettish)
+ li Limburgish ( Limburger)
+ ln Lingala
+ lt Lithuanian
+ mk Macedonian
+ mg Malagasy
+ ms Malay
+ ml Malayalam
+ mt Maltese
+ mi Maori
+ mr Marathi
+ mo Moldavian
+ mn Mongolian
+ na Nauru
+ ne Nepali
+ no Norwegian
+ oc Occitan
+ or Oriya
+ om Oromo (Afan, Galla)
+ ps Pashto (Pushto)
+ pl Polish
+ pt Portuguese
+ pa Punjabi
+ qu Quechua
+ rm Rhaeto-Romance
+ ro Romanian
+ ru Russian
+ sm Samoan
+ sg Sangro
+ sa Sanskrit
+ sr Serbian
+ sh Serbo-Croatian
+ st Sesotho
+ tn Setswana
+ sn Shona
+ ii Sichuan Yi
+ sd Sindhi
+
+
+
+
+
+
+ si Sinhalese
+ ss Siswati
+ sk Slovak
+ sl Slovenian
+ so Somali
+ es Spanish
+ su Sundanese
+ sw Swahili (Kiswahili)
+ sv Swedish
+ tl Tagalog
+ tg Tajik
+ ta Tamil
+ tt Tatar
+ te Telugu
+ th Thai
+ bo Tibetan
+ ti Tigrinya
+ to Tonga
+ ts Tsonga
+ tr Turkish
+ tk Turkmen
+ tw Twi
+ ug Uighur
+ uk Ukrainian
+ ur Urdu
+ uz Uzbek
+ vi Vietnamese
+ vo Volapük
+ wa Wallon
+ cy Welsh
+ wo Wolof
+ xh Xhosa
+ yi Yiddish
+ yo Yoruba
+ zu Zulu
+
+
+
+
+
diff --git a/bower_components/video.js/docs/index.md b/bower_components/video.js/docs/index.md
new file mode 100644
index 0000000..63cadeb
--- /dev/null
+++ b/bower_components/video.js/docs/index.md
@@ -0,0 +1,37 @@
+[Video.js homepage](http://videojs.com)
+
+Video.js Documentation
+
+There are two categories of docs: [Guides](./guides/) and [API docs](./api/). Guides explain general topics and use cases (e.g. setup). API docs are automatically generated from the codebase and give specific details about functions, properties, and events.
+
+(Corrections and additions welcome)
+
+## Guides
+
+### Getting Started
+
+* [Setup](./guides/setup.md) - The setup documentation gives a deeper view of the additional methods you can use to trigger the player setup.
+
+* [Options](./guides/options.md) - There are a number of options that can be used to change how the player behaves, starting with the HTML5 media options like autoplay and preload, and expanding to Video.JS specific options.
+
+* [Tracks](./guides/tracks.md) - Text Tracks are used to display subtitles and captions, and add a menu for navigating between chapters in a video.
+
+### Customizing
+
+* [API](./guides/api.md) - The Video.js API allows you to control the video through javascript or trigger event listeners, whether the video is playing through HTML5, flash, or another playback technology.
+
+* [Skins](./guides/skins.md) - You can change the look of the player across playback technologies just by editing a CSS file. The skins documentation gives you a intro to how the HTML and CSS of the default skin is put together.
+
+* [Tech](./guides/tech.md) - A 'playback technology' is the term we're using to represent HTML5 video, Flash, and other video plugins, as well as other players like the YouTube player. Basically anything that has a unique API to audio or video. Additional playback technologies can be added relatively easily.
+
+* [Plugins](./guides/plugins.md) - You can package up interesting Video.js customizations and reuse them elsewhere. Find out how to build your own plugin or use one created by someone else.
+
+### Resources
+
+* [Glossary](./guides/glossary.md) - Some helpful definitions.
+
+* [Removing Players](./guides/removing-players.md) - Helpful for using VideoJS in single page apps.
+
+## API Docs
+- The most relevant API doc is the [player API doc](./api/vjs.Player.md).
+- [Full list of API Docs](./api/)
diff --git a/bower_components/video.js/lang/ar.json b/bower_components/video.js/lang/ar.json
new file mode 100644
index 0000000..73d45f0
--- /dev/null
+++ b/bower_components/video.js/lang/ar.json
@@ -0,0 +1,26 @@
+{
+ "Play": "تشغيل",
+ "Pause": "ايقاف",
+ "Current Time": "الوقت الحالي",
+ "Duration Time": "Dauer",
+ "Remaining Time": "الوقت المتبقي",
+ "Stream Type": "نوع التيار",
+ "LIVE": "مباشر",
+ "Loaded": "تم التحميل",
+ "Progress": "التقدم",
+ "Fullscreen": "ملء الشاشة",
+ "Non-Fullscreen": "غير ملء الشاشة",
+ "Mute": "صامت",
+ "Unmuted": "غير الصامت",
+ "Playback Rate": "معدل التشغيل",
+ "Subtitles": "الترجمة",
+ "subtitles off": "ايقاف الترجمة",
+ "Captions": "التعليقات",
+ "captions off": "ايقاف التعليقات",
+ "Chapters": "فصول",
+ "You aborted the video playback": "لقد ألغيت تشغيل الفيديو",
+ "A network error caused the video download to fail part-way.": "تسبب خطأ في الشبكة بفشل تحميل الفيديو بالكامل.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "لا يمكن تحميل الفيديو بسبب فشل في الخادم أو الشبكة ، أو فشل بسبب عدم امكانية قراءة تنسيق الفيديو.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "تم ايقاف تشغيل الفيديو بسبب مشكلة فساد أو لأن الفيديو المستخدم يستخدم ميزات غير مدعومة من متصفحك.",
+ "No compatible source was found for this video.": "فشل العثور على أي مصدر متوافق مع هذا الفيديو."
+}
diff --git a/bower_components/video.js/lang/bg.json b/bower_components/video.js/lang/bg.json
new file mode 100644
index 0000000..14349ea
--- /dev/null
+++ b/bower_components/video.js/lang/bg.json
@@ -0,0 +1,26 @@
+{
+ "Play": "Възпроизвеждане",
+ "Pause": "Пауза",
+ "Current Time": "Текущо време",
+ "Duration Time": "Продължителност",
+ "Remaining Time": "Оставащо време",
+ "Stream Type": "Тип на потока",
+ "LIVE": "НА ЖИВО",
+ "Loaded": "Заредено",
+ "Progress": "Прогрес",
+ "Fullscreen": "Цял екран",
+ "Non-Fullscreen": "Спиране на цял екран",
+ "Mute": "Без звук",
+ "Unmuted": "Със звук",
+ "Playback Rate": "Скорост на възпроизвеждане",
+ "Subtitles": "Субтитри",
+ "subtitles off": "Спряни субтитри",
+ "Captions": "Аудио надписи",
+ "captions off": "Спряни аудио надписи",
+ "Chapters": "Глави",
+ "You aborted the video playback": "Спряхте възпроизвеждането на видеото",
+ "A network error caused the video download to fail part-way.": "Грешка в мрежата провали изтеглянето на видеото.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Видеото не може да бъде заредено заради проблем със сървъра или мрежата или защото този формат не е поддържан.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Възпроизвеждането на видеото беше прекъснато заради проблем с файла или защото видеото използва опции които браузърът Ви не поддържа.",
+ "No compatible source was found for this video.": "Не беше намерен съвместим източник за това видео."
+}
diff --git a/bower_components/video.js/lang/ca.json b/bower_components/video.js/lang/ca.json
new file mode 100644
index 0000000..61961c7
--- /dev/null
+++ b/bower_components/video.js/lang/ca.json
@@ -0,0 +1,26 @@
+{
+ "Play": "Reproducció",
+ "Pause": "Pausa",
+ "Current Time": "Temps reproduït",
+ "Duration Time": "Durada total",
+ "Remaining Time": "Temps restant",
+ "Stream Type": "Tipus de seqüència",
+ "LIVE": "EN DIRECTE",
+ "Loaded": "Carregat",
+ "Progress": "Progrés",
+ "Fullscreen": "Pantalla completa",
+ "Non-Fullscreen": "Pantalla no completa",
+ "Mute": "Silencia",
+ "Unmuted": "Amb so",
+ "Playback Rate": "Velocitat de reproducció",
+ "Subtitles": "Subtítols",
+ "subtitles off": "Subtítols desactivats",
+ "Captions": "Llegendes",
+ "captions off": "Llegendes desactivades",
+ "Chapters": "Capítols",
+ "You aborted the video playback": "Heu interromput la reproducció del vídeo.",
+ "A network error caused the video download to fail part-way.": "Un error de la xarxa ha interromput la baixada del vídeo.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "No s'ha pogut carregar el vídeo perquè el servidor o la xarxa han fallat, o bé perquè el seu format no és compatible.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La reproducció de vídeo s'ha interrumput per un problema de corrupció de dades o bé perquè el vídeo demanava funcions que el vostre navegador no ofereix.",
+ "No compatible source was found for this video.": "No s'ha trobat cap font compatible amb el vídeo."
+}
diff --git a/bower_components/video.js/lang/cs.json b/bower_components/video.js/lang/cs.json
new file mode 100644
index 0000000..7c9cc35
--- /dev/null
+++ b/bower_components/video.js/lang/cs.json
@@ -0,0 +1,26 @@
+{
+ "Play": "Přehrát",
+ "Pause": "Pauza",
+ "Current Time": "Aktuální čas",
+ "Duration Time": "Doba trvání",
+ "Remaining Time": "Zbývající čas",
+ "Stream Type": "Stream Type",
+ "LIVE": "ŽIVĚ",
+ "Loaded": "Načteno",
+ "Progress": "Stav",
+ "Fullscreen": "Celá obrazovka",
+ "Non-Fullscreen": "Zmenšená obrazovka",
+ "Mute": "Ztlumit zvuk",
+ "Unmuted": "Přehrát zvuk",
+ "Playback Rate": "Rychlost přehrávání",
+ "Subtitles": "Titulky",
+ "subtitles off": "Titulky vypnuty",
+ "Captions": "Popisky",
+ "captions off": "Popisky vypnuty",
+ "Chapters": "Kapitoly",
+ "You aborted the video playback": "Přehrávání videa je přerušeno.",
+ "A network error caused the video download to fail part-way.": "Video nemohlo být načteno, kvůli chybě v síti.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Video nemohlo být načteno, buď kvůli chybě serveru nebo sítě nebo proto, že daný formát není podporován.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Váš prohlížeč nepodporuje formát videa.",
+ "No compatible source was found for this video.": "Špatně zadaný zdroj videa."
+}
diff --git a/bower_components/video.js/lang/de.json b/bower_components/video.js/lang/de.json
new file mode 100644
index 0000000..9533505
--- /dev/null
+++ b/bower_components/video.js/lang/de.json
@@ -0,0 +1,26 @@
+{
+ "Play": "Wiedergabe",
+ "Pause": "Pause",
+ "Current Time": "Aktueller Zeitpunkt",
+ "Duration Time": "Dauer",
+ "Remaining Time": "Verbleibende Zeit",
+ "Stream Type": "Streamtyp",
+ "LIVE": "LIVE",
+ "Loaded": "Geladen",
+ "Progress": "Status",
+ "Fullscreen": "Vollbild",
+ "Non-Fullscreen": "Kein Vollbild",
+ "Mute": "Ton aus",
+ "Unmuted": "Ton ein",
+ "Playback Rate": "Wiedergabegeschwindigkeit",
+ "Subtitles": "Untertitel",
+ "subtitles off": "Untertitel aus",
+ "Captions": "Untertitel",
+ "captions off": "Untertitel aus",
+ "Chapters": "Kapitel",
+ "You aborted the video playback": "Sie haben die Videowiedergabe abgebrochen.",
+ "A network error caused the video download to fail part-way.": "Der Videodownload ist aufgrund eines Netzwerkfehlers fehlgeschlagen.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Das Video konnte nicht geladen werden, da entweder ein Server- oder Netzwerkfehler auftrat oder das Format nicht unterstützt wird.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Die Videowiedergabe wurde entweder wegen eines Problems mit einem beschädigten Video oder wegen verwendeten Funktionen, die vom Browser nicht unterstützt werden, abgebrochen.",
+ "No compatible source was found for this video.": "Für dieses Video wurde keine kompatible Quelle gefunden."
+}
diff --git a/bower_components/video.js/lang/es.json b/bower_components/video.js/lang/es.json
new file mode 100644
index 0000000..bd58e3c
--- /dev/null
+++ b/bower_components/video.js/lang/es.json
@@ -0,0 +1,26 @@
+{
+ "Play": "Reproducción",
+ "Pause": "Pausa",
+ "Current Time": "Tiempo reproducido",
+ "Duration Time": "Duración total",
+ "Remaining Time": "Tiempo restante",
+ "Stream Type": "Tipo de secuencia",
+ "LIVE": "DIRECTO",
+ "Loaded": "Cargado",
+ "Progress": "Progreso",
+ "Fullscreen": "Pantalla completa",
+ "Non-Fullscreen": "Pantalla no completa",
+ "Mute": "Silenciar",
+ "Unmuted": "No silenciado",
+ "Playback Rate": "Velocidad de reproducción",
+ "Subtitles": "Subtítulos",
+ "subtitles off": "Subtítulos desactivados",
+ "Captions": "Subtítulos especiales",
+ "captions off": "Subtítulos especiales desactivados",
+ "Chapters": "Capítulos",
+ "You aborted the video playback": "Ha interrumpido la reproducción del vídeo.",
+ "A network error caused the video download to fail part-way.": "Un error de red ha interrumpido la descarga del vídeo.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "No se ha podido cargar el vídeo debido a un fallo de red o del servidor o porque el formato es incompatible.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La reproducción de vídeo se ha interrumpido por un problema de corrupción de datos o porque el vídeo precisa funciones que su navegador no ofrece.",
+ "No compatible source was found for this video.": "No se ha encontrado ninguna fuente compatible con este vídeo."
+}
\ No newline at end of file
diff --git a/bower_components/video.js/lang/fr.json b/bower_components/video.js/lang/fr.json
new file mode 100644
index 0000000..75a3023
--- /dev/null
+++ b/bower_components/video.js/lang/fr.json
@@ -0,0 +1,26 @@
+{
+ "Play": "Lecture",
+ "Pause": "Pause",
+ "Current Time": "Temps actuel",
+ "Duration Time": "Durée",
+ "Remaining Time": "Temps restant",
+ "Stream Type": "Type de flux",
+ "LIVE": "EN DIRECT",
+ "Loaded": "Chargé",
+ "Progress": "Progression",
+ "Fullscreen": "Plein écran",
+ "Non-Fullscreen": "Fenêtré",
+ "Mute": "Sourdine",
+ "Unmuted": "Son activé",
+ "Playback Rate": "Vitesse de lecture",
+ "Subtitles": "Sous-titres",
+ "subtitles off": "Sous-titres désactivés",
+ "Captions": "Sous-titres",
+ "captions off": "Sous-titres désactivés",
+ "Chapters": "Chapitres",
+ "You aborted the video playback": "Vous avez interrompu la lecture de la vidéo.",
+ "A network error caused the video download to fail part-way.": "Une erreur de réseau a interrompu le téléchargement de la vidéo.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Cette vidéo n'a pas pu être chargée, soit parce que le serveur ou le réseau a échoué ou parce que le format n'est pas reconnu.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La lecture de la vidéo a été interrompue à cause d'un problème de corruption ou parce que la vidéo utilise des fonctionnalités non prises en charge par votre navigateur.",
+ "No compatible source was found for this video.": "Aucune source compatible n'a été trouvée pour cette vidéo."
+}
\ No newline at end of file
diff --git a/bower_components/video.js/lang/hu.json b/bower_components/video.js/lang/hu.json
new file mode 100644
index 0000000..4b7dcff
--- /dev/null
+++ b/bower_components/video.js/lang/hu.json
@@ -0,0 +1,26 @@
+{
+ "Play": "Lejátszás",
+ "Pause": "Szünet",
+ "Current Time": "Aktuális időpont",
+ "Duration Time": "Hossz",
+ "Remaining Time": "Hátralévő idő",
+ "Stream Type": "Adatfolyam típusa",
+ "LIVE": "ÉLŐ",
+ "Loaded": "Betöltve",
+ "Progress": "Állapot",
+ "Fullscreen": "Teljes képernyő",
+ "Non-Fullscreen": "Normál méret",
+ "Mute": "Némítás",
+ "Unmuted": "Némítás kikapcsolva",
+ "Playback Rate": "Lejátszási sebesség",
+ "Subtitles": "Feliratok",
+ "subtitles off": "Feliratok kikapcsolva",
+ "Captions": "Magyarázó szöveg",
+ "captions off": "Magyarázó szöveg kikapcsolva",
+ "Chapters": "Fejezetek",
+ "You aborted the video playback": "Leállította a lejátszást",
+ "A network error caused the video download to fail part-way.": "Hálózati hiba miatt a videó részlegesen töltődött le.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "A videó nem tölthető be hálózati vagy kiszolgálói hiba miatt, vagy a formátuma nem támogatott.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "A lejátszás adatsérülés miatt leállt, vagy a videó egyes tulajdonságait a böngészője nem támogatja.",
+ "No compatible source was found for this video.": "Nincs kompatibilis forrás ehhez a videóhoz."
+}
diff --git a/bower_components/video.js/lang/it.json b/bower_components/video.js/lang/it.json
new file mode 100644
index 0000000..05bafb5
--- /dev/null
+++ b/bower_components/video.js/lang/it.json
@@ -0,0 +1,26 @@
+{
+ "Play": "Play",
+ "Pause": "Pausa",
+ "Current Time": "Orario attuale",
+ "Duration Time": "Durata",
+ "Remaining Time": "Tempo rimanente",
+ "Stream Type": "Tipo del Streaming",
+ "LIVE": "LIVE",
+ "Loaded": "Caricato",
+ "Progress": "Stato",
+ "Fullscreen": "Schermo intero",
+ "Non-Fullscreen": "Chiudi schermo intero",
+ "Mute": "Muto",
+ "Unmuted": "Audio",
+ "Playback Rate": "Tasso di riproduzione",
+ "Subtitles": "Sottotitoli",
+ "subtitles off": "Senza sottotitoli",
+ "Captions": "Sottotitoli non udenti",
+ "captions off": "Senza sottotitoli non udenti",
+ "Chapters": "Capitolo",
+ "You aborted the video playback": "La riproduzione del filmato è stata interrotta.",
+ "A network error caused the video download to fail part-way.": "Il download del filmato è stato interrotto a causa di un problema rete.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Il filmato non può essere caricato a causa di un errore nel server o nella rete o perché il formato non viene supportato.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La riproduzione del filmato è stata interrotta a causa di un file danneggiato o per l’utilizzo di impostazioni non supportate dal browser.",
+ "No compatible source was found for this video.": "Non ci sono fonti compatibili per questo filmato."
+}
diff --git a/bower_components/video.js/lang/ja.json b/bower_components/video.js/lang/ja.json
new file mode 100644
index 0000000..44e6613
--- /dev/null
+++ b/bower_components/video.js/lang/ja.json
@@ -0,0 +1,26 @@
+{
+ "Play": "再生",
+ "Pause": "一時停止",
+ "Current Time": "現在の時間",
+ "Duration Time": "長さ",
+ "Remaining Time": "残りの時間",
+ "Stream Type": "ストリームの種類",
+ "LIVE": "ライブ",
+ "Loaded": "ロード済み",
+ "Progress": "進行状況",
+ "Fullscreen": "フルスクリーン",
+ "Non-Fullscreen": "フルスクリーン以外",
+ "Mute": "ミュート",
+ "Unmuted": "ミュート解除",
+ "Playback Rate": "再生レート",
+ "Subtitles": "サブタイトル",
+ "subtitles off": "サブタイトル オフ",
+ "Captions": "キャプション",
+ "captions off": "キャプション オフ",
+ "Chapters": "チャプター",
+ "You aborted the video playback": "動画再生を中止しました",
+ "A network error caused the video download to fail part-way.": "ネットワーク エラーにより動画のダウンロードが途中で失敗しました",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "サーバーまたはネットワークのエラー、またはフォーマットがサポートされていないため、動画をロードできませんでした",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "破損の問題、またはお使いのブラウザがサポートしていない機能が動画に使用されていたため、動画の再生が中止されました",
+ "No compatible source was found for this video.": "この動画に対して互換性のあるソースが見つかりませんでした"
+}
diff --git a/bower_components/video.js/lang/ko.json b/bower_components/video.js/lang/ko.json
new file mode 100644
index 0000000..08eafa0
--- /dev/null
+++ b/bower_components/video.js/lang/ko.json
@@ -0,0 +1,26 @@
+{
+ "Play": "재생",
+ "Pause": "일시중지",
+ "Current Time": "현재 시간",
+ "Duration Time": "지정 기간",
+ "Remaining Time": "남은 시간",
+ "Stream Type": "스트리밍 유형",
+ "LIVE": "라이브",
+ "Loaded": "로드됨",
+ "Progress": "진행",
+ "Fullscreen": "전체 화면",
+ "Non-Fullscreen": "전체 화면 해제",
+ "Mute": "음소거",
+ "Unmuted": "음소거 해제",
+ "Playback Rate": "재생 비율",
+ "Subtitles": "서브타이틀",
+ "subtitles off": "서브타이틀 끄기",
+ "Captions": "자막",
+ "captions off": "자막 끄기",
+ "Chapters": "챕터",
+ "You aborted the video playback": "비디오 재생을 취소했습니다.",
+ "A network error caused the video download to fail part-way.": "네트워크 오류로 인하여 비디오 일부를 다운로드하지 못 했습니다.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "비디오를 로드할 수 없습니다. 서버 혹은 네트워크 오류 때문이거나 지원되지 않는 형식 때문일 수 있습니다.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "비디오 재생이 취소됐습니다. 비디오가 손상되었거나 비디오가 사용하는 기능을 브라우저에서 지원하지 않는 것 같습니다.",
+ "No compatible source was found for this video.": "비디오에 호환되지 않는 소스가 있습니다."
+}
\ No newline at end of file
diff --git a/bower_components/video.js/lang/nl.json b/bower_components/video.js/lang/nl.json
new file mode 100644
index 0000000..da9bc3e
--- /dev/null
+++ b/bower_components/video.js/lang/nl.json
@@ -0,0 +1,26 @@
+{
+ "Play": "Afspelen",
+ "Pause": "Pauze",
+ "Current Time": "Huidige Tijd",
+ "Duration Time": "Looptijd",
+ "Remaining Time": "Resterende Tijd",
+ "Stream Type": "Stream Type",
+ "LIVE": "LIVE",
+ "Loaded": "Geladen",
+ "Progress": "Status",
+ "Fullscreen": "Volledig scherm",
+ "Non-Fullscreen": "Geen volledig scherm",
+ "Mute": "Geluid Uit",
+ "Unmuted": "Geluid Aan",
+ "Playback Rate": "Weergave Rate",
+ "Subtitles": "Ondertiteling",
+ "subtitles off": "Ondertiteling uit",
+ "Captions": "Onderschriften",
+ "captions off": "Onderschriften uit",
+ "Chapters": "Hoofdstukken",
+ "You aborted the video playback": "Je hebt de video weergave afgebroken.",
+ "A network error caused the video download to fail part-way.": "De video download is mislukt door een netwerkfout.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "De video kon niet worden geladen, veroorzaakt door een server of netwerkfout of het formaat word niet ondersteund.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "De video weergave is afgebroken omdat deze beschadigd is of de video gebruikt functionaliteit die niet door je browser word ondersteund.",
+ "No compatible source was found for this video.": "Voor deze video is geen ondersteunde bron gevonden."
+}
\ No newline at end of file
diff --git a/bower_components/video.js/lang/pt-BR.json b/bower_components/video.js/lang/pt-BR.json
new file mode 100644
index 0000000..1c90f2a
--- /dev/null
+++ b/bower_components/video.js/lang/pt-BR.json
@@ -0,0 +1,26 @@
+{
+ "Play": "Tocar",
+ "Pause": "Pause",
+ "Current Time": "Tempo",
+ "Duration Time": "Duração",
+ "Remaining Time": "Tempo Restante",
+ "Stream Type": "Tipo de Stream",
+ "LIVE": "AO VIVO",
+ "Loaded": "Carregado",
+ "Progress": "Progressão",
+ "Fullscreen": "Tela Cheia",
+ "Non-Fullscreen": "Tela Normal",
+ "Mute": "Mudo",
+ "Unmuted": "Habilitar Som",
+ "Playback Rate": "Velocidade",
+ "Subtitles": "Legendas",
+ "subtitles off": "Sem Legendas",
+ "Captions": "Anotações",
+ "captions off": "Sem Anotações",
+ "Chapters": "Capítulos",
+ "You aborted the video playback": "Você parou a execução de vídeo.",
+ "A network error caused the video download to fail part-way.": "Um erro na rede fez o vídeo parar parcialmente.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "O vídeo não pode ser carregado, ou porque houve um problema com sua rede ou pelo formato do vídeo não ser suportado.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "A Execução foi interrompida por um problema com o vídeo ou por seu navegador não dar suporte ao seu formato.",
+ "No compatible source was found for this video.": "Não foi encontrada fonte de vídeo compatível."
+}
diff --git a/bower_components/video.js/lang/ru.json b/bower_components/video.js/lang/ru.json
new file mode 100644
index 0000000..53dd60e
--- /dev/null
+++ b/bower_components/video.js/lang/ru.json
@@ -0,0 +1,26 @@
+{
+ "Play": "Воспроизвести",
+ "Pause": "Приостановить",
+ "Current Time": "Текущее время",
+ "Duration Time": "Продолжительность",
+ "Remaining Time": "Оставшееся время",
+ "Stream Type": "Тип потока",
+ "LIVE": "ОНЛАЙН",
+ "Loaded": "Загрузка",
+ "Progress": "Прогресс",
+ "Fullscreen": "Полноэкранный режим",
+ "Non-Fullscreen": "Неполноэкранный режим",
+ "Mute": "Без звука",
+ "Unmuted": "Со звуком",
+ "Playback Rate": "Скорость воспроизведения",
+ "Subtitles": "Субтитры",
+ "subtitles off": "Субтитры выкл.",
+ "Captions": "Подписи",
+ "captions off": "Подписи выкл.",
+ "Chapters": "Главы",
+ "You aborted the video playback": "Вы прервали воспроизведение видео",
+ "A network error caused the video download to fail part-way.": "Ошибка сети вызвала сбой во время загрузки видео.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Невозможно загрузить видео из-за сетевого или серверного сбоя либо формат не поддерживается.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Воспроизведение видео было приостановлено из-за повреждения либо в связи с тем, что видео использует функции, неподдерживаемые вашим браузером.",
+ "No compatible source was found for this video.": "Совместимые источники для этого видео отсутствуют."
+}
diff --git a/bower_components/video.js/lang/tr.json b/bower_components/video.js/lang/tr.json
new file mode 100644
index 0000000..8ab5703
--- /dev/null
+++ b/bower_components/video.js/lang/tr.json
@@ -0,0 +1,26 @@
+{
+ "Play": "Oynat",
+ "Pause": "Duraklat",
+ "Current Time": "Süre",
+ "Duration Time": "Toplam Süre",
+ "Remaining Time": "Kalan Süre",
+ "Stream Type": "Yayın Tipi",
+ "LIVE": "CANLI",
+ "Loaded": "Yüklendi",
+ "Progress": "Yükleniyor",
+ "Fullscreen": "Tam Ekran",
+ "Non-Fullscreen": "Küçük Ekran",
+ "Mute": "Ses Kapa",
+ "Unmuted": "Ses Aç",
+ "Playback Rate": "Oynatma Hızı",
+ "Subtitles": "Altyazı",
+ "subtitles off": "Altyazı Kapat",
+ "Captions": "Ek Açıklamalar",
+ "captions off": "Ek Açıklamalar Kapalı",
+ "Chapters": "Bölümler",
+ "You aborted the video playback": "Video oynatmayı iptal ettiniz",
+ "A network error caused the video download to fail part-way.": "Video indirilirken bağlantı sorunu oluştu.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Video oynatılamadı, Ağ yada sunucu hattası veya belirtilen format desteklenmiyor.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Tarayıcınız desteklemediği için videoda hata oluştu.",
+ "No compatible source was found for this video.": "Video için kaynak bulunamadı."
+}
diff --git a/bower_components/video.js/lang/uk.json b/bower_components/video.js/lang/uk.json
new file mode 100644
index 0000000..71eaec4
--- /dev/null
+++ b/bower_components/video.js/lang/uk.json
@@ -0,0 +1,26 @@
+{
+ "Play": "Відтворити",
+ "Pause": "Призупинити",
+ "Current Time": "Поточний час",
+ "Duration Time": "Тривалість",
+ "Remaining Time": "Час, що залишився",
+ "Stream Type": "Тип потоку",
+ "LIVE": "НАЖИВО",
+ "Loaded": "Завантаження",
+ "Progress": "Прогрес",
+ "Fullscreen": "Повноекранний режим",
+ "Non-Fullscreen": "Неповноекранний режим",
+ "Mute": "Без звуку",
+ "Unmuted": "Зі звуком",
+ "Playback Rate": "Швидкість відтворення",
+ "Subtitles": "Субтитри",
+ "subtitles off": "Без субтитрів",
+ "Captions": "Підписи",
+ "captions off": "Без підписів",
+ "Chapters": "Розділи",
+ "You aborted the video playback": "Ви припинили відтворення відео",
+ "A network error caused the video download to fail part-way.": "Помилка мережі викликала збій під час завантаження відео.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Неможливо завантажити відео через мережевий чи серверний збій або формат не підтримується.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Відтворення відео було припинено через пошкодження або у зв'язку з тим, що відео використовує функції, які не підтримуються вашим браузером.",
+ "No compatible source was found for this video.": "Сумісні джерела для цього відео відсутні."
+}
diff --git a/bower_components/video.js/lang/vi.json b/bower_components/video.js/lang/vi.json
new file mode 100644
index 0000000..b02d843
--- /dev/null
+++ b/bower_components/video.js/lang/vi.json
@@ -0,0 +1,26 @@
+{
+ "Play": "Phát",
+ "Pause": "Tạm dừng",
+ "Current Time": "Thời gian hiện tại",
+ "Duration Time": "Độ dài",
+ "Remaining Time": "Thời gian còn lại",
+ "Stream Type": "Kiểu Stream",
+ "LIVE": "TRỰC TIẾP",
+ "Loaded": "Đã tải",
+ "Progress": "Tiến trình",
+ "Fullscreen": "Toàn màn hình",
+ "Non-Fullscreen": "Thoát toàn màn hình",
+ "Mute": "Tắt tiếng",
+ "Unmuted": "Bật âm thanh",
+ "Playback Rate": "Tốc độ phát",
+ "Subtitles": "Phụ đề",
+ "subtitles off": "Tắt phụ đề",
+ "Captions": "Chú thích",
+ "captions off": "Tắt chú thích",
+ "Chapters": "Chương",
+ "You aborted the video playback": "Bạn đã hủy việc phát video.",
+ "A network error caused the video download to fail part-way.": "Một lỗi mạng dẫn đến việc tải video bị lỗi.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Video không tải được, mạng hay server có lỗi hoặc định dạng không được hỗ trợ.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Phát video đã bị hủy do một sai lỗi hoặc video sử dụng những tính năng trình duyệt không hỗ trợ.",
+ "No compatible source was found for this video.": "Không có nguồn tương thích cho video này."
+}
diff --git a/bower_components/video.js/lang/zh-CN.json b/bower_components/video.js/lang/zh-CN.json
new file mode 100644
index 0000000..45179fe
--- /dev/null
+++ b/bower_components/video.js/lang/zh-CN.json
@@ -0,0 +1,27 @@
+{
+ "Play": "播放",
+ "Pause": "暂停",
+ "Current Time": "当前时间",
+ "Duration Time": "时长",
+ "Remaining Time": "剩余时间",
+ "Stream Type": "媒体流类型",
+ "LIVE": "直播",
+ "Loaded": "加载完毕",
+ "Progress": "进度",
+ "Fullscreen": "全屏",
+ "Non-Fullscreen": "退出全屏",
+ "Mute": "静音",
+ "Unmuted": "取消静音",
+ "Playback Rate": "播放码率",
+ "Subtitles": "字幕",
+ "subtitles off": "字幕关闭",
+ "Captions": "内嵌字幕",
+ "captions off": "内嵌字幕关闭",
+ "Chapters": "节目段落",
+ "You aborted the video playback": "视频播放被终止",
+ "A network error caused the video download to fail part-way.": "网络错误导致视频下载中途失败。",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "视频因格式不支持或者服务器或网络的问题无法加载。",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "由于视频文件损坏或是该视频使用了你的浏览器不支持的功能,播放终止。",
+ "No compatible source was found for this video.": "无法找到此视频兼容的源。",
+ "The video is encrypted and we do not have the keys to decrypt it.": "视频已加密,无法解密。"
+}
diff --git a/bower_components/video.js/lang/zh-TW.json b/bower_components/video.js/lang/zh-TW.json
new file mode 100644
index 0000000..0f40b35
--- /dev/null
+++ b/bower_components/video.js/lang/zh-TW.json
@@ -0,0 +1,28 @@
+{
+ "Play": "播放",
+ "Pause": "暫停",
+ "Current Time": "目前時間",
+ "Duration Time": "總共時間",
+ "Remaining Time": "剩餘時間",
+ "Stream Type": "串流類型",
+ "LIVE": "直播",
+ "Loaded": "載入完畢",
+ "Progress": "進度",
+ "Fullscreen": "全螢幕",
+ "Non-Fullscreen": "退出全螢幕",
+ "Mute": "靜音",
+ "Unmuted": "取消靜音",
+ "Playback Rate": " 播放速率",
+ "Subtitles": "字幕",
+ "subtitles off": "關閉字幕",
+ "Captions": "內嵌字幕",
+ "captions off": "關閉內嵌字幕",
+ "Chapters": "章節",
+ "You aborted the video playback": "影片播放已終止",
+ "A network error caused the video download to fail part-way.": "網路錯誤導致影片下載失敗。",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "影片因格式不支援或者伺服器或網路的問題無法載入。",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "由於影片檔案損毀或是該影片使用了您的瀏覽器不支援的功能,播放終止。",
+ "No compatible source was found for this video.": "無法找到相容此影片的來源。",
+ "The video is encrypted and we do not have the keys to decrypt it.": "影片已加密,無法解密。"
+}
+
diff --git a/bower_components/video.js/package.json b/bower_components/video.js/package.json
new file mode 100644
index 0000000..1893037
--- /dev/null
+++ b/bower_components/video.js/package.json
@@ -0,0 +1,67 @@
+{
+ "name": "video.js",
+ "description": "An HTML5 and Flash video player with a common API and skin for both.",
+ "version": "4.12.1",
+ "copyright": "Copyright 2014 Brightcove, Inc. https://github.com/videojs/video.js/blob/master/LICENSE",
+ "keywords": [
+ "videojs",
+ "html5",
+ "flash",
+ "video",
+ "player"
+ ],
+ "homepage": "http://videojs.com",
+ "author": "Steve Heffernan",
+ "scripts": {
+ "test": "grunt test"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/videojs/video.js.git"
+ },
+ "main": "./dist/video-js/video.js",
+ "dependencies": {
+ "videojs-swf": "4.5.3",
+ "vtt.js": "git+https://github.com/gkatsev/vtt.js.git#shim-build"
+ },
+ "devDependencies": {
+ "calcdeps": "~0.1.7",
+ "chg": "~0.1.8",
+ "contribflow": "~0.2.0",
+ "github": "~0.1.14",
+ "grunt": "^0.4.4",
+ "grunt-banner": "~0.2.0",
+ "grunt-cli": "~0.1.0",
+ "grunt-contrib-clean": "~0.4.0a",
+ "grunt-contrib-connect": "~0.7.1",
+ "grunt-contrib-copy": "~0.3.2",
+ "grunt-contrib-cssmin": "~0.6.0",
+ "grunt-contrib-jshint": "~0.4.3",
+ "grunt-contrib-less": "~0.6.4",
+ "grunt-contrib-qunit": "~0.2.1",
+ "grunt-contrib-watch": "~0.1.4",
+ "grunt-karma": "^0.8.3",
+ "grunt-s3": "~0.2.0-alpha",
+ "grunt-tagrelease": "~0.3.3",
+ "grunt-version": "~0.3.0",
+ "grunt-zip": "0.10.2",
+ "karma": "^0.12.14",
+ "karma-chrome-launcher": "^0.1.3",
+ "karma-firefox-launcher": "^0.1.3",
+ "karma-ie-launcher": "^0.1.5",
+ "karma-opera-launcher": "~0.1.0",
+ "karma-phantomjs-launcher": "^0.1.4",
+ "karma-qunit": "^0.1.2",
+ "karma-safari-launcher": "^0.1.1",
+ "karma-sauce-launcher": "^0.2.8",
+ "karma-sinon": "^1.0.3",
+ "mocha": "~1.8.1",
+ "open": "0.0.4",
+ "qunitjs": "~1.14.0",
+ "semver": "~1.1.4",
+ "sinon": "~1.9.1",
+ "uglify-js": "~2.3.6",
+ "videojs-doc-generator": "0.0.1",
+ "grunt-videojs-languages": "0.0.4"
+ }
+}
diff --git a/bower_components/video.js/sandbox/index.html.example b/bower_components/video.js/sandbox/index.html.example
new file mode 100644
index 0000000..25d2e7c
--- /dev/null
+++ b/bower_components/video.js/sandbox/index.html.example
@@ -0,0 +1,36 @@
+
+
+
+
+ Video.js Sandbox
+
+
+
+
+
+
+
+
+
+
+
+ You can use /sandbox/ for writing and testing your own code. Nothing in /sandbox/ will get checked into the repo, except files that end in .example, so please don't edit or add those files. To get started make a copy of index.html.example and rename it to index.html.
+
+
+
+
+
+
+ To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video
+
+
+
+
+
+
diff --git a/bower_components/video.js/sandbox/language.html.example b/bower_components/video.js/sandbox/language.html.example
new file mode 100644
index 0000000..9c1368a
--- /dev/null
+++ b/bower_components/video.js/sandbox/language.html.example
@@ -0,0 +1,63 @@
+
+
+
+
+
+ VideoJS Languages Demo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/bower_components/video.js/sandbox/plugin.html.example b/bower_components/video.js/sandbox/plugin.html.example
new file mode 100644
index 0000000..6d8a3d7
--- /dev/null
+++ b/bower_components/video.js/sandbox/plugin.html.example
@@ -0,0 +1,46 @@
+
+
+
+
+ Video.js Plugin Example
+
+
+
+
+
+
+
+
+ This page shows you how to create, register and initialize a Video.js plugin.
+
+
+
+
+
+ Video Playback Not Supported
+
+
+
+
+
+
diff --git a/bower_components/video.js/src/css/font/vjs.eot b/bower_components/video.js/src/css/font/vjs.eot
new file mode 100755
index 0000000..a2c0f5f
Binary files /dev/null and b/bower_components/video.js/src/css/font/vjs.eot differ
diff --git a/bower_components/video.js/src/css/font/vjs.svg b/bower_components/video.js/src/css/font/vjs.svg
new file mode 100755
index 0000000..fa6aa7b
--- /dev/null
+++ b/bower_components/video.js/src/css/font/vjs.svg
@@ -0,0 +1,28 @@
+
+
+
+Generated by IcoMoon
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bower_components/video.js/src/css/font/vjs.ttf b/bower_components/video.js/src/css/font/vjs.ttf
new file mode 100755
index 0000000..682a9b2
Binary files /dev/null and b/bower_components/video.js/src/css/font/vjs.ttf differ
diff --git a/bower_components/video.js/src/css/font/vjs.woff b/bower_components/video.js/src/css/font/vjs.woff
new file mode 100644
index 0000000..a79d0fa
Binary files /dev/null and b/bower_components/video.js/src/css/font/vjs.woff differ
diff --git a/bower_components/video.js/src/css/video-js.less b/bower_components/video.js/src/css/video-js.less
new file mode 100644
index 0000000..fc43aee
--- /dev/null
+++ b/bower_components/video.js/src/css/video-js.less
@@ -0,0 +1,1237 @@
+ /*!
+Video.js Default Styles (http://videojs.com)
+Version GENERATED_AT_BUILD
+Create your own skin at http://designer.videojs.com
+*/
+
+// To customize the player skin, change the values of the variables or edit the
+// CSS below.
+// (This file uses LESS. Learn more at http://lesscss.org/)
+
+// The base font size controls the size of everything, not just text. All
+// dimensions use em-based sizes so that the scale along with the font size.
+// Try increasing it to 20px and see what happens.
+@base-font-size: 10px;
+@touch-device-font-size: 15px;
+
+// The main font color controls the color of the text and the icons (font icons)
+@main-font-color: #CCCCCC; // e.g. rgb(255, 255, 255) or #ffffff
+
+// The default color of control backgrounds is mostly black but with a little
+// bit of blue so it can still be seen on all black video frames, which are
+// common.
+@control-bg-color: #07141E; // e.g. rgb(255, 255, 255) or #ffffff
+@control-bg-alpha: 0.7; // 1.0 = 100% opacity, 0.0 = 0% opacity
+
+// The slider bar color is used for the progress bar and the volume bar
+@slider-bar-color: #66A8CC; // e.g. rgb(255, 255, 255) or #ffffff
+// The background of the progress bar and volume bar have a lined pattern that
+// is created from a base64 encoded image. You can generate your own pattern at
+// http://www.patternify.com/ then replace the value in the quotes with your own
+@slider-bar-pattern: ~'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC';
+// The color of the slider background
+@slider-background-color: #333333;
+@slider-background-alpha: 0.9; // 1.0 = 100% opacity, 0.0 = 0% opacity
+
+// The "Big Play Button" is the play button that shows before the video plays.
+// To center it set the align values to center and middle. The typical location
+// of the button is the center, but there is trend towards moving it to a corner
+// where it gets out of the way of valuable content in the poster image.
+@big-play-align: left; // left, center, or right
+@big-play-vertical-align: top; // top, middle, or bottom
+// The button colors match the control colors by default but you can customize
+// them by replace the variables (@control-bg-color) with your own color values.
+@big-play-bg-color: @control-bg-color;
+@big-play-bg-alpha: @control-bg-alpha;
+// The font size is what makes the big play button, big. All width/height values
+// use ems, which are a multiple of the font size.
+// If the @base-font-size is 10px, then 3em equals 30px.
+@big-play-font-size: 3em;
+// Now that font size is set, the following em values will be a multiple of the
+// new font size. If @big-play-font-size is 3em (30px), then setting the any of
+// the following values to 2em would equal 60px. 2 * font-size
+@big-play-margin: 0.5em;
+@big-play-width: 4em;
+@big-play-height: 2.6em;
+@big-play-border-radius: 0.8em;
+@big-play-border-width: 0.1em;
+@big-play-border-color: #3b4249;
+
+/* SKIN
+================================================================================
+The main class name for all skin-specific styles. To make your own skin,
+replace all occurrences of 'vjs-default-skin' with a new name. Then add your new
+skin name to your video tag instead of the default skin.
+e.g.
+*/
+.vjs-default-skin {
+ color: @main-font-color;
+}
+
+/* Custom Icon Font
+--------------------------------------------------------------------------------
+The control icons are from a custom font. Each icon corresponds to a character
+(e.g. "\e001"). Font icons allow for easy scaling and coloring of icons.
+*/
+@vjs-font-path: 'font';
+@font-face{
+ font-family: 'VideoJS';
+ src: url('@{vjs-font-path}/vjs.eot');
+ src: url('@{vjs-font-path}/vjs.eot?#iefix') format('embedded-opentype'),
+ url('@{vjs-font-path}/vjs.woff') format('woff'),
+ url('@{vjs-font-path}/vjs.ttf') format('truetype'),
+ url('@{vjs-font-path}/vjs.svg#icomoon') format('svg');
+
+ font-weight: normal;
+ font-style: normal;
+}
+
+// Icon font character values
+@play-icon: "\e001";
+@pause-icon: "\e002";
+@volume-muted-icon: "\e003";
+@volume-low-icon: "\e004";
+@volume-mid-icon: "\e005";
+@volume-high-icon: "\e006";
+@fullscreen-enter-icon: "\e000";
+@fullscreen-exit-icon: "\e00b";
+@square-icon: "\e009";
+@spinner-icon: "\e00a";
+@spinner2-icon: "\e00d";
+@spinner3-icon: "\e01e";
+@spinner4-icon: "\e01f";
+@subtitles-icon: "\e00c";
+@captions-icon: "\e008";
+@chapters-icon: "\e00c";
+@share-icon: "\e00e";
+@cog-icon: "\e600";
+
+/* Base UI Component Classes
+--------------------------------------------------------------------------------
+*/
+
+/* Slider - used for Volume bar and Seek bar */
+.vjs-default-skin .vjs-slider {
+ /* Replace browser focus highlight with handle highlight *///
+ outline: 0;
+ position: relative;
+ cursor: pointer;
+ padding: 0;
+
+ .background-color-with-alpha(@slider-background-color, @slider-background-alpha);
+}
+
+.vjs-default-skin .vjs-slider:focus {
+ .box-shadow(0 0 2em #fff);
+}
+
+.vjs-default-skin .vjs-slider-handle {
+ position: absolute;
+ /* Needed for IE6 *///
+ left: 0;
+ top: 0;
+}
+
+.vjs-default-skin .vjs-slider-handle:before {
+ content: @square-icon;
+ font-family: VideoJS;
+ font-size: 1em;
+ line-height: 1;
+ text-align: center;
+ text-shadow: 0em 0em 1em #fff;
+
+ position: absolute;
+ top: 0;
+ left: 0;
+
+ /* Rotate the square icon to make a diamond *///
+ .transform(rotate(-45deg));
+}
+
+/* Control Bar
+--------------------------------------------------------------------------------
+The default control bar that is a container for most of the controls.
+*/
+.vjs-default-skin .vjs-control-bar {
+ /* Start hidden *///
+ display: none;
+ position: absolute;
+ /* Place control bar at the bottom of the player box/video.
+ If you want more margin below the control bar, add more height. *///
+ bottom: 0;
+ /* Use left/right to stretch to 100% width of player div *///
+ left: 0;
+ right: 0;
+ /* Height includes any margin you want above or below control items *///
+ height: 3.0em;
+
+ .background-color-with-alpha(@control-bg-color, @control-bg-alpha);
+}
+
+/* Show the control bar only once the video has started playing */
+.vjs-default-skin.vjs-has-started .vjs-control-bar {
+ display: block;
+ /* Visibility needed to make sure things hide in older browsers too. */
+ visibility: visible;
+ opacity: 1;
+
+ @trans: visibility 0.1s, opacity 0.1s; // Var needed because of comma
+ .transition(@trans);
+}
+
+/* Hide the control bar when the video is playing and the user is inactive */
+.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
+ display: block;
+ visibility: hidden;
+ opacity: 0;
+
+ @trans: visibility 1.0s, opacity 1.0s;
+ .transition(@trans);
+}
+
+.vjs-default-skin.vjs-controls-disabled .vjs-control-bar {
+ display: none;
+}
+
+.vjs-default-skin.vjs-using-native-controls .vjs-control-bar {
+ display: none;
+}
+
+/* The control bar shouldn't show after an error */
+.vjs-default-skin.vjs-error .vjs-control-bar {
+ display: none;
+}
+
+/* Don't hide the control bar if it's audio */
+.vjs-audio.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
+ opacity: 1;
+ visibility: visible;
+}
+
+/* IE8 is flakey with fonts, and you have to change the actual content to force
+fonts to show/hide properly.
+ - "\9" IE8 hack didn't work for this
+ - Found in XP IE8 from http://modern.ie. Does not show up in "IE8 mode" in IE9
+*/
+@ie8screen: ~"\0screen";
+.vjs-default-skin.vjs-user-inactive.vjs-playing .vjs-control-bar :before {
+ @media @ie8screen { content: ""; }
+}
+
+/* General styles for individual controls. */
+.vjs-default-skin .vjs-control {
+ outline: none;
+ position: relative;
+ float: left;
+ text-align: center;
+ margin: 0;
+ padding: 0;
+ height: 3.0em;
+ width: 4em;
+}
+
+/* Font button icons */
+.vjs-default-skin .vjs-control:before {
+ font-family: VideoJS;
+ font-size: 1.5em;
+ line-height: 2;
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ text-align: center;
+ text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
+}
+
+/* Replacement for focus outline */
+.vjs-default-skin .vjs-control:focus:before,
+.vjs-default-skin .vjs-control:hover:before {
+ text-shadow: 0em 0em 1em rgba(255, 255, 255, 1);
+}
+
+.vjs-default-skin .vjs-control:focus {
+ /* outline: 0; *///
+ /* keyboard-only users cannot see the focus on several of the UI elements when
+ this is set to 0 */
+}
+
+/* Hide control text visually, but have it available for screenreaders */
+.vjs-default-skin .vjs-control-text {
+ .hide-visually;
+}
+
+/* Play/Pause
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-play-control {
+ width: 5em;
+ cursor: pointer;
+}
+.vjs-default-skin .vjs-play-control:before {
+ content: @play-icon;
+}
+.vjs-default-skin.vjs-playing .vjs-play-control:before {
+ content: @pause-icon;
+}
+
+/* Playback toggle
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-playback-rate .vjs-playback-rate-value {
+ font-size: 1.5em;
+ line-height: 2;
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ text-align: center;
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
+}
+
+.vjs-default-skin .vjs-playback-rate.vjs-menu-button .vjs-menu .vjs-menu-content {
+ width: 4em;
+ left: -2em;
+ list-style: none;
+}
+
+/* Volume/Mute
+-------------------------------------------------------------------------------- */
+.vjs-default-skin .vjs-mute-control,
+.vjs-default-skin .vjs-volume-menu-button {
+ cursor: pointer;
+ float: right;
+}
+.vjs-default-skin .vjs-mute-control:before,
+.vjs-default-skin .vjs-volume-menu-button:before {
+ content: @volume-high-icon;
+}
+.vjs-default-skin .vjs-mute-control.vjs-vol-0:before,
+.vjs-default-skin .vjs-volume-menu-button.vjs-vol-0:before {
+ content: @volume-muted-icon;
+}
+.vjs-default-skin .vjs-mute-control.vjs-vol-1:before,
+.vjs-default-skin .vjs-volume-menu-button.vjs-vol-1:before {
+ content: @volume-low-icon;
+}
+.vjs-default-skin .vjs-mute-control.vjs-vol-2:before,
+.vjs-default-skin .vjs-volume-menu-button.vjs-vol-2:before {
+ content: @volume-mid-icon;
+}
+
+.vjs-default-skin .vjs-volume-control {
+ width: 5em;
+ float: right;
+}
+.vjs-default-skin .vjs-volume-bar {
+ width: 5em;
+ height: 0.6em;
+ margin: 1.1em auto 0;
+}
+
+.vjs-default-skin .vjs-volume-level {
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 0.5em;
+ /* assuming volume starts at 1.0 */
+ width: 100%;
+
+ background: @slider-bar-color
+ url(@slider-bar-pattern)
+ -50% 0 repeat;
+}
+.vjs-default-skin .vjs-volume-bar .vjs-volume-handle {
+ width: 0.5em;
+ height: 0.5em;
+ /* Assumes volume starts at 1.0. If you change the size of the
+ handle relative to the volume bar, you'll need to update this value
+ too. */
+ left: 4.5em;
+}
+
+.vjs-default-skin .vjs-volume-handle:before {
+ font-size: 0.9em;
+ top: -0.2em;
+ left: -0.2em;
+
+ width: 1em;
+ height: 1em;
+}
+
+/* The volume menu button is like menu buttons (captions/subtitles) but works
+ a little differently. It needs to be possible to tab to the volume slider
+ without hitting space bar on the menu button. To do this we're not using
+ display:none to hide the slider menu by default, and instead setting the
+ width and height to zero. */
+.vjs-default-skin .vjs-volume-menu-button .vjs-menu {
+ display: block;
+ width: 0;
+ height: 0;
+ border-top-color: transparent;
+}
+
+.vjs-default-skin .vjs-volume-menu-button .vjs-menu .vjs-menu-content {
+ height: 0;
+ width: 0;
+}
+
+.vjs-default-skin .vjs-volume-menu-button:hover .vjs-menu,
+.vjs-default-skin .vjs-volume-menu-button .vjs-menu.vjs-lock-showing {
+ border-top-color: rgba(7, 40, 50, 0.5); /* Same as ul background */
+}
+
+.vjs-default-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-menu-content,
+.vjs-default-skin .vjs-volume-menu-button .vjs-menu.vjs-lock-showing .vjs-menu-content {
+ height: 2.9em;
+ width: 10em;
+}
+
+/* Progress
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-progress-control {
+ position: absolute;
+ left: 0;
+ right: 0;
+ width: auto;
+ font-size: 0.3em;
+ height: 1em;
+ /* Set above the rest of the controls. *///
+ top: -1em;
+
+ /* Shrink the bar slower than it grows. *///
+ .transition(all 0.4s);
+}
+
+/* On hover, make the progress bar grow to something that's more clickable.
+ This simply changes the overall font for the progress bar, and this
+ updates both the em-based widths and heights, as wells as the icon font */
+.vjs-default-skin:hover .vjs-progress-control {
+ font-size: .9em;
+
+ /* Even though we're not changing the top/height, we need to include them in
+ the transition so they're handled correctly. */
+ .transition(all 0.2s);
+}
+
+/* Box containing play and load progresses. Also acts as seek scrubber. */
+.vjs-default-skin .vjs-progress-holder {
+ height: 100%;
+}
+
+/* Progress Bars */
+.vjs-default-skin .vjs-progress-holder .vjs-play-progress,
+.vjs-default-skin .vjs-progress-holder .vjs-load-progress,
+.vjs-default-skin .vjs-progress-holder .vjs-load-progress div {
+ position: absolute;
+ display: block;
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ /* updated by javascript during playback */
+ width: 0;
+ /* Needed for IE6 *///
+ left: 0;
+ top: 0;
+}
+
+.vjs-default-skin .vjs-play-progress {
+ /*
+ Using a data URI to create the white diagonal lines with a transparent
+ background. Surprisingly works in IE8.
+ Created using http://www.patternify.com
+ Changing the first color value will change the bar color.
+ Also using a paralax effect to make the lines move backwards.
+ The -50% left position makes that happen.
+ */
+ background: @slider-bar-color
+ url(@slider-bar-pattern)
+ -50% 0 repeat;
+}
+.vjs-default-skin .vjs-load-progress {
+ background: rgb(100, 100, 100) /* IE8- Fallback */;
+ background: rgba(255, 255, 255, 0.2);
+}
+
+/* there are child elements of the load progress bar that represent the
+ specific time ranges that have been buffered */
+.vjs-default-skin .vjs-load-progress div {
+ background: rgb(120, 120, 120) /* IE8- Fallback */;
+ background: rgba(255, 255, 255, 0.1);
+}
+
+.vjs-default-skin .vjs-seek-handle {
+ width: 1.5em;
+ height: 100%;
+}
+
+.vjs-default-skin .vjs-seek-handle:before {
+ padding-top: 0.1em /* Minor adjustment */;
+}
+
+/* Live Mode
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin.vjs-live .vjs-time-controls,
+.vjs-default-skin.vjs-live .vjs-time-divider,
+.vjs-default-skin.vjs-live .vjs-progress-control {
+ display: none;
+}
+.vjs-default-skin.vjs-live .vjs-live-display {
+ display: block;
+}
+
+/* Live Display
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-live-display {
+ display: none;
+ font-size: 1em;
+ line-height: 3em;
+}
+
+/* Time Display
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-time-controls {
+ font-size: 1em;
+ /* Align vertically by making the line height the same as the control bar *///
+ line-height: 3em;
+}
+.vjs-default-skin .vjs-current-time { float: left; }
+.vjs-default-skin .vjs-duration { float: left; }
+/* Remaining time is in the HTML, but not included in default design */
+.vjs-default-skin .vjs-remaining-time { display: none; float: left; }
+.vjs-time-divider { float: left; line-height: 3em; }
+
+/* Fullscreen
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-fullscreen-control {
+ width: 3.8em;
+ cursor: pointer;
+ float: right;
+}
+.vjs-default-skin .vjs-fullscreen-control:before {
+ content: @fullscreen-enter-icon;
+}
+/* Switch to the exit icon when the player is in fullscreen */
+.vjs-default-skin.vjs-fullscreen .vjs-fullscreen-control:before {
+ content: @fullscreen-exit-icon;
+}
+
+/* Big Play Button (play button at start)
+--------------------------------------------------------------------------------
+Positioning of the play button in the center or other corners can be done more
+easily in the skin designer. http://designer.videojs.com/
+*/
+.vjs-default-skin .vjs-big-play-button {
+ // Calculate total width/height so we're able to center the button
+ @total-width: (@big-play-width + (@big-play-border-width * 2));
+ @total-height: (@big-play-height + (@big-play-border-width * 2));
+ // Position the button using the absolute-align mixin (bottom of page)
+ .absolute-align(@big-play-align, @big-play-margin, @total-width);
+ .absolute-align(@big-play-vertical-align, @big-play-margin, @total-height);
+
+ font-size: @big-play-font-size;
+ display: block;
+ z-index: 2;
+ position: absolute;
+ width: @big-play-width;
+ height: @big-play-height;
+ text-align: center;
+ vertical-align: middle;
+ cursor: pointer;
+ opacity: 1;
+
+ /* Need a slightly gray bg so it can be seen on black backgrounds *///
+ .background-color-with-alpha(@big-play-bg-color, @big-play-bg-alpha);
+
+ border: @big-play-border-width solid @big-play-border-color;
+
+ .border-radius(@big-play-border-radius);
+ .box-shadow(0px 0px 1em rgba(255, 255, 255, 0.25));
+ .transition(all 0.4s);
+}
+
+/* Optionally center */
+.vjs-default-skin.vjs-big-play-centered .vjs-big-play-button {
+ @total-width: (@big-play-width + (@big-play-border-width * 2));
+ @total-height: (@big-play-height + (@big-play-border-width * 2));
+
+ .absolute-align(center, @big-play-margin, @total-width);
+ .absolute-align(middle, @big-play-margin, @total-height);
+}
+
+/* Hide if controls are disabled */
+.vjs-default-skin.vjs-controls-disabled .vjs-big-play-button {
+ display: none;
+}
+/* Hide when video starts playing */
+.vjs-default-skin.vjs-has-started .vjs-big-play-button {
+ display: none;
+}
+/* Hide on mobile devices. Remove when we stop using native controls
+ by default on mobile */
+.vjs-default-skin.vjs-using-native-controls .vjs-big-play-button {
+ display: none;
+}
+
+.vjs-default-skin:hover .vjs-big-play-button,
+.vjs-default-skin .vjs-big-play-button:focus {
+ outline: 0;
+ border-color: #fff;
+ /* IE8 needs a non-glow hover state *///
+ background-color: rgb(80, 80, 80);
+ background-color: rgba(50, 50, 50, 0.75);
+
+ .box-shadow(0 0 3em #fff);
+ .transition(all 0s);
+}
+
+.vjs-default-skin .vjs-big-play-button:before {
+ content: @play-icon;
+ font-family: VideoJS;
+ /* In order to center the play icon vertically we need to set the line height
+ to the same as the button height */
+ line-height: @big-play-height;
+ text-shadow: 0.05em 0.05em 0.1em #000;
+ text-align: center /* Needed for IE8 */;
+
+ position: absolute;
+ left: 0;
+ width: 100%;
+ height: 100%;
+}
+
+.vjs-error .vjs-big-play-button {
+ display: none;
+}
+
+/* Error Display
+--------------------------------------------------------------------------------
+*/
+
+.vjs-error-display {
+ display: none;
+}
+
+.vjs-error .vjs-error-display {
+ display: block;
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+}
+
+.vjs-error .vjs-error-display:before {
+ content: 'X';
+ font-family: Arial;
+ font-size: 4em;
+ color: #666666;
+ /* In order to center the play icon vertically we need to set the line height
+ to the same as the button height */
+ line-height: 1;
+ text-shadow: 0.05em 0.05em 0.1em #000;
+ text-align: center /* Needed for IE8 */;
+ vertical-align: middle;
+
+ position: absolute;
+ left: 0;
+ top: 50%;
+ margin-top: -0.5em;
+ width: 100%;
+}
+
+.vjs-error-display div {
+ position: absolute;
+ bottom: 1em;
+ right: 0;
+ left: 0;
+
+ font-size: 1.4em;
+ text-align: center;
+ padding: 3px;
+ background: rgb(0, 0, 0); // fallback to just black
+ background: rgba(0,0,0,0.5); // Normally show black at 50% opacity
+}
+
+.vjs-error-display a, .vjs-error-display a:visited {
+ color: #F4A460;
+}
+
+/* Loading Spinner
+--------------------------------------------------------------------------------
+*/
+
+.vjs-loading-spinner {
+ /* Should be hidden by default *///
+ display: none;
+
+ position: absolute;
+ top: 50%;
+ left: 50%;
+
+ font-size: 4em;
+ line-height: 1;
+
+ width: 1em;
+ height: 1em;
+
+ margin-left: -0.5em;
+ margin-top: -0.5em;
+
+ opacity: 0.75;
+}
+
+/* Show the spinner when waiting for data and seeking to a new time */
+.vjs-waiting .vjs-loading-spinner,
+.vjs-seeking .vjs-loading-spinner {
+ display: block;
+
+ /* only animate when showing because it can be processor heavy *///
+ .animation(spin 1.5s infinite linear);
+}
+
+/* Errors are unrecoverable without user interaction so hide the spinner */
+.vjs-error .vjs-loading-spinner {
+ display: none;
+
+ /* ensure animation doesn't continue while hidden *///
+ .animation(none);
+}
+
+.vjs-default-skin .vjs-loading-spinner:before {
+ content: @spinner3-icon;
+ font-family: VideoJS;
+
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 1em;
+ height: 1em;
+ text-align: center;
+ text-shadow: 0em 0em 0.1em #000;
+}
+
+@-moz-keyframes spin {
+ 0% { -moz-transform: rotate(0deg); }
+ 100% { -moz-transform: rotate(359deg); }
+}
+@-webkit-keyframes spin {
+ 0% { -webkit-transform: rotate(0deg); }
+ 100% { -webkit-transform: rotate(359deg); }
+}
+@-o-keyframes spin {
+ 0% { -o-transform: rotate(0deg); }
+ 100% { -o-transform: rotate(359deg); }
+}
+@keyframes spin {
+ 0% { transform: rotate(0deg); }
+ 100% { transform: rotate(359deg); }
+}
+
+/* Menu Buttons (Captions/Subtitles/etc.)
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-menu-button {
+ float: right;
+ cursor: pointer;
+}
+
+.vjs-default-skin .vjs-menu {
+ display: none;
+ position: absolute;
+ bottom: 0;
+ left: 0em; /* (Width of vjs-menu - width of button) / 2 */
+ width: 0em;
+ height: 0em;
+ margin-bottom: 3em;
+
+ border-left: 2em solid transparent;
+ border-right: 2em solid transparent;
+
+ border-top: 1.55em solid rgb(0, 0, 0); /* Same width top as ul bottom */
+ border-top-color: rgba(7, 40, 50, 0.5); /* Same as ul background */
+}
+
+/* Button Pop-up Menu */
+.vjs-default-skin .vjs-menu-button .vjs-menu .vjs-menu-content {
+ display: block;
+ padding: 0; margin: 0;
+ position: absolute;
+ width: 10em;
+ bottom: 1.5em; /* Same bottom as vjs-menu border-top */
+ max-height: 15em;
+ overflow: auto;
+
+ left: -5em; /* Width of menu - width of button / 2 */
+
+ .background-color-with-alpha(@control-bg-color, @control-bg-alpha);
+ .box-shadow(-0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2));
+}
+
+.vjs-default-skin .vjs-menu-button:hover .vjs-control-content .vjs-menu,
+.vjs-default-skin .vjs-control-content .vjs-menu.vjs-lock-showing {
+ display: block;
+}
+/* prevent menus from opening while scrubbing (FF, IE) */
+.vjs-default-skin.vjs-scrubbing .vjs-menu-button:hover .vjs-control-content .vjs-menu {
+ display: none;
+}
+.vjs-default-skin .vjs-menu-button ul li {
+ list-style: none;
+ margin: 0;
+ padding: 0.3em 0 0.3em 0;
+ line-height: 1.4em;
+ font-size: 1.2em;
+ text-align: center;
+ text-transform: lowercase;
+}
+.vjs-default-skin .vjs-menu-button ul li.vjs-selected {
+ background-color: #000;
+}
+.vjs-default-skin .vjs-menu-button ul li:focus,
+.vjs-default-skin .vjs-menu-button ul li:hover,
+.vjs-default-skin .vjs-menu-button ul li.vjs-selected:focus,
+.vjs-default-skin .vjs-menu-button ul li.vjs-selected:hover {
+ outline: 0;
+ color: #111;
+
+ .background-color-with-alpha(rgb(255, 255, 255), 0.75);
+ .box-shadow(0 0 1em rgba(255, 255, 255, 1));
+}
+.vjs-default-skin .vjs-menu-button ul li.vjs-menu-title {
+ text-align: center;
+ text-transform: uppercase;
+ font-size: 1em;
+ line-height: 2em;
+ padding: 0;
+ margin: 0 0 0.3em 0;
+ font-weight: bold;
+ cursor: default;
+}
+
+/* Subtitles Button */
+.vjs-default-skin .vjs-subtitles-button:before {
+ content: @subtitles-icon;
+}
+
+/* Captions Button */
+.vjs-default-skin .vjs-captions-button:before {
+ content: @captions-icon;
+}
+
+/* Chapters Button */
+.vjs-default-skin .vjs-chapters-button:before {
+ content: @chapters-icon;
+}
+
+.vjs-default-skin .vjs-chapters-button.vjs-menu-button .vjs-menu .vjs-menu-content {
+ width: 24em;
+ left: -12em;
+}
+
+/* Replacement for focus outline */
+.vjs-default-skin .vjs-captions-button:focus .vjs-control-content:before,
+.vjs-default-skin .vjs-captions-button:hover .vjs-control-content:before {
+ .box-shadow(0 0 1em rgba(255, 255, 255, 1));
+}
+
+/*
+REQUIRED STYLES (be careful overriding)
+================================================================================
+When loading the player, the video tag is replaced with a DIV,
+that will hold the video tag or object tag for other playback methods.
+The div contains the video playback element (Flash or HTML5) and controls,
+and sets the width and height of the video.
+
+** If you want to add some kind of border/padding (e.g. a frame), or special
+positioning, use another containing element. Otherwise you risk messing up
+control positioning and full window mode. **
+*/
+.video-js {
+ background-color: #000;
+ position: relative;
+ padding: 0;
+ /* Start with 10px for base font size so other dimensions can be em based and
+ easily calculable. */
+ font-size: @base-font-size;
+ /* Allow poster to be vertically aligned. */
+ vertical-align: middle;
+ /* display: table-cell; */ /*This works in Safari but not Firefox.*/
+
+ /* Provide some basic defaults for fonts */
+ font-weight: normal;
+ font-style: normal;
+ /* Avoiding helvetica: issue #376 */
+ font-family: Arial, sans-serif;
+
+ /* Turn off user selection (text highlighting) by default.
+ The majority of player components will not be text blocks.
+ Text areas will need to turn user selection back on. */
+ .user-select(none);
+}
+
+/* Playback technology elements expand to the width/height of the containing div
+ or */
+.video-js .vjs-tech {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+}
+
+/* Fix for Firefox 9 fullscreen (only if it is enabled). Not needed when
+ checking fullScreenEnabled. */
+.video-js:-moz-full-screen { position: absolute; }
+
+/* Fullscreen Styles */
+body.vjs-full-window {
+ padding: 0;
+ margin: 0;
+ height: 100%;
+ /* Fix for IE6 full-window. http://www.cssplay.co.uk/layouts/fixed.html *///
+ overflow-y: auto;
+}
+.video-js.vjs-fullscreen {
+ position: fixed;
+ overflow: hidden;
+ z-index: 1000;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ right: 0;
+ width: 100% !important;
+ height: 100% !important;
+ /* IE6 full-window (underscore hack) *///
+ _position: absolute;
+}
+.video-js:-webkit-full-screen {
+ width: 100% !important;
+ height: 100% !important;
+}
+.video-js.vjs-fullscreen.vjs-user-inactive {
+ cursor: none;
+}
+
+/* Poster Styles */
+.vjs-poster {
+ background-repeat: no-repeat;
+ background-position: 50% 50%;
+ background-size: contain;
+ cursor: pointer;
+ margin: 0;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+}
+.vjs-poster img {
+ display: block;
+ margin: 0 auto;
+ max-height: 100%;
+ padding: 0;
+ width: 100%;
+}
+
+/* Hide the poster after the video has started playing */
+.video-js.vjs-has-started .vjs-poster {
+ display: none;
+}
+
+/* Don't hide the poster if we're playing audio */
+.video-js.vjs-audio.vjs-has-started .vjs-poster {
+ display: block;
+}
+
+/* Hide the poster when controls are disabled because it's clickable
+ and the native poster can take over */
+.video-js.vjs-controls-disabled .vjs-poster {
+ display: none;
+}
+
+/* Hide the poster when native controls are used otherwise it covers them */
+.video-js.vjs-using-native-controls .vjs-poster {
+ display: none;
+}
+
+/* Text Track Styles */
+/* Overall track holder for both captions and subtitles */
+.video-js .vjs-text-track-display {
+ position: absolute;
+ top: 0;
+ left: 0;
+ bottom: 3em;
+ right: 0;
+ pointer-events: none;
+}
+
+/* Captions Settings Dialog */
+.vjs-caption-settings {
+ position: relative;
+ top: 1em;
+ background-color: #000;
+ opacity: 0.75;
+ color: #FFF;
+ margin: 0 auto;
+ padding: 0.5em;
+ height: 15em;
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ width: 40em;
+}
+
+.vjs-caption-settings .vjs-tracksettings {
+ top: 0;
+ bottom: 2em;
+ left: 0;
+ right: 0;
+ position: absolute;
+ overflow: auto;
+}
+
+.vjs-caption-settings .vjs-tracksettings-colors,
+.vjs-caption-settings .vjs-tracksettings-font {
+ float: left;
+}
+.vjs-caption-settings .vjs-tracksettings-colors:after,
+.vjs-caption-settings .vjs-tracksettings-font:after,
+.vjs-caption-settings .vjs-tracksettings-controls:after {
+ clear: both;
+}
+
+.vjs-caption-settings .vjs-tracksettings-controls {
+ position: absolute;
+ bottom: 1em;
+ right: 1em;
+}
+
+.vjs-caption-settings .vjs-tracksetting {
+ margin: 5px;
+ padding: 3px;
+ min-height: 40px;
+}
+.vjs-caption-settings .vjs-tracksetting label {
+ display: block;
+ width: 100px;
+ margin-bottom: 5px;
+}
+
+.vjs-caption-settings .vjs-tracksetting span {
+ display: inline;
+ margin-left: 5px;
+}
+
+.vjs-caption-settings .vjs-tracksetting > div {
+ margin-bottom: 5px;
+ min-height: 20px;
+}
+
+.vjs-caption-settings .vjs-tracksetting > div:last-child {
+ margin-bottom: 0;
+ padding-bottom: 0;
+ min-height: 0;
+}
+
+.vjs-caption-settings label > input {
+ margin-right: 10px;
+}
+
+.vjs-caption-settings input[type="button"] {
+ width: 40px;
+ height: 40px;
+}
+
+/* Hide disabled or unsupported controls */
+.vjs-hidden { display: none !important; }
+
+.vjs-lock-showing {
+ display: block !important;
+ opacity: 1;
+ visibility: visible;
+}
+
+/* In IE8 w/ no JavaScript (no HTML5 shim), the video tag doesn't register.
+ The .video-js classname on the video tag also isn't considered.
+ This optional paragraph inside the video tag can provide a message to users
+ about what's required to play video. */
+.vjs-no-js {
+ padding: 2em;
+ color: #ccc;
+ background-color: #333;
+ font-size: 1.8em;
+ font-family: Arial, sans-serif;
+ text-align: center;
+ width: 30em;
+ height: 15em;
+ margin: 0 auto;
+}
+
+.vjs-no-js a, .vjs-no-js a:visited {
+ color: #F4A460;
+}
+
+// MIXINS
+// =============================================================================
+// Mixins are a LESS feature and are used to add vendor prefixes to CSS rules
+// when needed.
+
+// https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
+.box-shadow (@string: 0 0 1em rgba(0, 0, 0, 0.25)) {
+ /* box-shadow *///
+ -webkit-box-shadow: @string;
+ -moz-box-shadow: @string;
+ box-shadow: @string;
+}
+
+// https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius
+.border-radius (@string: 5px) {
+ /* border-radius *///
+ -webkit-border-radius: @string;
+ -moz-border-radius: @string;
+ border-radius: @string;
+}
+
+// https://developer.mozilla.org/en-US/docs/Web/CSS/transition
+.transition (@string: all 1s linear) {
+ /* transition *///
+ -webkit-transition: @string;
+ -moz-transition: @string;
+ -o-transition: @string;
+ transition: @string;
+}
+
+// https://developer.mozilla.org/en-US/docs/Web/CSS/transition
+.transition-delay (@string: 1s) {
+ /* transition-delay *///
+ -webkit-transition-delay: @string;
+ -moz-transition-delay: @string;
+ -o-transition-delay: @string;
+ transition-delay: @string;
+}
+
+// https://developer.mozilla.org/en-US/docs/Web/CSS/animation
+.animation (@string: spin 1s infinite linear) {
+ /* animation *///
+ -webkit-animation: @string;
+ -moz-animation: @string;
+ -o-animation: @string;
+ animation: @string;
+}
+
+// https://developer.mozilla.org/en-US/docs/Web/CSS/transform
+.transform (@string: rotate(-45deg)) {
+ /* transform *///
+ -webkit-transform: @string;
+ -moz-transform: @string;
+ -ms-transform: @string;
+ -o-transform: @string;
+ transform: @string;
+}
+
+// https://developer.mozilla.org/en-US/docs/Web/CSS/user-select
+.user-select (@string: none) {
+ /* user-select *///
+ -webkit-user-select: @string;
+ -moz-user-select: @string;
+ -ms-user-select: @string;
+ user-select: @string;
+}
+
+// Hide something visually but keep available for screen readers.
+// http://h5bp.com/v
+.hide-visually () {
+ /* hide-visually *///
+ border: 0;
+ clip: rect(0 0 0 0);
+ height: 1px;
+ margin: -1px;
+ overflow: hidden;
+ padding: 0;
+ position:
+ absolute;
+ width: 1px;
+}
+
+// Align an object with absolute positioning
+// Used to align the Big Play Button in the corners or center
+.absolute-align (@align, @margin, @length) when (@align = top) {
+ top: @margin;
+}
+.absolute-align (@align, @margin, @length) when (@align = bottom) {
+ bottom: @margin;
+}
+.absolute-align (@align, @margin, @length) when (@align = left) {
+ left: @margin;
+}
+.absolute-align (@align, @margin, @length) when (@align = right) {
+ right: @margin;
+}
+.absolute-align (@align, @margin, @length) when (@align = center) {
+ /* Center it horizontally *///
+ left: 50%;
+ margin-left: (-(@length/2));
+ // margin-left: ((@length*-1)/2);
+}
+.absolute-align (@align, @margin, @length) when (@align = middle) {
+ /* Center it vertically *///
+ top: 50%;
+ margin-top: (-(@length/2));
+ // margin-top: ((@length*-1)/2);
+}
+
+// http://stackoverflow.com/questions/637921/opacity-of-background-but-not-the-text
+.background-color-with-alpha (@color, @alpha) {
+ @rgba: rgba(red(@color), green(@color), blue(@color), @alpha);
+ /* background-color-with-alpha *///
+ background-color: @color;
+ background-color: @rgba;
+ // No longer using MS filters because they break border radius in IE9
+ // @argb: argb(@rgba);
+ // filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorstr=@{argb}, endColorstr=@{argb})";
+ // -ms-filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorstr=@{argb}, endColorstr=@{argb})";
+}
+
+.border-color-with-alpha (@color, @alpha) {
+ @rgba: rgba(red(@color), green(@color), blue(@color), @alpha);
+ /* border-color-with-alpha *///
+ border-color: @color;
+ border-color: @rgba;
+}
+
+// NOTES ON LESS (tracking learnings so we don't forget)
+// =============================================================================
+// * We want this file to continue to be accessible by people who don't know
+// LESS but know CSS. This means finding the balance between using the most
+// valuable LESS features (e.g. variables) and keeping it looking like CSS.
+// So it's best to avoid advanced LESS features like conditional statements.
+// (we're using one for the big play button position because that's a hot
+// topic)
+//
+// * We care about the readability of the CSS output of LESS, which means we
+// have to be careful about what features of LESS we use. (if you're building
+// your own skin this may not apply)
+// 1. Comments inside of rules (strangely) have an extra line added after
+// them in the CSS output. To avoid this we can add a LESS comment after
+// the CSS comment.
+// /* comment *///
+//
+// 2. In a rule with nested rules, any comments outside of a rule are moved
+// to the top of the parent rule. i.e. it might look like:
+// /* title of rule 1 */
+// /* title of rule 2 */
+// .rule1 {}
+// .rule2 {}
+// This is why we aren't using nested rules inside of the
+// vjs-default-skin class.
+
+/* -----------------------------------------------------------------------------
+The original source of this file lives at
+https://github.com/videojs/video.js/blob/master/src/css/video-js.less */
diff --git a/bower_components/video.js/src/js/big-play-button.js b/bower_components/video.js/src/js/big-play-button.js
new file mode 100644
index 0000000..08d382c
--- /dev/null
+++ b/bower_components/video.js/src/js/big-play-button.js
@@ -0,0 +1,23 @@
+/* Big Play Button
+================================================================================ */
+/**
+ * Initial play button. Shows before the video has played. The hiding of the
+ * big play button is done via CSS and player states.
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.BigPlayButton = vjs.Button.extend();
+
+vjs.BigPlayButton.prototype.createEl = function(){
+ return vjs.Button.prototype.createEl.call(this, 'div', {
+ className: 'vjs-big-play-button',
+ innerHTML: ' ',
+ 'aria-label': 'play video'
+ });
+};
+
+vjs.BigPlayButton.prototype.onClick = function(){
+ this.player_.play();
+};
diff --git a/bower_components/video.js/src/js/button.js b/bower_components/video.js/src/js/button.js
new file mode 100644
index 0000000..cdd4ae8
--- /dev/null
+++ b/bower_components/video.js/src/js/button.js
@@ -0,0 +1,83 @@
+/* Button - Base class for all buttons
+================================================================================ */
+/**
+ * Base class for all buttons
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.Button = vjs.Component.extend({
+ /**
+ * @constructor
+ * @inheritDoc
+ */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.emitTapEvents();
+
+ this.on('tap', this.onClick);
+ this.on('click', this.onClick);
+ this.on('focus', this.onFocus);
+ this.on('blur', this.onBlur);
+ }
+});
+
+vjs.Button.prototype.createEl = function(type, props){
+ var el;
+
+ // Add standard Aria and Tabindex info
+ props = vjs.obj.merge({
+ className: this.buildCSSClass(),
+ 'role': 'button',
+ 'aria-live': 'polite', // let the screen reader user know that the text of the button may change
+ tabIndex: 0
+ }, props);
+
+ el = vjs.Component.prototype.createEl.call(this, type, props);
+
+ // if innerHTML hasn't been overridden (bigPlayButton), add content elements
+ if (!props.innerHTML) {
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-control-content'
+ });
+
+ this.controlText_ = vjs.createEl('span', {
+ className: 'vjs-control-text',
+ innerHTML: this.localize(this.buttonText) || 'Need Text'
+ });
+
+ this.contentEl_.appendChild(this.controlText_);
+ el.appendChild(this.contentEl_);
+ }
+
+ return el;
+};
+
+vjs.Button.prototype.buildCSSClass = function(){
+ // TODO: Change vjs-control to vjs-button?
+ return 'vjs-control ' + vjs.Component.prototype.buildCSSClass.call(this);
+};
+
+ // Click - Override with specific functionality for button
+vjs.Button.prototype.onClick = function(){};
+
+ // Focus - Add keyboard functionality to element
+vjs.Button.prototype.onFocus = function(){
+ vjs.on(document, 'keydown', vjs.bind(this, this.onKeyPress));
+};
+
+ // KeyPress (document level) - Trigger click when keys are pressed
+vjs.Button.prototype.onKeyPress = function(event){
+ // Check for space bar (32) or enter (13) keys
+ if (event.which == 32 || event.which == 13) {
+ event.preventDefault();
+ this.onClick();
+ }
+};
+
+// Blur - Remove keyboard triggers
+vjs.Button.prototype.onBlur = function(){
+ vjs.off(document, 'keydown', vjs.bind(this, this.onKeyPress));
+};
diff --git a/bower_components/video.js/src/js/cdn.js b/bower_components/video.js/src/js/cdn.js
new file mode 100644
index 0000000..3b5fa80
--- /dev/null
+++ b/bower_components/video.js/src/js/cdn.js
@@ -0,0 +1,56 @@
+/**
+ * Google Analytics tracking pixel for the freely hosted version of Video.js
+ * at vjs.zencdn.net. We'll use this data to develop a support matrix of
+ * browsers and devices, and possibly track errors.
+ *
+ * This code generates the GA tracking URL without requiring the GA javascript
+ * library.
+ *
+ * @type {Image}
+ */
+;(function(i,w,n,e,l){
+ l=w.location;
+
+ // Setting the source of an image will load the URL even without adding to dom
+ // Using //www, still seems to work for https even though ssl.google is used by google
+ i.src='//www.google-analytics.com/__utm.gif'
+ // Version
+ +'?utmwv=5.4.2'
+ // ID
+ +'&utmac=UA-16505296-2'
+ // Sessions
+ // &utms=2
+ // Cache breaker (using utmcc to do this)
+ +'&utmn='+1
+ +'&utmhn='+e(l.hostname)
+ // Encoding
+ // &utmcs=UTF-8
+ +'&utmsr='+w.screen.availWidth+'x'+w.screen.availHeight
+ // Browser window
+ // &utmvp=1057x1105
+ // Color depth
+ // &utmsc=24-bit
+ +'&utmul='+(n.language||n.userLanguage||'').toLowerCase()
+ // Java
+ // &utmje=1
+ // Flash version
+ // &utmfl=11.7%20r700
+ // Page title
+ // &utmdt=HTML5%20Video%20Player%20%7C%20Video.js
+ // Adsense
+ // &utmhid=1112291628
+ // Referrer, '-' is none
+ // Using current page as referrer so stats show up cleaner than "Direct"
+ +'&utmr='+e(l.href)
+ +'&utmp='+e(l.hostname+l.pathname)
+ // Current time stamp
+ // &utmht=1370890439353
+ // ?
+ // &utmu=q
+ // Cookies! Manually setting visitor ID and setting everything else to 1
+ // Random number used as cache buster instead of utmn
+ +'&utmcc=__utma%3D1.'+Math.floor(Math.random()*1e10)+'.1.1.1.1%3B'
+ // Custom Var: vjsv is the variable name and 1.0.0 is the VJS version
+ +'&utme=8(vjsv)9(v0.0.0)'
+ ;
+})(new Image(),window,navigator,encodeURIComponent);
\ No newline at end of file
diff --git a/bower_components/video.js/src/js/component.js b/bower_components/video.js/src/js/component.js
new file mode 100644
index 0000000..1231975
--- /dev/null
+++ b/bower_components/video.js/src/js/component.js
@@ -0,0 +1,1232 @@
+/**
+ * @fileoverview Player Component - Base class for all UI objects
+ *
+ */
+
+/**
+ * Base UI Component class
+ *
+ * Components are embeddable UI objects that are represented by both a
+ * javascript object and an element in the DOM. They can be children of other
+ * components, and can have many children themselves.
+ *
+ * // adding a button to the player
+ * var button = player.addChild('button');
+ * button.el(); // -> button element
+ *
+ *
+ *
+ * Components are also event emitters.
+ *
+ * button.on('click', function(){
+ * console.log('Button Clicked!');
+ * });
+ *
+ * button.trigger('customevent');
+ *
+ * @param {Object} player Main Player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ * @extends vjs.CoreObject
+ */
+vjs.Component = vjs.CoreObject.extend({
+ /**
+ * the constructor function for the class
+ *
+ * @constructor
+ */
+ init: function(player, options, ready){
+ this.player_ = player;
+
+ // Make a copy of prototype.options_ to protect against overriding global defaults
+ this.options_ = vjs.obj.copy(this.options_);
+
+ // Updated options with supplied options
+ options = this.options(options);
+
+ // Get ID from options or options element if one is supplied
+ this.id_ = options['id'] || (options['el'] && options['el']['id']);
+
+ // If there was no ID from the options, generate one
+ if (!this.id_) {
+ // Don't require the player ID function in the case of mock players
+ this.id_ = ((player.id && player.id()) || 'no_player') + '_component_' + vjs.guid++;
+ }
+
+ this.name_ = options['name'] || null;
+
+ // Create element if one wasn't provided in options
+ this.el_ = options['el'] || this.createEl();
+
+ this.children_ = [];
+ this.childIndex_ = {};
+ this.childNameIndex_ = {};
+
+ // Add any child components in options
+ this.initChildren();
+
+ this.ready(ready);
+ // Don't want to trigger ready here or it will before init is actually
+ // finished for all children that run this constructor
+
+ if (options.reportTouchActivity !== false) {
+ this.enableTouchActivity();
+ }
+ }
+});
+
+/**
+ * Dispose of the component and all child components
+ */
+vjs.Component.prototype.dispose = function(){
+ this.trigger({ type: 'dispose', 'bubbles': false });
+
+ // Dispose all children.
+ if (this.children_) {
+ for (var i = this.children_.length - 1; i >= 0; i--) {
+ if (this.children_[i].dispose) {
+ this.children_[i].dispose();
+ }
+ }
+ }
+
+ // Delete child references
+ this.children_ = null;
+ this.childIndex_ = null;
+ this.childNameIndex_ = null;
+
+ // Remove all event listeners.
+ this.off();
+
+ // Remove element from DOM
+ if (this.el_.parentNode) {
+ this.el_.parentNode.removeChild(this.el_);
+ }
+
+ vjs.removeData(this.el_);
+ this.el_ = null;
+};
+
+/**
+ * Reference to main player instance
+ *
+ * @type {vjs.Player}
+ * @private
+ */
+vjs.Component.prototype.player_ = true;
+
+/**
+ * Return the component's player
+ *
+ * @return {vjs.Player}
+ */
+vjs.Component.prototype.player = function(){
+ return this.player_;
+};
+
+/**
+ * The component's options object
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Component.prototype.options_;
+
+/**
+ * Deep merge of options objects
+ *
+ * Whenever a property is an object on both options objects
+ * the two properties will be merged using vjs.obj.deepMerge.
+ *
+ * This is used for merging options for child components. We
+ * want it to be easy to override individual options on a child
+ * component without having to rewrite all the other default options.
+ *
+ * Parent.prototype.options_ = {
+ * children: {
+ * 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+ * 'childTwo': {},
+ * 'childThree': {}
+ * }
+ * }
+ * newOptions = {
+ * children: {
+ * 'childOne': { 'foo': 'baz', 'abc': '123' }
+ * 'childTwo': null,
+ * 'childFour': {}
+ * }
+ * }
+ *
+ * this.options(newOptions);
+ *
+ * RESULT
+ *
+ * {
+ * children: {
+ * 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+ * 'childTwo': null, // Disabled. Won't be initialized.
+ * 'childThree': {},
+ * 'childFour': {}
+ * }
+ * }
+ *
+ * @param {Object} obj Object of new option values
+ * @return {Object} A NEW object of this.options_ and obj merged
+ */
+vjs.Component.prototype.options = function(obj){
+ if (obj === undefined) return this.options_;
+
+ return this.options_ = vjs.util.mergeOptions(this.options_, obj);
+};
+
+/**
+ * The DOM element for the component
+ *
+ * @type {Element}
+ * @private
+ */
+vjs.Component.prototype.el_;
+
+/**
+ * Create the component's DOM element
+ *
+ * @param {String=} tagName Element's node type. e.g. 'div'
+ * @param {Object=} attributes An object of element attributes that should be set on the element
+ * @return {Element}
+ */
+vjs.Component.prototype.createEl = function(tagName, attributes){
+ return vjs.createEl(tagName, attributes);
+};
+
+vjs.Component.prototype.localize = function(string){
+ var lang = this.player_.language(),
+ languages = this.player_.languages();
+ if (languages && languages[lang] && languages[lang][string]) {
+ return languages[lang][string];
+ }
+ return string;
+};
+
+/**
+ * Get the component's DOM element
+ *
+ * var domEl = myComponent.el();
+ *
+ * @return {Element}
+ */
+vjs.Component.prototype.el = function(){
+ return this.el_;
+};
+
+/**
+ * An optional element where, if defined, children will be inserted instead of
+ * directly in `el_`
+ *
+ * @type {Element}
+ * @private
+ */
+vjs.Component.prototype.contentEl_;
+
+/**
+ * Return the component's DOM element for embedding content.
+ * Will either be el_ or a new element defined in createEl.
+ *
+ * @return {Element}
+ */
+vjs.Component.prototype.contentEl = function(){
+ return this.contentEl_ || this.el_;
+};
+
+/**
+ * The ID for the component
+ *
+ * @type {String}
+ * @private
+ */
+vjs.Component.prototype.id_;
+
+/**
+ * Get the component's ID
+ *
+ * var id = myComponent.id();
+ *
+ * @return {String}
+ */
+vjs.Component.prototype.id = function(){
+ return this.id_;
+};
+
+/**
+ * The name for the component. Often used to reference the component.
+ *
+ * @type {String}
+ * @private
+ */
+vjs.Component.prototype.name_;
+
+/**
+ * Get the component's name. The name is often used to reference the component.
+ *
+ * var name = myComponent.name();
+ *
+ * @return {String}
+ */
+vjs.Component.prototype.name = function(){
+ return this.name_;
+};
+
+/**
+ * Array of child components
+ *
+ * @type {Array}
+ * @private
+ */
+vjs.Component.prototype.children_;
+
+/**
+ * Get an array of all child components
+ *
+ * var kids = myComponent.children();
+ *
+ * @return {Array} The children
+ */
+vjs.Component.prototype.children = function(){
+ return this.children_;
+};
+
+/**
+ * Object of child components by ID
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Component.prototype.childIndex_;
+
+/**
+ * Returns a child component with the provided ID
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.getChildById = function(id){
+ return this.childIndex_[id];
+};
+
+/**
+ * Object of child components by name
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Component.prototype.childNameIndex_;
+
+/**
+ * Returns a child component with the provided name
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.getChild = function(name){
+ return this.childNameIndex_[name];
+};
+
+/**
+ * Adds a child component inside this component
+ *
+ * myComponent.el();
+ * // ->
+ * myComonent.children();
+ * // [empty array]
+ *
+ * var myButton = myComponent.addChild('MyButton');
+ * // -> myButton
+ * // -> myButton === myComonent.children()[0];
+ *
+ * Pass in options for child constructors and options for children of the child
+ *
+ * var myButton = myComponent.addChild('MyButton', {
+ * text: 'Press Me',
+ * children: {
+ * buttonChildExample: {
+ * buttonChildOption: true
+ * }
+ * }
+ * });
+ *
+ * @param {String|vjs.Component} child The class name or instance of a child to add
+ * @param {Object=} options Options, including options to be passed to children of the child.
+ * @return {vjs.Component} The child component (created by this process if a string was used)
+ * @suppress {accessControls|checkRegExp|checkTypes|checkVars|const|constantProperty|deprecated|duplicate|es5Strict|fileoverviewTags|globalThis|invalidCasts|missingProperties|nonStandardJsDocs|strictModuleDepCheck|undefinedNames|undefinedVars|unknownDefines|uselessCode|visibility}
+ */
+vjs.Component.prototype.addChild = function(child, options){
+ var component, componentClass, componentName;
+
+ // If child is a string, create new component with options
+ if (typeof child === 'string') {
+ componentName = child;
+
+ // Make sure options is at least an empty object to protect against errors
+ options = options || {};
+
+ // If no componentClass in options, assume componentClass is the name lowercased
+ // (e.g. playButton)
+ componentClass = options['componentClass'] || vjs.capitalize(componentName);
+
+ // Set name through options
+ options['name'] = componentName;
+
+ // Create a new object & element for this controls set
+ // If there's no .player_, this is a player
+ // Closure Compiler throws an 'incomplete alias' warning if we use the vjs variable directly.
+ // Every class should be exported, so this should never be a problem here.
+ component = new window['videojs'][componentClass](this.player_ || this, options);
+
+ // child is a component instance
+ } else {
+ component = child;
+ }
+
+ this.children_.push(component);
+
+ if (typeof component.id === 'function') {
+ this.childIndex_[component.id()] = component;
+ }
+
+ // If a name wasn't used to create the component, check if we can use the
+ // name function of the component
+ componentName = componentName || (component.name && component.name());
+
+ if (componentName) {
+ this.childNameIndex_[componentName] = component;
+ }
+
+ // Add the UI object's element to the container div (box)
+ // Having an element is not required
+ if (typeof component['el'] === 'function' && component['el']()) {
+ this.contentEl().appendChild(component['el']());
+ }
+
+ // Return so it can stored on parent object if desired.
+ return component;
+};
+
+/**
+ * Remove a child component from this component's list of children, and the
+ * child component's element from this component's element
+ *
+ * @param {vjs.Component} component Component to remove
+ */
+vjs.Component.prototype.removeChild = function(component){
+ if (typeof component === 'string') {
+ component = this.getChild(component);
+ }
+
+ if (!component || !this.children_) return;
+
+ var childFound = false;
+ for (var i = this.children_.length - 1; i >= 0; i--) {
+ if (this.children_[i] === component) {
+ childFound = true;
+ this.children_.splice(i,1);
+ break;
+ }
+ }
+
+ if (!childFound) return;
+
+ this.childIndex_[component.id()] = null;
+ this.childNameIndex_[component.name()] = null;
+
+ var compEl = component.el();
+ if (compEl && compEl.parentNode === this.contentEl()) {
+ this.contentEl().removeChild(component.el());
+ }
+};
+
+/**
+ * Add and initialize default child components from options
+ *
+ * // when an instance of MyComponent is created, all children in options
+ * // will be added to the instance by their name strings and options
+ * MyComponent.prototype.options_.children = {
+ * myChildComponent: {
+ * myChildOption: true
+ * }
+ * }
+ *
+ * // Or when creating the component
+ * var myComp = new MyComponent(player, {
+ * children: {
+ * myChildComponent: {
+ * myChildOption: true
+ * }
+ * }
+ * });
+ *
+ * The children option can also be an Array of child names or
+ * child options objects (that also include a 'name' key).
+ *
+ * var myComp = new MyComponent(player, {
+ * children: [
+ * 'button',
+ * {
+ * name: 'button',
+ * someOtherOption: true
+ * }
+ * ]
+ * });
+ *
+ */
+vjs.Component.prototype.initChildren = function(){
+ var parent, parentOptions, children, child, name, opts, handleAdd;
+
+ parent = this;
+ parentOptions = parent.options();
+ children = parentOptions['children'];
+
+ if (children) {
+ handleAdd = function(name, opts){
+ // Allow options for children to be set at the parent options
+ // e.g. videojs(id, { controlBar: false });
+ // instead of videojs(id, { children: { controlBar: false });
+ if (parentOptions[name] !== undefined) {
+ opts = parentOptions[name];
+ }
+
+ // Allow for disabling default components
+ // e.g. vjs.options['children']['posterImage'] = false
+ if (opts === false) return;
+
+ // Create and add the child component.
+ // Add a direct reference to the child by name on the parent instance.
+ // If two of the same component are used, different names should be supplied
+ // for each
+ parent[name] = parent.addChild(name, opts);
+ };
+
+ // Allow for an array of children details to passed in the options
+ if (vjs.obj.isArray(children)) {
+ for (var i = 0; i < children.length; i++) {
+ child = children[i];
+
+ if (typeof child == 'string') {
+ // ['myComponent']
+ name = child;
+ opts = {};
+ } else {
+ // [{ name: 'myComponent', otherOption: true }]
+ name = child.name;
+ opts = child;
+ }
+
+ handleAdd(name, opts);
+ }
+ } else {
+ vjs.obj.each(children, handleAdd);
+ }
+ }
+};
+
+/**
+ * Allows sub components to stack CSS class names
+ *
+ * @return {String} The constructed class name
+ */
+vjs.Component.prototype.buildCSSClass = function(){
+ // Child classes can include a function that does:
+ // return 'CLASS NAME' + this._super();
+ return '';
+};
+
+/* Events
+============================================================================= */
+
+/**
+ * Add an event listener to this component's element
+ *
+ * var myFunc = function(){
+ * var myComponent = this;
+ * // Do something when the event is fired
+ * };
+ *
+ * myComponent.on('eventType', myFunc);
+ *
+ * The context of myFunc will be myComponent unless previously bound.
+ *
+ * Alternatively, you can add a listener to another element or component.
+ *
+ * myComponent.on(otherElement, 'eventName', myFunc);
+ * myComponent.on(otherComponent, 'eventName', myFunc);
+ *
+ * The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+ * and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+ * will be automatically cleaned up when either component is disposed.
+ * It will also bind myComponent as the context of myFunc.
+ *
+ * **NOTE**: When using this on elements in the page other than window
+ * and document (both permanent), if you remove the element from the DOM
+ * you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+ * references to it and allow the browser to garbage collect it.
+ *
+ * @param {String|vjs.Component} first The event type or other component
+ * @param {Function|String} second The event handler or event type
+ * @param {Function} third The event handler
+ * @return {vjs.Component} self
+ */
+vjs.Component.prototype.on = function(first, second, third){
+ var target, type, fn, removeOnDispose, cleanRemover, thisComponent;
+
+ if (typeof first === 'string' || vjs.obj.isArray(first)) {
+ vjs.on(this.el_, first, vjs.bind(this, second));
+
+ // Targeting another component or element
+ } else {
+ target = first;
+ type = second;
+ fn = vjs.bind(this, third);
+ thisComponent = this;
+
+ // When this component is disposed, remove the listener from the other component
+ removeOnDispose = function(){
+ thisComponent.off(target, type, fn);
+ };
+ // Use the same function ID so we can remove it later it using the ID
+ // of the original listener
+ removeOnDispose.guid = fn.guid;
+ this.on('dispose', removeOnDispose);
+
+ // If the other component is disposed first we need to clean the reference
+ // to the other component in this component's removeOnDispose listener
+ // Otherwise we create a memory leak.
+ cleanRemover = function(){
+ thisComponent.off('dispose', removeOnDispose);
+ };
+ // Add the same function ID so we can easily remove it later
+ cleanRemover.guid = fn.guid;
+
+ // Check if this is a DOM node
+ if (first.nodeName) {
+ // Add the listener to the other element
+ vjs.on(target, type, fn);
+ vjs.on(target, 'dispose', cleanRemover);
+
+ // Should be a component
+ // Not using `instanceof vjs.Component` because it makes mock players difficult
+ } else if (typeof first.on === 'function') {
+ // Add the listener to the other component
+ target.on(type, fn);
+ target.on('dispose', cleanRemover);
+ }
+ }
+
+ return this;
+};
+
+/**
+ * Remove an event listener from this component's element
+ *
+ * myComponent.off('eventType', myFunc);
+ *
+ * If myFunc is excluded, ALL listeners for the event type will be removed.
+ * If eventType is excluded, ALL listeners will be removed from the component.
+ *
+ * Alternatively you can use `off` to remove listeners that were added to other
+ * elements or components using `myComponent.on(otherComponent...`.
+ * In this case both the event type and listener function are REQUIRED.
+ *
+ * myComponent.off(otherElement, 'eventType', myFunc);
+ * myComponent.off(otherComponent, 'eventType', myFunc);
+ *
+ * @param {String=|vjs.Component} first The event type or other component
+ * @param {Function=|String} second The listener function or event type
+ * @param {Function=} third The listener for other component
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.off = function(first, second, third){
+ var target, otherComponent, type, fn, otherEl;
+
+ if (!first || typeof first === 'string' || vjs.obj.isArray(first)) {
+ vjs.off(this.el_, first, second);
+ } else {
+ target = first;
+ type = second;
+ // Ensure there's at least a guid, even if the function hasn't been used
+ fn = vjs.bind(this, third);
+
+ // Remove the dispose listener on this component,
+ // which was given the same guid as the event listener
+ this.off('dispose', fn);
+
+ if (first.nodeName) {
+ // Remove the listener
+ vjs.off(target, type, fn);
+ // Remove the listener for cleaning the dispose listener
+ vjs.off(target, 'dispose', fn);
+ } else {
+ target.off(type, fn);
+ target.off('dispose', fn);
+ }
+ }
+
+ return this;
+};
+
+/**
+ * Add an event listener to be triggered only once and then removed
+ *
+ * myComponent.one('eventName', myFunc);
+ *
+ * Alternatively you can add a listener to another element or component
+ * that will be triggered only once.
+ *
+ * myComponent.one(otherElement, 'eventName', myFunc);
+ * myComponent.one(otherComponent, 'eventName', myFunc);
+ *
+ * @param {String|vjs.Component} first The event type or other component
+ * @param {Function|String} second The listener function or event type
+ * @param {Function=} third The listener function for other component
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.one = function(first, second, third) {
+ var target, type, fn, thisComponent, newFunc;
+
+ if (typeof first === 'string' || vjs.obj.isArray(first)) {
+ vjs.one(this.el_, first, vjs.bind(this, second));
+ } else {
+ target = first;
+ type = second;
+ fn = vjs.bind(this, third);
+ thisComponent = this;
+
+ newFunc = function(){
+ thisComponent.off(target, type, newFunc);
+ fn.apply(this, arguments);
+ };
+ // Keep the same function ID so we can remove it later
+ newFunc.guid = fn.guid;
+
+ this.on(target, type, newFunc);
+ }
+
+ return this;
+};
+
+/**
+ * Trigger an event on an element
+ *
+ * myComponent.trigger('eventName');
+ * myComponent.trigger({'type':'eventName'});
+ *
+ * @param {Event|Object|String} event A string (the type) or an event object with a type attribute
+ * @return {vjs.Component} self
+ */
+vjs.Component.prototype.trigger = function(event){
+ vjs.trigger(this.el_, event);
+ return this;
+};
+
+/* Ready
+================================================================================ */
+/**
+ * Is the component loaded
+ * This can mean different things depending on the component.
+ *
+ * @private
+ * @type {Boolean}
+ */
+vjs.Component.prototype.isReady_;
+
+/**
+ * Trigger ready as soon as initialization is finished
+ *
+ * Allows for delaying ready. Override on a sub class prototype.
+ * If you set this.isReadyOnInitFinish_ it will affect all components.
+ * Specially used when waiting for the Flash player to asynchronously load.
+ *
+ * @type {Boolean}
+ * @private
+ */
+vjs.Component.prototype.isReadyOnInitFinish_ = true;
+
+/**
+ * List of ready listeners
+ *
+ * @type {Array}
+ * @private
+ */
+vjs.Component.prototype.readyQueue_;
+
+/**
+ * Bind a listener to the component's ready state
+ *
+ * Different from event listeners in that if the ready event has already happened
+ * it will trigger the function immediately.
+ *
+ * @param {Function} fn Ready listener
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.ready = function(fn){
+ if (fn) {
+ if (this.isReady_) {
+ fn.call(this);
+ } else {
+ if (this.readyQueue_ === undefined) {
+ this.readyQueue_ = [];
+ }
+ this.readyQueue_.push(fn);
+ }
+ }
+ return this;
+};
+
+/**
+ * Trigger the ready listeners
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.triggerReady = function(){
+ this.isReady_ = true;
+
+ var readyQueue = this.readyQueue_;
+
+ if (readyQueue && readyQueue.length > 0) {
+
+ for (var i = 0, j = readyQueue.length; i < j; i++) {
+ readyQueue[i].call(this);
+ }
+
+ // Reset Ready Queue
+ this.readyQueue_ = [];
+
+ // Allow for using event listeners also, in case you want to do something everytime a source is ready.
+ this.trigger('ready');
+ }
+};
+
+/* Display
+============================================================================= */
+
+/**
+ * Check if a component's element has a CSS class name
+ *
+ * @param {String} classToCheck Classname to check
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.hasClass = function(classToCheck){
+ return vjs.hasClass(this.el_, classToCheck);
+};
+
+/**
+ * Add a CSS class name to the component's element
+ *
+ * @param {String} classToAdd Classname to add
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.addClass = function(classToAdd){
+ vjs.addClass(this.el_, classToAdd);
+ return this;
+};
+
+/**
+ * Remove a CSS class name from the component's element
+ *
+ * @param {String} classToRemove Classname to remove
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.removeClass = function(classToRemove){
+ vjs.removeClass(this.el_, classToRemove);
+ return this;
+};
+
+/**
+ * Show the component element if hidden
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.show = function(){
+ this.removeClass('vjs-hidden');
+ return this;
+};
+
+/**
+ * Hide the component element if currently showing
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.hide = function(){
+ this.addClass('vjs-hidden');
+ return this;
+};
+
+/**
+ * Lock an item in its visible state
+ * To be used with fadeIn/fadeOut.
+ *
+ * @return {vjs.Component}
+ * @private
+ */
+vjs.Component.prototype.lockShowing = function(){
+ this.addClass('vjs-lock-showing');
+ return this;
+};
+
+/**
+ * Unlock an item to be hidden
+ * To be used with fadeIn/fadeOut.
+ *
+ * @return {vjs.Component}
+ * @private
+ */
+vjs.Component.prototype.unlockShowing = function(){
+ this.removeClass('vjs-lock-showing');
+ return this;
+};
+
+/**
+ * Disable component by making it unshowable
+ *
+ * Currently private because we're moving towards more css-based states.
+ * @private
+ */
+vjs.Component.prototype.disable = function(){
+ this.hide();
+ this.show = function(){};
+};
+
+/**
+ * Set or get the width of the component (CSS values)
+ *
+ * Setting the video tag dimension values only works with values in pixels.
+ * Percent values will not work.
+ * Some percents can be used, but width()/height() will return the number + %,
+ * not the actual computed width/height.
+ *
+ * @param {Number|String=} num Optional width number
+ * @param {Boolean} skipListeners Skip the 'resize' event trigger
+ * @return {vjs.Component} This component, when setting the width
+ * @return {Number|String} The width, when getting
+ */
+vjs.Component.prototype.width = function(num, skipListeners){
+ return this.dimension('width', num, skipListeners);
+};
+
+/**
+ * Get or set the height of the component (CSS values)
+ *
+ * Setting the video tag dimension values only works with values in pixels.
+ * Percent values will not work.
+ * Some percents can be used, but width()/height() will return the number + %,
+ * not the actual computed width/height.
+ *
+ * @param {Number|String=} num New component height
+ * @param {Boolean=} skipListeners Skip the resize event trigger
+ * @return {vjs.Component} This component, when setting the height
+ * @return {Number|String} The height, when getting
+ */
+vjs.Component.prototype.height = function(num, skipListeners){
+ return this.dimension('height', num, skipListeners);
+};
+
+/**
+ * Set both width and height at the same time
+ *
+ * @param {Number|String} width
+ * @param {Number|String} height
+ * @return {vjs.Component} The component
+ */
+vjs.Component.prototype.dimensions = function(width, height){
+ // Skip resize listeners on width for optimization
+ return this.width(width, true).height(height);
+};
+
+/**
+ * Get or set width or height
+ *
+ * This is the shared code for the width() and height() methods.
+ * All for an integer, integer + 'px' or integer + '%';
+ *
+ * Known issue: Hidden elements officially have a width of 0. We're defaulting
+ * to the style.width value and falling back to computedStyle which has the
+ * hidden element issue. Info, but probably not an efficient fix:
+ * http://www.foliotek.com/devblog/getting-the-width-of-a-hidden-element-with-jquery-using-width/
+ *
+ * @param {String} widthOrHeight 'width' or 'height'
+ * @param {Number|String=} num New dimension
+ * @param {Boolean=} skipListeners Skip resize event trigger
+ * @return {vjs.Component} The component if a dimension was set
+ * @return {Number|String} The dimension if nothing was set
+ * @private
+ */
+vjs.Component.prototype.dimension = function(widthOrHeight, num, skipListeners){
+ if (num !== undefined) {
+ if (num === null || vjs.isNaN(num)) {
+ num = 0;
+ }
+
+ // Check if using css width/height (% or px) and adjust
+ if ((''+num).indexOf('%') !== -1 || (''+num).indexOf('px') !== -1) {
+ this.el_.style[widthOrHeight] = num;
+ } else if (num === 'auto') {
+ this.el_.style[widthOrHeight] = '';
+ } else {
+ this.el_.style[widthOrHeight] = num+'px';
+ }
+
+ // skipListeners allows us to avoid triggering the resize event when setting both width and height
+ if (!skipListeners) { this.trigger('resize'); }
+
+ // Return component
+ return this;
+ }
+
+ // Not setting a value, so getting it
+ // Make sure element exists
+ if (!this.el_) return 0;
+
+ // Get dimension value from style
+ var val = this.el_.style[widthOrHeight];
+ var pxIndex = val.indexOf('px');
+ if (pxIndex !== -1) {
+ // Return the pixel value with no 'px'
+ return parseInt(val.slice(0,pxIndex), 10);
+
+ // No px so using % or no style was set, so falling back to offsetWidth/height
+ // If component has display:none, offset will return 0
+ // TODO: handle display:none and no dimension style using px
+ } else {
+
+ return parseInt(this.el_['offset'+vjs.capitalize(widthOrHeight)], 10);
+
+ // ComputedStyle version.
+ // Only difference is if the element is hidden it will return
+ // the percent value (e.g. '100%'')
+ // instead of zero like offsetWidth returns.
+ // var val = vjs.getComputedStyleValue(this.el_, widthOrHeight);
+ // var pxIndex = val.indexOf('px');
+
+ // if (pxIndex !== -1) {
+ // return val.slice(0, pxIndex);
+ // } else {
+ // return val;
+ // }
+ }
+};
+
+/**
+ * Fired when the width and/or height of the component changes
+ * @event resize
+ */
+vjs.Component.prototype.onResize;
+
+/**
+ * Emit 'tap' events when touch events are supported
+ *
+ * This is used to support toggling the controls through a tap on the video.
+ *
+ * We're requiring them to be enabled because otherwise every component would
+ * have this extra overhead unnecessarily, on mobile devices where extra
+ * overhead is especially bad.
+ * @private
+ */
+vjs.Component.prototype.emitTapEvents = function(){
+ var touchStart, firstTouch, touchTime, couldBeTap, noTap,
+ xdiff, ydiff, touchDistance, tapMovementThreshold, touchTimeThreshold;
+
+ // Track the start time so we can determine how long the touch lasted
+ touchStart = 0;
+ firstTouch = null;
+
+ // Maximum movement allowed during a touch event to still be considered a tap
+ // Other popular libs use anywhere from 2 (hammer.js) to 15, so 10 seems like a nice, round number.
+ tapMovementThreshold = 10;
+
+ // The maximum length a touch can be while still being considered a tap
+ touchTimeThreshold = 200;
+
+ this.on('touchstart', function(event) {
+ // If more than one finger, don't consider treating this as a click
+ if (event.touches.length === 1) {
+ firstTouch = vjs.obj.copy(event.touches[0]);
+ // Record start time so we can detect a tap vs. "touch and hold"
+ touchStart = new Date().getTime();
+ // Reset couldBeTap tracking
+ couldBeTap = true;
+ }
+ });
+
+ this.on('touchmove', function(event) {
+ // If more than one finger, don't consider treating this as a click
+ if (event.touches.length > 1) {
+ couldBeTap = false;
+ } else if (firstTouch) {
+ // Some devices will throw touchmoves for all but the slightest of taps.
+ // So, if we moved only a small distance, this could still be a tap
+ xdiff = event.touches[0].pageX - firstTouch.pageX;
+ ydiff = event.touches[0].pageY - firstTouch.pageY;
+ touchDistance = Math.sqrt(xdiff * xdiff + ydiff * ydiff);
+ if (touchDistance > tapMovementThreshold) {
+ couldBeTap = false;
+ }
+ }
+ });
+
+ noTap = function(){
+ couldBeTap = false;
+ };
+ // TODO: Listen to the original target. http://youtu.be/DujfpXOKUp8?t=13m8s
+ this.on('touchleave', noTap);
+ this.on('touchcancel', noTap);
+
+ // When the touch ends, measure how long it took and trigger the appropriate
+ // event
+ this.on('touchend', function(event) {
+ firstTouch = null;
+ // Proceed only if the touchmove/leave/cancel event didn't happen
+ if (couldBeTap === true) {
+ // Measure how long the touch lasted
+ touchTime = new Date().getTime() - touchStart;
+ // Make sure the touch was less than the threshold to be considered a tap
+ if (touchTime < touchTimeThreshold) {
+ event.preventDefault(); // Don't let browser turn this into a click
+ this.trigger('tap');
+ // It may be good to copy the touchend event object and change the
+ // type to tap, if the other event properties aren't exact after
+ // vjs.fixEvent runs (e.g. event.target)
+ }
+ }
+ });
+};
+
+/**
+ * Report user touch activity when touch events occur
+ *
+ * User activity is used to determine when controls should show/hide. It's
+ * relatively simple when it comes to mouse events, because any mouse event
+ * should show the controls. So we capture mouse events that bubble up to the
+ * player and report activity when that happens.
+ *
+ * With touch events it isn't as easy. We can't rely on touch events at the
+ * player level, because a tap (touchstart + touchend) on the video itself on
+ * mobile devices is meant to turn controls off (and on). User activity is
+ * checked asynchronously, so what could happen is a tap event on the video
+ * turns the controls off, then the touchend event bubbles up to the player,
+ * which if it reported user activity, would turn the controls right back on.
+ * (We also don't want to completely block touch events from bubbling up)
+ *
+ * Also a touchmove, touch+hold, and anything other than a tap is not supposed
+ * to turn the controls back on on a mobile device.
+ *
+ * Here we're setting the default component behavior to report user activity
+ * whenever touch events happen, and this can be turned off by components that
+ * want touch events to act differently.
+ */
+vjs.Component.prototype.enableTouchActivity = function() {
+ var report, touchHolding, touchEnd;
+
+ // Don't continue if the root player doesn't support reporting user activity
+ if (!this.player().reportUserActivity) {
+ return;
+ }
+
+ // listener for reporting that the user is active
+ report = vjs.bind(this.player(), this.player().reportUserActivity);
+
+ this.on('touchstart', function() {
+ report();
+ // For as long as the they are touching the device or have their mouse down,
+ // we consider them active even if they're not moving their finger or mouse.
+ // So we want to continue to update that they are active
+ this.clearInterval(touchHolding);
+ // report at the same interval as activityCheck
+ touchHolding = this.setInterval(report, 250);
+ });
+
+ touchEnd = function(event) {
+ report();
+ // stop the interval that maintains activity if the touch is holding
+ this.clearInterval(touchHolding);
+ };
+
+ this.on('touchmove', report);
+ this.on('touchend', touchEnd);
+ this.on('touchcancel', touchEnd);
+};
+
+/**
+ * Creates timeout and sets up disposal automatically.
+ * @param {Function} fn The function to run after the timeout.
+ * @param {Number} timeout Number of ms to delay before executing specified function.
+ * @return {Number} Returns the timeout ID
+ */
+vjs.Component.prototype.setTimeout = function(fn, timeout) {
+ fn = vjs.bind(this, fn);
+
+ // window.setTimeout would be preferable here, but due to some bizarre issue with Sinon and/or Phantomjs, we can't.
+ var timeoutId = setTimeout(fn, timeout);
+
+ var disposeFn = function() {
+ this.clearTimeout(timeoutId);
+ };
+
+ disposeFn.guid = 'vjs-timeout-'+ timeoutId;
+
+ this.on('dispose', disposeFn);
+
+ return timeoutId;
+};
+
+
+/**
+ * Clears a timeout and removes the associated dispose listener
+ * @param {Number} timeoutId The id of the timeout to clear
+ * @return {Number} Returns the timeout ID
+ */
+vjs.Component.prototype.clearTimeout = function(timeoutId) {
+ clearTimeout(timeoutId);
+
+ var disposeFn = function(){};
+ disposeFn.guid = 'vjs-timeout-'+ timeoutId;
+
+ this.off('dispose', disposeFn);
+
+ return timeoutId;
+};
+
+/**
+ * Creates an interval and sets up disposal automatically.
+ * @param {Function} fn The function to run every N seconds.
+ * @param {Number} interval Number of ms to delay before executing specified function.
+ * @return {Number} Returns the interval ID
+ */
+vjs.Component.prototype.setInterval = function(fn, interval) {
+ fn = vjs.bind(this, fn);
+
+ var intervalId = setInterval(fn, interval);
+
+ var disposeFn = function() {
+ this.clearInterval(intervalId);
+ };
+
+ disposeFn.guid = 'vjs-interval-'+ intervalId;
+
+ this.on('dispose', disposeFn);
+
+ return intervalId;
+};
+
+/**
+ * Clears an interval and removes the associated dispose listener
+ * @param {Number} intervalId The id of the interval to clear
+ * @return {Number} Returns the interval ID
+ */
+vjs.Component.prototype.clearInterval = function(intervalId) {
+ clearInterval(intervalId);
+
+ var disposeFn = function(){};
+ disposeFn.guid = 'vjs-interval-'+ intervalId;
+
+ this.off('dispose', disposeFn);
+
+ return intervalId;
+};
diff --git a/bower_components/video.js/src/js/control-bar/control-bar.js b/bower_components/video.js/src/js/control-bar/control-bar.js
new file mode 100644
index 0000000..6be1386
--- /dev/null
+++ b/bower_components/video.js/src/js/control-bar/control-bar.js
@@ -0,0 +1,36 @@
+/**
+ * Container of main controls
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ * @extends vjs.Component
+ */
+vjs.ControlBar = vjs.Component.extend();
+
+vjs.ControlBar.prototype.options_ = {
+ loadEvent: 'play',
+ children: {
+ 'playToggle': {},
+ 'currentTimeDisplay': {},
+ 'timeDivider': {},
+ 'durationDisplay': {},
+ 'remainingTimeDisplay': {},
+ 'liveDisplay': {},
+ 'progressControl': {},
+ 'fullscreenToggle': {},
+ 'volumeControl': {},
+ 'muteToggle': {},
+ // 'volumeMenuButton': {},
+ 'playbackRateMenuButton': {},
+ 'subtitlesButton': {},
+ 'captionsButton': {},
+ 'chaptersButton': {}
+ }
+};
+
+vjs.ControlBar.prototype.createEl = function(){
+ return vjs.createEl('div', {
+ className: 'vjs-control-bar'
+ });
+};
diff --git a/bower_components/video.js/src/js/control-bar/fullscreen-toggle.js b/bower_components/video.js/src/js/control-bar/fullscreen-toggle.js
new file mode 100644
index 0000000..8fd6d51
--- /dev/null
+++ b/bower_components/video.js/src/js/control-bar/fullscreen-toggle.js
@@ -0,0 +1,33 @@
+/**
+ * Toggle fullscreen video
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @extends vjs.Button
+ */
+vjs.FullscreenToggle = vjs.Button.extend({
+ /**
+ * @constructor
+ * @memberof vjs.FullscreenToggle
+ * @instance
+ */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+ }
+});
+
+vjs.FullscreenToggle.prototype.buttonText = 'Fullscreen';
+
+vjs.FullscreenToggle.prototype.buildCSSClass = function(){
+ return 'vjs-fullscreen-control ' + vjs.Button.prototype.buildCSSClass.call(this);
+};
+
+vjs.FullscreenToggle.prototype.onClick = function(){
+ if (!this.player_.isFullscreen()) {
+ this.player_.requestFullscreen();
+ this.controlText_.innerHTML = this.localize('Non-Fullscreen');
+ } else {
+ this.player_.exitFullscreen();
+ this.controlText_.innerHTML = this.localize('Fullscreen');
+ }
+};
diff --git a/bower_components/video.js/src/js/control-bar/live-display.js b/bower_components/video.js/src/js/control-bar/live-display.js
new file mode 100644
index 0000000..0499e9f
--- /dev/null
+++ b/bower_components/video.js/src/js/control-bar/live-display.js
@@ -0,0 +1,28 @@
+/**
+ * Displays the live indicator
+ * TODO - Future make it click to snap to live
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.LiveDisplay = vjs.Component.extend({
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.LiveDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-live-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-live-display',
+ innerHTML: '
' + this.localize('Stream Type') + ' ' + this.localize('LIVE'),
+ 'aria-live': 'off'
+ });
+
+ el.appendChild(this.contentEl_);
+
+ return el;
+};
diff --git a/bower_components/video.js/src/js/control-bar/mute-toggle.js b/bower_components/video.js/src/js/control-bar/mute-toggle.js
new file mode 100644
index 0000000..411b3af
--- /dev/null
+++ b/bower_components/video.js/src/js/control-bar/mute-toggle.js
@@ -0,0 +1,71 @@
+/**
+ * A button component for muting the audio
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.MuteToggle = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.on(player, 'volumechange', this.update);
+
+ // hide mute toggle if the current tech doesn't support volume control
+ if (player.tech && player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ }
+
+ this.on(player, 'loadstart', function(){
+ if (player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ } else {
+ this.removeClass('vjs-hidden');
+ }
+ });
+ }
+});
+
+vjs.MuteToggle.prototype.createEl = function(){
+ return vjs.Button.prototype.createEl.call(this, 'div', {
+ className: 'vjs-mute-control vjs-control',
+ innerHTML: '
' + this.localize('Mute') + '
'
+ });
+};
+
+vjs.MuteToggle.prototype.onClick = function(){
+ this.player_.muted( this.player_.muted() ? false : true );
+};
+
+vjs.MuteToggle.prototype.update = function(){
+ var vol = this.player_.volume(),
+ level = 3;
+
+ if (vol === 0 || this.player_.muted()) {
+ level = 0;
+ } else if (vol < 0.33) {
+ level = 1;
+ } else if (vol < 0.67) {
+ level = 2;
+ }
+
+ // Don't rewrite the button text if the actual text doesn't change.
+ // This causes unnecessary and confusing information for screen reader users.
+ // This check is needed because this function gets called every time the volume level is changed.
+ if(this.player_.muted()){
+ if(this.el_.children[0].children[0].innerHTML!=this.localize('Unmute')){
+ this.el_.children[0].children[0].innerHTML = this.localize('Unmute'); // change the button text to "Unmute"
+ }
+ } else {
+ if(this.el_.children[0].children[0].innerHTML!=this.localize('Mute')){
+ this.el_.children[0].children[0].innerHTML = this.localize('Mute'); // change the button text to "Mute"
+ }
+ }
+
+ /* TODO improve muted icon classes */
+ for (var i = 0; i < 4; i++) {
+ vjs.removeClass(this.el_, 'vjs-vol-'+i);
+ }
+ vjs.addClass(this.el_, 'vjs-vol-'+level);
+};
diff --git a/bower_components/video.js/src/js/control-bar/play-toggle.js b/bower_components/video.js/src/js/control-bar/play-toggle.js
new file mode 100644
index 0000000..dc045e4
--- /dev/null
+++ b/bower_components/video.js/src/js/control-bar/play-toggle.js
@@ -0,0 +1,45 @@
+/**
+ * Button to toggle between play and pause
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.PlayToggle = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.on(player, 'play', this.onPlay);
+ this.on(player, 'pause', this.onPause);
+ }
+});
+
+vjs.PlayToggle.prototype.buttonText = 'Play';
+
+vjs.PlayToggle.prototype.buildCSSClass = function(){
+ return 'vjs-play-control ' + vjs.Button.prototype.buildCSSClass.call(this);
+};
+
+// OnClick - Toggle between play and pause
+vjs.PlayToggle.prototype.onClick = function(){
+ if (this.player_.paused()) {
+ this.player_.play();
+ } else {
+ this.player_.pause();
+ }
+};
+
+ // OnPlay - Add the vjs-playing class to the element so it can change appearance
+vjs.PlayToggle.prototype.onPlay = function(){
+ this.removeClass('vjs-paused');
+ this.addClass('vjs-playing');
+ this.el_.children[0].children[0].innerHTML = this.localize('Pause'); // change the button text to "Pause"
+};
+
+ // OnPause - Add the vjs-paused class to the element so it can change appearance
+vjs.PlayToggle.prototype.onPause = function(){
+ this.removeClass('vjs-playing');
+ this.addClass('vjs-paused');
+ this.el_.children[0].children[0].innerHTML = this.localize('Play'); // change the button text to "Play"
+};
diff --git a/bower_components/video.js/src/js/control-bar/playback-rate-menu-button.js b/bower_components/video.js/src/js/control-bar/playback-rate-menu-button.js
new file mode 100644
index 0000000..87ca7ef
--- /dev/null
+++ b/bower_components/video.js/src/js/control-bar/playback-rate-menu-button.js
@@ -0,0 +1,129 @@
+/**
+ * The component for controlling the playback rate
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.PlaybackRateMenuButton = vjs.MenuButton.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.MenuButton.call(this, player, options);
+
+ this.updateVisibility();
+ this.updateLabel();
+
+ this.on(player, 'loadstart', this.updateVisibility);
+ this.on(player, 'ratechange', this.updateLabel);
+ }
+});
+
+vjs.PlaybackRateMenuButton.prototype.buttonText = 'Playback Rate';
+vjs.PlaybackRateMenuButton.prototype.className = 'vjs-playback-rate';
+
+vjs.PlaybackRateMenuButton.prototype.createEl = function(){
+ var el = vjs.MenuButton.prototype.createEl.call(this);
+
+ this.labelEl_ = vjs.createEl('div', {
+ className: 'vjs-playback-rate-value',
+ innerHTML: 1.0
+ });
+
+ el.appendChild(this.labelEl_);
+
+ return el;
+};
+
+// Menu creation
+vjs.PlaybackRateMenuButton.prototype.createMenu = function(){
+ var menu = new vjs.Menu(this.player());
+ var rates = this.player().options()['playbackRates'];
+
+ if (rates) {
+ for (var i = rates.length - 1; i >= 0; i--) {
+ menu.addChild(
+ new vjs.PlaybackRateMenuItem(this.player(), { 'rate': rates[i] + 'x'})
+ );
+ }
+ }
+
+ return menu;
+};
+
+vjs.PlaybackRateMenuButton.prototype.updateARIAAttributes = function(){
+ // Current playback rate
+ this.el().setAttribute('aria-valuenow', this.player().playbackRate());
+};
+
+vjs.PlaybackRateMenuButton.prototype.onClick = function(){
+ // select next rate option
+ var currentRate = this.player().playbackRate();
+ var rates = this.player().options()['playbackRates'];
+ // this will select first one if the last one currently selected
+ var newRate = rates[0];
+ for (var i = 0; i
currentRate) {
+ newRate = rates[i];
+ break;
+ }
+ }
+ this.player().playbackRate(newRate);
+};
+
+vjs.PlaybackRateMenuButton.prototype.playbackRateSupported = function(){
+ return this.player().tech
+ && this.player().tech['featuresPlaybackRate']
+ && this.player().options()['playbackRates']
+ && this.player().options()['playbackRates'].length > 0
+ ;
+};
+
+/**
+ * Hide playback rate controls when they're no playback rate options to select
+ */
+vjs.PlaybackRateMenuButton.prototype.updateVisibility = function(){
+ if (this.playbackRateSupported()) {
+ this.removeClass('vjs-hidden');
+ } else {
+ this.addClass('vjs-hidden');
+ }
+};
+
+/**
+ * Update button label when rate changed
+ */
+vjs.PlaybackRateMenuButton.prototype.updateLabel = function(){
+ if (this.playbackRateSupported()) {
+ this.labelEl_.innerHTML = this.player().playbackRate() + 'x';
+ }
+};
+
+/**
+ * The specific menu item type for selecting a playback rate
+ *
+ * @constructor
+ */
+vjs.PlaybackRateMenuItem = vjs.MenuItem.extend({
+ contentElType: 'button',
+ /** @constructor */
+ init: function(player, options){
+ var label = this.label = options['rate'];
+ var rate = this.rate = parseFloat(label, 10);
+
+ // Modify options for parent MenuItem class's init.
+ options['label'] = label;
+ options['selected'] = rate === 1;
+ vjs.MenuItem.call(this, player, options);
+
+ this.on(player, 'ratechange', this.update);
+ }
+});
+
+vjs.PlaybackRateMenuItem.prototype.onClick = function(){
+ vjs.MenuItem.prototype.onClick.call(this);
+ this.player().playbackRate(this.rate);
+};
+
+vjs.PlaybackRateMenuItem.prototype.update = function(){
+ this.selected(this.player().playbackRate() == this.rate);
+};
diff --git a/bower_components/video.js/src/js/control-bar/progress-control.js b/bower_components/video.js/src/js/control-bar/progress-control.js
new file mode 100644
index 0000000..8494fda
--- /dev/null
+++ b/bower_components/video.js/src/js/control-bar/progress-control.js
@@ -0,0 +1,225 @@
+/**
+ * The Progress Control component contains the seek bar, load progress,
+ * and play progress
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.ProgressControl = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.ProgressControl.prototype.options_ = {
+ children: {
+ 'seekBar': {}
+ }
+};
+
+vjs.ProgressControl.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-progress-control vjs-control'
+ });
+};
+
+/**
+ * Seek Bar and holder for the progress bars
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.SeekBar = vjs.Slider.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Slider.call(this, player, options);
+ this.on(player, 'timeupdate', this.updateARIAAttributes);
+ player.ready(vjs.bind(this, this.updateARIAAttributes));
+ }
+});
+
+vjs.SeekBar.prototype.options_ = {
+ children: {
+ 'loadProgressBar': {},
+ 'playProgressBar': {},
+ 'seekHandle': {}
+ },
+ 'barName': 'playProgressBar',
+ 'handleName': 'seekHandle'
+};
+
+vjs.SeekBar.prototype.playerEvent = 'timeupdate';
+
+vjs.SeekBar.prototype.createEl = function(){
+ return vjs.Slider.prototype.createEl.call(this, 'div', {
+ className: 'vjs-progress-holder',
+ 'aria-label': 'video progress bar'
+ });
+};
+
+vjs.SeekBar.prototype.updateARIAAttributes = function(){
+ // Allows for smooth scrubbing, when player can't keep up.
+ var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ this.el_.setAttribute('aria-valuenow',vjs.round(this.getPercent()*100, 2)); // machine readable value of progress bar (percentage complete)
+ this.el_.setAttribute('aria-valuetext',vjs.formatTime(time, this.player_.duration())); // human readable value of progress bar (time complete)
+};
+
+vjs.SeekBar.prototype.getPercent = function(){
+ return this.player_.currentTime() / this.player_.duration();
+};
+
+vjs.SeekBar.prototype.onMouseDown = function(event){
+ vjs.Slider.prototype.onMouseDown.call(this, event);
+
+ this.player_.scrubbing = true;
+ this.player_.addClass('vjs-scrubbing');
+
+ this.videoWasPlaying = !this.player_.paused();
+ this.player_.pause();
+};
+
+vjs.SeekBar.prototype.onMouseMove = function(event){
+ var newTime = this.calculateDistance(event) * this.player_.duration();
+
+ // Don't let video end while scrubbing.
+ if (newTime == this.player_.duration()) { newTime = newTime - 0.1; }
+
+ // Set new time (tell player to seek to new time)
+ this.player_.currentTime(newTime);
+};
+
+vjs.SeekBar.prototype.onMouseUp = function(event){
+ vjs.Slider.prototype.onMouseUp.call(this, event);
+
+ this.player_.scrubbing = false;
+ this.player_.removeClass('vjs-scrubbing');
+ if (this.videoWasPlaying) {
+ this.player_.play();
+ }
+};
+
+vjs.SeekBar.prototype.stepForward = function(){
+ this.player_.currentTime(this.player_.currentTime() + 5); // more quickly fast forward for keyboard-only users
+};
+
+vjs.SeekBar.prototype.stepBack = function(){
+ this.player_.currentTime(this.player_.currentTime() - 5); // more quickly rewind for keyboard-only users
+};
+
+/**
+ * Shows load progress
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.LoadProgressBar = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ this.on(player, 'progress', this.update);
+ }
+});
+
+vjs.LoadProgressBar.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-load-progress',
+ innerHTML: '' + this.localize('Loaded') + ' : 0% '
+ });
+};
+
+vjs.LoadProgressBar.prototype.update = function(){
+ var i, start, end, part,
+ buffered = this.player_.buffered(),
+ duration = this.player_.duration(),
+ bufferedEnd = this.player_.bufferedEnd(),
+ children = this.el_.children,
+ // get the percent width of a time compared to the total end
+ percentify = function (time, end){
+ var percent = (time / end) || 0; // no NaN
+ return (percent * 100) + '%';
+ };
+
+ // update the width of the progress bar
+ this.el_.style.width = percentify(bufferedEnd, duration);
+
+ // add child elements to represent the individual buffered time ranges
+ for (i = 0; i < buffered.length; i++) {
+ start = buffered.start(i),
+ end = buffered.end(i),
+ part = children[i];
+
+ if (!part) {
+ part = this.el_.appendChild(vjs.createEl());
+ }
+
+ // set the percent based on the width of the progress bar (bufferedEnd)
+ part.style.left = percentify(start, bufferedEnd);
+ part.style.width = percentify(end - start, bufferedEnd);
+ }
+
+ // remove unused buffered range elements
+ for (i = children.length; i > buffered.length; i--) {
+ this.el_.removeChild(children[i-1]);
+ }
+};
+
+/**
+ * Shows play progress
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.PlayProgressBar = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.PlayProgressBar.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-play-progress',
+ innerHTML: '' + this.localize('Progress') + ' : 0% '
+ });
+};
+
+/**
+ * The Seek Handle shows the current position of the playhead during playback,
+ * and can be dragged to adjust the playhead.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.SeekHandle = vjs.SliderHandle.extend({
+ init: function(player, options) {
+ vjs.SliderHandle.call(this, player, options);
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+/**
+ * The default value for the handle content, which may be read by screen readers
+ *
+ * @type {String}
+ * @private
+ */
+vjs.SeekHandle.prototype.defaultValue = '00:00';
+
+/** @inheritDoc */
+vjs.SeekHandle.prototype.createEl = function() {
+ return vjs.SliderHandle.prototype.createEl.call(this, 'div', {
+ className: 'vjs-seek-handle',
+ 'aria-live': 'off'
+ });
+};
+
+vjs.SeekHandle.prototype.updateContent = function() {
+ var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ this.el_.innerHTML = '' + vjs.formatTime(time, this.player_.duration()) + ' ';
+};
diff --git a/bower_components/video.js/src/js/control-bar/time-display.js b/bower_components/video.js/src/js/control-bar/time-display.js
new file mode 100644
index 0000000..053211d
--- /dev/null
+++ b/bower_components/video.js/src/js/control-bar/time-display.js
@@ -0,0 +1,140 @@
+/**
+ * Displays the current time
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.CurrentTimeDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+vjs.CurrentTimeDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-current-time vjs-time-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-current-time-display',
+ innerHTML: 'Current Time ' + '0:00', // label the current time for screen reader users
+ 'aria-live': 'off' // tell screen readers not to automatically read the time as it changes
+ });
+
+ el.appendChild(this.contentEl_);
+ return el;
+};
+
+vjs.CurrentTimeDisplay.prototype.updateContent = function(){
+ // Allows for smooth scrubbing, when player can't keep up.
+ var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ this.contentEl_.innerHTML = '' + this.localize('Current Time') + ' ' + vjs.formatTime(time, this.player_.duration());
+};
+
+/**
+ * Displays the duration
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.DurationDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ // this might need to be changed to 'durationchange' instead of 'timeupdate' eventually,
+ // however the durationchange event fires before this.player_.duration() is set,
+ // so the value cannot be written out using this method.
+ // Once the order of durationchange and this.player_.duration() being set is figured out,
+ // this can be updated.
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+vjs.DurationDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-duration vjs-time-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-duration-display',
+ innerHTML: '' + this.localize('Duration Time') + ' ' + '0:00', // label the duration time for screen reader users
+ 'aria-live': 'off' // tell screen readers not to automatically read the time as it changes
+ });
+
+ el.appendChild(this.contentEl_);
+ return el;
+};
+
+vjs.DurationDisplay.prototype.updateContent = function(){
+ var duration = this.player_.duration();
+ if (duration) {
+ this.contentEl_.innerHTML = '' + this.localize('Duration Time') + ' ' + vjs.formatTime(duration); // label the duration time for screen reader users
+ }
+};
+
+/**
+ * The separator between the current time and duration
+ *
+ * Can be hidden if it's not needed in the design.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.TimeDivider = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.TimeDivider.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-time-divider',
+ innerHTML: '/
'
+ });
+};
+
+/**
+ * Displays the time left in the video
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.RemainingTimeDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+vjs.RemainingTimeDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-remaining-time vjs-time-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-remaining-time-display',
+ innerHTML: '' + this.localize('Remaining Time') + ' ' + '-0:00', // label the remaining time for screen reader users
+ 'aria-live': 'off' // tell screen readers not to automatically read the time as it changes
+ });
+
+ el.appendChild(this.contentEl_);
+ return el;
+};
+
+vjs.RemainingTimeDisplay.prototype.updateContent = function(){
+ if (this.player_.duration()) {
+ this.contentEl_.innerHTML = '' + this.localize('Remaining Time') + ' ' + '-'+ vjs.formatTime(this.player_.remainingTime());
+ }
+
+ // Allows for smooth scrubbing, when player can't keep up.
+ // var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ // this.contentEl_.innerHTML = vjs.formatTime(time, this.player_.duration());
+};
diff --git a/bower_components/video.js/src/js/control-bar/volume-control.js b/bower_components/video.js/src/js/control-bar/volume-control.js
new file mode 100644
index 0000000..9f28311
--- /dev/null
+++ b/bower_components/video.js/src/js/control-bar/volume-control.js
@@ -0,0 +1,140 @@
+/**
+ * The component for controlling the volume level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.VolumeControl = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ // hide volume controls when they're not supported by the current tech
+ if (player.tech && player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ }
+ this.on(player, 'loadstart', function(){
+ if (player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ } else {
+ this.removeClass('vjs-hidden');
+ }
+ });
+ }
+});
+
+vjs.VolumeControl.prototype.options_ = {
+ children: {
+ 'volumeBar': {}
+ }
+};
+
+vjs.VolumeControl.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-control vjs-control'
+ });
+};
+
+/**
+ * The bar that contains the volume level and can be clicked on to adjust the level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.VolumeBar = vjs.Slider.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Slider.call(this, player, options);
+ this.on(player, 'volumechange', this.updateARIAAttributes);
+ player.ready(vjs.bind(this, this.updateARIAAttributes));
+ }
+});
+
+vjs.VolumeBar.prototype.updateARIAAttributes = function(){
+ // Current value of volume bar as a percentage
+ this.el_.setAttribute('aria-valuenow',vjs.round(this.player_.volume()*100, 2));
+ this.el_.setAttribute('aria-valuetext',vjs.round(this.player_.volume()*100, 2)+'%');
+};
+
+vjs.VolumeBar.prototype.options_ = {
+ children: {
+ 'volumeLevel': {},
+ 'volumeHandle': {}
+ },
+ 'barName': 'volumeLevel',
+ 'handleName': 'volumeHandle'
+};
+
+vjs.VolumeBar.prototype.playerEvent = 'volumechange';
+
+vjs.VolumeBar.prototype.createEl = function(){
+ return vjs.Slider.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-bar',
+ 'aria-label': 'volume level'
+ });
+};
+
+vjs.VolumeBar.prototype.onMouseMove = function(event) {
+ if (this.player_.muted()) {
+ this.player_.muted(false);
+ }
+
+ this.player_.volume(this.calculateDistance(event));
+};
+
+vjs.VolumeBar.prototype.getPercent = function(){
+ if (this.player_.muted()) {
+ return 0;
+ } else {
+ return this.player_.volume();
+ }
+};
+
+vjs.VolumeBar.prototype.stepForward = function(){
+ this.player_.volume(this.player_.volume() + 0.1);
+};
+
+vjs.VolumeBar.prototype.stepBack = function(){
+ this.player_.volume(this.player_.volume() - 0.1);
+};
+
+/**
+ * Shows volume level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.VolumeLevel = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.VolumeLevel.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-level',
+ innerHTML: ' '
+ });
+};
+
+/**
+ * The volume handle can be dragged to adjust the volume level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+ vjs.VolumeHandle = vjs.SliderHandle.extend();
+
+ vjs.VolumeHandle.prototype.defaultValue = '00:00';
+
+ /** @inheritDoc */
+ vjs.VolumeHandle.prototype.createEl = function(){
+ return vjs.SliderHandle.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-handle'
+ });
+ };
diff --git a/bower_components/video.js/src/js/control-bar/volume-menu-button.js b/bower_components/video.js/src/js/control-bar/volume-menu-button.js
new file mode 100644
index 0000000..2366ab5
--- /dev/null
+++ b/bower_components/video.js/src/js/control-bar/volume-menu-button.js
@@ -0,0 +1,54 @@
+/**
+ * Menu button with a popup for showing the volume slider.
+ * @constructor
+ */
+vjs.VolumeMenuButton = vjs.MenuButton.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.MenuButton.call(this, player, options);
+
+ // Same listeners as MuteToggle
+ this.on(player, 'volumechange', this.volumeUpdate);
+
+ // hide mute toggle if the current tech doesn't support volume control
+ if (player.tech && player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ }
+ this.on(player, 'loadstart', function(){
+ if (player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ } else {
+ this.removeClass('vjs-hidden');
+ }
+ });
+ this.addClass('vjs-menu-button');
+ }
+});
+
+vjs.VolumeMenuButton.prototype.createMenu = function(){
+ var menu = new vjs.Menu(this.player_, {
+ contentElType: 'div'
+ });
+ var vc = new vjs.VolumeBar(this.player_, this.options_['volumeBar']);
+ vc.on('focus', function() {
+ menu.lockShowing();
+ });
+ vc.on('blur', function() {
+ menu.unlockShowing();
+ });
+ menu.addChild(vc);
+ return menu;
+};
+
+vjs.VolumeMenuButton.prototype.onClick = function(){
+ vjs.MuteToggle.prototype.onClick.call(this);
+ vjs.MenuButton.prototype.onClick.call(this);
+};
+
+vjs.VolumeMenuButton.prototype.createEl = function(){
+ return vjs.Button.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-menu-button vjs-menu-button vjs-control',
+ innerHTML: '' + this.localize('Mute') + '
'
+ });
+};
+vjs.VolumeMenuButton.prototype.volumeUpdate = vjs.MuteToggle.prototype.update;
diff --git a/bower_components/video.js/src/js/core-object.js b/bower_components/video.js/src/js/core-object.js
new file mode 100644
index 0000000..600b302
--- /dev/null
+++ b/bower_components/video.js/src/js/core-object.js
@@ -0,0 +1,129 @@
+/**
+ * Core Object/Class for objects that use inheritance + constructors
+ *
+ * To create a class that can be subclassed itself, extend the CoreObject class.
+ *
+ * var Animal = CoreObject.extend();
+ * var Horse = Animal.extend();
+ *
+ * The constructor can be defined through the init property of an object argument.
+ *
+ * var Animal = CoreObject.extend({
+ * init: function(name, sound){
+ * this.name = name;
+ * }
+ * });
+ *
+ * Other methods and properties can be added the same way, or directly to the
+ * prototype.
+ *
+ * var Animal = CoreObject.extend({
+ * init: function(name){
+ * this.name = name;
+ * },
+ * getName: function(){
+ * return this.name;
+ * },
+ * sound: '...'
+ * });
+ *
+ * Animal.prototype.makeSound = function(){
+ * alert(this.sound);
+ * };
+ *
+ * To create an instance of a class, use the create method.
+ *
+ * var fluffy = Animal.create('Fluffy');
+ * fluffy.getName(); // -> Fluffy
+ *
+ * Methods and properties can be overridden in subclasses.
+ *
+ * var Horse = Animal.extend({
+ * sound: 'Neighhhhh!'
+ * });
+ *
+ * var horsey = Horse.create('Horsey');
+ * horsey.getName(); // -> Horsey
+ * horsey.makeSound(); // -> Alert: Neighhhhh!
+ *
+ * @class
+ * @constructor
+ */
+vjs.CoreObject = vjs['CoreObject'] = function(){};
+// Manually exporting vjs['CoreObject'] here for Closure Compiler
+// because of the use of the extend/create class methods
+// If we didn't do this, those functions would get flattened to something like
+// `a = ...` and `this.prototype` would refer to the global object instead of
+// CoreObject
+
+/**
+ * Create a new object that inherits from this Object
+ *
+ * var Animal = CoreObject.extend();
+ * var Horse = Animal.extend();
+ *
+ * @param {Object} props Functions and properties to be applied to the
+ * new object's prototype
+ * @return {vjs.CoreObject} An object that inherits from CoreObject
+ * @this {*}
+ */
+vjs.CoreObject.extend = function(props){
+ var init, subObj;
+
+ props = props || {};
+ // Set up the constructor using the supplied init method
+ // or using the init of the parent object
+ // Make sure to check the unobfuscated version for external libs
+ init = props['init'] || props.init || this.prototype['init'] || this.prototype.init || function(){};
+ // In Resig's simple class inheritance (previously used) the constructor
+ // is a function that calls `this.init.apply(arguments)`
+ // However that would prevent us from using `ParentObject.call(this);`
+ // in a Child constructor because the `this` in `this.init`
+ // would still refer to the Child and cause an infinite loop.
+ // We would instead have to do
+ // `ParentObject.prototype.init.apply(this, arguments);`
+ // Bleh. We're not creating a _super() function, so it's good to keep
+ // the parent constructor reference simple.
+ subObj = function(){
+ init.apply(this, arguments);
+ };
+
+ // Inherit from this object's prototype
+ subObj.prototype = vjs.obj.create(this.prototype);
+ // Reset the constructor property for subObj otherwise
+ // instances of subObj would have the constructor of the parent Object
+ subObj.prototype.constructor = subObj;
+
+ // Make the class extendable
+ subObj.extend = vjs.CoreObject.extend;
+ // Make a function for creating instances
+ subObj.create = vjs.CoreObject.create;
+
+ // Extend subObj's prototype with functions and other properties from props
+ for (var name in props) {
+ if (props.hasOwnProperty(name)) {
+ subObj.prototype[name] = props[name];
+ }
+ }
+
+ return subObj;
+};
+
+/**
+ * Create a new instance of this Object class
+ *
+ * var myAnimal = Animal.create();
+ *
+ * @return {vjs.CoreObject} An instance of a CoreObject subclass
+ * @this {*}
+ */
+vjs.CoreObject.create = function(){
+ // Create a new object that inherits from this object's prototype
+ var inst = vjs.obj.create(this.prototype);
+
+ // Apply this constructor function to the new object
+ this.apply(inst, arguments);
+
+ // Return the new object
+ return inst;
+};
diff --git a/bower_components/video.js/src/js/core.js b/bower_components/video.js/src/js/core.js
new file mode 100644
index 0000000..ea7c46e
--- /dev/null
+++ b/bower_components/video.js/src/js/core.js
@@ -0,0 +1,179 @@
+/**
+ * @fileoverview Main function src.
+ */
+
+// HTML5 Shiv. Must be in to support older browsers.
+document.createElement('video');
+document.createElement('audio');
+document.createElement('track');
+
+/**
+ * Doubles as the main function for users to create a player instance and also
+ * the main library object.
+ *
+ * **ALIASES** videojs, _V_ (deprecated)
+ *
+ * The `vjs` function can be used to initialize or retrieve a player.
+ *
+ * var myPlayer = vjs('my_video_id');
+ *
+ * @param {String|Element} id Video element or video element ID
+ * @param {Object=} options Optional options object for config/settings
+ * @param {Function=} ready Optional ready callback
+ * @return {vjs.Player} A player instance
+ * @namespace
+ */
+var vjs = function(id, options, ready){
+ var tag; // Element of ID
+
+ // Allow for element or ID to be passed in
+ // String ID
+ if (typeof id === 'string') {
+
+ // Adjust for jQuery ID syntax
+ if (id.indexOf('#') === 0) {
+ id = id.slice(1);
+ }
+
+ // If a player instance has already been created for this ID return it.
+ if (vjs.players[id]) {
+
+ // If options or ready funtion are passed, warn
+ if (options) {
+ vjs.log.warn ('Player "' + id + '" is already initialised. Options will not be applied.');
+ }
+
+ if (ready) {
+ vjs.players[id].ready(ready);
+ }
+
+ return vjs.players[id];
+
+ // Otherwise get element for ID
+ } else {
+ tag = vjs.el(id);
+ }
+
+ // ID is a media element
+ } else {
+ tag = id;
+ }
+
+ // Check for a useable element
+ if (!tag || !tag.nodeName) { // re: nodeName, could be a box div also
+ throw new TypeError('The element or ID supplied is not valid. (videojs)'); // Returns
+ }
+
+ // Element may have a player attr referring to an already created player instance.
+ // If not, set up a new player and return the instance.
+ return tag['player'] || new vjs.Player(tag, options, ready);
+};
+
+// Extended name, also available externally, window.videojs
+var videojs = window['videojs'] = vjs;
+
+// CDN Version. Used to target right flash swf.
+vjs.CDN_VERSION = 'GENERATED_CDN_VSN';
+vjs.ACCESS_PROTOCOL = ('https:' == document.location.protocol ? 'https://' : 'http://');
+
+/**
+* Full player version
+* @type {string}
+*/
+vjs['VERSION'] = 'GENERATED_FULL_VSN';
+
+/**
+ * Global Player instance options, surfaced from vjs.Player.prototype.options_
+ * vjs.options = vjs.Player.prototype.options_
+ * All options should use string keys so they avoid
+ * renaming by closure compiler
+ * @type {Object}
+ */
+vjs.options = {
+ // Default order of fallback technology
+ 'techOrder': ['html5','flash'],
+ // techOrder: ['flash','html5'],
+
+ 'html5': {},
+ 'flash': {},
+
+ // Default of web browser is 300x150. Should rely on source width/height.
+ 'width': 300,
+ 'height': 150,
+ // defaultVolume: 0.85,
+ 'defaultVolume': 0.00, // The freakin seaguls are driving me crazy!
+
+ // default playback rates
+ 'playbackRates': [],
+ // Add playback rate selection by adding rates
+ // 'playbackRates': [0.5, 1, 1.5, 2],
+
+ // default inactivity timeout
+ 'inactivityTimeout': 2000,
+
+ // Included control sets
+ 'children': {
+ 'mediaLoader': {},
+ 'posterImage': {},
+ 'loadingSpinner': {},
+ 'textTrackDisplay': {},
+ 'bigPlayButton': {},
+ 'controlBar': {},
+ 'errorDisplay': {},
+ 'textTrackSettings': {}
+ },
+
+ 'language': document.getElementsByTagName('html')[0].getAttribute('lang') || navigator.languages && navigator.languages[0] || navigator.userLanguage || navigator.language || 'en',
+
+ // locales and their language translations
+ 'languages': {},
+
+ // Default message to show when a video cannot be played.
+ 'notSupportedMessage': 'No compatible source was found for this video.'
+};
+
+// Set CDN Version of swf
+// The added (+) blocks the replace from changing this GENERATED_CDN_VSN string
+if (vjs.CDN_VERSION !== 'GENERATED'+'_CDN_VSN') {
+ videojs.options['flash']['swf'] = vjs.ACCESS_PROTOCOL + 'vjs.zencdn.net/'+vjs.CDN_VERSION+'/video-js.swf';
+}
+
+/**
+ * Utility function for adding languages to the default options. Useful for
+ * amending multiple language support at runtime.
+ *
+ * Example: vjs.addLanguage('es', {'Hello':'Hola'});
+ *
+ * @param {String} code The language code or dictionary property
+ * @param {Object} data The data values to be translated
+ * @return {Object} The resulting global languages dictionary object
+ */
+vjs.addLanguage = function(code, data){
+ if(vjs.options['languages'][code] !== undefined) {
+ vjs.options['languages'][code] = vjs.util.mergeOptions(vjs.options['languages'][code], data);
+ } else {
+ vjs.options['languages'][code] = data;
+ }
+ return vjs.options['languages'];
+};
+
+/**
+ * Global player list
+ * @type {Object}
+ */
+vjs.players = {};
+
+/*!
+ * Custom Universal Module Definition (UMD)
+ *
+ * Video.js will never be a non-browser lib so we can simplify UMD a bunch and
+ * still support requirejs and browserify. This also needs to be closure
+ * compiler compatible, so string keys are used.
+ */
+if (typeof define === 'function' && define['amd']) {
+ define('videojs', [], function(){ return videojs; });
+
+// checking that module is an object too because of umdjs/umd#35
+} else if (typeof exports === 'object' && typeof module === 'object') {
+ module['exports'] = videojs;
+}
diff --git a/bower_components/video.js/src/js/error-display.js b/bower_components/video.js/src/js/error-display.js
new file mode 100644
index 0000000..eb194c3
--- /dev/null
+++ b/bower_components/video.js/src/js/error-display.js
@@ -0,0 +1,31 @@
+/**
+ * Display that an error has occurred making the video unplayable
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.ErrorDisplay = vjs.Component.extend({
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.update();
+ this.on(player, 'error', this.update);
+ }
+});
+
+vjs.ErrorDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-error-display'
+ });
+
+ this.contentEl_ = vjs.createEl('div');
+ el.appendChild(this.contentEl_);
+
+ return el;
+};
+
+vjs.ErrorDisplay.prototype.update = function(){
+ if (this.player().error()) {
+ this.contentEl_.innerHTML = this.localize(this.player().error().message);
+ }
+};
diff --git a/bower_components/video.js/src/js/event-emitter.js b/bower_components/video.js/src/js/event-emitter.js
new file mode 100644
index 0000000..f7b70ff
--- /dev/null
+++ b/bower_components/video.js/src/js/event-emitter.js
@@ -0,0 +1,43 @@
+vjs.EventEmitter = function() {
+};
+
+vjs.EventEmitter.prototype.allowedEvents_ = {
+};
+
+vjs.EventEmitter.prototype.on = function(type, fn) {
+ // Remove the addEventListener alias before calling vjs.on
+ // so we don't get into an infinite type loop
+ var ael = this.addEventListener;
+ this.addEventListener = Function.prototype;
+ vjs.on(this, type, fn);
+ this.addEventListener = ael;
+};
+vjs.EventEmitter.prototype.addEventListener = vjs.EventEmitter.prototype.on;
+
+vjs.EventEmitter.prototype.off = function(type, fn) {
+ vjs.off(this, type, fn);
+};
+vjs.EventEmitter.prototype.removeEventListener = vjs.EventEmitter.prototype.off;
+
+vjs.EventEmitter.prototype.one = function(type, fn) {
+ vjs.one(this, type, fn);
+};
+
+vjs.EventEmitter.prototype.trigger = function(event) {
+ var type = event.type || event;
+
+ if (typeof event === 'string') {
+ event = {
+ type: type
+ };
+ }
+ event = vjs.fixEvent(event);
+
+ if (this.allowedEvents_[type] && this['on' + type]) {
+ this['on' + type](event);
+ }
+
+ vjs.trigger(this, event);
+};
+// The standard DOM EventTarget.dispatchEvent() is aliased to trigger()
+vjs.EventEmitter.prototype.dispatchEvent = vjs.EventEmitter.prototype.trigger;
diff --git a/bower_components/video.js/src/js/events.js b/bower_components/video.js/src/js/events.js
new file mode 100644
index 0000000..dfe462f
--- /dev/null
+++ b/bower_components/video.js/src/js/events.js
@@ -0,0 +1,377 @@
+/**
+ * @fileoverview Event System (John Resig - Secrets of a JS Ninja http://jsninja.com/)
+ * (Original book version wasn't completely usable, so fixed some things and made Closure Compiler compatible)
+ * This should work very similarly to jQuery's events, however it's based off the book version which isn't as
+ * robust as jquery's, so there's probably some differences.
+ */
+
+/**
+ * Add an event listener to element
+ * It stores the handler function in a separate cache object
+ * and adds a generic handler to the element's event,
+ * along with a unique id (guid) to the element.
+ * @param {Element|Object} elem Element or object to bind listeners to
+ * @param {String|Array} type Type of event to bind to.
+ * @param {Function} fn Event listener.
+ * @private
+ */
+vjs.on = function(elem, type, fn){
+ if (vjs.obj.isArray(type)) {
+ return _handleMultipleEvents(vjs.on, elem, type, fn);
+ }
+
+ var data = vjs.getData(elem);
+
+ // We need a place to store all our handler data
+ if (!data.handlers) data.handlers = {};
+
+ if (!data.handlers[type]) data.handlers[type] = [];
+
+ if (!fn.guid) fn.guid = vjs.guid++;
+
+ data.handlers[type].push(fn);
+
+ if (!data.dispatcher) {
+ data.disabled = false;
+
+ data.dispatcher = function (event){
+
+ if (data.disabled) return;
+ event = vjs.fixEvent(event);
+
+ var handlers = data.handlers[event.type];
+
+ if (handlers) {
+ // Copy handlers so if handlers are added/removed during the process it doesn't throw everything off.
+ var handlersCopy = handlers.slice(0);
+
+ for (var m = 0, n = handlersCopy.length; m < n; m++) {
+ if (event.isImmediatePropagationStopped()) {
+ break;
+ } else {
+ handlersCopy[m].call(elem, event);
+ }
+ }
+ }
+ };
+ }
+
+ if (data.handlers[type].length == 1) {
+ if (elem.addEventListener) {
+ elem.addEventListener(type, data.dispatcher, false);
+ } else if (elem.attachEvent) {
+ elem.attachEvent('on' + type, data.dispatcher);
+ }
+ }
+};
+
+/**
+ * Removes event listeners from an element
+ * @param {Element|Object} elem Object to remove listeners from
+ * @param {String|Array=} type Type of listener to remove. Don't include to remove all events from element.
+ * @param {Function} fn Specific listener to remove. Don't include to remove listeners for an event type.
+ * @private
+ */
+vjs.off = function(elem, type, fn) {
+ // Don't want to add a cache object through getData if not needed
+ if (!vjs.hasData(elem)) return;
+
+ var data = vjs.getData(elem);
+
+ // If no events exist, nothing to unbind
+ if (!data.handlers) { return; }
+
+ if (vjs.obj.isArray(type)) {
+ return _handleMultipleEvents(vjs.off, elem, type, fn);
+ }
+
+ // Utility function
+ var removeType = function(t){
+ data.handlers[t] = [];
+ vjs.cleanUpEvents(elem,t);
+ };
+
+ // Are we removing all bound events?
+ if (!type) {
+ for (var t in data.handlers) removeType(t);
+ return;
+ }
+
+ var handlers = data.handlers[type];
+
+ // If no handlers exist, nothing to unbind
+ if (!handlers) return;
+
+ // If no listener was provided, remove all listeners for type
+ if (!fn) {
+ removeType(type);
+ return;
+ }
+
+ // We're only removing a single handler
+ if (fn.guid) {
+ for (var n = 0; n < handlers.length; n++) {
+ if (handlers[n].guid === fn.guid) {
+ handlers.splice(n--, 1);
+ }
+ }
+ }
+
+ vjs.cleanUpEvents(elem, type);
+};
+
+/**
+ * Clean up the listener cache and dispatchers
+ * @param {Element|Object} elem Element to clean up
+ * @param {String} type Type of event to clean up
+ * @private
+ */
+vjs.cleanUpEvents = function(elem, type) {
+ var data = vjs.getData(elem);
+
+ // Remove the events of a particular type if there are none left
+ if (data.handlers[type].length === 0) {
+ delete data.handlers[type];
+ // data.handlers[type] = null;
+ // Setting to null was causing an error with data.handlers
+
+ // Remove the meta-handler from the element
+ if (elem.removeEventListener) {
+ elem.removeEventListener(type, data.dispatcher, false);
+ } else if (elem.detachEvent) {
+ elem.detachEvent('on' + type, data.dispatcher);
+ }
+ }
+
+ // Remove the events object if there are no types left
+ if (vjs.isEmpty(data.handlers)) {
+ delete data.handlers;
+ delete data.dispatcher;
+ delete data.disabled;
+
+ // data.handlers = null;
+ // data.dispatcher = null;
+ // data.disabled = null;
+ }
+
+ // Finally remove the expando if there is no data left
+ if (vjs.isEmpty(data)) {
+ vjs.removeData(elem);
+ }
+};
+
+/**
+ * Fix a native event to have standard property values
+ * @param {Object} event Event object to fix
+ * @return {Object}
+ * @private
+ */
+vjs.fixEvent = function(event) {
+
+ function returnTrue() { return true; }
+ function returnFalse() { return false; }
+
+ // Test if fixing up is needed
+ // Used to check if !event.stopPropagation instead of isPropagationStopped
+ // But native events return true for stopPropagation, but don't have
+ // other expected methods like isPropagationStopped. Seems to be a problem
+ // with the Javascript Ninja code. So we're just overriding all events now.
+ if (!event || !event.isPropagationStopped) {
+ var old = event || window.event;
+
+ event = {};
+ // Clone the old object so that we can modify the values event = {};
+ // IE8 Doesn't like when you mess with native event properties
+ // Firefox returns false for event.hasOwnProperty('type') and other props
+ // which makes copying more difficult.
+ // TODO: Probably best to create a whitelist of event props
+ for (var key in old) {
+ // Safari 6.0.3 warns you if you try to copy deprecated layerX/Y
+ // Chrome warns you if you try to copy deprecated keyboardEvent.keyLocation
+ if (key !== 'layerX' && key !== 'layerY' && key !== 'keyLocation') {
+ // Chrome 32+ warns if you try to copy deprecated returnValue, but
+ // we still want to if preventDefault isn't supported (IE8).
+ if (!(key == 'returnValue' && old.preventDefault)) {
+ event[key] = old[key];
+ }
+ }
+ }
+
+ // The event occurred on this element
+ if (!event.target) {
+ event.target = event.srcElement || document;
+ }
+
+ // Handle which other element the event is related to
+ event.relatedTarget = event.fromElement === event.target ?
+ event.toElement :
+ event.fromElement;
+
+ // Stop the default browser action
+ event.preventDefault = function () {
+ if (old.preventDefault) {
+ old.preventDefault();
+ }
+ event.returnValue = false;
+ event.isDefaultPrevented = returnTrue;
+ event.defaultPrevented = true;
+ };
+
+ event.isDefaultPrevented = returnFalse;
+ event.defaultPrevented = false;
+
+ // Stop the event from bubbling
+ event.stopPropagation = function () {
+ if (old.stopPropagation) {
+ old.stopPropagation();
+ }
+ event.cancelBubble = true;
+ event.isPropagationStopped = returnTrue;
+ };
+
+ event.isPropagationStopped = returnFalse;
+
+ // Stop the event from bubbling and executing other handlers
+ event.stopImmediatePropagation = function () {
+ if (old.stopImmediatePropagation) {
+ old.stopImmediatePropagation();
+ }
+ event.isImmediatePropagationStopped = returnTrue;
+ event.stopPropagation();
+ };
+
+ event.isImmediatePropagationStopped = returnFalse;
+
+ // Handle mouse position
+ if (event.clientX != null) {
+ var doc = document.documentElement, body = document.body;
+
+ event.pageX = event.clientX +
+ (doc && doc.scrollLeft || body && body.scrollLeft || 0) -
+ (doc && doc.clientLeft || body && body.clientLeft || 0);
+ event.pageY = event.clientY +
+ (doc && doc.scrollTop || body && body.scrollTop || 0) -
+ (doc && doc.clientTop || body && body.clientTop || 0);
+ }
+
+ // Handle key presses
+ event.which = event.charCode || event.keyCode;
+
+ // Fix button for mouse clicks:
+ // 0 == left; 1 == middle; 2 == right
+ if (event.button != null) {
+ event.button = (event.button & 1 ? 0 :
+ (event.button & 4 ? 1 :
+ (event.button & 2 ? 2 : 0)));
+ }
+ }
+
+ // Returns fixed-up instance
+ return event;
+};
+
+/**
+ * Trigger an event for an element
+ * @param {Element|Object} elem Element to trigger an event on
+ * @param {Event|Object|String} event A string (the type) or an event object with a type attribute
+ * @private
+ */
+vjs.trigger = function(elem, event) {
+ // Fetches element data and a reference to the parent (for bubbling).
+ // Don't want to add a data object to cache for every parent,
+ // so checking hasData first.
+ var elemData = (vjs.hasData(elem)) ? vjs.getData(elem) : {};
+ var parent = elem.parentNode || elem.ownerDocument;
+ // type = event.type || event,
+ // handler;
+
+ // If an event name was passed as a string, creates an event out of it
+ if (typeof event === 'string') {
+ event = { type:event, target:elem };
+ }
+ // Normalizes the event properties.
+ event = vjs.fixEvent(event);
+
+ // If the passed element has a dispatcher, executes the established handlers.
+ if (elemData.dispatcher) {
+ elemData.dispatcher.call(elem, event);
+ }
+
+ // Unless explicitly stopped or the event does not bubble (e.g. media events)
+ // recursively calls this function to bubble the event up the DOM.
+ if (parent && !event.isPropagationStopped() && event.bubbles !== false) {
+ vjs.trigger(parent, event);
+
+ // If at the top of the DOM, triggers the default action unless disabled.
+ } else if (!parent && !event.defaultPrevented) {
+ var targetData = vjs.getData(event.target);
+
+ // Checks if the target has a default action for this event.
+ if (event.target[event.type]) {
+ // Temporarily disables event dispatching on the target as we have already executed the handler.
+ targetData.disabled = true;
+ // Executes the default action.
+ if (typeof event.target[event.type] === 'function') {
+ event.target[event.type]();
+ }
+ // Re-enables event dispatching.
+ targetData.disabled = false;
+ }
+ }
+
+ // Inform the triggerer if the default was prevented by returning false
+ return !event.defaultPrevented;
+ /* Original version of js ninja events wasn't complete.
+ * We've since updated to the latest version, but keeping this around
+ * for now just in case.
+ */
+ // // Added in addition to book. Book code was broke.
+ // event = typeof event === 'object' ?
+ // event[vjs.expando] ?
+ // event :
+ // new vjs.Event(type, event) :
+ // new vjs.Event(type);
+
+ // event.type = type;
+ // if (handler) {
+ // handler.call(elem, event);
+ // }
+
+ // // Clean up the event in case it is being reused
+ // event.result = undefined;
+ // event.target = elem;
+};
+
+/**
+ * Trigger a listener only once for an event
+ * @param {Element|Object} elem Element or object to
+ * @param {String|Array} type
+ * @param {Function} fn
+ * @private
+ */
+vjs.one = function(elem, type, fn) {
+ if (vjs.obj.isArray(type)) {
+ return _handleMultipleEvents(vjs.one, elem, type, fn);
+ }
+ var func = function(){
+ vjs.off(elem, type, func);
+ fn.apply(this, arguments);
+ };
+ // copy the guid to the new function so it can removed using the original function's ID
+ func.guid = fn.guid = fn.guid || vjs.guid++;
+ vjs.on(elem, type, func);
+};
+
+/**
+ * Loops through an array of event types and calls the requested method for each type.
+ * @param {Function} fn The event method we want to use.
+ * @param {Element|Object} elem Element or object to bind listeners to
+ * @param {String} type Type of event to bind to.
+ * @param {Function} callback Event listener.
+ * @private
+ */
+function _handleMultipleEvents(fn, elem, type, callback) {
+ vjs.arr.forEach(type, function(type) {
+ fn(elem, type, callback); //Call the event method for each one of the types
+ });
+}
diff --git a/bower_components/video.js/src/js/exports.js b/bower_components/video.js/src/js/exports.js
new file mode 100644
index 0000000..b80c966
--- /dev/null
+++ b/bower_components/video.js/src/js/exports.js
@@ -0,0 +1,235 @@
+/**
+ * @fileoverview Exports for Video.js.
+ * Exports are publicly available variables.
+ * All other variables (including function names) will probably
+ * be renamed by closure compiler.
+ */
+
+/**
+ * vjs (internal only) = videojs = _V_ (external only)
+ *
+ * vjs is the same as the goog var in Closure Library. It holds all variables
+ * used in Video.js development. Closure compiler will rename all variables,
+ * including class prototype functions, except those specifically
+ * exported (eports.js). Don't assume any function you can use in Video.js
+ * development will be available on window.videojs for use with other js.
+ *
+ * For example, vjs.trim is an internal function and will be renamed by compiler
+ * to something like 'a.b', or actually more likely 'a' removing it from
+ * a parent object.
+ *
+ * videojs is a var that helps bridge between internal and external development.
+ * Avoid using it over vjs when developing the Video.js core.
+ *
+ * _V_ is only external. It's just cute and short(er). Like jQuery === $.
+ * Also because it's nice having a different var for internal (vjs) vs.
+ * external (_V_) because it makes it clearer what context we're in.
+ */
+goog.exportSymbol('videojs', vjs);
+goog.exportSymbol('_V_', vjs);
+
+goog.exportSymbol('videojs.options', vjs.options);
+goog.exportSymbol('videojs.players', vjs.players);
+goog.exportSymbol('videojs.TOUCH_ENABLED', vjs.TOUCH_ENABLED);
+
+// Allow external components to use global cache
+goog.exportSymbol('videojs.cache', vjs.cache);
+
+// goog.exportSymbol('videojs.CoreObject', vjs.CoreObject);
+// goog.exportProperty(vjs.CoreObject, 'create', vjs.CoreObject.create);
+
+goog.exportSymbol('videojs.Component', vjs.Component);
+// already in default externs: id, name
+goog.exportProperty(vjs.Component.prototype, 'player', vjs.Component.prototype.player);
+goog.exportProperty(vjs.Component.prototype, 'options', vjs.Component.prototype.options);
+goog.exportProperty(vjs.Component.prototype, 'init', vjs.Component.prototype.init);
+goog.exportProperty(vjs.Component.prototype, 'dispose', vjs.Component.prototype.dispose);
+goog.exportProperty(vjs.Component.prototype, 'createEl', vjs.Component.prototype.createEl);
+goog.exportProperty(vjs.Component.prototype, 'contentEl', vjs.Component.prototype.contentEl);
+goog.exportProperty(vjs.Component.prototype, 'el', vjs.Component.prototype.el);
+goog.exportProperty(vjs.Component.prototype, 'addChild', vjs.Component.prototype.addChild);
+goog.exportProperty(vjs.Component.prototype, 'getChild', vjs.Component.prototype.getChild);
+goog.exportProperty(vjs.Component.prototype, 'getChildById', vjs.Component.prototype.getChildById);
+goog.exportProperty(vjs.Component.prototype, 'children', vjs.Component.prototype.children);
+goog.exportProperty(vjs.Component.prototype, 'initChildren', vjs.Component.prototype.initChildren);
+goog.exportProperty(vjs.Component.prototype, 'removeChild', vjs.Component.prototype.removeChild);
+goog.exportProperty(vjs.Component.prototype, 'on', vjs.Component.prototype.on);
+goog.exportProperty(vjs.Component.prototype, 'off', vjs.Component.prototype.off);
+goog.exportProperty(vjs.Component.prototype, 'one', vjs.Component.prototype.one);
+goog.exportProperty(vjs.Component.prototype, 'trigger', vjs.Component.prototype.trigger);
+goog.exportProperty(vjs.Component.prototype, 'triggerReady', vjs.Component.prototype.triggerReady);
+goog.exportProperty(vjs.Component.prototype, 'show', vjs.Component.prototype.show);
+goog.exportProperty(vjs.Component.prototype, 'hide', vjs.Component.prototype.hide);
+goog.exportProperty(vjs.Component.prototype, 'width', vjs.Component.prototype.width);
+goog.exportProperty(vjs.Component.prototype, 'height', vjs.Component.prototype.height);
+goog.exportProperty(vjs.Component.prototype, 'dimensions', vjs.Component.prototype.dimensions);
+goog.exportProperty(vjs.Component.prototype, 'ready', vjs.Component.prototype.ready);
+goog.exportProperty(vjs.Component.prototype, 'addClass', vjs.Component.prototype.addClass);
+goog.exportProperty(vjs.Component.prototype, 'removeClass', vjs.Component.prototype.removeClass);
+goog.exportProperty(vjs.Component.prototype, 'hasClass', vjs.Component.prototype.hasClass);
+goog.exportProperty(vjs.Component.prototype, 'buildCSSClass', vjs.Component.prototype.buildCSSClass);
+goog.exportProperty(vjs.Component.prototype, 'localize', vjs.Component.prototype.localize);
+goog.exportProperty(vjs.Component.prototype, 'setInterval', vjs.Component.prototype.setInterval);
+goog.exportProperty(vjs.Component.prototype, 'setTimeout', vjs.Component.prototype.setTimeout);
+
+goog.exportSymbol('videojs.EventEmitter', vjs.EventEmitter);
+goog.exportProperty(vjs.EventEmitter.prototype, 'on', vjs.EventEmitter.prototype.on);
+goog.exportProperty(vjs.EventEmitter.prototype, 'addEventListener', vjs.EventEmitter.prototype.addEventListener);
+goog.exportProperty(vjs.EventEmitter.prototype, 'off', vjs.EventEmitter.prototype.off);
+goog.exportProperty(vjs.EventEmitter.prototype, 'removeEventListener', vjs.EventEmitter.prototype.removeEventListener);
+goog.exportProperty(vjs.EventEmitter.prototype, 'one', vjs.EventEmitter.prototype.one);
+goog.exportProperty(vjs.EventEmitter.prototype, 'trigger', vjs.EventEmitter.prototype.trigger);
+goog.exportProperty(vjs.EventEmitter.prototype, 'dispatchEvent', vjs.EventEmitter.prototype.dispatchEvent);
+
+
+// Need to export ended to ensure it's not removed by CC, since it's not used internally
+goog.exportProperty(vjs.Player.prototype, 'ended', vjs.Player.prototype.ended);
+goog.exportProperty(vjs.Player.prototype, 'enterFullWindow', vjs.Player.prototype.enterFullWindow);
+goog.exportProperty(vjs.Player.prototype, 'exitFullWindow', vjs.Player.prototype.exitFullWindow);
+goog.exportProperty(vjs.Player.prototype, 'preload', vjs.Player.prototype.preload);
+goog.exportProperty(vjs.Player.prototype, 'remainingTime', vjs.Player.prototype.remainingTime);
+goog.exportProperty(vjs.Player.prototype, 'supportsFullScreen', vjs.Player.prototype.supportsFullScreen);
+goog.exportProperty(vjs.Player.prototype, 'currentType', vjs.Player.prototype.currentType);
+goog.exportProperty(vjs.Player.prototype, 'requestFullScreen', vjs.Player.prototype.requestFullScreen);
+goog.exportProperty(vjs.Player.prototype, 'requestFullscreen', vjs.Player.prototype.requestFullscreen);
+goog.exportProperty(vjs.Player.prototype, 'cancelFullScreen', vjs.Player.prototype.cancelFullScreen);
+goog.exportProperty(vjs.Player.prototype, 'exitFullscreen', vjs.Player.prototype.exitFullscreen);
+goog.exportProperty(vjs.Player.prototype, 'isFullScreen', vjs.Player.prototype.isFullScreen);
+goog.exportProperty(vjs.Player.prototype, 'isFullscreen', vjs.Player.prototype.isFullscreen);
+goog.exportProperty(vjs.Player.prototype, 'textTracks', vjs.Player.prototype.textTracks);
+goog.exportProperty(vjs.Player.prototype, 'remoteTextTracks', vjs.Player.prototype.remoteTextTracks);
+goog.exportProperty(vjs.Player.prototype, 'addTextTrack', vjs.Player.prototype.addTextTrack);
+goog.exportProperty(vjs.Player.prototype, 'addRemoteTextTrack', vjs.Player.prototype.addRemoteTextTrack);
+goog.exportProperty(vjs.Player.prototype, 'removeRemoteTextTrack', vjs.Player.prototype.removeRemoteTextTrack);
+
+goog.exportSymbol('videojs.MediaLoader', vjs.MediaLoader);
+goog.exportSymbol('videojs.TextTrackDisplay', vjs.TextTrackDisplay);
+
+goog.exportSymbol('videojs.ControlBar', vjs.ControlBar);
+goog.exportSymbol('videojs.Button', vjs.Button);
+goog.exportSymbol('videojs.PlayToggle', vjs.PlayToggle);
+goog.exportSymbol('videojs.FullscreenToggle', vjs.FullscreenToggle);
+goog.exportSymbol('videojs.BigPlayButton', vjs.BigPlayButton);
+goog.exportSymbol('videojs.LoadingSpinner', vjs.LoadingSpinner);
+goog.exportSymbol('videojs.CurrentTimeDisplay', vjs.CurrentTimeDisplay);
+goog.exportSymbol('videojs.DurationDisplay', vjs.DurationDisplay);
+goog.exportSymbol('videojs.TimeDivider', vjs.TimeDivider);
+goog.exportSymbol('videojs.RemainingTimeDisplay', vjs.RemainingTimeDisplay);
+goog.exportSymbol('videojs.LiveDisplay', vjs.LiveDisplay);
+goog.exportSymbol('videojs.ErrorDisplay', vjs.ErrorDisplay);
+goog.exportSymbol('videojs.Slider', vjs.Slider);
+goog.exportSymbol('videojs.ProgressControl', vjs.ProgressControl);
+goog.exportSymbol('videojs.SeekBar', vjs.SeekBar);
+goog.exportSymbol('videojs.LoadProgressBar', vjs.LoadProgressBar);
+goog.exportSymbol('videojs.PlayProgressBar', vjs.PlayProgressBar);
+goog.exportSymbol('videojs.SeekHandle', vjs.SeekHandle);
+goog.exportSymbol('videojs.VolumeControl', vjs.VolumeControl);
+goog.exportSymbol('videojs.VolumeBar', vjs.VolumeBar);
+goog.exportSymbol('videojs.VolumeLevel', vjs.VolumeLevel);
+goog.exportSymbol('videojs.VolumeMenuButton', vjs.VolumeMenuButton);
+goog.exportSymbol('videojs.VolumeHandle', vjs.VolumeHandle);
+goog.exportSymbol('videojs.MuteToggle', vjs.MuteToggle);
+goog.exportSymbol('videojs.PosterImage', vjs.PosterImage);
+goog.exportSymbol('videojs.Menu', vjs.Menu);
+goog.exportSymbol('videojs.MenuItem', vjs.MenuItem);
+goog.exportSymbol('videojs.MenuButton', vjs.MenuButton);
+goog.exportSymbol('videojs.PlaybackRateMenuButton', vjs.PlaybackRateMenuButton);
+goog.exportSymbol('videojs.ChaptersTrackMenuItem', vjs.ChaptersTrackMenuItem);
+goog.exportSymbol('videojs.TextTrackButton', vjs.TextTrackButton);
+goog.exportSymbol('videojs.TextTrackMenuItem', vjs.TextTrackMenuItem);
+goog.exportSymbol('videojs.OffTextTrackMenuItem', vjs.OffTextTrackMenuItem);
+goog.exportSymbol('videojs.CaptionSettingsMenuItem', vjs.CaptionSettingsMenuItem);
+
+goog.exportProperty(vjs.MenuButton.prototype, 'createItems', vjs.MenuButton.prototype.createItems);
+goog.exportProperty(vjs.TextTrackButton.prototype, 'createItems', vjs.TextTrackButton.prototype.createItems);
+goog.exportProperty(vjs.ChaptersButton.prototype, 'createItems', vjs.ChaptersButton.prototype.createItems);
+
+goog.exportSymbol('videojs.SubtitlesButton', vjs.SubtitlesButton);
+goog.exportSymbol('videojs.CaptionsButton', vjs.CaptionsButton);
+goog.exportSymbol('videojs.ChaptersButton', vjs.ChaptersButton);
+
+goog.exportSymbol('videojs.MediaTechController', vjs.MediaTechController);
+goog.exportProperty(vjs.MediaTechController, 'withSourceHandlers', vjs.MediaTechController.withSourceHandlers);
+goog.exportProperty(vjs.MediaTechController.prototype, 'featuresVolumeControl', vjs.MediaTechController.prototype.featuresVolumeControl);
+goog.exportProperty(vjs.MediaTechController.prototype, 'featuresFullscreenResize', vjs.MediaTechController.prototype.featuresFullscreenResize);
+goog.exportProperty(vjs.MediaTechController.prototype, 'featuresPlaybackRate', vjs.MediaTechController.prototype.featuresPlaybackRate);
+goog.exportProperty(vjs.MediaTechController.prototype, 'featuresProgressEvents', vjs.MediaTechController.prototype.featuresProgressEvents);
+goog.exportProperty(vjs.MediaTechController.prototype, 'featuresTimeupdateEvents', vjs.MediaTechController.prototype.featuresTimeupdateEvents);
+goog.exportProperty(vjs.MediaTechController.prototype, 'setPoster', vjs.MediaTechController.prototype.setPoster);
+goog.exportProperty(vjs.MediaTechController.prototype, 'textTracks', vjs.MediaTechController.prototype.textTracks);
+goog.exportProperty(vjs.MediaTechController.prototype, 'remoteTextTracks', vjs.MediaTechController.prototype.remoteTextTracks);
+goog.exportProperty(vjs.MediaTechController.prototype, 'addTextTrack', vjs.MediaTechController.prototype.addTextTrack);
+goog.exportProperty(vjs.MediaTechController.prototype, 'addRemoteTextTrack', vjs.MediaTechController.prototype.addRemoteTextTrack);
+goog.exportProperty(vjs.MediaTechController.prototype, 'removeRemoteTextTrack', vjs.MediaTechController.prototype.removeRemoteTextTrack);
+
+goog.exportSymbol('videojs.Html5', vjs.Html5);
+goog.exportProperty(vjs.Html5, 'Events', vjs.Html5.Events);
+goog.exportProperty(vjs.Html5, 'isSupported', vjs.Html5.isSupported);
+goog.exportProperty(vjs.Html5, 'canPlaySource', vjs.Html5.canPlaySource);
+goog.exportProperty(vjs.Html5, 'patchCanPlayType', vjs.Html5.patchCanPlayType);
+goog.exportProperty(vjs.Html5, 'unpatchCanPlayType', vjs.Html5.unpatchCanPlayType);
+
+// Export non-standard HTML5 video API methods.
+// Standard method names already protected by default externs.
+goog.exportProperty(vjs.Html5.prototype, 'setCurrentTime', vjs.Html5.prototype.setCurrentTime);
+goog.exportProperty(vjs.Html5.prototype, 'setVolume', vjs.Html5.prototype.setVolume);
+goog.exportProperty(vjs.Html5.prototype, 'setMuted', vjs.Html5.prototype.setMuted);
+goog.exportProperty(vjs.Html5.prototype, 'setPreload', vjs.Html5.prototype.setPreload);
+goog.exportProperty(vjs.Html5.prototype, 'setAutoplay', vjs.Html5.prototype.setAutoplay);
+goog.exportProperty(vjs.Html5.prototype, 'setLoop', vjs.Html5.prototype.setLoop);
+goog.exportProperty(vjs.Html5.prototype, 'enterFullScreen', vjs.Html5.prototype.enterFullScreen);
+goog.exportProperty(vjs.Html5.prototype, 'exitFullScreen', vjs.Html5.prototype.exitFullScreen);
+goog.exportProperty(vjs.Html5.prototype, 'playbackRate', vjs.Html5.prototype.playbackRate);
+goog.exportProperty(vjs.Html5.prototype, 'setPlaybackRate', vjs.Html5.prototype.setPlaybackRate);
+// Source Handler Functions
+goog.exportProperty(vjs.Html5, 'registerSourceHandler', vjs.Html5.registerSourceHandler);
+goog.exportProperty(vjs.Html5, 'selectSourceHandler', vjs.Html5.selectSourceHandler);
+goog.exportProperty(vjs.Html5.prototype, 'setSource', vjs.Html5.prototype.setSource);
+goog.exportProperty(vjs.Html5.prototype, 'disposeSourceHandler', vjs.Html5.prototype.disposeSourceHandler);
+goog.exportProperty(vjs.Html5.prototype, 'textTracks', vjs.Html5.prototype.textTracks);
+goog.exportProperty(vjs.Html5.prototype, 'remoteTextTracks', vjs.Html5.prototype.remoteTextTracks);
+goog.exportProperty(vjs.Html5.prototype, 'addTextTrack', vjs.Html5.prototype.addTextTrack);
+goog.exportProperty(vjs.Html5.prototype, 'addRemoteTextTrack', vjs.Html5.prototype.addRemoteTextTrack);
+goog.exportProperty(vjs.Html5.prototype, 'removeRemoteTextTrack', vjs.Html5.prototype.removeRemoteTextTrack);
+
+goog.exportSymbol('videojs.Flash', vjs.Flash);
+goog.exportProperty(vjs.Flash, 'isSupported', vjs.Flash.isSupported);
+goog.exportProperty(vjs.Flash, 'canPlaySource', vjs.Flash.canPlaySource);
+goog.exportProperty(vjs.Flash, 'onReady', vjs.Flash['onReady']);
+goog.exportProperty(vjs.Flash, 'embed', vjs.Flash.embed);
+goog.exportProperty(vjs.Flash, 'version', vjs.Flash.version);
+goog.exportProperty(vjs.Flash.prototype, 'setSource', vjs.Flash.prototype.setSource);
+// Source Handler Functions
+goog.exportProperty(vjs.Flash, 'registerSourceHandler', vjs.Flash.registerSourceHandler);
+goog.exportProperty(vjs.Flash, 'selectSourceHandler', vjs.Flash.selectSourceHandler);
+goog.exportProperty(vjs.Flash.prototype, 'setSource', vjs.Flash.prototype.setSource);
+goog.exportProperty(vjs.Flash.prototype, 'disposeSourceHandler', vjs.Flash.prototype.disposeSourceHandler);
+
+goog.exportSymbol('videojs.TextTrack', vjs.TextTrack);
+goog.exportSymbol('videojs.TextTrackList', vjs.TextTrackList);
+goog.exportSymbol('videojs.TextTrackCueList', vjs.TextTrackCueList);
+goog.exportSymbol('videojs.TextTrackSettings', vjs.TextTrackSettings);
+goog.exportProperty(vjs.TextTrack.prototype, 'id', vjs.TextTrack.prototype.id);
+goog.exportProperty(vjs.TextTrack.prototype, 'label', vjs.TextTrack.prototype.label);
+goog.exportProperty(vjs.TextTrack.prototype, 'kind', vjs.TextTrack.prototype.kind);
+goog.exportProperty(vjs.TextTrack.prototype, 'mode', vjs.TextTrack.prototype.mode);
+goog.exportProperty(vjs.TextTrack.prototype, 'cues', vjs.TextTrack.prototype.cues);
+goog.exportProperty(vjs.TextTrack.prototype, 'activeCues', vjs.TextTrack.prototype.activeCues);
+goog.exportProperty(vjs.TextTrack.prototype, 'addCue', vjs.TextTrack.prototype.addCue);
+goog.exportProperty(vjs.TextTrack.prototype, 'removeCue', vjs.TextTrack.prototype.removeCue);
+goog.exportProperty(vjs.TextTrackList.prototype, 'getTrackById', vjs.TextTrackList.prototype.getTrackById);
+goog.exportProperty(vjs.TextTrackCueList.prototype, 'getCueById', vjs.TextTrackList.prototype.getCueById);
+
+goog.exportSymbol('videojs.CaptionsTrack', vjs.CaptionsTrack);
+goog.exportSymbol('videojs.SubtitlesTrack', vjs.SubtitlesTrack);
+goog.exportSymbol('videojs.ChaptersTrack', vjs.ChaptersTrack);
+
+goog.exportSymbol('videojs.autoSetup', vjs.autoSetup);
+
+goog.exportSymbol('videojs.plugin', vjs.plugin);
+
+goog.exportSymbol('videojs.createTimeRange', vjs.createTimeRange);
+
+goog.exportSymbol('videojs.util', vjs.util);
+goog.exportProperty(vjs.util, 'mergeOptions', vjs.util.mergeOptions);
+goog.exportProperty(vjs, 'addLanguage', vjs.addLanguage);
diff --git a/bower_components/video.js/src/js/fullscreen-api.js b/bower_components/video.js/src/js/fullscreen-api.js
new file mode 100644
index 0000000..bbab495
--- /dev/null
+++ b/bower_components/video.js/src/js/fullscreen-api.js
@@ -0,0 +1,82 @@
+(function(){
+ var apiMap, specApi, browserApi, i;
+
+ /**
+ * Store the browser-specific methods for the fullscreen API
+ * @type {Object|undefined}
+ * @private
+ */
+ vjs.browser.fullscreenAPI;
+
+ // browser API methods
+ // map approach from Screenful.js - https://github.com/sindresorhus/screenfull.js
+ apiMap = [
+ // Spec: https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html
+ [
+ 'requestFullscreen',
+ 'exitFullscreen',
+ 'fullscreenElement',
+ 'fullscreenEnabled',
+ 'fullscreenchange',
+ 'fullscreenerror'
+ ],
+ // WebKit
+ [
+ 'webkitRequestFullscreen',
+ 'webkitExitFullscreen',
+ 'webkitFullscreenElement',
+ 'webkitFullscreenEnabled',
+ 'webkitfullscreenchange',
+ 'webkitfullscreenerror'
+ ],
+ // Old WebKit (Safari 5.1)
+ [
+ 'webkitRequestFullScreen',
+ 'webkitCancelFullScreen',
+ 'webkitCurrentFullScreenElement',
+ 'webkitCancelFullScreen',
+ 'webkitfullscreenchange',
+ 'webkitfullscreenerror'
+ ],
+ // Mozilla
+ [
+ 'mozRequestFullScreen',
+ 'mozCancelFullScreen',
+ 'mozFullScreenElement',
+ 'mozFullScreenEnabled',
+ 'mozfullscreenchange',
+ 'mozfullscreenerror'
+ ],
+ // Microsoft
+ [
+ 'msRequestFullscreen',
+ 'msExitFullscreen',
+ 'msFullscreenElement',
+ 'msFullscreenEnabled',
+ 'MSFullscreenChange',
+ 'MSFullscreenError'
+ ]
+ ];
+
+ specApi = apiMap[0];
+
+ // determine the supported set of functions
+ for (i=0; i= 0; i--) {
+ if (classNames[i] === classToRemove) {
+ classNames.splice(i,1);
+ }
+ }
+
+ element.className = classNames.join(' ');
+};
+
+/**
+ * Element for testing browser HTML5 video capabilities
+ * @type {Element}
+ * @constant
+ * @private
+ */
+vjs.TEST_VID = vjs.createEl('video');
+(function() {
+ var track = document.createElement('track');
+ track.kind = 'captions';
+ track.srclang = 'en';
+ track.label = 'English';
+ vjs.TEST_VID.appendChild(track);
+})();
+
+/**
+ * Useragent for browser testing.
+ * @type {String}
+ * @constant
+ * @private
+ */
+vjs.USER_AGENT = navigator.userAgent;
+
+/**
+ * Device is an iPhone
+ * @type {Boolean}
+ * @constant
+ * @private
+ */
+vjs.IS_IPHONE = (/iPhone/i).test(vjs.USER_AGENT);
+vjs.IS_IPAD = (/iPad/i).test(vjs.USER_AGENT);
+vjs.IS_IPOD = (/iPod/i).test(vjs.USER_AGENT);
+vjs.IS_IOS = vjs.IS_IPHONE || vjs.IS_IPAD || vjs.IS_IPOD;
+
+vjs.IOS_VERSION = (function(){
+ var match = vjs.USER_AGENT.match(/OS (\d+)_/i);
+ if (match && match[1]) { return match[1]; }
+})();
+
+vjs.IS_ANDROID = (/Android/i).test(vjs.USER_AGENT);
+vjs.ANDROID_VERSION = (function() {
+ // This matches Android Major.Minor.Patch versions
+ // ANDROID_VERSION is Major.Minor as a Number, if Minor isn't available, then only Major is returned
+ var match = vjs.USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),
+ major,
+ minor;
+
+ if (!match) {
+ return null;
+ }
+
+ major = match[1] && parseFloat(match[1]);
+ minor = match[2] && parseFloat(match[2]);
+
+ if (major && minor) {
+ return parseFloat(match[1] + '.' + match[2]);
+ } else if (major) {
+ return major;
+ } else {
+ return null;
+ }
+})();
+// Old Android is defined as Version older than 2.3, and requiring a webkit version of the android browser
+vjs.IS_OLD_ANDROID = vjs.IS_ANDROID && (/webkit/i).test(vjs.USER_AGENT) && vjs.ANDROID_VERSION < 2.3;
+
+vjs.IS_FIREFOX = (/Firefox/i).test(vjs.USER_AGENT);
+vjs.IS_CHROME = (/Chrome/i).test(vjs.USER_AGENT);
+vjs.IS_IE8 = (/MSIE\s8\.0/).test(vjs.USER_AGENT);
+
+vjs.TOUCH_ENABLED = !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof window.DocumentTouch);
+vjs.BACKGROUND_SIZE_SUPPORTED = 'backgroundSize' in vjs.TEST_VID.style;
+
+/**
+ * Apply attributes to an HTML element.
+ * @param {Element} el Target element.
+ * @param {Object=} attributes Element attributes to be applied.
+ * @private
+ */
+vjs.setElementAttributes = function(el, attributes){
+ vjs.obj.each(attributes, function(attrName, attrValue) {
+ if (attrValue === null || typeof attrValue === 'undefined' || attrValue === false) {
+ el.removeAttribute(attrName);
+ } else {
+ el.setAttribute(attrName, (attrValue === true ? '' : attrValue));
+ }
+ });
+};
+
+/**
+ * Get an element's attribute values, as defined on the HTML tag
+ * Attributes are not the same as properties. They're defined on the tag
+ * or with setAttribute (which shouldn't be used with HTML)
+ * This will return true or false for boolean attributes.
+ * @param {Element} tag Element from which to get tag attributes
+ * @return {Object}
+ * @private
+ */
+vjs.getElementAttributes = function(tag){
+ var obj, knownBooleans, attrs, attrName, attrVal;
+
+ obj = {};
+
+ // known boolean attributes
+ // we can check for matching boolean properties, but older browsers
+ // won't know about HTML5 boolean attributes that we still read from
+ knownBooleans = ','+'autoplay,controls,loop,muted,default'+',';
+
+ if (tag && tag.attributes && tag.attributes.length > 0) {
+ attrs = tag.attributes;
+
+ for (var i = attrs.length - 1; i >= 0; i--) {
+ attrName = attrs[i].name;
+ attrVal = attrs[i].value;
+
+ // check for known booleans
+ // the matching element property will return a value for typeof
+ if (typeof tag[attrName] === 'boolean' || knownBooleans.indexOf(','+attrName+',') !== -1) {
+ // the value of an included boolean attribute is typically an empty
+ // string ('') which would equal false if we just check for a false value.
+ // we also don't want support bad code like autoplay='false'
+ attrVal = (attrVal !== null) ? true : false;
+ }
+
+ obj[attrName] = attrVal;
+ }
+ }
+
+ return obj;
+};
+
+/**
+ * Get the computed style value for an element
+ * From http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/
+ * @param {Element} el Element to get style value for
+ * @param {String} strCssRule Style name
+ * @return {String} Style value
+ * @private
+ */
+vjs.getComputedDimension = function(el, strCssRule){
+ var strValue = '';
+ if(document.defaultView && document.defaultView.getComputedStyle){
+ strValue = document.defaultView.getComputedStyle(el, '').getPropertyValue(strCssRule);
+
+ } else if(el.currentStyle){
+ // IE8 Width/Height support
+ strValue = el['client'+strCssRule.substr(0,1).toUpperCase() + strCssRule.substr(1)] + 'px';
+ }
+ return strValue;
+};
+
+/**
+ * Insert an element as the first child node of another
+ * @param {Element} child Element to insert
+ * @param {[type]} parent Element to insert child into
+ * @private
+ */
+vjs.insertFirst = function(child, parent){
+ if (parent.firstChild) {
+ parent.insertBefore(child, parent.firstChild);
+ } else {
+ parent.appendChild(child);
+ }
+};
+
+/**
+ * Object to hold browser support information
+ * @type {Object}
+ * @private
+ */
+vjs.browser = {};
+
+/**
+ * Shorthand for document.getElementById()
+ * Also allows for CSS (jQuery) ID syntax. But nothing other than IDs.
+ * @param {String} id Element ID
+ * @return {Element} Element with supplied ID
+ * @private
+ */
+vjs.el = function(id){
+ if (id.indexOf('#') === 0) {
+ id = id.slice(1);
+ }
+
+ return document.getElementById(id);
+};
+
+/**
+ * Format seconds as a time string, H:MM:SS or M:SS
+ * Supplying a guide (in seconds) will force a number of leading zeros
+ * to cover the length of the guide
+ * @param {Number} seconds Number of seconds to be turned into a string
+ * @param {Number} guide Number (in seconds) to model the string after
+ * @return {String} Time formatted as H:MM:SS or M:SS
+ * @private
+ */
+vjs.formatTime = function(seconds, guide) {
+ // Default to using seconds as guide
+ guide = guide || seconds;
+ var s = Math.floor(seconds % 60),
+ m = Math.floor(seconds / 60 % 60),
+ h = Math.floor(seconds / 3600),
+ gm = Math.floor(guide / 60 % 60),
+ gh = Math.floor(guide / 3600);
+
+ // handle invalid times
+ if (isNaN(seconds) || seconds === Infinity) {
+ // '-' is false for all relational operators (e.g. <, >=) so this setting
+ // will add the minimum number of fields specified by the guide
+ h = m = s = '-';
+ }
+
+ // Check if we need to show hours
+ h = (h > 0 || gh > 0) ? h + ':' : '';
+
+ // If hours are showing, we may need to add a leading zero.
+ // Always show at least one digit of minutes.
+ m = (((h || gm >= 10) && m < 10) ? '0' + m : m) + ':';
+
+ // Check if leading zero is need for seconds
+ s = (s < 10) ? '0' + s : s;
+
+ return h + m + s;
+};
+
+// Attempt to block the ability to select text while dragging controls
+vjs.blockTextSelection = function(){
+ document.body.focus();
+ document.onselectstart = function () { return false; };
+};
+// Turn off text selection blocking
+vjs.unblockTextSelection = function(){ document.onselectstart = function () { return true; }; };
+
+/**
+ * Trim whitespace from the ends of a string.
+ * @param {String} string String to trim
+ * @return {String} Trimmed string
+ * @private
+ */
+vjs.trim = function(str){
+ return (str+'').replace(/^\s+|\s+$/g, '');
+};
+
+/**
+ * Should round off a number to a decimal place
+ * @param {Number} num Number to round
+ * @param {Number} dec Number of decimal places to round to
+ * @return {Number} Rounded number
+ * @private
+ */
+vjs.round = function(num, dec) {
+ if (!dec) { dec = 0; }
+ return Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
+};
+
+/**
+ * Should create a fake TimeRange object
+ * Mimics an HTML5 time range instance, which has functions that
+ * return the start and end times for a range
+ * TimeRanges are returned by the buffered() method
+ * @param {Number} start Start time in seconds
+ * @param {Number} end End time in seconds
+ * @return {Object} Fake TimeRange object
+ * @private
+ */
+vjs.createTimeRange = function(start, end){
+ return {
+ length: 1,
+ start: function() { return start; },
+ end: function() { return end; }
+ };
+};
+
+/**
+ * Add to local storage (may removable)
+ * @private
+ */
+vjs.setLocalStorage = function(key, value){
+ try {
+ // IE was throwing errors referencing the var anywhere without this
+ var localStorage = window.localStorage || false;
+ if (!localStorage) { return; }
+ localStorage[key] = value;
+ } catch(e) {
+ if (e.code == 22 || e.code == 1014) { // Webkit == 22 / Firefox == 1014
+ vjs.log('LocalStorage Full (VideoJS)', e);
+ } else {
+ if (e.code == 18) {
+ vjs.log('LocalStorage not allowed (VideoJS)', e);
+ } else {
+ vjs.log('LocalStorage Error (VideoJS)', e);
+ }
+ }
+ }
+};
+
+/**
+ * Get absolute version of relative URL. Used to tell flash correct URL.
+ * http://stackoverflow.com/questions/470832/getting-an-absolute-url-from-a-relative-one-ie6-issue
+ * @param {String} url URL to make absolute
+ * @return {String} Absolute URL
+ * @private
+ */
+vjs.getAbsoluteURL = function(url){
+
+ // Check if absolute URL
+ if (!url.match(/^https?:\/\//)) {
+ // Convert to absolute URL. Flash hosted off-site needs an absolute URL.
+ url = vjs.createEl('div', {
+ innerHTML: 'x '
+ }).firstChild.href;
+ }
+
+ return url;
+};
+
+
+/**
+ * Resolve and parse the elements of a URL
+ * @param {String} url The url to parse
+ * @return {Object} An object of url details
+ */
+vjs.parseUrl = function(url) {
+ var div, a, addToBody, props, details;
+
+ props = ['protocol', 'hostname', 'port', 'pathname', 'search', 'hash', 'host'];
+
+ // add the url to an anchor and let the browser parse the URL
+ a = vjs.createEl('a', { href: url });
+
+ // IE8 (and 9?) Fix
+ // ie8 doesn't parse the URL correctly until the anchor is actually
+ // added to the body, and an innerHTML is needed to trigger the parsing
+ addToBody = (a.host === '' && a.protocol !== 'file:');
+ if (addToBody) {
+ div = vjs.createEl('div');
+ div.innerHTML = ' ';
+ a = div.firstChild;
+ // prevent the div from affecting layout
+ div.setAttribute('style', 'display:none; position:absolute;');
+ document.body.appendChild(div);
+ }
+
+ // Copy the specific URL properties to a new object
+ // This is also needed for IE8 because the anchor loses its
+ // properties when it's removed from the dom
+ details = {};
+ for (var i = 0; i < props.length; i++) {
+ details[props[i]] = a[props[i]];
+ }
+
+ // IE9 adds the port to the host property unlike everyone else. If
+ // a port identifier is added for standard ports, strip it.
+ if (details.protocol === 'http:') {
+ details.host = details.host.replace(/:80$/, '');
+ }
+ if (details.protocol === 'https:') {
+ details.host = details.host.replace(/:443$/, '');
+ }
+
+ if (addToBody) {
+ document.body.removeChild(div);
+ }
+
+ return details;
+};
+
+/**
+ * Log messages to the console and history based on the type of message
+ *
+ * @param {String} type The type of message, or `null` for `log`
+ * @param {[type]} args The args to be passed to the log
+ * @private
+ */
+function _logType(type, args){
+ var argsArray, noop, console;
+
+ // convert args to an array to get array functions
+ argsArray = Array.prototype.slice.call(args);
+ // if there's no console then don't try to output messages
+ // they will still be stored in vjs.log.history
+ // Was setting these once outside of this function, but containing them
+ // in the function makes it easier to test cases where console doesn't exist
+ noop = function(){};
+ console = window['console'] || {
+ 'log': noop,
+ 'warn': noop,
+ 'error': noop
+ };
+
+ if (type) {
+ // add the type to the front of the message
+ argsArray.unshift(type.toUpperCase()+':');
+ } else {
+ // default to log with no prefix
+ type = 'log';
+ }
+
+ // add to history
+ vjs.log.history.push(argsArray);
+
+ // add console prefix after adding to history
+ argsArray.unshift('VIDEOJS:');
+
+ // call appropriate log function
+ if (console[type].apply) {
+ console[type].apply(console, argsArray);
+ } else {
+ // ie8 doesn't allow error.apply, but it will just join() the array anyway
+ console[type](argsArray.join(' '));
+ }
+}
+
+/**
+ * Log plain debug messages
+ */
+vjs.log = function(){
+ _logType(null, arguments);
+};
+
+/**
+ * Keep a history of log messages
+ * @type {Array}
+ */
+vjs.log.history = [];
+
+/**
+ * Log error messages
+ */
+vjs.log.error = function(){
+ _logType('error', arguments);
+};
+
+/**
+ * Log warning messages
+ */
+vjs.log.warn = function(){
+ _logType('warn', arguments);
+};
+
+// Offset Left
+// getBoundingClientRect technique from John Resig http://ejohn.org/blog/getboundingclientrect-is-awesome/
+vjs.findPosition = function(el) {
+ var box, docEl, body, clientLeft, scrollLeft, left, clientTop, scrollTop, top;
+
+ if (el.getBoundingClientRect && el.parentNode) {
+ box = el.getBoundingClientRect();
+ }
+
+ if (!box) {
+ return {
+ left: 0,
+ top: 0
+ };
+ }
+
+ docEl = document.documentElement;
+ body = document.body;
+
+ clientLeft = docEl.clientLeft || body.clientLeft || 0;
+ scrollLeft = window.pageXOffset || body.scrollLeft;
+ left = box.left + scrollLeft - clientLeft;
+
+ clientTop = docEl.clientTop || body.clientTop || 0;
+ scrollTop = window.pageYOffset || body.scrollTop;
+ top = box.top + scrollTop - clientTop;
+
+ // Android sometimes returns slightly off decimal values, so need to round
+ return {
+ left: vjs.round(left),
+ top: vjs.round(top)
+ };
+};
+
+/**
+ * Array functions container
+ * @type {Object}
+ * @private
+ */
+vjs.arr = {};
+
+/*
+ * Loops through an array and runs a function for each item inside it.
+ * @param {Array} array The array
+ * @param {Function} callback The function to be run for each item
+ * @param {*} thisArg The `this` binding of callback
+ * @returns {Array} The array
+ * @private
+ */
+vjs.arr.forEach = function(array, callback, thisArg) {
+ if (vjs.obj.isArray(array) && callback instanceof Function) {
+ for (var i = 0, len = array.length; i < len; ++i) {
+ callback.call(thisArg || vjs, array[i], i, array);
+ }
+ }
+
+ return array;
+};
diff --git a/bower_components/video.js/src/js/loading-spinner.js b/bower_components/video.js/src/js/loading-spinner.js
new file mode 100644
index 0000000..4c050dc
--- /dev/null
+++ b/bower_components/video.js/src/js/loading-spinner.js
@@ -0,0 +1,41 @@
+/* Loading Spinner
+================================================================================ */
+/**
+ * Loading spinner for waiting events
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.LoadingSpinner = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ // MOVING DISPLAY HANDLING TO CSS
+
+ // player.on('canplay', vjs.bind(this, this.hide));
+ // player.on('canplaythrough', vjs.bind(this, this.hide));
+ // player.on('playing', vjs.bind(this, this.hide));
+ // player.on('seeking', vjs.bind(this, this.show));
+
+ // in some browsers seeking does not trigger the 'playing' event,
+ // so we also need to trap 'seeked' if we are going to set a
+ // 'seeking' event
+ // player.on('seeked', vjs.bind(this, this.hide));
+
+ // player.on('ended', vjs.bind(this, this.hide));
+
+ // Not showing spinner on stalled any more. Browsers may stall and then not trigger any events that would remove the spinner.
+ // Checked in Chrome 16 and Safari 5.1.2. http://help.videojs.com/discussions/problems/883-why-is-the-download-progress-showing
+ // player.on('stalled', vjs.bind(this, this.show));
+
+ // player.on('waiting', vjs.bind(this, this.show));
+ }
+});
+
+vjs.LoadingSpinner.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-loading-spinner'
+ });
+};
diff --git a/bower_components/video.js/src/js/media-error.js b/bower_components/video.js/src/js/media-error.js
new file mode 100644
index 0000000..6a121ee
--- /dev/null
+++ b/bower_components/video.js/src/js/media-error.js
@@ -0,0 +1,69 @@
+/**
+ * Custom MediaError to mimic the HTML5 MediaError
+ * @param {Number} code The media error code
+ */
+vjs.MediaError = function(code){
+ if (typeof code === 'number') {
+ this.code = code;
+ } else if (typeof code === 'string') {
+ // default code is zero, so this is a custom error
+ this.message = code;
+ } else if (typeof code === 'object') { // object
+ vjs.obj.merge(this, code);
+ }
+
+ if (!this.message) {
+ this.message = vjs.MediaError.defaultMessages[this.code] || '';
+ }
+};
+
+/**
+ * The error code that refers two one of the defined
+ * MediaError types
+ * @type {Number}
+ */
+vjs.MediaError.prototype.code = 0;
+
+/**
+ * An optional message to be shown with the error.
+ * Message is not part of the HTML5 video spec
+ * but allows for more informative custom errors.
+ * @type {String}
+ */
+vjs.MediaError.prototype.message = '';
+
+/**
+ * An optional status code that can be set by plugins
+ * to allow even more detail about the error.
+ * For example the HLS plugin might provide the specific
+ * HTTP status code that was returned when the error
+ * occurred, then allowing a custom error overlay
+ * to display more information.
+ * @type {[type]}
+ */
+vjs.MediaError.prototype.status = null;
+
+vjs.MediaError.errorTypes = [
+ 'MEDIA_ERR_CUSTOM', // = 0
+ 'MEDIA_ERR_ABORTED', // = 1
+ 'MEDIA_ERR_NETWORK', // = 2
+ 'MEDIA_ERR_DECODE', // = 3
+ 'MEDIA_ERR_SRC_NOT_SUPPORTED', // = 4
+ 'MEDIA_ERR_ENCRYPTED' // = 5
+];
+
+vjs.MediaError.defaultMessages = {
+ 1: 'You aborted the video playback',
+ 2: 'A network error caused the video download to fail part-way.',
+ 3: 'The video playback was aborted due to a corruption problem or because the video used features your browser did not support.',
+ 4: 'The video could not be loaded, either because the server or network failed or because the format is not supported.',
+ 5: 'The video is encrypted and we do not have the keys to decrypt it.'
+};
+
+// Add types as properties on MediaError
+// e.g. MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
+for (var errNum = 0; errNum < vjs.MediaError.errorTypes.length; errNum++) {
+ vjs.MediaError[vjs.MediaError.errorTypes[errNum]] = errNum;
+ // values should be accessible on both the class and instance
+ vjs.MediaError.prototype[vjs.MediaError.errorTypes[errNum]] = errNum;
+}
diff --git a/bower_components/video.js/src/js/media/flash.externs.js b/bower_components/video.js/src/js/media/flash.externs.js
new file mode 100644
index 0000000..e729851
--- /dev/null
+++ b/bower_components/video.js/src/js/media/flash.externs.js
@@ -0,0 +1,27 @@
+/**
+ * @fileoverview Externs for video-js.swf. Externs are functions
+ * that the compiler shouldn't obfuscate.
+ */
+
+/**
+ * @param {string} name
+ */
+HTMLObjectElement.prototype.vjs_getProperty = function(name) {};
+
+/**
+ * @param {string} name
+ * @param {string|number} value
+ */
+HTMLObjectElement.prototype.vjs_setProperty = function(name, value) {};
+
+/**
+ * Control methods
+ */
+HTMLObjectElement.prototype.vjs_play = function() {};
+HTMLObjectElement.prototype.vjs_pause = function() {};
+HTMLObjectElement.prototype.vjs_load = function() {};
+
+/**
+ * @param {string} src
+ */
+HTMLObjectElement.prototype.vjs_src = function(src) {};
diff --git a/bower_components/video.js/src/js/media/flash.js b/bower_components/video.js/src/js/media/flash.js
new file mode 100644
index 0000000..41d0ac0
--- /dev/null
+++ b/bower_components/video.js/src/js/media/flash.js
@@ -0,0 +1,423 @@
+/**
+ * @fileoverview VideoJS-SWF - Custom Flash Player with HTML5-ish API
+ * https://github.com/zencoder/video-js-swf
+ * Not using setupTriggers. Using global onEvent func to distribute events
+ */
+
+/**
+ * Flash Media Controller - Wrapper for fallback SWF API
+ *
+ * @param {vjs.Player} player
+ * @param {Object=} options
+ * @param {Function=} ready
+ * @constructor
+ */
+vjs.Flash = vjs.MediaTechController.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.MediaTechController.call(this, player, options, ready);
+
+ var source = options['source'],
+
+ // Which element to embed in
+ parentEl = options['parentEl'],
+
+ // Create a temporary element to be replaced by swf object
+ placeHolder = this.el_ = vjs.createEl('div', { id: player.id() + '_temp_flash' }),
+
+ // Generate ID for swf object
+ objId = player.id()+'_flash_api',
+
+ // Store player options in local var for optimization
+ // TODO: switch to using player methods instead of options
+ // e.g. player.autoplay();
+ playerOptions = player.options_,
+
+ // Merge default flashvars with ones passed in to init
+ flashVars = vjs.obj.merge({
+
+ // SWF Callback Functions
+ 'readyFunction': 'videojs.Flash.onReady',
+ 'eventProxyFunction': 'videojs.Flash.onEvent',
+ 'errorEventProxyFunction': 'videojs.Flash.onError',
+
+ // Player Settings
+ 'autoplay': playerOptions.autoplay,
+ 'preload': playerOptions.preload,
+ 'loop': playerOptions.loop,
+ 'muted': playerOptions.muted
+
+ }, options['flashVars']),
+
+ // Merge default parames with ones passed in
+ params = vjs.obj.merge({
+ 'wmode': 'opaque', // Opaque is needed to overlay controls, but can affect playback performance
+ 'bgcolor': '#000000' // Using bgcolor prevents a white flash when the object is loading
+ }, options['params']),
+
+ // Merge default attributes with ones passed in
+ attributes = vjs.obj.merge({
+ 'id': objId,
+ 'name': objId, // Both ID and Name needed or swf to identify itself
+ 'class': 'vjs-tech'
+ }, options['attributes'])
+ ;
+
+ // If source was supplied pass as a flash var.
+ if (source) {
+ this.ready(function(){
+ this.setSource(source);
+ });
+ }
+
+ // Add placeholder to player div
+ vjs.insertFirst(placeHolder, parentEl);
+
+ // Having issues with Flash reloading on certain page actions (hide/resize/fullscreen) in certain browsers
+ // This allows resetting the playhead when we catch the reload
+ if (options['startTime']) {
+ this.ready(function(){
+ this.load();
+ this.play();
+ this['currentTime'](options['startTime']);
+ });
+ }
+
+ // firefox doesn't bubble mousemove events to parent. videojs/video-js-swf#37
+ // bugzilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=836786
+ if (vjs.IS_FIREFOX) {
+ this.ready(function(){
+ this.on('mousemove', function(){
+ // since it's a custom event, don't bubble higher than the player
+ this.player().trigger({ 'type':'mousemove', 'bubbles': false });
+ });
+ });
+ }
+
+ // native click events on the SWF aren't triggered on IE11, Win8.1RT
+ // use stageclick events triggered from inside the SWF instead
+ player.on('stageclick', player.reportUserActivity);
+
+ this.el_ = vjs.Flash.embed(options['swf'], placeHolder, flashVars, params, attributes);
+ }
+});
+
+vjs.Flash.prototype.dispose = function(){
+ vjs.MediaTechController.prototype.dispose.call(this);
+};
+
+vjs.Flash.prototype.play = function(){
+ this.el_.vjs_play();
+};
+
+vjs.Flash.prototype.pause = function(){
+ this.el_.vjs_pause();
+};
+
+vjs.Flash.prototype.src = function(src){
+ if (src === undefined) {
+ return this['currentSrc']();
+ }
+
+ // Setting src through `src` not `setSrc` will be deprecated
+ return this.setSrc(src);
+};
+
+vjs.Flash.prototype.setSrc = function(src){
+ // Make sure source URL is absolute.
+ src = vjs.getAbsoluteURL(src);
+ this.el_.vjs_src(src);
+
+ // Currently the SWF doesn't autoplay if you load a source later.
+ // e.g. Load player w/ no source, wait 2s, set src.
+ if (this.player_.autoplay()) {
+ var tech = this;
+ this.setTimeout(function(){ tech.play(); }, 0);
+ }
+};
+
+vjs.Flash.prototype['setCurrentTime'] = function(time){
+ this.lastSeekTarget_ = time;
+ this.el_.vjs_setProperty('currentTime', time);
+ vjs.MediaTechController.prototype.setCurrentTime.call(this);
+};
+
+vjs.Flash.prototype['currentTime'] = function(time){
+ // when seeking make the reported time keep up with the requested time
+ // by reading the time we're seeking to
+ if (this.seeking()) {
+ return this.lastSeekTarget_ || 0;
+ }
+ return this.el_.vjs_getProperty('currentTime');
+};
+
+vjs.Flash.prototype['currentSrc'] = function(){
+ if (this.currentSource_) {
+ return this.currentSource_.src;
+ } else {
+ return this.el_.vjs_getProperty('currentSrc');
+ }
+};
+
+vjs.Flash.prototype.load = function(){
+ this.el_.vjs_load();
+};
+
+vjs.Flash.prototype.poster = function(){
+ this.el_.vjs_getProperty('poster');
+};
+vjs.Flash.prototype['setPoster'] = function(){
+ // poster images are not handled by the Flash tech so make this a no-op
+};
+
+vjs.Flash.prototype.buffered = function(){
+ return vjs.createTimeRange(0, this.el_.vjs_getProperty('buffered'));
+};
+
+vjs.Flash.prototype.supportsFullScreen = function(){
+ return false; // Flash does not allow fullscreen through javascript
+};
+
+vjs.Flash.prototype.enterFullScreen = function(){
+ return false;
+};
+
+(function(){
+ // Create setters and getters for attributes
+ var api = vjs.Flash.prototype,
+ readWrite = 'rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted'.split(','),
+ readOnly = 'error,networkState,readyState,seeking,initialTime,duration,startOffsetTime,paused,played,seekable,ended,videoTracks,audioTracks,videoWidth,videoHeight'.split(','),
+ // Overridden: buffered, currentTime, currentSrc
+ i;
+
+ function createSetter(attr){
+ var attrUpper = attr.charAt(0).toUpperCase() + attr.slice(1);
+ api['set'+attrUpper] = function(val){ return this.el_.vjs_setProperty(attr, val); };
+ }
+ function createGetter(attr) {
+ api[attr] = function(){ return this.el_.vjs_getProperty(attr); };
+ }
+
+ // Create getter and setters for all read/write attributes
+ for (i = 0; i < readWrite.length; i++) {
+ createGetter(readWrite[i]);
+ createSetter(readWrite[i]);
+ }
+
+ // Create getters for read-only attributes
+ for (i = 0; i < readOnly.length; i++) {
+ createGetter(readOnly[i]);
+ }
+})();
+
+/* Flash Support Testing -------------------------------------------------------- */
+
+vjs.Flash.isSupported = function(){
+ return vjs.Flash.version()[0] >= 10;
+ // return swfobject.hasFlashPlayerVersion('10');
+};
+
+// Add Source Handler pattern functions to this tech
+vjs.MediaTechController.withSourceHandlers(vjs.Flash);
+
+/**
+ * The default native source handler.
+ * This simply passes the source to the video element. Nothing fancy.
+ * @param {Object} source The source object
+ * @param {vjs.Flash} tech The instance of the Flash tech
+ */
+vjs.Flash.nativeSourceHandler = {};
+
+/**
+ * Check Flash can handle the source natively
+ * @param {Object} source The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+vjs.Flash.nativeSourceHandler.canHandleSource = function(source){
+ var type;
+
+ if (!source.type) {
+ return '';
+ }
+
+ // Strip code information from the type because we don't get that specific
+ type = source.type.replace(/;.*/,'').toLowerCase();
+
+ if (type in vjs.Flash.formats) {
+ return 'maybe';
+ }
+
+ return '';
+};
+
+/**
+ * Pass the source to the flash object
+ * Adaptive source handlers will have more complicated workflows before passing
+ * video data to the video element
+ * @param {Object} source The source object
+ * @param {vjs.Flash} tech The instance of the Flash tech
+ */
+vjs.Flash.nativeSourceHandler.handleSource = function(source, tech){
+ tech.setSrc(source.src);
+};
+
+/**
+ * Clean up the source handler when disposing the player or switching sources..
+ * (no cleanup is needed when supporting the format natively)
+ */
+vjs.Flash.nativeSourceHandler.dispose = function(){};
+
+// Register the native source handler
+vjs.Flash.registerSourceHandler(vjs.Flash.nativeSourceHandler);
+
+vjs.Flash.formats = {
+ 'video/flv': 'FLV',
+ 'video/x-flv': 'FLV',
+ 'video/mp4': 'MP4',
+ 'video/m4v': 'MP4'
+};
+
+vjs.Flash['onReady'] = function(currSwf){
+ var el, player;
+
+ el = vjs.el(currSwf);
+
+ // get player from the player div property
+ player = el && el.parentNode && el.parentNode['player'];
+
+ // if there is no el or player then the tech has been disposed
+ // and the tech element was removed from the player div
+ if (player) {
+ // reference player on tech element
+ el['player'] = player;
+ // check that the flash object is really ready
+ vjs.Flash['checkReady'](player.tech);
+ }
+};
+
+// The SWF isn't always ready when it says it is. Sometimes the API functions still need to be added to the object.
+// If it's not ready, we set a timeout to check again shortly.
+vjs.Flash['checkReady'] = function(tech){
+ // stop worrying if the tech has been disposed
+ if (!tech.el()) {
+ return;
+ }
+
+ // check if API property exists
+ if (tech.el().vjs_getProperty) {
+ // tell tech it's ready
+ tech.triggerReady();
+ } else {
+ // wait longer
+ this.setTimeout(function(){
+ vjs.Flash['checkReady'](tech);
+ }, 50);
+ }
+};
+
+// Trigger events from the swf on the player
+vjs.Flash['onEvent'] = function(swfID, eventName){
+ var player = vjs.el(swfID)['player'];
+ player.trigger(eventName);
+};
+
+// Log errors from the swf
+vjs.Flash['onError'] = function(swfID, err){
+ var player = vjs.el(swfID)['player'];
+ var msg = 'FLASH: '+err;
+
+ if (err == 'srcnotfound') {
+ player.error({ code: 4, message: msg });
+
+ // errors we haven't categorized into the media errors
+ } else {
+ player.error(msg);
+ }
+};
+
+// Flash Version Check
+vjs.Flash.version = function(){
+ var version = '0,0,0';
+
+ // IE
+ try {
+ version = new window.ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
+
+ // other browsers
+ } catch(e) {
+ try {
+ if (navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin){
+ version = (navigator.plugins['Shockwave Flash 2.0'] || navigator.plugins['Shockwave Flash']).description.replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
+ }
+ } catch(err) {}
+ }
+ return version.split(',');
+};
+
+// Flash embedding method. Only used in non-iframe mode
+vjs.Flash.embed = function(swf, placeHolder, flashVars, params, attributes){
+ var code = vjs.Flash.getEmbedCode(swf, flashVars, params, attributes),
+
+ // Get element by embedding code and retrieving created element
+ obj = vjs.createEl('div', { innerHTML: code }).childNodes[0],
+
+ par = placeHolder.parentNode
+ ;
+
+ placeHolder.parentNode.replaceChild(obj, placeHolder);
+
+ // IE6 seems to have an issue where it won't initialize the swf object after injecting it.
+ // This is a dumb fix
+ var newObj = par.childNodes[0];
+ setTimeout(function(){
+ newObj.style.display = 'block';
+ }, 1000);
+
+ return obj;
+
+};
+
+vjs.Flash.getEmbedCode = function(swf, flashVars, params, attributes){
+
+ var objTag = ' ';
+ });
+
+ attributes = vjs.obj.merge({
+ // Add swf to attributes (need both for IE and Others to work)
+ 'data': swf,
+
+ // Default to 100% width/height
+ 'width': '100%',
+ 'height': '100%'
+
+ }, attributes);
+
+ // Create Attributes string
+ vjs.obj.each(attributes, function(key, val){
+ attrsString += (key + '="' + val + '" ');
+ });
+
+ return objTag + attrsString + '>' + paramsString + '';
+};
diff --git a/bower_components/video.js/src/js/media/flash.rtmp.js b/bower_components/video.js/src/js/media/flash.rtmp.js
new file mode 100644
index 0000000..5047f5e
--- /dev/null
+++ b/bower_components/video.js/src/js/media/flash.rtmp.js
@@ -0,0 +1,88 @@
+vjs.Flash.streamingFormats = {
+ 'rtmp/mp4': 'MP4',
+ 'rtmp/flv': 'FLV'
+};
+
+vjs.Flash.streamFromParts = function(connection, stream) {
+ return connection + '&' + stream;
+};
+
+vjs.Flash.streamToParts = function(src) {
+ var parts = {
+ connection: '',
+ stream: ''
+ };
+
+ if (! src) {
+ return parts;
+ }
+
+ // Look for the normal URL separator we expect, '&'.
+ // If found, we split the URL into two pieces around the
+ // first '&'.
+ var connEnd = src.indexOf('&');
+ var streamBegin;
+ if (connEnd !== -1) {
+ streamBegin = connEnd + 1;
+ }
+ else {
+ // If there's not a '&', we use the last '/' as the delimiter.
+ connEnd = streamBegin = src.lastIndexOf('/') + 1;
+ if (connEnd === 0) {
+ // really, there's not a '/'?
+ connEnd = streamBegin = src.length;
+ }
+ }
+ parts.connection = src.substring(0, connEnd);
+ parts.stream = src.substring(streamBegin, src.length);
+
+ return parts;
+};
+
+vjs.Flash.isStreamingType = function(srcType) {
+ return srcType in vjs.Flash.streamingFormats;
+};
+
+// RTMP has four variations, any string starting
+// with one of these protocols should be valid
+vjs.Flash.RTMP_RE = /^rtmp[set]?:\/\//i;
+
+vjs.Flash.isStreamingSrc = function(src) {
+ return vjs.Flash.RTMP_RE.test(src);
+};
+
+/**
+ * A source handler for RTMP urls
+ * @type {Object}
+ */
+vjs.Flash.rtmpSourceHandler = {};
+
+/**
+ * Check Flash can handle the source natively
+ * @param {Object} source The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+vjs.Flash.rtmpSourceHandler.canHandleSource = function(source){
+ if (vjs.Flash.isStreamingType(source.type) || vjs.Flash.isStreamingSrc(source.src)) {
+ return 'maybe';
+ }
+
+ return '';
+};
+
+/**
+ * Pass the source to the flash object
+ * Adaptive source handlers will have more complicated workflows before passing
+ * video data to the video element
+ * @param {Object} source The source object
+ * @param {vjs.Flash} tech The instance of the Flash tech
+ */
+vjs.Flash.rtmpSourceHandler.handleSource = function(source, tech){
+ var srcParts = vjs.Flash.streamToParts(source.src);
+
+ tech['setRtmpConnection'](srcParts.connection);
+ tech['setRtmpStream'](srcParts.stream);
+};
+
+// Register the native source handler
+vjs.Flash.registerSourceHandler(vjs.Flash.rtmpSourceHandler);
diff --git a/bower_components/video.js/src/js/media/html5.js b/bower_components/video.js/src/js/media/html5.js
new file mode 100644
index 0000000..4cb83ae
--- /dev/null
+++ b/bower_components/video.js/src/js/media/html5.js
@@ -0,0 +1,688 @@
+/**
+ * @fileoverview HTML5 Media Controller - Wrapper for HTML5 Media API
+ */
+
+/**
+ * HTML5 Media Controller - Wrapper for HTML5 Media API
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @param {Function=} ready
+ * @constructor
+ */
+vjs.Html5 = vjs.MediaTechController.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ var nodes, nodesLength, i, node, nodeName, removeNodes;
+
+ if (options['nativeCaptions'] === false || options['nativeTextTracks'] === false) {
+ this['featuresNativeTextTracks'] = false;
+ }
+
+ vjs.MediaTechController.call(this, player, options, ready);
+
+ this.setupTriggers();
+
+ var source = options['source'];
+
+ // Set the source if one is provided
+ // 1) Check if the source is new (if not, we want to keep the original so playback isn't interrupted)
+ // 2) Check to see if the network state of the tag was failed at init, and if so, reset the source
+ // anyway so the error gets fired.
+ if (source && (this.el_.currentSrc !== source.src || (player.tag && player.tag.initNetworkState_ === 3))) {
+ this.setSource(source);
+ }
+
+ if (this.el_.hasChildNodes()) {
+
+ nodes = this.el_.childNodes;
+ nodesLength = nodes.length;
+ removeNodes = [];
+
+ while (nodesLength--) {
+ node = nodes[nodesLength];
+ nodeName = node.nodeName.toLowerCase();
+ if (nodeName === 'track') {
+ if (!this['featuresNativeTextTracks']) {
+ // Empty video tag tracks so the built-in player doesn't use them also.
+ // This may not be fast enough to stop HTML5 browsers from reading the tags
+ // so we'll need to turn off any default tracks if we're manually doing
+ // captions and subtitles. videoElement.textTracks
+ removeNodes.push(node);
+ } else {
+ this.remoteTextTracks().addTrack_(node['track']);
+ }
+ }
+ }
+
+ for (i=0; i= 0; i--) {
+ var attr = settingsAttrs[i];
+ var overwriteAttrs = {};
+ if (typeof player.options_[attr] !== 'undefined') {
+ overwriteAttrs[attr] = player.options_[attr];
+ }
+ vjs.setElementAttributes(el, overwriteAttrs);
+ }
+
+ return el;
+ // jenniisawesome = true;
+};
+
+
+vjs.Html5.prototype.hideCaptions = function() {
+ var tracks = this.el_.textTracks,
+ track,
+ i = tracks.length,
+ kinds = {
+ 'captions': 1,
+ 'subtitles': 1
+ };
+
+ while (i--) {
+ track = tracks[i];
+ if (track && track['kind'] in kinds) {
+ track.mode = 'disabled';
+ }
+ }
+};
+
+// Make video events trigger player events
+// May seem verbose here, but makes other APIs possible.
+// Triggers removed using this.off when disposed
+vjs.Html5.prototype.setupTriggers = function(){
+ for (var i = vjs.Html5.Events.length - 1; i >= 0; i--) {
+ this.on(vjs.Html5.Events[i], this.eventHandler);
+ }
+};
+
+vjs.Html5.prototype.eventHandler = function(evt){
+ // In the case of an error on the video element, set the error prop
+ // on the player and let the player handle triggering the event. On
+ // some platforms, error events fire that do not cause the error
+ // property on the video element to be set. See #1465 for an example.
+ if (evt.type == 'error' && this.error()) {
+ this.player().error(this.error().code);
+
+ // in some cases we pass the event directly to the player
+ } else {
+ // No need for media events to bubble up.
+ evt.bubbles = false;
+
+ this.player().trigger(evt);
+ }
+};
+
+vjs.Html5.prototype.useNativeControls = function(){
+ var tech, player, controlsOn, controlsOff, cleanUp;
+
+ tech = this;
+ player = this.player();
+
+ // If the player controls are enabled turn on the native controls
+ tech.setControls(player.controls());
+
+ // Update the native controls when player controls state is updated
+ controlsOn = function(){
+ tech.setControls(true);
+ };
+ controlsOff = function(){
+ tech.setControls(false);
+ };
+ player.on('controlsenabled', controlsOn);
+ player.on('controlsdisabled', controlsOff);
+
+ // Clean up when not using native controls anymore
+ cleanUp = function(){
+ player.off('controlsenabled', controlsOn);
+ player.off('controlsdisabled', controlsOff);
+ };
+ tech.on('dispose', cleanUp);
+ player.on('usingcustomcontrols', cleanUp);
+
+ // Update the state of the player to using native controls
+ player.usingNativeControls(true);
+};
+
+
+vjs.Html5.prototype.play = function(){ this.el_.play(); };
+vjs.Html5.prototype.pause = function(){ this.el_.pause(); };
+vjs.Html5.prototype.paused = function(){ return this.el_.paused; };
+
+vjs.Html5.prototype.currentTime = function(){ return this.el_.currentTime; };
+vjs.Html5.prototype.setCurrentTime = function(seconds){
+ try {
+ this.el_.currentTime = seconds;
+ } catch(e) {
+ vjs.log(e, 'Video is not ready. (Video.js)');
+ // this.warning(VideoJS.warnings.videoNotReady);
+ }
+};
+
+vjs.Html5.prototype.duration = function(){ return this.el_.duration || 0; };
+vjs.Html5.prototype.buffered = function(){ return this.el_.buffered; };
+
+vjs.Html5.prototype.volume = function(){ return this.el_.volume; };
+vjs.Html5.prototype.setVolume = function(percentAsDecimal){ this.el_.volume = percentAsDecimal; };
+vjs.Html5.prototype.muted = function(){ return this.el_.muted; };
+vjs.Html5.prototype.setMuted = function(muted){ this.el_.muted = muted; };
+
+vjs.Html5.prototype.width = function(){ return this.el_.offsetWidth; };
+vjs.Html5.prototype.height = function(){ return this.el_.offsetHeight; };
+
+vjs.Html5.prototype.supportsFullScreen = function(){
+ if (typeof this.el_.webkitEnterFullScreen == 'function') {
+
+ // Seems to be broken in Chromium/Chrome && Safari in Leopard
+ if (/Android/.test(vjs.USER_AGENT) || !/Chrome|Mac OS X 10.5/.test(vjs.USER_AGENT)) {
+ return true;
+ }
+ }
+ return false;
+};
+
+vjs.Html5.prototype.enterFullScreen = function(){
+ var video = this.el_;
+
+ if ('webkitDisplayingFullscreen' in video) {
+ this.one('webkitbeginfullscreen', function() {
+ this.player_.isFullscreen(true);
+
+ this.one('webkitendfullscreen', function() {
+ this.player_.isFullscreen(false);
+ this.player_.trigger('fullscreenchange');
+ });
+
+ this.player_.trigger('fullscreenchange');
+ });
+ }
+
+ if (video.paused && video.networkState <= video.HAVE_METADATA) {
+ // attempt to prime the video element for programmatic access
+ // this isn't necessary on the desktop but shouldn't hurt
+ this.el_.play();
+
+ // playing and pausing synchronously during the transition to fullscreen
+ // can get iOS ~6.1 devices into a play/pause loop
+ this.setTimeout(function(){
+ video.pause();
+ video.webkitEnterFullScreen();
+ }, 0);
+ } else {
+ video.webkitEnterFullScreen();
+ }
+};
+
+vjs.Html5.prototype.exitFullScreen = function(){
+ this.el_.webkitExitFullScreen();
+};
+
+
+vjs.Html5.prototype.src = function(src) {
+ if (src === undefined) {
+ return this.el_.src;
+ } else {
+ // Setting src through `src` instead of `setSrc` will be deprecated
+ this.setSrc(src);
+ }
+};
+
+vjs.Html5.prototype.setSrc = function(src) {
+ this.el_.src = src;
+};
+
+vjs.Html5.prototype.load = function(){ this.el_.load(); };
+vjs.Html5.prototype.currentSrc = function(){ return this.el_.currentSrc; };
+
+vjs.Html5.prototype.poster = function(){ return this.el_.poster; };
+vjs.Html5.prototype.setPoster = function(val){ this.el_.poster = val; };
+
+vjs.Html5.prototype.preload = function(){ return this.el_.preload; };
+vjs.Html5.prototype.setPreload = function(val){ this.el_.preload = val; };
+
+vjs.Html5.prototype.autoplay = function(){ return this.el_.autoplay; };
+vjs.Html5.prototype.setAutoplay = function(val){ this.el_.autoplay = val; };
+
+vjs.Html5.prototype.controls = function(){ return this.el_.controls; };
+vjs.Html5.prototype.setControls = function(val){ this.el_.controls = !!val; };
+
+vjs.Html5.prototype.loop = function(){ return this.el_.loop; };
+vjs.Html5.prototype.setLoop = function(val){ this.el_.loop = val; };
+
+vjs.Html5.prototype.error = function(){ return this.el_.error; };
+vjs.Html5.prototype.seeking = function(){ return this.el_.seeking; };
+vjs.Html5.prototype.ended = function(){ return this.el_.ended; };
+vjs.Html5.prototype.defaultMuted = function(){ return this.el_.defaultMuted; };
+
+vjs.Html5.prototype.playbackRate = function(){ return this.el_.playbackRate; };
+vjs.Html5.prototype.setPlaybackRate = function(val){ this.el_.playbackRate = val; };
+
+vjs.Html5.prototype.networkState = function(){ return this.el_.networkState; };
+vjs.Html5.prototype.readyState = function(){ return this.el_.readyState; };
+
+vjs.Html5.prototype.textTracks = function() {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.textTracks.call(this);
+ }
+
+ return this.el_.textTracks;
+};
+vjs.Html5.prototype.addTextTrack = function(kind, label, language) {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.addTextTrack.call(this, kind, label, language);
+ }
+
+ return this.el_.addTextTrack(kind, label, language);
+};
+
+vjs.Html5.prototype.addRemoteTextTrack = function(options) {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.addRemoteTextTrack.call(this, options);
+ }
+
+ var track = document.createElement('track');
+ options = options || {};
+
+ if (options['kind']) {
+ track['kind'] = options['kind'];
+ }
+ if (options['label']) {
+ track['label'] = options['label'];
+ }
+ if (options['language'] || options['srclang']) {
+ track['srclang'] = options['language'] || options['srclang'];
+ }
+ if (options['default']) {
+ track['default'] = options['default'];
+ }
+ if (options['id']) {
+ track['id'] = options['id'];
+ }
+ if (options['src']) {
+ track['src'] = options['src'];
+ }
+
+ this.el().appendChild(track);
+
+ if (track.track['kind'] === 'metadata') {
+ track['track']['mode'] = 'hidden';
+ } else {
+ track['track']['mode'] = 'disabled';
+ }
+
+ track['onload'] = function() {
+ var tt = track['track'];
+ if (track.readyState >= 2) {
+ if (tt['kind'] === 'metadata' && tt['mode'] !== 'hidden') {
+ tt['mode'] = 'hidden';
+ } else if (tt['kind'] !== 'metadata' && tt['mode'] !== 'disabled') {
+ tt['mode'] = 'disabled';
+ }
+ track['onload'] = null;
+ }
+ };
+
+ this.remoteTextTracks().addTrack_(track.track);
+
+ return track;
+};
+
+vjs.Html5.prototype.removeRemoteTextTrack = function(track) {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.removeRemoteTextTrack.call(this, track);
+ }
+
+ var tracks, i;
+
+ this.remoteTextTracks().removeTrack_(track);
+
+ tracks = this.el()['querySelectorAll']('track');
+
+ for (i = 0; i < tracks.length; i++) {
+ if (tracks[i] === track || tracks[i]['track'] === track) {
+ tracks[i]['parentNode']['removeChild'](tracks[i]);
+ break;
+ }
+ }
+};
+
+/* HTML5 Support Testing ---------------------------------------------------- */
+
+/**
+ * Check if HTML5 video is supported by this browser/device
+ * @return {Boolean}
+ */
+vjs.Html5.isSupported = function(){
+ // IE9 with no Media Player is a LIAR! (#984)
+ try {
+ vjs.TEST_VID['volume'] = 0.5;
+ } catch (e) {
+ return false;
+ }
+
+ return !!vjs.TEST_VID.canPlayType;
+};
+
+// Add Source Handler pattern functions to this tech
+vjs.MediaTechController.withSourceHandlers(vjs.Html5);
+
+/**
+ * The default native source handler.
+ * This simply passes the source to the video element. Nothing fancy.
+ * @param {Object} source The source object
+ * @param {vjs.Html5} tech The instance of the HTML5 tech
+ */
+vjs.Html5.nativeSourceHandler = {};
+
+/**
+ * Check if the video element can handle the source natively
+ * @param {Object} source The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+vjs.Html5.nativeSourceHandler.canHandleSource = function(source){
+ var match, ext;
+
+ function canPlayType(type){
+ // IE9 on Windows 7 without MediaPlayer throws an error here
+ // https://github.com/videojs/video.js/issues/519
+ try {
+ return vjs.TEST_VID.canPlayType(type);
+ } catch(e) {
+ return '';
+ }
+ }
+
+ // If a type was provided we should rely on that
+ if (source.type) {
+ return canPlayType(source.type);
+ } else if (source.src) {
+ // If no type, fall back to checking 'video/[EXTENSION]'
+ match = source.src.match(/\.([^.\/\?]+)(\?[^\/]+)?$/i);
+ ext = match && match[1];
+
+ return canPlayType('video/'+ext);
+ }
+
+ return '';
+};
+
+/**
+ * Pass the source to the video element
+ * Adaptive source handlers will have more complicated workflows before passing
+ * video data to the video element
+ * @param {Object} source The source object
+ * @param {vjs.Html5} tech The instance of the Html5 tech
+ */
+vjs.Html5.nativeSourceHandler.handleSource = function(source, tech){
+ tech.setSrc(source.src);
+};
+
+/**
+ * Clean up the source handler when disposing the player or switching sources..
+ * (no cleanup is needed when supporting the format natively)
+ */
+vjs.Html5.nativeSourceHandler.dispose = function(){};
+
+// Register the native source handler
+vjs.Html5.registerSourceHandler(vjs.Html5.nativeSourceHandler);
+
+/**
+ * Check if the volume can be changed in this browser/device.
+ * Volume cannot be changed in a lot of mobile devices.
+ * Specifically, it can't be changed from 1 on iOS.
+ * @return {Boolean}
+ */
+vjs.Html5.canControlVolume = function(){
+ var volume = vjs.TEST_VID.volume;
+ vjs.TEST_VID.volume = (volume / 2) + 0.1;
+ return volume !== vjs.TEST_VID.volume;
+};
+
+/**
+ * Check if playbackRate is supported in this browser/device.
+ * @return {[type]} [description]
+ */
+vjs.Html5.canControlPlaybackRate = function(){
+ var playbackRate = vjs.TEST_VID.playbackRate;
+ vjs.TEST_VID.playbackRate = (playbackRate / 2) + 0.1;
+ return playbackRate !== vjs.TEST_VID.playbackRate;
+};
+
+/**
+ * Check to see if native text tracks are supported by this browser/device
+ * @return {Boolean}
+ */
+vjs.Html5.supportsNativeTextTracks = function() {
+ var supportsTextTracks;
+
+ // Figure out native text track support
+ // If mode is a number, we cannot change it because it'll disappear from view.
+ // Browsers with numeric modes include IE10 and older (<=2013) samsung android models.
+ // Firefox isn't playing nice either with modifying the mode
+ // TODO: Investigate firefox: https://github.com/videojs/video.js/issues/1862
+ supportsTextTracks = !!vjs.TEST_VID.textTracks;
+ if (supportsTextTracks && vjs.TEST_VID.textTracks.length > 0) {
+ supportsTextTracks = typeof vjs.TEST_VID.textTracks[0]['mode'] !== 'number';
+ }
+ if (supportsTextTracks && vjs.IS_FIREFOX) {
+ supportsTextTracks = false;
+ }
+
+ return supportsTextTracks;
+};
+
+/**
+ * Set the tech's volume control support status
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['featuresVolumeControl'] = vjs.Html5.canControlVolume();
+
+/**
+ * Set the tech's playbackRate support status
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['featuresPlaybackRate'] = vjs.Html5.canControlPlaybackRate();
+
+/**
+ * Set the tech's status on moving the video element.
+ * In iOS, if you move a video element in the DOM, it breaks video playback.
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['movingMediaElementInDOM'] = !vjs.IS_IOS;
+
+/**
+ * Set the the tech's fullscreen resize support status.
+ * HTML video is able to automatically resize when going to fullscreen.
+ * (No longer appears to be used. Can probably be removed.)
+ */
+vjs.Html5.prototype['featuresFullscreenResize'] = true;
+
+/**
+ * Set the tech's progress event support status
+ * (this disables the manual progress events of the MediaTechController)
+ */
+vjs.Html5.prototype['featuresProgressEvents'] = true;
+
+/**
+ * Sets the tech's status on native text track support
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['featuresNativeTextTracks'] = vjs.Html5.supportsNativeTextTracks();
+
+// HTML5 Feature detection and Device Fixes --------------------------------- //
+(function() {
+ var canPlayType,
+ mpegurlRE = /^application\/(?:x-|vnd\.apple\.)mpegurl/i,
+ mp4RE = /^video\/mp4/i;
+
+ vjs.Html5.patchCanPlayType = function() {
+ // Android 4.0 and above can play HLS to some extent but it reports being unable to do so
+ if (vjs.ANDROID_VERSION >= 4.0) {
+ if (!canPlayType) {
+ canPlayType = vjs.TEST_VID.constructor.prototype.canPlayType;
+ }
+
+ vjs.TEST_VID.constructor.prototype.canPlayType = function(type) {
+ if (type && mpegurlRE.test(type)) {
+ return 'maybe';
+ }
+ return canPlayType.call(this, type);
+ };
+ }
+
+ // Override Android 2.2 and less canPlayType method which is broken
+ if (vjs.IS_OLD_ANDROID) {
+ if (!canPlayType) {
+ canPlayType = vjs.TEST_VID.constructor.prototype.canPlayType;
+ }
+
+ vjs.TEST_VID.constructor.prototype.canPlayType = function(type){
+ if (type && mp4RE.test(type)) {
+ return 'maybe';
+ }
+ return canPlayType.call(this, type);
+ };
+ }
+ };
+
+ vjs.Html5.unpatchCanPlayType = function() {
+ var r = vjs.TEST_VID.constructor.prototype.canPlayType;
+ vjs.TEST_VID.constructor.prototype.canPlayType = canPlayType;
+ canPlayType = null;
+ return r;
+ };
+
+ // by default, patch the video element
+ vjs.Html5.patchCanPlayType();
+})();
+
+// List of all HTML5 events (various uses).
+vjs.Html5.Events = 'loadstart,suspend,abort,error,emptied,stalled,loadedmetadata,loadeddata,canplay,canplaythrough,playing,waiting,seeking,seeked,ended,durationchange,timeupdate,progress,play,pause,ratechange,volumechange'.split(',');
+
+vjs.Html5.disposeMediaElement = function(el){
+ if (!el) { return; }
+
+ el['player'] = null;
+
+ if (el.parentNode) {
+ el.parentNode.removeChild(el);
+ }
+
+ // remove any child track or source nodes to prevent their loading
+ while(el.hasChildNodes()) {
+ el.removeChild(el.firstChild);
+ }
+
+ // remove any src reference. not setting `src=''` because that causes a warning
+ // in firefox
+ el.removeAttribute('src');
+
+ // force the media element to update its loading state by calling load()
+ // however IE on Windows 7N has a bug that throws an error so need a try/catch (#793)
+ if (typeof el.load === 'function') {
+ // wrapping in an iife so it's not deoptimized (#1060#discussion_r10324473)
+ (function() {
+ try {
+ el.load();
+ } catch (e) {
+ // not supported
+ }
+ })();
+ }
+};
diff --git a/bower_components/video.js/src/js/media/loader.js b/bower_components/video.js/src/js/media/loader.js
new file mode 100644
index 0000000..98db7db
--- /dev/null
+++ b/bower_components/video.js/src/js/media/loader.js
@@ -0,0 +1,33 @@
+/**
+ * The Media Loader is the component that decides which playback technology to load
+ * when the player is initialized.
+ *
+ * @constructor
+ */
+vjs.MediaLoader = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.Component.call(this, player, options, ready);
+
+ // If there are no sources when the player is initialized,
+ // load the first supported playback technology.
+ if (!player.options_['sources'] || player.options_['sources'].length === 0) {
+ for (var i=0,j=player.options_['techOrder']; i 0) {
+ this.player().trigger('loadstart');
+ }
+ });
+};
+
+vjs.MediaTechController.prototype.addControlsListeners = function(){
+ var userWasActive;
+
+ // Some browsers (Chrome & IE) don't trigger a click on a flash swf, but do
+ // trigger mousedown/up.
+ // http://stackoverflow.com/questions/1444562/javascript-onclick-event-over-flash-object
+ // Any touch events are set to block the mousedown event from happening
+ this.on('mousedown', this.onClick);
+
+ // If the controls were hidden we don't want that to change without a tap event
+ // so we'll check if the controls were already showing before reporting user
+ // activity
+ this.on('touchstart', function(event) {
+ userWasActive = this.player_.userActive();
+ });
+
+ this.on('touchmove', function(event) {
+ if (userWasActive){
+ this.player().reportUserActivity();
+ }
+ });
+
+ this.on('touchend', function(event) {
+ // Stop the mouse events from also happening
+ event.preventDefault();
+ });
+
+ // Turn on component tap events
+ this.emitTapEvents();
+
+ // The tap listener needs to come after the touchend listener because the tap
+ // listener cancels out any reportedUserActivity when setting userActive(false)
+ this.on('tap', this.onTap);
+};
+
+/**
+ * Remove the listeners used for click and tap controls. This is needed for
+ * toggling to controls disabled, where a tap/touch should do nothing.
+ */
+vjs.MediaTechController.prototype.removeControlsListeners = function(){
+ // We don't want to just use `this.off()` because there might be other needed
+ // listeners added by techs that extend this.
+ this.off('tap');
+ this.off('touchstart');
+ this.off('touchmove');
+ this.off('touchleave');
+ this.off('touchcancel');
+ this.off('touchend');
+ this.off('click');
+ this.off('mousedown');
+};
+
+/**
+ * Handle a click on the media element. By default will play/pause the media.
+ */
+vjs.MediaTechController.prototype.onClick = function(event){
+ // We're using mousedown to detect clicks thanks to Flash, but mousedown
+ // will also be triggered with right-clicks, so we need to prevent that
+ if (event.button !== 0) return;
+
+ // When controls are disabled a click should not toggle playback because
+ // the click is considered a control
+ if (this.player().controls()) {
+ if (this.player().paused()) {
+ this.player().play();
+ } else {
+ this.player().pause();
+ }
+ }
+};
+
+/**
+ * Handle a tap on the media element. By default it will toggle the user
+ * activity state, which hides and shows the controls.
+ */
+vjs.MediaTechController.prototype.onTap = function(){
+ this.player().userActive(!this.player().userActive());
+};
+
+/* Fallbacks for unsupported event types
+================================================================================ */
+// Manually trigger progress events based on changes to the buffered amount
+// Many flash players and older HTML5 browsers don't send progress or progress-like events
+vjs.MediaTechController.prototype.manualProgressOn = function(){
+ this.manualProgress = true;
+
+ // Trigger progress watching when a source begins loading
+ this.trackProgress();
+};
+
+vjs.MediaTechController.prototype.manualProgressOff = function(){
+ this.manualProgress = false;
+ this.stopTrackingProgress();
+};
+
+vjs.MediaTechController.prototype.trackProgress = function(){
+ this.progressInterval = this.setInterval(function(){
+ // Don't trigger unless buffered amount is greater than last time
+
+ var bufferedPercent = this.player().bufferedPercent();
+
+ if (this.bufferedPercent_ != bufferedPercent) {
+ this.player().trigger('progress');
+ }
+
+ this.bufferedPercent_ = bufferedPercent;
+
+ if (bufferedPercent === 1) {
+ this.stopTrackingProgress();
+ }
+ }, 500);
+};
+vjs.MediaTechController.prototype.stopTrackingProgress = function(){ this.clearInterval(this.progressInterval); };
+
+/*! Time Tracking -------------------------------------------------------------- */
+vjs.MediaTechController.prototype.manualTimeUpdatesOn = function(){
+ var player = this.player_;
+
+ this.manualTimeUpdates = true;
+
+ this.on(player, 'play', this.trackCurrentTime);
+ this.on(player, 'pause', this.stopTrackingCurrentTime);
+ // timeupdate is also called by .currentTime whenever current time is set
+
+ // Watch for native timeupdate event
+ this.one('timeupdate', function(){
+ // Update known progress support for this playback technology
+ this['featuresTimeupdateEvents'] = true;
+ // Turn off manual progress tracking
+ this.manualTimeUpdatesOff();
+ });
+};
+
+vjs.MediaTechController.prototype.manualTimeUpdatesOff = function(){
+ var player = this.player_;
+
+ this.manualTimeUpdates = false;
+ this.stopTrackingCurrentTime();
+ this.off(player, 'play', this.trackCurrentTime);
+ this.off(player, 'pause', this.stopTrackingCurrentTime);
+};
+
+vjs.MediaTechController.prototype.trackCurrentTime = function(){
+ if (this.currentTimeInterval) { this.stopTrackingCurrentTime(); }
+ this.currentTimeInterval = this.setInterval(function(){
+ this.player().trigger('timeupdate');
+ }, 250); // 42 = 24 fps // 250 is what Webkit uses // FF uses 15
+};
+
+// Turn off play progress tracking (when paused or dragging)
+vjs.MediaTechController.prototype.stopTrackingCurrentTime = function(){
+ this.clearInterval(this.currentTimeInterval);
+
+ // #1002 - if the video ends right before the next timeupdate would happen,
+ // the progress bar won't make it all the way to the end
+ this.player().trigger('timeupdate');
+};
+
+vjs.MediaTechController.prototype.dispose = function() {
+ // Turn off any manual progress or timeupdate tracking
+ if (this.manualProgress) { this.manualProgressOff(); }
+
+ if (this.manualTimeUpdates) { this.manualTimeUpdatesOff(); }
+
+ vjs.Component.prototype.dispose.call(this);
+};
+
+vjs.MediaTechController.prototype.setCurrentTime = function() {
+ // improve the accuracy of manual timeupdates
+ if (this.manualTimeUpdates) { this.player().trigger('timeupdate'); }
+};
+
+// TODO: Consider looking at moving this into the text track display directly
+// https://github.com/videojs/video.js/issues/1863
+vjs.MediaTechController.prototype.initTextTrackListeners = function() {
+ var player = this.player_,
+ tracks,
+ textTrackListChanges = function() {
+ var textTrackDisplay = player.getChild('textTrackDisplay'),
+ controlBar;
+
+ if (textTrackDisplay) {
+ textTrackDisplay.updateDisplay();
+ }
+ };
+
+ tracks = this.textTracks();
+
+ if (!tracks) {
+ return;
+ }
+
+ tracks.addEventListener('removetrack', textTrackListChanges);
+ tracks.addEventListener('addtrack', textTrackListChanges);
+
+ this.on('dispose', vjs.bind(this, function() {
+ tracks.removeEventListener('removetrack', textTrackListChanges);
+ tracks.removeEventListener('addtrack', textTrackListChanges);
+ }));
+};
+
+vjs.MediaTechController.prototype.emulateTextTracks = function() {
+ var player = this.player_,
+ textTracksChanges,
+ tracks,
+ script;
+
+ if (!window['WebVTT']) {
+ script = document.createElement('script');
+ script.src = player.options()['vtt.js'] || '../node_modules/vtt.js/dist/vtt.js';
+ player.el().appendChild(script);
+ window['WebVTT'] = true;
+ }
+
+ tracks = this.textTracks();
+ if (!tracks) {
+ return;
+ }
+
+ textTracksChanges = function() {
+ var i, track, textTrackDisplay;
+
+ textTrackDisplay = player.getChild('textTrackDisplay'),
+
+ textTrackDisplay.updateDisplay();
+
+ for (i = 0; i < this.length; i++) {
+ track = this[i];
+ track.removeEventListener('cuechange', vjs.bind(textTrackDisplay, textTrackDisplay.updateDisplay));
+ if (track.mode === 'showing') {
+ track.addEventListener('cuechange', vjs.bind(textTrackDisplay, textTrackDisplay.updateDisplay));
+ }
+ }
+ };
+
+ tracks.addEventListener('change', textTracksChanges);
+
+ this.on('dispose', vjs.bind(this, function() {
+ tracks.removeEventListener('change', textTracksChanges);
+ }));
+};
+
+/**
+ * Provide default methods for text tracks.
+ *
+ * Html5 tech overrides these.
+ */
+
+/**
+ * List of associated text tracks
+ * @type {Array}
+ * @private
+ */
+vjs.MediaTechController.prototype.textTracks_;
+
+vjs.MediaTechController.prototype.textTracks = function() {
+ this.player_.textTracks_ = this.player_.textTracks_ || new vjs.TextTrackList();
+ return this.player_.textTracks_;
+};
+
+vjs.MediaTechController.prototype.remoteTextTracks = function() {
+ this.player_.remoteTextTracks_ = this.player_.remoteTextTracks_ || new vjs.TextTrackList();
+ return this.player_.remoteTextTracks_;
+};
+
+createTrackHelper = function(self, kind, label, language, options) {
+ var tracks = self.textTracks(),
+ track;
+
+ options = options || {};
+
+ options['kind'] = kind;
+ if (label) {
+ options['label'] = label;
+ }
+ if (language) {
+ options['language'] = language;
+ }
+ options['player'] = self.player_;
+
+ track = new vjs.TextTrack(options);
+ tracks.addTrack_(track);
+
+ return track;
+};
+
+vjs.MediaTechController.prototype.addTextTrack = function(kind, label, language) {
+ if (!kind) {
+ throw new Error('TextTrack kind is required but was not provided');
+ }
+
+ return createTrackHelper(this, kind, label, language);
+};
+
+vjs.MediaTechController.prototype.addRemoteTextTrack = function(options) {
+ var track = createTrackHelper(this, options['kind'], options['label'], options['language'], options);
+ this.remoteTextTracks().addTrack_(track);
+ return {
+ track: track
+ };
+};
+
+vjs.MediaTechController.prototype.removeRemoteTextTrack = function(track) {
+ this.textTracks().removeTrack_(track);
+ this.remoteTextTracks().removeTrack_(track);
+};
+
+/**
+ * Provide a default setPoster method for techs
+ *
+ * Poster support for techs should be optional, so we don't want techs to
+ * break if they don't have a way to set a poster.
+ */
+vjs.MediaTechController.prototype.setPoster = function(){};
+
+vjs.MediaTechController.prototype['featuresVolumeControl'] = true;
+
+// Resizing plugins using request fullscreen reloads the plugin
+vjs.MediaTechController.prototype['featuresFullscreenResize'] = false;
+vjs.MediaTechController.prototype['featuresPlaybackRate'] = false;
+
+// Optional events that we can manually mimic with timers
+// currently not triggered by video-js-swf
+vjs.MediaTechController.prototype['featuresProgressEvents'] = false;
+vjs.MediaTechController.prototype['featuresTimeupdateEvents'] = false;
+
+vjs.MediaTechController.prototype['featuresNativeTextTracks'] = false;
+
+/**
+ * A functional mixin for techs that want to use the Source Handler pattern.
+ *
+ * ##### EXAMPLE:
+ *
+ * videojs.MediaTechController.withSourceHandlers.call(MyTech);
+ *
+ */
+vjs.MediaTechController.withSourceHandlers = function(Tech){
+ /**
+ * Register a source handler
+ * Source handlers are scripts for handling specific formats.
+ * The source handler pattern is used for adaptive formats (HLS, DASH) that
+ * manually load video data and feed it into a Source Buffer (Media Source Extensions)
+ * @param {Function} handler The source handler
+ * @param {Boolean} first Register it before any existing handlers
+ */
+ Tech.registerSourceHandler = function(handler, index){
+ var handlers = Tech.sourceHandlers;
+
+ if (!handlers) {
+ handlers = Tech.sourceHandlers = [];
+ }
+
+ if (index === undefined) {
+ // add to the end of the list
+ index = handlers.length;
+ }
+
+ handlers.splice(index, 0, handler);
+ };
+
+ /**
+ * Return the first source handler that supports the source
+ * TODO: Answer question: should 'probably' be prioritized over 'maybe'
+ * @param {Object} source The source object
+ * @returns {Object} The first source handler that supports the source
+ * @returns {null} Null if no source handler is found
+ */
+ Tech.selectSourceHandler = function(source){
+ var handlers = Tech.sourceHandlers || [],
+ can;
+
+ for (var i = 0; i < handlers.length; i++) {
+ can = handlers[i].canHandleSource(source);
+
+ if (can) {
+ return handlers[i];
+ }
+ }
+
+ return null;
+ };
+
+ /**
+ * Check if the tech can support the given source
+ * @param {Object} srcObj The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+ Tech.canPlaySource = function(srcObj){
+ var sh = Tech.selectSourceHandler(srcObj);
+
+ if (sh) {
+ return sh.canHandleSource(srcObj);
+ }
+
+ return '';
+ };
+
+ /**
+ * Create a function for setting the source using a source object
+ * and source handlers.
+ * Should never be called unless a source handler was found.
+ * @param {Object} source A source object with src and type keys
+ * @return {vjs.MediaTechController} self
+ */
+ Tech.prototype.setSource = function(source){
+ var sh = Tech.selectSourceHandler(source);
+
+ // Dispose any existing source handler
+ this.disposeSourceHandler();
+ this.off('dispose', this.disposeSourceHandler);
+
+ this.currentSource_ = source;
+ this.sourceHandler_ = sh.handleSource(source, this);
+ this.on('dispose', this.disposeSourceHandler);
+
+ return this;
+ };
+
+ /**
+ * Clean up any existing source handler
+ */
+ Tech.prototype.disposeSourceHandler = function(){
+ if (this.sourceHandler_ && this.sourceHandler_.dispose) {
+ this.sourceHandler_.dispose();
+ }
+ };
+
+};
+
+vjs.media = {};
+
+})();
diff --git a/bower_components/video.js/src/js/menu.js b/bower_components/video.js/src/js/menu.js
new file mode 100644
index 0000000..c1a431b
--- /dev/null
+++ b/bower_components/video.js/src/js/menu.js
@@ -0,0 +1,225 @@
+/* Menu
+================================================================================ */
+/**
+ * The Menu component is used to build pop up menus, including subtitle and
+ * captions selection menus.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.Menu = vjs.Component.extend();
+
+/**
+ * Add a menu item to the menu
+ * @param {Object|String} component Component or component type to add
+ */
+vjs.Menu.prototype.addItem = function(component){
+ this.addChild(component);
+ component.on('click', vjs.bind(this, function(){
+ this.unlockShowing();
+ }));
+};
+
+/** @inheritDoc */
+vjs.Menu.prototype.createEl = function(){
+ var contentElType = this.options().contentElType || 'ul';
+ this.contentEl_ = vjs.createEl(contentElType, {
+ className: 'vjs-menu-content'
+ });
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ append: this.contentEl_,
+ className: 'vjs-menu'
+ });
+ el.appendChild(this.contentEl_);
+
+ // Prevent clicks from bubbling up. Needed for Menu Buttons,
+ // where a click on the parent is significant
+ vjs.on(el, 'click', function(event){
+ event.preventDefault();
+ event.stopImmediatePropagation();
+ });
+
+ return el;
+};
+
+/**
+ * The component for a menu item. ``
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.MenuItem = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+ this.selected(options['selected']);
+ }
+});
+
+/** @inheritDoc */
+vjs.MenuItem.prototype.createEl = function(type, props){
+ return vjs.Button.prototype.createEl.call(this, 'li', vjs.obj.merge({
+ className: 'vjs-menu-item',
+ innerHTML: this.localize(this.options_['label'])
+ }, props));
+};
+
+/**
+ * Handle a click on the menu item, and set it to selected
+ */
+vjs.MenuItem.prototype.onClick = function(){
+ this.selected(true);
+};
+
+/**
+ * Set this menu item as selected or not
+ * @param {Boolean} selected
+ */
+vjs.MenuItem.prototype.selected = function(selected){
+ if (selected) {
+ this.addClass('vjs-selected');
+ this.el_.setAttribute('aria-selected',true);
+ } else {
+ this.removeClass('vjs-selected');
+ this.el_.setAttribute('aria-selected',false);
+ }
+};
+
+
+/**
+ * A button class with a popup menu
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.MenuButton = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.update();
+
+ this.on('keydown', this.onKeyPress);
+ this.el_.setAttribute('aria-haspopup', true);
+ this.el_.setAttribute('role', 'button');
+ }
+});
+
+vjs.MenuButton.prototype.update = function() {
+ var menu = this.createMenu();
+
+ if (this.menu) {
+ this.removeChild(this.menu);
+ }
+
+ this.menu = menu;
+ this.addChild(menu);
+
+ if (this.items && this.items.length === 0) {
+ this.hide();
+ } else if (this.items && this.items.length > 1) {
+ this.show();
+ }
+};
+
+/**
+ * Track the state of the menu button
+ * @type {Boolean}
+ * @private
+ */
+vjs.MenuButton.prototype.buttonPressed_ = false;
+
+vjs.MenuButton.prototype.createMenu = function(){
+ var menu = new vjs.Menu(this.player_);
+
+ // Add a title list item to the top
+ if (this.options().title) {
+ menu.contentEl().appendChild(vjs.createEl('li', {
+ className: 'vjs-menu-title',
+ innerHTML: vjs.capitalize(this.options().title),
+ tabindex: -1
+ }));
+ }
+
+ this.items = this['createItems']();
+
+ if (this.items) {
+ // Add menu items to the menu
+ for (var i = 0; i < this.items.length; i++) {
+ menu.addItem(this.items[i]);
+ }
+ }
+
+ return menu;
+};
+
+/**
+ * Create the list of menu items. Specific to each subclass.
+ */
+vjs.MenuButton.prototype.createItems = function(){};
+
+/** @inheritDoc */
+vjs.MenuButton.prototype.buildCSSClass = function(){
+ return this.className + ' vjs-menu-button ' + vjs.Button.prototype.buildCSSClass.call(this);
+};
+
+// Focus - Add keyboard functionality to element
+// This function is not needed anymore. Instead, the keyboard functionality is handled by
+// treating the button as triggering a submenu. When the button is pressed, the submenu
+// appears. Pressing the button again makes the submenu disappear.
+vjs.MenuButton.prototype.onFocus = function(){};
+// Can't turn off list display that we turned on with focus, because list would go away.
+vjs.MenuButton.prototype.onBlur = function(){};
+
+vjs.MenuButton.prototype.onClick = function(){
+ // When you click the button it adds focus, which will show the menu indefinitely.
+ // So we'll remove focus when the mouse leaves the button.
+ // Focus is needed for tab navigation.
+ this.one('mouseout', vjs.bind(this, function(){
+ this.menu.unlockShowing();
+ this.el_.blur();
+ }));
+ if (this.buttonPressed_){
+ this.unpressButton();
+ } else {
+ this.pressButton();
+ }
+};
+
+vjs.MenuButton.prototype.onKeyPress = function(event){
+
+ // Check for space bar (32) or enter (13) keys
+ if (event.which == 32 || event.which == 13) {
+ if (this.buttonPressed_){
+ this.unpressButton();
+ } else {
+ this.pressButton();
+ }
+ event.preventDefault();
+ // Check for escape (27) key
+ } else if (event.which == 27){
+ if (this.buttonPressed_){
+ this.unpressButton();
+ }
+ event.preventDefault();
+ }
+};
+
+vjs.MenuButton.prototype.pressButton = function(){
+ this.buttonPressed_ = true;
+ this.menu.lockShowing();
+ this.el_.setAttribute('aria-pressed', true);
+ if (this.items && this.items.length > 0) {
+ this.items[0].el().focus(); // set the focus to the title of the submenu
+ }
+};
+
+vjs.MenuButton.prototype.unpressButton = function(){
+ this.buttonPressed_ = false;
+ this.menu.unlockShowing();
+ this.el_.setAttribute('aria-pressed', false);
+};
diff --git a/bower_components/video.js/src/js/player.externs.js b/bower_components/video.js/src/js/player.externs.js
new file mode 100644
index 0000000..8f7ad4e
--- /dev/null
+++ b/bower_components/video.js/src/js/player.externs.js
@@ -0,0 +1,96 @@
+/**
+ * @fileoverview Externs for videojs.Player. Externs are functions that the
+ * compiler shouldn't obfuscate.
+ */
+
+/**
+ * @constructor
+ * @extends {videojs.Component}
+ */
+ videojs.Player = function(){};
+
+/**
+ * Native HTML5 video properties
+ * Most likely covered by the default closure compiler externs
+ * Copied list from http://code.google.com/p/closure-compiler/source/browse/externs/html5.js?spec=svne2e531de906d9ccccf23516bd2dd6152a93f6468&r=e2e531de906d9ccccf23516bd2dd6152a93f6468
+ * May not all be available on a videojs player yet
+ */
+videojs.Player.prototype.error = function(){};
+videojs.Player.prototype.src = function(){};
+videojs.Player.prototype.currentSrc = function(){};
+videojs.Player.prototype.networkState = function(){};
+videojs.Player.prototype.buffered = function(){};
+videojs.Player.prototype.load = function(){};
+videojs.Player.prototype.canPlayType = function(){};
+videojs.Player.prototype.readyState = function(){};
+videojs.Player.prototype.seeking = function(){};
+videojs.Player.prototype.currentTime = function(){};
+videojs.Player.prototype.remainingTime = function(){};
+videojs.Player.prototype.startTime = function(){};
+videojs.Player.prototype.duration = function(){};
+videojs.Player.prototype.paused = function(){};
+videojs.Player.prototype.defaultPlaybackRate = function(){};
+videojs.Player.prototype.playbackRate = function(){};
+videojs.Player.prototype.played = function(){};
+videojs.Player.prototype.seekable = function(){};
+videojs.Player.prototype.ended = function(){};
+videojs.Player.prototype.autoplay = function(){};
+videojs.Player.prototype.loop = function(){};
+videojs.Player.prototype.play = function() {};
+videojs.Player.prototype.pause = function() {};
+videojs.Player.prototype.controls = function(){};
+videojs.Player.prototype.volume = function(){};
+videojs.Player.prototype.muted = function(){};
+videojs.Player.prototype.width = function(){};
+videojs.Player.prototype.height = function(){};
+videojs.Player.prototype.videoWidth = function(){};
+videojs.Player.prototype.videoHeight = function(){};
+videojs.Player.prototype.poster = function(){};
+
+/**
+ * Fullscreen functionality
+ */
+videojs.Player.prototype.isFullscreen = function(){};
+videojs.Player.prototype.isFullScreen = function(){}; /* deprecated */
+videojs.Player.prototype.requestFullscreen = function(){};
+videojs.Player.prototype.requestFullScreen = function(){}; /* deprecated */
+videojs.Player.prototype.exitFullscreen = function(){};
+videojs.Player.prototype.cancelFullScreen = function(){}; /* deprecated */
+
+/**
+ * Text tracks
+ */
+videojs.Player.prototype.textTracks = function(){};
+videojs.Player.prototype.addTextTrack = function(){};
+
+/**
+ * Language support
+ */
+videojs.Player.prototype.language = function(){};
+videojs.Player.prototype.languages = function(){};
+
+/**
+ * Component functions
+ */
+videojs.Player.prototype.dispose = function(){};
+
+/**
+ * Buffered percent
+ */
+videojs.Player.prototype.bufferedPercent = function(){};
+
+/**
+ * User activity functions
+ */
+videojs.Player.prototype.reportUserActivity = function(){};
+videojs.Player.prototype.userActive = function(){};
+
+/**
+ * Native controls
+ */
+videojs.Player.prototype.usingNativeControls = function(){};
+
+/**
+ * Source selection
+ */
+videojs.Player.prototype.selectSource = function(){};
diff --git a/bower_components/video.js/src/js/player.js b/bower_components/video.js/src/js/player.js
new file mode 100644
index 0000000..1716297
--- /dev/null
+++ b/bower_components/video.js/src/js/player.js
@@ -0,0 +1,1750 @@
+/**
+ * An instance of the `vjs.Player` class is created when any of the Video.js setup methods are used to initialize a video.
+ *
+ * ```js
+ * var myPlayer = videojs('example_video_1');
+ * ```
+ *
+ * In the following example, the `data-setup` attribute tells the Video.js library to create a player instance when the library is ready.
+ *
+ * ```html
+ *
+ *
+ *
+ * ```
+ *
+ * After an instance has been created it can be accessed globally using `Video('example_video_1')`.
+ *
+ * @class
+ * @extends vjs.Component
+ */
+vjs.Player = vjs.Component.extend({
+
+ /**
+ * player's constructor function
+ *
+ * @constructs
+ * @method init
+ * @param {Element} tag The original video tag used for configuring options
+ * @param {Object=} options Player options
+ * @param {Function=} ready Ready callback function
+ */
+ init: function(tag, options, ready){
+ this.tag = tag; // Store the original tag used to set options
+
+ // Make sure tag ID exists
+ tag.id = tag.id || 'vjs_video_' + vjs.guid++;
+
+ // Store the tag attributes used to restore html5 element
+ this.tagAttributes = tag && vjs.getElementAttributes(tag);
+
+ // Set Options
+ // The options argument overrides options set in the video tag
+ // which overrides globally set options.
+ // This latter part coincides with the load order
+ // (tag must exist before Player)
+ options = vjs.obj.merge(this.getTagSettings(tag), options);
+
+ // Update Current Language
+ this.language_ = options['language'] || vjs.options['language'];
+
+ // Update Supported Languages
+ this.languages_ = options['languages'] || vjs.options['languages'];
+
+ // Cache for video property values.
+ this.cache_ = {};
+
+ // Set poster
+ this.poster_ = options['poster'] || '';
+
+ // Set controls
+ this.controls_ = !!options['controls'];
+ // Original tag settings stored in options
+ // now remove immediately so native controls don't flash.
+ // May be turned back on by HTML5 tech if nativeControlsForTouch is true
+ tag.controls = false;
+
+ // we don't want the player to report touch activity on itself
+ // see enableTouchActivity in Component
+ options.reportTouchActivity = false;
+
+ // Set isAudio based on whether or not an audio tag was used
+ this.isAudio(this.tag.nodeName.toLowerCase() === 'audio');
+
+ // Run base component initializing with new options.
+ // Builds the element through createEl()
+ // Inits and embeds any child components in opts
+ vjs.Component.call(this, this, options, ready);
+
+ // Update controls className. Can't do this when the controls are initially
+ // set because the element doesn't exist yet.
+ if (this.controls()) {
+ this.addClass('vjs-controls-enabled');
+ } else {
+ this.addClass('vjs-controls-disabled');
+ }
+
+ if (this.isAudio()) {
+ this.addClass('vjs-audio');
+ }
+
+ // TODO: Make this smarter. Toggle user state between touching/mousing
+ // using events, since devices can have both touch and mouse events.
+ // if (vjs.TOUCH_ENABLED) {
+ // this.addClass('vjs-touch-enabled');
+ // }
+
+ // Make player easily findable by ID
+ vjs.players[this.id_] = this;
+
+ if (options['plugins']) {
+ vjs.obj.each(options['plugins'], function(key, val){
+ this[key](val);
+ }, this);
+ }
+
+ this.listenForUserActivity();
+ }
+});
+
+/**
+ * The player's stored language code
+ *
+ * @type {String}
+ * @private
+ */
+vjs.Player.prototype.language_;
+
+/**
+ * The player's language code
+ * @param {String} languageCode The locale string
+ * @return {String} The locale string when getting
+ * @return {vjs.Player} self, when setting
+ */
+vjs.Player.prototype.language = function (languageCode) {
+ if (languageCode === undefined) {
+ return this.language_;
+ }
+
+ this.language_ = languageCode;
+ return this;
+};
+
+/**
+ * The player's stored language dictionary
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Player.prototype.languages_;
+
+vjs.Player.prototype.languages = function(){
+ return this.languages_;
+};
+
+/**
+ * Player instance options, surfaced using vjs.options
+ * vjs.options = vjs.Player.prototype.options_
+ * Make changes in vjs.options, not here.
+ * All options should use string keys so they avoid
+ * renaming by closure compiler
+ * @type {Object}
+ * @private
+ */
+vjs.Player.prototype.options_ = vjs.options;
+
+/**
+ * Destroys the video player and does any necessary cleanup
+ *
+ * myPlayer.dispose();
+ *
+ * This is especially helpful if you are dynamically adding and removing videos
+ * to/from the DOM.
+ */
+vjs.Player.prototype.dispose = function(){
+ this.trigger('dispose');
+ // prevent dispose from being called twice
+ this.off('dispose');
+
+ // Kill reference to this player
+ vjs.players[this.id_] = null;
+ if (this.tag && this.tag['player']) { this.tag['player'] = null; }
+ if (this.el_ && this.el_['player']) { this.el_['player'] = null; }
+
+ if (this.tech) { this.tech.dispose(); }
+
+ // Component dispose
+ vjs.Component.prototype.dispose.call(this);
+};
+
+vjs.Player.prototype.getTagSettings = function(tag){
+ var tagOptions,
+ dataSetup,
+ options = {
+ 'sources': [],
+ 'tracks': []
+ };
+
+ tagOptions = vjs.getElementAttributes(tag);
+ dataSetup = tagOptions['data-setup'];
+
+ // Check if data-setup attr exists.
+ if (dataSetup !== null){
+ // Parse options JSON
+ // If empty string, make it a parsable json object.
+ vjs.obj.merge(tagOptions, vjs.JSON.parse(dataSetup || '{}'));
+ }
+
+ vjs.obj.merge(options, tagOptions);
+
+ // Get tag children settings
+ if (tag.hasChildNodes()) {
+ var children, child, childName, i, j;
+
+ children = tag.childNodes;
+
+ for (i=0,j=children.length; i 0) {
+ techOptions['startTime'] = this.cache_.currentTime;
+ }
+
+ this.cache_.src = source.src;
+ }
+
+ // Initialize tech instance
+ this.tech = new window['videojs'][techName](this, techOptions);
+
+ this.tech.ready(techReady);
+};
+
+vjs.Player.prototype.unloadTech = function(){
+ this.isReady_ = false;
+
+ this.tech.dispose();
+
+ this.tech = false;
+};
+
+// There's many issues around changing the size of a Flash (or other plugin) object.
+// First is a plugin reload issue in Firefox that has been around for 11 years: https://bugzilla.mozilla.org/show_bug.cgi?id=90268
+// Then with the new fullscreen API, Mozilla and webkit browsers will reload the flash object after going to fullscreen.
+// To get around this, we're unloading the tech, caching source and currentTime values, and reloading the tech once the plugin is resized.
+// reloadTech: function(betweenFn){
+// vjs.log('unloadingTech')
+// this.unloadTech();
+// vjs.log('unloadedTech')
+// if (betweenFn) { betweenFn.call(); }
+// vjs.log('LoadingTech')
+// this.loadTech(this.techName, { src: this.cache_.src })
+// vjs.log('loadedTech')
+// },
+
+// /* Player event handlers (how the player reacts to certain events)
+// ================================================================================ */
+
+/**
+ * Fired when the user agent begins looking for media data
+ * @event loadstart
+ */
+vjs.Player.prototype.onLoadStart = function() {
+ // TODO: Update to use `emptied` event instead. See #1277.
+
+ this.removeClass('vjs-ended');
+
+ // reset the error state
+ this.error(null);
+
+ // If it's already playing we want to trigger a firstplay event now.
+ // The firstplay event relies on both the play and loadstart events
+ // which can happen in any order for a new source
+ if (!this.paused()) {
+ this.trigger('firstplay');
+ } else {
+ // reset the hasStarted state
+ this.hasStarted(false);
+ }
+};
+
+vjs.Player.prototype.hasStarted_ = false;
+
+vjs.Player.prototype.hasStarted = function(hasStarted){
+ if (hasStarted !== undefined) {
+ // only update if this is a new value
+ if (this.hasStarted_ !== hasStarted) {
+ this.hasStarted_ = hasStarted;
+ if (hasStarted) {
+ this.addClass('vjs-has-started');
+ // trigger the firstplay event if this newly has played
+ this.trigger('firstplay');
+ } else {
+ this.removeClass('vjs-has-started');
+ }
+ }
+ return this;
+ }
+ return this.hasStarted_;
+};
+
+/**
+ * Fired when the player has initial duration and dimension information
+ * @event loadedmetadata
+ */
+vjs.Player.prototype.onLoadedMetaData;
+
+/**
+ * Fired when the player has downloaded data at the current playback position
+ * @event loadeddata
+ */
+vjs.Player.prototype.onLoadedData;
+
+/**
+ * Fired when the player has finished downloading the source data
+ * @event loadedalldata
+ */
+vjs.Player.prototype.onLoadedAllData;
+
+/**
+ * Fired whenever the media begins or resumes playback
+ * @event play
+ */
+vjs.Player.prototype.onPlay = function(){
+ this.removeClass('vjs-ended');
+ this.removeClass('vjs-paused');
+ this.addClass('vjs-playing');
+
+ // hide the poster when the user hits play
+ // https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-play
+ this.hasStarted(true);
+};
+
+/**
+ * Fired whenever the media begins waiting
+ * @event waiting
+ */
+vjs.Player.prototype.onWaiting = function(){
+ this.addClass('vjs-waiting');
+};
+
+/**
+ * A handler for events that signal that waiting has ended
+ * which is not consistent between browsers. See #1351
+ * @private
+ */
+vjs.Player.prototype.onWaitEnd = function(){
+ this.removeClass('vjs-waiting');
+};
+
+/**
+ * Fired whenever the player is jumping to a new time
+ * @event seeking
+ */
+vjs.Player.prototype.onSeeking = function(){
+ this.addClass('vjs-seeking');
+};
+
+/**
+ * Fired when the player has finished jumping to a new time
+ * @event seeked
+ */
+vjs.Player.prototype.onSeeked = function(){
+ this.removeClass('vjs-seeking');
+};
+
+/**
+ * Fired the first time a video is played
+ *
+ * Not part of the HLS spec, and we're not sure if this is the best
+ * implementation yet, so use sparingly. If you don't have a reason to
+ * prevent playback, use `myPlayer.one('play');` instead.
+ *
+ * @event firstplay
+ */
+vjs.Player.prototype.onFirstPlay = function(){
+ //If the first starttime attribute is specified
+ //then we will start at the given offset in seconds
+ if(this.options_['starttime']){
+ this.currentTime(this.options_['starttime']);
+ }
+
+ this.addClass('vjs-has-started');
+};
+
+/**
+ * Fired whenever the media has been paused
+ * @event pause
+ */
+vjs.Player.prototype.onPause = function(){
+ this.removeClass('vjs-playing');
+ this.addClass('vjs-paused');
+};
+
+/**
+ * Fired when the current playback position has changed
+ *
+ * During playback this is fired every 15-250 milliseconds, depending on the
+ * playback technology in use.
+ * @event timeupdate
+ */
+vjs.Player.prototype.onTimeUpdate;
+
+/**
+ * Fired while the user agent is downloading media data
+ * @event progress
+ */
+vjs.Player.prototype.onProgress = function(){
+ // Add custom event for when source is finished downloading.
+ if (this.bufferedPercent() == 1) {
+ this.trigger('loadedalldata');
+ }
+};
+
+/**
+ * Fired when the end of the media resource is reached (currentTime == duration)
+ * @event ended
+ */
+vjs.Player.prototype.onEnded = function(){
+ this.addClass('vjs-ended');
+ if (this.options_['loop']) {
+ this.currentTime(0);
+ this.play();
+ } else if (!this.paused()) {
+ this.pause();
+ }
+};
+
+/**
+ * Fired when the duration of the media resource is first known or changed
+ * @event durationchange
+ */
+vjs.Player.prototype.onDurationChange = function(){
+ // Allows for caching value instead of asking player each time.
+ // We need to get the techGet response and check for a value so we don't
+ // accidentally cause the stack to blow up.
+ var duration = this.techGet('duration');
+ if (duration) {
+ if (duration < 0) {
+ duration = Infinity;
+ }
+ this.duration(duration);
+ // Determine if the stream is live and propagate styles down to UI.
+ if (duration === Infinity) {
+ this.addClass('vjs-live');
+ } else {
+ this.removeClass('vjs-live');
+ }
+ }
+};
+
+/**
+ * Fired when the volume changes
+ * @event volumechange
+ */
+vjs.Player.prototype.onVolumeChange;
+
+/**
+ * Fired when the player switches in or out of fullscreen mode
+ * @event fullscreenchange
+ */
+vjs.Player.prototype.onFullscreenChange = function() {
+ if (this.isFullscreen()) {
+ this.addClass('vjs-fullscreen');
+ } else {
+ this.removeClass('vjs-fullscreen');
+ }
+};
+
+/**
+ * Fired when an error occurs
+ * @event error
+ */
+vjs.Player.prototype.onError;
+
+// /* Player API
+// ================================================================================ */
+
+/**
+ * Object for cached values.
+ * @private
+ */
+vjs.Player.prototype.cache_;
+
+vjs.Player.prototype.getCache = function(){
+ return this.cache_;
+};
+
+// Pass values to the playback tech
+vjs.Player.prototype.techCall = function(method, arg){
+ // If it's not ready yet, call method when it is
+ if (this.tech && !this.tech.isReady_) {
+ this.tech.ready(function(){
+ this[method](arg);
+ });
+
+ // Otherwise call method now
+ } else {
+ try {
+ this.tech[method](arg);
+ } catch(e) {
+ vjs.log(e);
+ throw e;
+ }
+ }
+};
+
+// Get calls can't wait for the tech, and sometimes don't need to.
+vjs.Player.prototype.techGet = function(method){
+ if (this.tech && this.tech.isReady_) {
+
+ // Flash likes to die and reload when you hide or reposition it.
+ // In these cases the object methods go away and we get errors.
+ // When that happens we'll catch the errors and inform tech that it's not ready any more.
+ try {
+ return this.tech[method]();
+ } catch(e) {
+ // When building additional tech libs, an expected method may not be defined yet
+ if (this.tech[method] === undefined) {
+ vjs.log('Video.js: ' + method + ' method not defined for '+this.techName+' playback technology.', e);
+ } else {
+ // When a method isn't available on the object it throws a TypeError
+ if (e.name == 'TypeError') {
+ vjs.log('Video.js: ' + method + ' unavailable on '+this.techName+' playback technology element.', e);
+ this.tech.isReady_ = false;
+ } else {
+ vjs.log(e);
+ }
+ }
+ throw e;
+ }
+ }
+
+ return;
+};
+
+/**
+ * start media playback
+ *
+ * myPlayer.play();
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.play = function(){
+ this.techCall('play');
+ return this;
+};
+
+/**
+ * Pause the video playback
+ *
+ * myPlayer.pause();
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.pause = function(){
+ this.techCall('pause');
+ return this;
+};
+
+/**
+ * Check if the player is paused
+ *
+ * var isPaused = myPlayer.paused();
+ * var isPlaying = !myPlayer.paused();
+ *
+ * @return {Boolean} false if the media is currently playing, or true otherwise
+ */
+vjs.Player.prototype.paused = function(){
+ // The initial state of paused should be true (in Safari it's actually false)
+ return (this.techGet('paused') === false) ? false : true;
+};
+
+/**
+ * Get or set the current time (in seconds)
+ *
+ * // get
+ * var whereYouAt = myPlayer.currentTime();
+ *
+ * // set
+ * myPlayer.currentTime(120); // 2 minutes into the video
+ *
+ * @param {Number|String=} seconds The time to seek to
+ * @return {Number} The time in seconds, when not setting
+ * @return {vjs.Player} self, when the current time is set
+ */
+vjs.Player.prototype.currentTime = function(seconds){
+ if (seconds !== undefined) {
+
+ this.techCall('setCurrentTime', seconds);
+
+ return this;
+ }
+
+ // cache last currentTime and return. default to 0 seconds
+ //
+ // Caching the currentTime is meant to prevent a massive amount of reads on the tech's
+ // currentTime when scrubbing, but may not provide much performance benefit afterall.
+ // Should be tested. Also something has to read the actual current time or the cache will
+ // never get updated.
+ return this.cache_.currentTime = (this.techGet('currentTime') || 0);
+};
+
+/**
+ * Get the length in time of the video in seconds
+ *
+ * var lengthOfVideo = myPlayer.duration();
+ *
+ * **NOTE**: The video must have started loading before the duration can be
+ * known, and in the case of Flash, may not be known until the video starts
+ * playing.
+ *
+ * @return {Number} The duration of the video in seconds
+ */
+vjs.Player.prototype.duration = function(seconds){
+ if (seconds !== undefined) {
+
+ // cache the last set value for optimized scrubbing (esp. Flash)
+ this.cache_.duration = parseFloat(seconds);
+
+ return this;
+ }
+
+ if (this.cache_.duration === undefined) {
+ this.onDurationChange();
+ }
+
+ return this.cache_.duration || 0;
+};
+
+/**
+ * Calculates how much time is left.
+ *
+ * var timeLeft = myPlayer.remainingTime();
+ *
+ * Not a native video element function, but useful
+ * @return {Number} The time remaining in seconds
+ */
+vjs.Player.prototype.remainingTime = function(){
+ return this.duration() - this.currentTime();
+};
+
+// http://dev.w3.org/html5/spec/video.html#dom-media-buffered
+// Buffered returns a timerange object.
+// Kind of like an array of portions of the video that have been downloaded.
+
+/**
+ * Get a TimeRange object with the times of the video that have been downloaded
+ *
+ * If you just want the percent of the video that's been downloaded,
+ * use bufferedPercent.
+ *
+ * // Number of different ranges of time have been buffered. Usually 1.
+ * numberOfRanges = bufferedTimeRange.length,
+ *
+ * // Time in seconds when the first range starts. Usually 0.
+ * firstRangeStart = bufferedTimeRange.start(0),
+ *
+ * // Time in seconds when the first range ends
+ * firstRangeEnd = bufferedTimeRange.end(0),
+ *
+ * // Length in seconds of the first time range
+ * firstRangeLength = firstRangeEnd - firstRangeStart;
+ *
+ * @return {Object} A mock TimeRange object (following HTML spec)
+ */
+vjs.Player.prototype.buffered = function(){
+ var buffered = this.techGet('buffered');
+
+ if (!buffered || !buffered.length) {
+ buffered = vjs.createTimeRange(0,0);
+ }
+
+ return buffered;
+};
+
+/**
+ * Get the percent (as a decimal) of the video that's been downloaded
+ *
+ * var howMuchIsDownloaded = myPlayer.bufferedPercent();
+ *
+ * 0 means none, 1 means all.
+ * (This method isn't in the HTML5 spec, but it's very convenient)
+ *
+ * @return {Number} A decimal between 0 and 1 representing the percent
+ */
+vjs.Player.prototype.bufferedPercent = function(){
+ var duration = this.duration(),
+ buffered = this.buffered(),
+ bufferedDuration = 0,
+ start, end;
+
+ if (!duration) {
+ return 0;
+ }
+
+ for (var i=0; i duration) {
+ end = duration;
+ }
+
+ bufferedDuration += end - start;
+ }
+
+ return bufferedDuration / duration;
+};
+
+/**
+ * Get the ending time of the last buffered time range
+ *
+ * This is used in the progress bar to encapsulate all time ranges.
+ * @return {Number} The end of the last buffered time range
+ */
+vjs.Player.prototype.bufferedEnd = function(){
+ var buffered = this.buffered(),
+ duration = this.duration(),
+ end = buffered.end(buffered.length-1);
+
+ if (end > duration) {
+ end = duration;
+ }
+
+ return end;
+};
+
+/**
+ * Get or set the current volume of the media
+ *
+ * // get
+ * var howLoudIsIt = myPlayer.volume();
+ *
+ * // set
+ * myPlayer.volume(0.5); // Set volume to half
+ *
+ * 0 is off (muted), 1.0 is all the way up, 0.5 is half way.
+ *
+ * @param {Number} percentAsDecimal The new volume as a decimal percent
+ * @return {Number} The current volume, when getting
+ * @return {vjs.Player} self, when setting
+ */
+vjs.Player.prototype.volume = function(percentAsDecimal){
+ var vol;
+
+ if (percentAsDecimal !== undefined) {
+ vol = Math.max(0, Math.min(1, parseFloat(percentAsDecimal))); // Force value to between 0 and 1
+ this.cache_.volume = vol;
+ this.techCall('setVolume', vol);
+ vjs.setLocalStorage('volume', vol);
+ return this;
+ }
+
+ // Default to 1 when returning current volume.
+ vol = parseFloat(this.techGet('volume'));
+ return (isNaN(vol)) ? 1 : vol;
+};
+
+
+/**
+ * Get the current muted state, or turn mute on or off
+ *
+ * // get
+ * var isVolumeMuted = myPlayer.muted();
+ *
+ * // set
+ * myPlayer.muted(true); // mute the volume
+ *
+ * @param {Boolean=} muted True to mute, false to unmute
+ * @return {Boolean} True if mute is on, false if not, when getting
+ * @return {vjs.Player} self, when setting mute
+ */
+vjs.Player.prototype.muted = function(muted){
+ if (muted !== undefined) {
+ this.techCall('setMuted', muted);
+ return this;
+ }
+ return this.techGet('muted') || false; // Default to false
+};
+
+// Check if current tech can support native fullscreen
+// (e.g. with built in controls like iOS, so not our flash swf)
+vjs.Player.prototype.supportsFullScreen = function(){
+ return this.techGet('supportsFullScreen') || false;
+};
+
+/**
+ * is the player in fullscreen
+ * @type {Boolean}
+ * @private
+ */
+vjs.Player.prototype.isFullscreen_ = false;
+
+/**
+ * Check if the player is in fullscreen mode
+ *
+ * // get
+ * var fullscreenOrNot = myPlayer.isFullscreen();
+ *
+ * // set
+ * myPlayer.isFullscreen(true); // tell the player it's in fullscreen
+ *
+ * NOTE: As of the latest HTML5 spec, isFullscreen is no longer an official
+ * property and instead document.fullscreenElement is used. But isFullscreen is
+ * still a valuable property for internal player workings.
+ *
+ * @param {Boolean=} isFS Update the player's fullscreen state
+ * @return {Boolean} true if fullscreen, false if not
+ * @return {vjs.Player} self, when setting
+ */
+vjs.Player.prototype.isFullscreen = function(isFS){
+ if (isFS !== undefined) {
+ this.isFullscreen_ = !!isFS;
+ return this;
+ }
+ return this.isFullscreen_;
+};
+
+/**
+ * Old naming for isFullscreen()
+ * @deprecated for lowercase 's' version
+ */
+vjs.Player.prototype.isFullScreen = function(isFS){
+ vjs.log.warn('player.isFullScreen() has been deprecated, use player.isFullscreen() with a lowercase "s")');
+ return this.isFullscreen(isFS);
+};
+
+/**
+ * Increase the size of the video to full screen
+ *
+ * myPlayer.requestFullscreen();
+ *
+ * In some browsers, full screen is not supported natively, so it enters
+ * "full window mode", where the video fills the browser window.
+ * In browsers and devices that support native full screen, sometimes the
+ * browser's default controls will be shown, and not the Video.js custom skin.
+ * This includes most mobile devices (iOS, Android) and older versions of
+ * Safari.
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.requestFullscreen = function(){
+ var fsApi = vjs.browser.fullscreenAPI;
+
+ this.isFullscreen(true);
+
+ if (fsApi) {
+ // the browser supports going fullscreen at the element level so we can
+ // take the controls fullscreen as well as the video
+
+ // Trigger fullscreenchange event after change
+ // We have to specifically add this each time, and remove
+ // when canceling fullscreen. Otherwise if there's multiple
+ // players on a page, they would all be reacting to the same fullscreen
+ // events
+ vjs.on(document, fsApi['fullscreenchange'], vjs.bind(this, function(e){
+ this.isFullscreen(document[fsApi.fullscreenElement]);
+
+ // If cancelling fullscreen, remove event listener.
+ if (this.isFullscreen() === false) {
+ vjs.off(document, fsApi['fullscreenchange'], arguments.callee);
+ }
+
+ this.trigger('fullscreenchange');
+ }));
+
+ this.el_[fsApi.requestFullscreen]();
+
+ } else if (this.tech.supportsFullScreen()) {
+ // we can't take the video.js controls fullscreen but we can go fullscreen
+ // with native controls
+ this.techCall('enterFullScreen');
+ } else {
+ // fullscreen isn't supported so we'll just stretch the video element to
+ // fill the viewport
+ this.enterFullWindow();
+ this.trigger('fullscreenchange');
+ }
+
+ return this;
+};
+
+/**
+ * Old naming for requestFullscreen
+ * @deprecated for lower case 's' version
+ */
+vjs.Player.prototype.requestFullScreen = function(){
+ vjs.log.warn('player.requestFullScreen() has been deprecated, use player.requestFullscreen() with a lowercase "s")');
+ return this.requestFullscreen();
+};
+
+
+/**
+ * Return the video to its normal size after having been in full screen mode
+ *
+ * myPlayer.exitFullscreen();
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.exitFullscreen = function(){
+ var fsApi = vjs.browser.fullscreenAPI;
+ this.isFullscreen(false);
+
+ // Check for browser element fullscreen support
+ if (fsApi) {
+ document[fsApi.exitFullscreen]();
+ } else if (this.tech.supportsFullScreen()) {
+ this.techCall('exitFullScreen');
+ } else {
+ this.exitFullWindow();
+ this.trigger('fullscreenchange');
+ }
+
+ return this;
+};
+
+/**
+ * Old naming for exitFullscreen
+ * @deprecated for exitFullscreen
+ */
+vjs.Player.prototype.cancelFullScreen = function(){
+ vjs.log.warn('player.cancelFullScreen() has been deprecated, use player.exitFullscreen()');
+ return this.exitFullscreen();
+};
+
+// When fullscreen isn't supported we can stretch the video container to as wide as the browser will let us.
+vjs.Player.prototype.enterFullWindow = function(){
+ this.isFullWindow = true;
+
+ // Storing original doc overflow value to return to when fullscreen is off
+ this.docOrigOverflow = document.documentElement.style.overflow;
+
+ // Add listener for esc key to exit fullscreen
+ vjs.on(document, 'keydown', vjs.bind(this, this.fullWindowOnEscKey));
+
+ // Hide any scroll bars
+ document.documentElement.style.overflow = 'hidden';
+
+ // Apply fullscreen styles
+ vjs.addClass(document.body, 'vjs-full-window');
+
+ this.trigger('enterFullWindow');
+};
+vjs.Player.prototype.fullWindowOnEscKey = function(event){
+ if (event.keyCode === 27) {
+ if (this.isFullscreen() === true) {
+ this.exitFullscreen();
+ } else {
+ this.exitFullWindow();
+ }
+ }
+};
+
+vjs.Player.prototype.exitFullWindow = function(){
+ this.isFullWindow = false;
+ vjs.off(document, 'keydown', this.fullWindowOnEscKey);
+
+ // Unhide scroll bars.
+ document.documentElement.style.overflow = this.docOrigOverflow;
+
+ // Remove fullscreen styles
+ vjs.removeClass(document.body, 'vjs-full-window');
+
+ // Resize the box, controller, and poster to original sizes
+ // this.positionAll();
+ this.trigger('exitFullWindow');
+};
+
+vjs.Player.prototype.selectSource = function(sources){
+ // Loop through each playback technology in the options order
+ for (var i=0,j=this.options_['techOrder'];i 0) {
+ // In milliseconds, if no more activity has occurred the
+ // user will be considered inactive
+ inactivityTimeout = this.setTimeout(function () {
+ // Protect against the case where the inactivityTimeout can trigger just
+ // before the next user activity is picked up by the activityCheck loop
+ // causing a flicker
+ if (!this.userActivity_) {
+ this.userActive(false);
+ }
+ }, timeout);
+ }
+ }
+ }, 250);
+};
+
+/**
+ * Gets or sets the current playback rate.
+ * @param {Boolean} rate New playback rate to set.
+ * @return {Number} Returns the new playback rate when setting
+ * @return {Number} Returns the current playback rate when getting
+ */
+vjs.Player.prototype.playbackRate = function(rate) {
+ if (rate !== undefined) {
+ this.techCall('setPlaybackRate', rate);
+ return this;
+ }
+
+ if (this.tech && this.tech['featuresPlaybackRate']) {
+ return this.techGet('playbackRate');
+ } else {
+ return 1.0;
+ }
+
+};
+
+/**
+ * Store the current audio state
+ * @type {Boolean}
+ * @private
+ */
+vjs.Player.prototype.isAudio_ = false;
+
+/**
+ * Gets or sets the audio flag
+ *
+ * @param {Boolean} bool True signals that this is an audio player.
+ * @return {Boolean} Returns true if player is audio, false if not when getting
+ * @return {vjs.Player} Returns the player if setting
+ * @private
+ */
+vjs.Player.prototype.isAudio = function(bool) {
+ if (bool !== undefined) {
+ this.isAudio_ = !!bool;
+ return this;
+ }
+
+ return this.isAudio_;
+};
+
+/**
+ * Returns the current state of network activity for the element, from
+ * the codes in the list below.
+ * - NETWORK_EMPTY (numeric value 0)
+ * The element has not yet been initialised. All attributes are in
+ * their initial states.
+ * - NETWORK_IDLE (numeric value 1)
+ * The element's resource selection algorithm is active and has
+ * selected a resource, but it is not actually using the network at
+ * this time.
+ * - NETWORK_LOADING (numeric value 2)
+ * The user agent is actively trying to download data.
+ * - NETWORK_NO_SOURCE (numeric value 3)
+ * The element's resource selection algorithm is active, but it has
+ * not yet found a resource to use.
+ * @return {Number} the current network activity state
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#network-states
+ */
+vjs.Player.prototype.networkState = function(){
+ return this.techGet('networkState');
+};
+
+/**
+ * Returns a value that expresses the current state of the element
+ * with respect to rendering the current playback position, from the
+ * codes in the list below.
+ * - HAVE_NOTHING (numeric value 0)
+ * No information regarding the media resource is available.
+ * - HAVE_METADATA (numeric value 1)
+ * Enough of the resource has been obtained that the duration of the
+ * resource is available.
+ * - HAVE_CURRENT_DATA (numeric value 2)
+ * Data for the immediate current playback position is available.
+ * - HAVE_FUTURE_DATA (numeric value 3)
+ * Data for the immediate current playback position is available, as
+ * well as enough data for the user agent to advance the current
+ * playback position in the direction of playback.
+ * - HAVE_ENOUGH_DATA (numeric value 4)
+ * The user agent estimates that enough data is available for
+ * playback to proceed uninterrupted.
+ * @return {Number} the current playback rendering state
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-readystate
+ */
+vjs.Player.prototype.readyState = function(){
+ return this.techGet('readyState');
+};
+
+/**
+ * Text tracks are tracks of timed text events.
+ * Captions - text displayed over the video for the hearing impaired
+ * Subtitles - text displayed over the video for those who don't understand language in the video
+ * Chapters - text displayed in a menu allowing the user to jump to particular points (chapters) in the video
+ * Descriptions (not supported yet) - audio descriptions that are read back to the user by a screen reading device
+ */
+
+/**
+ * Get an array of associated text tracks. captions, subtitles, chapters, descriptions
+ * http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-texttracks
+ * @return {Array} Array of track objects
+ */
+vjs.Player.prototype.textTracks = function(){
+ // cannot use techGet directly because it checks to see whether the tech is ready.
+ // Flash is unlikely to be ready in time but textTracks should still work.
+ return this.tech && this.tech['textTracks']();
+};
+
+vjs.Player.prototype.remoteTextTracks = function() {
+ return this.tech && this.tech['remoteTextTracks']();
+};
+
+/**
+ * Add a text track
+ * In addition to the W3C settings we allow adding additional info through options.
+ * http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-addtexttrack
+ * @param {String} kind Captions, subtitles, chapters, descriptions, or metadata
+ * @param {String=} label Optional label
+ * @param {String=} language Optional language
+ */
+vjs.Player.prototype.addTextTrack = function(kind, label, language) {
+ return this.tech && this.tech['addTextTrack'](kind, label, language);
+};
+
+vjs.Player.prototype.addRemoteTextTrack = function(options) {
+ return this.tech && this.tech['addRemoteTextTrack'](options);
+};
+
+vjs.Player.prototype.removeRemoteTextTrack = function(track) {
+ this.tech && this.tech['removeRemoteTextTrack'](track);
+};
+
+// Methods to add support for
+// initialTime: function(){ return this.techCall('initialTime'); },
+// startOffsetTime: function(){ return this.techCall('startOffsetTime'); },
+// played: function(){ return this.techCall('played'); },
+// seekable: function(){ return this.techCall('seekable'); },
+// videoTracks: function(){ return this.techCall('videoTracks'); },
+// audioTracks: function(){ return this.techCall('audioTracks'); },
+// videoWidth: function(){ return this.techCall('videoWidth'); },
+// videoHeight: function(){ return this.techCall('videoHeight'); },
+// defaultPlaybackRate: function(){ return this.techCall('defaultPlaybackRate'); },
+// mediaGroup: function(){ return this.techCall('mediaGroup'); },
+// controller: function(){ return this.techCall('controller'); },
+// defaultMuted: function(){ return this.techCall('defaultMuted'); }
+
+// TODO
+// currentSrcList: the array of sources including other formats and bitrates
+// playList: array of source lists in order of playback
diff --git a/bower_components/video.js/src/js/plugins.js b/bower_components/video.js/src/js/plugins.js
new file mode 100644
index 0000000..f9df93d
--- /dev/null
+++ b/bower_components/video.js/src/js/plugins.js
@@ -0,0 +1,9 @@
+/**
+ * the method for registering a video.js plugin
+ *
+ * @param {String} name The name of the plugin
+ * @param {Function} init The function that is run when the player inits
+ */
+vjs.plugin = function(name, init){
+ vjs.Player.prototype[name] = init;
+};
diff --git a/bower_components/video.js/src/js/poster.js b/bower_components/video.js/src/js/poster.js
new file mode 100644
index 0000000..73da048
--- /dev/null
+++ b/bower_components/video.js/src/js/poster.js
@@ -0,0 +1,96 @@
+/* Poster Image
+================================================================================ */
+/**
+ * The component that handles showing the poster image.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.PosterImage = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.update();
+ player.on('posterchange', vjs.bind(this, this.update));
+ }
+});
+
+/**
+ * Clean up the poster image
+ */
+vjs.PosterImage.prototype.dispose = function(){
+ this.player().off('posterchange', this.update);
+ vjs.Button.prototype.dispose.call(this);
+};
+
+/**
+ * Create the poster image element
+ * @return {Element}
+ */
+vjs.PosterImage.prototype.createEl = function(){
+ var el = vjs.createEl('div', {
+ className: 'vjs-poster',
+
+ // Don't want poster to be tabbable.
+ tabIndex: -1
+ });
+
+ // To ensure the poster image resizes while maintaining its original aspect
+ // ratio, use a div with `background-size` when available. For browsers that
+ // do not support `background-size` (e.g. IE8), fall back on using a regular
+ // img element.
+ if (!vjs.BACKGROUND_SIZE_SUPPORTED) {
+ this.fallbackImg_ = vjs.createEl('img');
+ el.appendChild(this.fallbackImg_);
+ }
+
+ return el;
+};
+
+/**
+ * Event handler for updates to the player's poster source
+ */
+vjs.PosterImage.prototype.update = function(){
+ var url = this.player().poster();
+
+ this.setSrc(url);
+
+ // If there's no poster source we should display:none on this component
+ // so it's not still clickable or right-clickable
+ if (url) {
+ this.show();
+ } else {
+ this.hide();
+ }
+};
+
+/**
+ * Set the poster source depending on the display method
+ */
+vjs.PosterImage.prototype.setSrc = function(url){
+ var backgroundImage;
+
+ if (this.fallbackImg_) {
+ this.fallbackImg_.src = url;
+ } else {
+ backgroundImage = '';
+ // Any falsey values should stay as an empty string, otherwise
+ // this will throw an extra error
+ if (url) {
+ backgroundImage = 'url("' + url + '")';
+ }
+
+ this.el_.style.backgroundImage = backgroundImage;
+ }
+};
+
+/**
+ * Event handler for clicks on the poster image
+ */
+vjs.PosterImage.prototype.onClick = function(){
+ // We don't want a click to trigger playback when controls are disabled
+ // but CSS should be hiding the poster to prevent that from happening
+ this.player_.play();
+};
diff --git a/bower_components/video.js/src/js/setup.js b/bower_components/video.js/src/js/setup.js
new file mode 100644
index 0000000..24d8051
--- /dev/null
+++ b/bower_components/video.js/src/js/setup.js
@@ -0,0 +1,81 @@
+/**
+ * @fileoverview Functions for automatically setting up a player
+ * based on the data-setup attribute of the video tag
+ */
+
+// Automatically set up any tags that have a data-setup attribute
+vjs.autoSetup = function(){
+ var options, mediaEl, player, i, e;
+
+ // One day, when we stop supporting IE8, go back to this, but in the meantime...*hack hack hack*
+ // var vids = Array.prototype.slice.call(document.getElementsByTagName('video'));
+ // var audios = Array.prototype.slice.call(document.getElementsByTagName('audio'));
+ // var mediaEls = vids.concat(audios);
+
+ // Because IE8 doesn't support calling slice on a node list, we need to loop through each list of elements
+ // to build up a new, combined list of elements.
+ var vids = document.getElementsByTagName('video');
+ var audios = document.getElementsByTagName('audio');
+ var mediaEls = [];
+ if (vids && vids.length > 0) {
+ for(i=0, e=vids.length; i 0) {
+ for(i=0, e=audios.length; i 0) {
+
+ for (i=0,e=mediaEls.length; i'+this.defaultValue+''
+ }, props);
+
+ return vjs.Component.prototype.createEl.call(this, 'div', props);
+};
diff --git a/bower_components/video.js/src/js/tracks/text-track-controls.js b/bower_components/video.js/src/js/tracks/text-track-controls.js
new file mode 100644
index 0000000..790306a
--- /dev/null
+++ b/bower_components/video.js/src/js/tracks/text-track-controls.js
@@ -0,0 +1,579 @@
+(function() {
+'use strict';
+
+/* Text Track Display
+============================================================================= */
+// Global container for both subtitle and captions text. Simple div container.
+
+/**
+ * The component for displaying text track cues
+ *
+ * @constructor
+ */
+vjs.TextTrackDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.Component.call(this, player, options, ready);
+
+ player.on('loadstart', vjs.bind(this, this.toggleDisplay));
+
+ // This used to be called during player init, but was causing an error
+ // if a track should show by default and the display hadn't loaded yet.
+ // Should probably be moved to an external track loader when we support
+ // tracks that don't need a display.
+ player.ready(vjs.bind(this, function() {
+ if (player.tech && player.tech['featuresNativeTextTracks']) {
+ this.hide();
+ return;
+ }
+
+ var i, tracks, track;
+
+ player.on('fullscreenchange', vjs.bind(this, this.updateDisplay));
+
+ tracks = player.options_['tracks'] || [];
+ for (i = 0; i < tracks.length; i++) {
+ track = tracks[i];
+ this.player_.addRemoteTextTrack(track);
+ }
+ }));
+ }
+});
+
+vjs.TextTrackDisplay.prototype.toggleDisplay = function() {
+ if (this.player_.tech && this.player_.tech['featuresNativeTextTracks']) {
+ this.hide();
+ } else {
+ this.show();
+ }
+};
+
+vjs.TextTrackDisplay.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-text-track-display'
+ });
+};
+
+vjs.TextTrackDisplay.prototype.clearDisplay = function() {
+ if (typeof window['WebVTT'] === 'function') {
+ window['WebVTT']['processCues'](window, [], this.el_);
+ }
+};
+
+// Add cue HTML to display
+var constructColor = function(color, opacity) {
+ return 'rgba(' +
+ // color looks like "#f0e"
+ parseInt(color[1] + color[1], 16) + ',' +
+ parseInt(color[2] + color[2], 16) + ',' +
+ parseInt(color[3] + color[3], 16) + ',' +
+ opacity + ')';
+};
+var darkGray = '#222';
+var lightGray = '#ccc';
+var fontMap = {
+ monospace: 'monospace',
+ sansSerif: 'sans-serif',
+ serif: 'serif',
+ monospaceSansSerif: '"Andale Mono", "Lucida Console", monospace',
+ monospaceSerif: '"Courier New", monospace',
+ proportionalSansSerif: 'sans-serif',
+ proportionalSerif: 'serif',
+ casual: '"Comic Sans MS", Impact, fantasy',
+ script: '"Monotype Corsiva", cursive',
+ smallcaps: '"Andale Mono", "Lucida Console", monospace, sans-serif'
+};
+var tryUpdateStyle = function(el, style, rule) {
+ // some style changes will throw an error, particularly in IE8. Those should be noops.
+ try {
+ el.style[style] = rule;
+ } catch (e) {}
+};
+
+vjs.TextTrackDisplay.prototype.updateDisplay = function() {
+ var tracks = this.player_.textTracks(),
+ i = 0,
+ track;
+
+ this.clearDisplay();
+
+ if (!tracks) {
+ return;
+ }
+
+ for (; i < tracks.length; i++) {
+ track = tracks[i];
+ if (track['mode'] === 'showing') {
+ this.updateForTrack(track);
+ }
+ }
+};
+
+vjs.TextTrackDisplay.prototype.updateForTrack = function(track) {
+ if (typeof window['WebVTT'] !== 'function' || !track['activeCues']) {
+ return;
+ }
+
+ var i = 0,
+ property,
+ cueDiv,
+ overrides = this.player_['textTrackSettings'].getValues(),
+ fontSize,
+ cues = [];
+
+ for (; i < track['activeCues'].length; i++) {
+ cues.push(track['activeCues'][i]);
+ }
+
+ window['WebVTT']['processCues'](window, track['activeCues'], this.el_);
+
+ i = cues.length;
+ while (i--) {
+ cueDiv = cues[i].displayState;
+ if (overrides.color) {
+ cueDiv.firstChild.style.color = overrides.color;
+ }
+ if (overrides.textOpacity) {
+ tryUpdateStyle(cueDiv.firstChild,
+ 'color',
+ constructColor(overrides.color || '#fff',
+ overrides.textOpacity));
+ }
+ if (overrides.backgroundColor) {
+ cueDiv.firstChild.style.backgroundColor = overrides.backgroundColor;
+ }
+ if (overrides.backgroundOpacity) {
+ tryUpdateStyle(cueDiv.firstChild,
+ 'backgroundColor',
+ constructColor(overrides.backgroundColor || '#000',
+ overrides.backgroundOpacity));
+ }
+ if (overrides.windowColor) {
+ if (overrides.windowOpacity) {
+ tryUpdateStyle(cueDiv,
+ 'backgroundColor',
+ constructColor(overrides.windowColor, overrides.windowOpacity));
+ } else {
+ cueDiv.style.backgroundColor = overrides.windowColor;
+ }
+ }
+ if (overrides.edgeStyle) {
+ if (overrides.edgeStyle === 'dropshadow') {
+ cueDiv.firstChild.style.textShadow = '2px 2px 3px ' + darkGray + ', 2px 2px 4px ' + darkGray + ', 2px 2px 5px ' + darkGray;
+ } else if (overrides.edgeStyle === 'raised') {
+ cueDiv.firstChild.style.textShadow = '1px 1px ' + darkGray + ', 2px 2px ' + darkGray + ', 3px 3px ' + darkGray;
+ } else if (overrides.edgeStyle === 'depressed') {
+ cueDiv.firstChild.style.textShadow = '1px 1px ' + lightGray + ', 0 1px ' + lightGray + ', -1px -1px ' + darkGray + ', 0 -1px ' + darkGray;
+ } else if (overrides.edgeStyle === 'uniform') {
+ cueDiv.firstChild.style.textShadow = '0 0 4px ' + darkGray + ', 0 0 4px ' + darkGray + ', 0 0 4px ' + darkGray + ', 0 0 4px ' + darkGray;
+ }
+ }
+ if (overrides.fontPercent && overrides.fontPercent !== 1) {
+ fontSize = window.parseFloat(cueDiv.style.fontSize);
+ cueDiv.style.fontSize = (fontSize * overrides.fontPercent) + 'px';
+ cueDiv.style.height = 'auto';
+ cueDiv.style.top = 'auto';
+ cueDiv.style.bottom = '2px';
+ }
+ if (overrides.fontFamily && overrides.fontFamily !== 'default') {
+ if (overrides.fontFamily === 'small-caps') {
+ cueDiv.firstChild.style.fontVariant = 'small-caps';
+ } else {
+ cueDiv.firstChild.style.fontFamily = fontMap[overrides.fontFamily];
+ }
+ }
+ }
+};
+
+
+/**
+ * The specific menu item type for selecting a language within a text track kind
+ *
+ * @constructor
+ */
+vjs.TextTrackMenuItem = vjs.MenuItem.extend({
+ /** @constructor */
+ init: function(player, options){
+ var track = this.track = options['track'],
+ tracks = player.textTracks(),
+ changeHandler,
+ event;
+
+ if (tracks) {
+ changeHandler = vjs.bind(this, function() {
+ var selected = this.track['mode'] === 'showing',
+ track,
+ i,
+ l;
+
+ if (this instanceof vjs.OffTextTrackMenuItem) {
+ selected = true;
+
+ i = 0,
+ l = tracks.length;
+
+ for (; i < l; i++) {
+ track = tracks[i];
+ if (track['kind'] === this.track['kind'] && track['mode'] === 'showing') {
+ selected = false;
+ break;
+ }
+ }
+ }
+
+ this.selected(selected);
+ });
+ tracks.addEventListener('change', changeHandler);
+ player.on('dispose', function() {
+ tracks.removeEventListener('change', changeHandler);
+ });
+ }
+
+ // Modify options for parent MenuItem class's init.
+ options['label'] = track['label'] || track['language'] || 'Unknown';
+ options['selected'] = track['default'] || track['mode'] === 'showing';
+ vjs.MenuItem.call(this, player, options);
+
+ // iOS7 doesn't dispatch change events to TextTrackLists when an
+ // associated track's mode changes. Without something like
+ // Object.observe() (also not present on iOS7), it's not
+ // possible to detect changes to the mode attribute and polyfill
+ // the change event. As a poor substitute, we manually dispatch
+ // change events whenever the controls modify the mode.
+ if (tracks && tracks.onchange === undefined) {
+ this.on(['tap', 'click'], function() {
+ if (typeof window.Event !== 'object') {
+ // Android 2.3 throws an Illegal Constructor error for window.Event
+ try {
+ event = new window.Event('change');
+ } catch(err){}
+ }
+
+ if (!event) {
+ event = document.createEvent('Event');
+ event.initEvent('change', true, true);
+ }
+
+ tracks.dispatchEvent(event);
+ });
+ }
+ }
+});
+
+vjs.TextTrackMenuItem.prototype.onClick = function(){
+ var kind = this.track['kind'],
+ tracks = this.player_.textTracks(),
+ mode,
+ track,
+ i = 0;
+
+ vjs.MenuItem.prototype.onClick.call(this);
+
+ if (!tracks) {
+ return;
+ }
+
+ for (; i < tracks.length; i++) {
+ track = tracks[i];
+
+ if (track['kind'] !== kind) {
+ continue;
+ }
+
+ if (track === this.track) {
+ track['mode'] = 'showing';
+ } else {
+ track['mode'] = 'disabled';
+ }
+ }
+};
+
+/**
+ * A special menu item for turning of a specific type of text track
+ *
+ * @constructor
+ */
+vjs.OffTextTrackMenuItem = vjs.TextTrackMenuItem.extend({
+ /** @constructor */
+ init: function(player, options){
+ // Create pseudo track info
+ // Requires options['kind']
+ options['track'] = {
+ 'kind': options['kind'],
+ 'player': player,
+ 'label': options['kind'] + ' off',
+ 'default': false,
+ 'mode': 'disabled'
+ };
+ vjs.TextTrackMenuItem.call(this, player, options);
+ this.selected(true);
+ }
+});
+
+vjs.CaptionSettingsMenuItem = vjs.TextTrackMenuItem.extend({
+ init: function(player, options) {
+ options['track'] = {
+ 'kind': options['kind'],
+ 'player': player,
+ 'label': options['kind'] + ' settings',
+ 'default': false,
+ mode: 'disabled'
+ };
+
+ vjs.TextTrackMenuItem.call(this, player, options);
+ this.addClass('vjs-texttrack-settings');
+ }
+});
+
+vjs.CaptionSettingsMenuItem.prototype.onClick = function() {
+ this.player().getChild('textTrackSettings').show();
+};
+
+/**
+ * The base class for buttons that toggle specific text track types (e.g. subtitles)
+ *
+ * @constructor
+ */
+vjs.TextTrackButton = vjs.MenuButton.extend({
+ /** @constructor */
+ init: function(player, options){
+ var tracks, updateHandler;
+
+ vjs.MenuButton.call(this, player, options);
+
+ tracks = this.player_.textTracks();
+
+ if (this.items.length <= 1) {
+ this.hide();
+ }
+
+ if (!tracks) {
+ return;
+ }
+
+ updateHandler = vjs.bind(this, this.update);
+ tracks.addEventListener('removetrack', updateHandler);
+ tracks.addEventListener('addtrack', updateHandler);
+
+ this.player_.on('dispose', function() {
+ tracks.removeEventListener('removetrack', updateHandler);
+ tracks.removeEventListener('addtrack', updateHandler);
+ });
+ }
+});
+
+// Create a menu item for each text track
+vjs.TextTrackButton.prototype.createItems = function(){
+ var items = [], track, tracks;
+
+ if (this instanceof vjs.CaptionsButton && !(this.player().tech && this.player().tech['featuresNativeTextTracks'])) {
+ items.push(new vjs.CaptionSettingsMenuItem(this.player_, { 'kind': this.kind_ }));
+ }
+
+ // Add an OFF menu item to turn all tracks off
+ items.push(new vjs.OffTextTrackMenuItem(this.player_, { 'kind': this.kind_ }));
+
+ tracks = this.player_.textTracks();
+
+ if (!tracks) {
+ return items;
+ }
+
+ for (var i = 0; i < tracks.length; i++) {
+ track = tracks[i];
+
+ // only add tracks that are of the appropriate kind and have a label
+ if (track['kind'] === this.kind_) {
+ items.push(new vjs.TextTrackMenuItem(this.player_, {
+ 'track': track
+ }));
+ }
+ }
+
+ return items;
+};
+
+/**
+ * The button component for toggling and selecting captions
+ *
+ * @constructor
+ */
+vjs.CaptionsButton = vjs.TextTrackButton.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.TextTrackButton.call(this, player, options, ready);
+ this.el_.setAttribute('aria-label','Captions Menu');
+ }
+});
+vjs.CaptionsButton.prototype.kind_ = 'captions';
+vjs.CaptionsButton.prototype.buttonText = 'Captions';
+vjs.CaptionsButton.prototype.className = 'vjs-captions-button';
+
+vjs.CaptionsButton.prototype.update = function() {
+ var threshold = 2;
+ vjs.TextTrackButton.prototype.update.call(this);
+
+ // if native, then threshold is 1 because no settings button
+ if (this.player().tech && this.player().tech['featuresNativeTextTracks']) {
+ threshold = 1;
+ }
+
+ if (this.items && this.items.length > threshold) {
+ this.show();
+ } else {
+ this.hide();
+ }
+};
+
+/**
+ * The button component for toggling and selecting subtitles
+ *
+ * @constructor
+ */
+vjs.SubtitlesButton = vjs.TextTrackButton.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.TextTrackButton.call(this, player, options, ready);
+ this.el_.setAttribute('aria-label','Subtitles Menu');
+ }
+});
+vjs.SubtitlesButton.prototype.kind_ = 'subtitles';
+vjs.SubtitlesButton.prototype.buttonText = 'Subtitles';
+vjs.SubtitlesButton.prototype.className = 'vjs-subtitles-button';
+
+// Chapters act much differently than other text tracks
+// Cues are navigation vs. other tracks of alternative languages
+/**
+ * The button component for toggling and selecting chapters
+ *
+ * @constructor
+ */
+vjs.ChaptersButton = vjs.TextTrackButton.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.TextTrackButton.call(this, player, options, ready);
+ this.el_.setAttribute('aria-label','Chapters Menu');
+ }
+});
+vjs.ChaptersButton.prototype.kind_ = 'chapters';
+vjs.ChaptersButton.prototype.buttonText = 'Chapters';
+vjs.ChaptersButton.prototype.className = 'vjs-chapters-button';
+
+// Create a menu item for each text track
+vjs.ChaptersButton.prototype.createItems = function(){
+ var items = [], track, tracks;
+
+ tracks = this.player_.textTracks();
+
+ if (!tracks) {
+ return items;
+ }
+
+ for (var i = 0; i < tracks.length; i++) {
+ track = tracks[i];
+ if (track['kind'] === this.kind_) {
+ items.push(new vjs.TextTrackMenuItem(this.player_, {
+ 'track': track
+ }));
+ }
+ }
+
+ return items;
+};
+
+vjs.ChaptersButton.prototype.createMenu = function(){
+ var tracks = this.player_.textTracks() || [],
+ i = 0,
+ l = tracks.length,
+ track, chaptersTrack,
+ items = this.items = [];
+
+ for (; i < l; i++) {
+ track = tracks[i];
+ if (track['kind'] == this.kind_) {
+ if (!track.cues) {
+ track['mode'] = 'hidden';
+ /* jshint loopfunc:true */
+ // TODO see if we can figure out a better way of doing this https://github.com/videojs/video.js/issues/1864
+ window.setTimeout(vjs.bind(this, function() {
+ this.createMenu();
+ }), 100);
+ /* jshint loopfunc:false */
+ } else {
+ chaptersTrack = track;
+ break;
+ }
+ }
+ }
+
+ var menu = this.menu;
+ if (menu === undefined) {
+ menu = new vjs.Menu(this.player_);
+ menu.contentEl().appendChild(vjs.createEl('li', {
+ className: 'vjs-menu-title',
+ innerHTML: vjs.capitalize(this.kind_),
+ tabindex: -1
+ }));
+ }
+
+ if (chaptersTrack) {
+ var cues = chaptersTrack['cues'], cue, mi;
+ i = 0;
+ l = cues.length;
+
+ for (; i < l; i++) {
+ cue = cues[i];
+
+ mi = new vjs.ChaptersTrackMenuItem(this.player_, {
+ 'track': chaptersTrack,
+ 'cue': cue
+ });
+
+ items.push(mi);
+
+ menu.addChild(mi);
+ }
+ this.addChild(menu);
+ }
+
+ if (this.items.length > 0) {
+ this.show();
+ }
+
+ return menu;
+};
+
+
+/**
+ * @constructor
+ */
+vjs.ChaptersTrackMenuItem = vjs.MenuItem.extend({
+ /** @constructor */
+ init: function(player, options){
+ var track = this.track = options['track'],
+ cue = this.cue = options['cue'],
+ currentTime = player.currentTime();
+
+ // Modify options for parent MenuItem class's init.
+ options['label'] = cue.text;
+ options['selected'] = (cue['startTime'] <= currentTime && currentTime < cue['endTime']);
+ vjs.MenuItem.call(this, player, options);
+
+ track.addEventListener('cuechange', vjs.bind(this, this.update));
+ }
+});
+
+vjs.ChaptersTrackMenuItem.prototype.onClick = function(){
+ vjs.MenuItem.prototype.onClick.call(this);
+ this.player_.currentTime(this.cue.startTime);
+ this.update(this.cue.startTime);
+};
+
+vjs.ChaptersTrackMenuItem.prototype.update = function(){
+ var cue = this.cue,
+ currentTime = this.player_.currentTime();
+
+ // vjs.log(currentTime, cue.startTime);
+ this.selected(cue['startTime'] <= currentTime && currentTime < cue['endTime']);
+};
+})();
diff --git a/bower_components/video.js/src/js/tracks/text-track-cue-list.js b/bower_components/video.js/src/js/tracks/text-track-cue-list.js
new file mode 100644
index 0000000..7fd2653
--- /dev/null
+++ b/bower_components/video.js/src/js/tracks/text-track-cue-list.js
@@ -0,0 +1,78 @@
+/*
+ * https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackcuelist
+ *
+ * interface TextTrackCueList {
+ * readonly attribute unsigned long length;
+ * getter TextTrackCue (unsigned long index);
+ * TextTrackCue? getCueById(DOMString id);
+ * };
+ */
+
+vjs.TextTrackCueList = function(cues) {
+ var list = this,
+ prop;
+
+ if (vjs.IS_IE8) {
+ list = document.createElement('custom');
+
+ for (prop in vjs.TextTrackCueList.prototype) {
+ list[prop] = vjs.TextTrackCueList.prototype[prop];
+ }
+ }
+
+ vjs.TextTrackCueList.prototype.setCues_.call(list, cues);
+
+ Object.defineProperty(list, 'length', {
+ get: function() {
+ return this.length_;
+ }
+ });
+
+ if (vjs.IS_IE8) {
+ return list;
+ }
+};
+
+vjs.TextTrackCueList.prototype.setCues_ = function(cues) {
+ var oldLength = this.length || 0,
+ i = 0,
+ l = cues.length,
+ defineProp;
+
+ this.cues_ = cues;
+ this.length_ = cues.length;
+
+ defineProp = function(i) {
+ if (!(''+i in this)) {
+ Object.defineProperty(this, '' + i, {
+ get: function() {
+ return this.cues_[i];
+ }
+ });
+ }
+ };
+
+ if (oldLength < l) {
+ i = oldLength;
+ for(; i < l; i++) {
+ defineProp.call(this, i);
+ }
+ }
+};
+
+vjs.TextTrackCueList.prototype.getCueById = function(id) {
+ var i = 0,
+ l = this.length,
+ result = null,
+ cue;
+
+ for (; i < l; i++) {
+ cue = this[i];
+ if (cue.id === id) {
+ result = cue;
+ break;
+ }
+ }
+
+ return result;
+};
diff --git a/bower_components/video.js/src/js/tracks/text-track-enums.js b/bower_components/video.js/src/js/tracks/text-track-enums.js
new file mode 100644
index 0000000..b718595
--- /dev/null
+++ b/bower_components/video.js/src/js/tracks/text-track-enums.js
@@ -0,0 +1,23 @@
+/*
+ * https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackmode
+ *
+ * enum TextTrackMode { "disabled", "hidden", "showing" };
+ */
+vjs.TextTrackMode = {
+ 'disabled': 'disabled',
+ 'hidden': 'hidden',
+ 'showing': 'showing'
+};
+
+/*
+ * https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackkind
+ *
+ * enum TextTrackKind { "subtitles", "captions", "descriptions", "chapters", "metadata" };
+ */
+vjs.TextTrackKind = {
+ 'subtitles': 'subtitles',
+ 'captions': 'captions',
+ 'descriptions': 'descriptions',
+ 'chapters': 'chapters',
+ 'metadata': 'metadata'
+};
diff --git a/bower_components/video.js/src/js/tracks/text-track-list.js b/bower_components/video.js/src/js/tracks/text-track-list.js
new file mode 100644
index 0000000..8c6c6ac
--- /dev/null
+++ b/bower_components/video.js/src/js/tracks/text-track-list.js
@@ -0,0 +1,124 @@
+/*
+ * https://html.spec.whatwg.org/multipage/embedded-content.html#texttracklist
+ *
+ * interface TextTrackList : EventTarget {
+ * readonly attribute unsigned long length;
+ * getter TextTrack (unsigned long index);
+ * TextTrack? getTrackById(DOMString id);
+ *
+ * attribute EventHandler onchange;
+ * attribute EventHandler onaddtrack;
+ * attribute EventHandler onremovetrack;
+ * };
+ */
+vjs.TextTrackList = function(tracks) {
+ var list = this,
+ prop,
+ i = 0;
+
+ if (vjs.IS_IE8) {
+ list = document.createElement('custom');
+
+ for (prop in vjs.TextTrackList.prototype) {
+ list[prop] = vjs.TextTrackList.prototype[prop];
+ }
+ }
+
+ tracks = tracks || [];
+ list.tracks_ = [];
+
+ Object.defineProperty(list, 'length', {
+ get: function() {
+ return this.tracks_.length;
+ }
+ });
+
+ for (; i < tracks.length; i++) {
+ list.addTrack_(tracks[i]);
+ }
+
+ if (vjs.IS_IE8) {
+ return list;
+ }
+};
+
+vjs.TextTrackList.prototype = vjs.obj.create(vjs.EventEmitter.prototype);
+vjs.TextTrackList.prototype.constructor = vjs.TextTrackList;
+
+/*
+ * change - One or more tracks in the track list have been enabled or disabled.
+ * addtrack - A track has been added to the track list.
+ * removetrack - A track has been removed from the track list.
+*/
+vjs.TextTrackList.prototype.allowedEvents_ = {
+ 'change': 'change',
+ 'addtrack': 'addtrack',
+ 'removetrack': 'removetrack'
+};
+
+// emulate attribute EventHandler support to allow for feature detection
+(function() {
+ var event;
+
+ for (event in vjs.TextTrackList.prototype.allowedEvents_) {
+ vjs.TextTrackList.prototype['on' + event] = null;
+ }
+})();
+
+vjs.TextTrackList.prototype.addTrack_ = function(track) {
+ var index = this.tracks_.length;
+ if (!(''+index in this)) {
+ Object.defineProperty(this, index, {
+ get: function() {
+ return this.tracks_[index];
+ }
+ });
+ }
+
+ track.addEventListener('modechange', vjs.bind(this, function() {
+ this.trigger('change');
+ }));
+ this.tracks_.push(track);
+
+ this.trigger({
+ type: 'addtrack',
+ track: track
+ });
+};
+
+vjs.TextTrackList.prototype.removeTrack_ = function(rtrack) {
+ var i = 0,
+ l = this.length,
+ result = null,
+ track;
+
+ for (; i < l; i++) {
+ track = this[i];
+ if (track === rtrack) {
+ this.tracks_.splice(i, 1);
+ break;
+ }
+ }
+
+ this.trigger({
+ type: 'removetrack',
+ track: rtrack
+ });
+};
+
+vjs.TextTrackList.prototype.getTrackById = function(id) {
+ var i = 0,
+ l = this.length,
+ result = null,
+ track;
+
+ for (; i < l; i++) {
+ track = this[i];
+ if (track.id === id) {
+ result = track;
+ break;
+ }
+ }
+
+ return result;
+};
diff --git a/bower_components/video.js/src/js/tracks/text-track-settings.js b/bower_components/video.js/src/js/tracks/text-track-settings.js
new file mode 100644
index 0000000..32c5b99
--- /dev/null
+++ b/bower_components/video.js/src/js/tracks/text-track-settings.js
@@ -0,0 +1,284 @@
+(function() {
+ 'use strict';
+
+ vjs.TextTrackSettings = vjs.Component.extend({
+ init: function(player, options) {
+ vjs.Component.call(this, player, options);
+ this.hide();
+
+ vjs.on(this.el().querySelector('.vjs-done-button'), 'click', vjs.bind(this, function() {
+ this.saveSettings();
+ this.hide();
+ }));
+
+ vjs.on(this.el().querySelector('.vjs-default-button'), 'click', vjs.bind(this, function() {
+ this.el().querySelector('.vjs-fg-color > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-bg-color > select').selectedIndex = 0;
+ this.el().querySelector('.window-color > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-text-opacity > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-bg-opacity > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-window-opacity > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-edge-style select').selectedIndex = 0;
+ this.el().querySelector('.vjs-font-family select').selectedIndex = 0;
+ this.el().querySelector('.vjs-font-percent select').selectedIndex = 2;
+ this.updateDisplay();
+ }));
+
+ vjs.on(this.el().querySelector('.vjs-fg-color > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-bg-color > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.window-color > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-text-opacity > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-bg-opacity > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-window-opacity > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-font-percent select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-edge-style select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-font-family select'), 'change', vjs.bind(this, this.updateDisplay));
+
+ if (player.options()['persistTextTrackSettings']) {
+ this.restoreSettings();
+ }
+ }
+ });
+
+ vjs.TextTrackSettings.prototype.createEl = function() {
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-caption-settings vjs-modal-overlay',
+ innerHTML: captionOptionsMenuTemplate()
+ });
+ };
+
+ vjs.TextTrackSettings.prototype.getValues = function() {
+ var el, bgOpacity, textOpacity, windowOpacity, textEdge, fontFamily, fgColor, bgColor, windowColor, result, name, fontPercent;
+
+ el = this.el();
+
+ textEdge = getSelectedOptionValue(el.querySelector('.vjs-edge-style select'));
+ fontFamily = getSelectedOptionValue(el.querySelector('.vjs-font-family select'));
+ fgColor = getSelectedOptionValue(el.querySelector('.vjs-fg-color > select'));
+ textOpacity = getSelectedOptionValue(el.querySelector('.vjs-text-opacity > select'));
+ bgColor = getSelectedOptionValue(el.querySelector('.vjs-bg-color > select'));
+ bgOpacity = getSelectedOptionValue(el.querySelector('.vjs-bg-opacity > select'));
+ windowColor = getSelectedOptionValue(el.querySelector('.window-color > select'));
+ windowOpacity = getSelectedOptionValue(el.querySelector('.vjs-window-opacity > select'));
+ fontPercent = window['parseFloat'](getSelectedOptionValue(el.querySelector('.vjs-font-percent > select')));
+
+ result = {
+ 'backgroundOpacity': bgOpacity,
+ 'textOpacity': textOpacity,
+ 'windowOpacity': windowOpacity,
+ 'edgeStyle': textEdge,
+ 'fontFamily': fontFamily,
+ 'color': fgColor,
+ 'backgroundColor': bgColor,
+ 'windowColor': windowColor,
+ 'fontPercent': fontPercent
+ };
+ for (name in result) {
+ if (result[name] === '' || result[name] === 'none' || (name === 'fontPercent' && result[name] === 1.00)) {
+ delete result[name];
+ }
+ }
+ return result;
+ };
+
+ vjs.TextTrackSettings.prototype.setValues = function(values) {
+ var el = this.el(), fontPercent;
+
+ setSelectedOption(el.querySelector('.vjs-edge-style select'), values.edgeStyle);
+ setSelectedOption(el.querySelector('.vjs-font-family select'), values.fontFamily);
+ setSelectedOption(el.querySelector('.vjs-fg-color > select'), values.color);
+ setSelectedOption(el.querySelector('.vjs-text-opacity > select'), values.textOpacity);
+ setSelectedOption(el.querySelector('.vjs-bg-color > select'), values.backgroundColor);
+ setSelectedOption(el.querySelector('.vjs-bg-opacity > select'), values.backgroundOpacity);
+ setSelectedOption(el.querySelector('.window-color > select'), values.windowColor);
+ setSelectedOption(el.querySelector('.vjs-window-opacity > select'), values.windowOpacity);
+
+ fontPercent = values.fontPercent;
+
+ if (fontPercent) {
+ fontPercent = fontPercent.toFixed(2);
+ }
+
+ setSelectedOption(el.querySelector('.vjs-font-percent > select'), fontPercent);
+ };
+
+ vjs.TextTrackSettings.prototype.restoreSettings = function() {
+ var values;
+ try {
+ values = JSON.parse(window.localStorage.getItem('vjs-text-track-settings'));
+ } catch (e) {}
+
+ if (values) {
+ this.setValues(values);
+ }
+ };
+
+ vjs.TextTrackSettings.prototype.saveSettings = function() {
+ var values;
+
+ if (!this.player_.options()['persistTextTrackSettings']) {
+ return;
+ }
+
+ values = this.getValues();
+ try {
+ if (!vjs.isEmpty(values)) {
+ window.localStorage.setItem('vjs-text-track-settings', JSON.stringify(values));
+ } else {
+ window.localStorage.removeItem('vjs-text-track-settings');
+ }
+ } catch (e) {}
+ };
+
+ vjs.TextTrackSettings.prototype.updateDisplay = function() {
+ var ttDisplay = this.player_.getChild('textTrackDisplay');
+ if (ttDisplay) {
+ ttDisplay.updateDisplay();
+ }
+ };
+
+ function getSelectedOptionValue(target) {
+ var selectedOption;
+ // not all browsers support selectedOptions, so, fallback to options
+ if (target.selectedOptions) {
+ selectedOption = target.selectedOptions[0];
+ } else if (target.options) {
+ selectedOption = target.options[target.options.selectedIndex];
+ }
+
+ return selectedOption.value;
+ }
+
+ function setSelectedOption(target, value) {
+ var i, option;
+
+ if (!value) {
+ return;
+ }
+
+ for (i = 0; i < target.options.length; i++) {
+ option = target.options[i];
+ if (option.value === value) {
+ break;
+ }
+ }
+
+ target.selectedIndex = i;
+ }
+
+ function captionOptionsMenuTemplate() {
+ return '' +
+ '
' +
+ '
' +
+ 'Foreground ' +
+ '' +
+ '--- ' +
+ 'White ' +
+ 'Black ' +
+ 'Red ' +
+ 'Green ' +
+ 'Blue ' +
+ 'Yellow ' +
+ 'Magenta ' +
+ 'Cyan ' +
+ ' ' +
+ '' +
+ '' +
+ '--- ' +
+ 'Opaque ' +
+ 'Semi-Opaque ' +
+ ' ' +
+ ' ' +
+ '
' + // vjs-fg-color
+ '
' +
+ 'Background ' +
+ '' +
+ '--- ' +
+ 'White ' +
+ 'Black ' +
+ 'Red ' +
+ 'Green ' +
+ 'Blue ' +
+ 'Yellow ' +
+ 'Magenta ' +
+ 'Cyan ' +
+ ' ' +
+ '' +
+ '' +
+ '--- ' +
+ 'Opaque ' +
+ 'Semi-Transparent ' +
+ 'Transparent ' +
+ ' ' +
+ ' ' +
+ '
' + // vjs-bg-color
+ '
' +
+ 'Window ' +
+ '' +
+ '--- ' +
+ 'White ' +
+ 'Black ' +
+ 'Red ' +
+ 'Green ' +
+ 'Blue ' +
+ 'Yellow ' +
+ 'Magenta ' +
+ 'Cyan ' +
+ ' ' +
+ '' +
+ '' +
+ '--- ' +
+ 'Opaque ' +
+ 'Semi-Transparent ' +
+ 'Transparent ' +
+ ' ' +
+ ' ' +
+ '
' + // vjs-window-color
+ '
' + // vjs-tracksettings
+ '
' +
+ '
' +
+ 'Font Size ' +
+ '' +
+ '50% ' +
+ '75% ' +
+ '100% ' +
+ '125% ' +
+ '150% ' +
+ '175% ' +
+ '200% ' +
+ '300% ' +
+ '400% ' +
+ ' ' +
+ '
' + // vjs-font-percent
+ '
' +
+ 'Text Edge Style ' +
+ '' +
+ 'None ' +
+ 'Raised ' +
+ 'Depressed ' +
+ 'Uniform ' +
+ 'Dropshadow ' +
+ ' ' +
+ '
' + // vjs-edge-style
+ '
' +
+ 'Font Family ' +
+ '' +
+ 'Default ' +
+ 'Monospace Serif ' +
+ 'Proportional Serif ' +
+ 'Monospace Sans-Serif ' +
+ 'Proportional Sans-Serif ' +
+ 'Casual ' +
+ 'Script ' +
+ 'Small Caps ' +
+ ' ' +
+ '
' + // vjs-font-family
+ '
' +
+ '
' +
+ '' +
+ 'Defaults ' +
+ 'Done ' +
+ '
';
+ }
+
+})();
diff --git a/bower_components/video.js/src/js/tracks/text-track.js b/bower_components/video.js/src/js/tracks/text-track.js
new file mode 100644
index 0000000..40d10a2
--- /dev/null
+++ b/bower_components/video.js/src/js/tracks/text-track.js
@@ -0,0 +1,305 @@
+(function() {
+/*
+ * https://html.spec.whatwg.org/multipage/embedded-content.html#texttrack
+ *
+ * interface TextTrack : EventTarget {
+ * readonly attribute TextTrackKind kind;
+ * readonly attribute DOMString label;
+ * readonly attribute DOMString language;
+ *
+ * readonly attribute DOMString id;
+ * readonly attribute DOMString inBandMetadataTrackDispatchType;
+ *
+ * attribute TextTrackMode mode;
+ *
+ * readonly attribute TextTrackCueList? cues;
+ * readonly attribute TextTrackCueList? activeCues;
+ *
+ * void addCue(TextTrackCue cue);
+ * void removeCue(TextTrackCue cue);
+ *
+ * attribute EventHandler oncuechange;
+ * };
+ */
+
+vjs.TextTrack = function(options) {
+ var tt, id, mode, kind, label, language, cues, activeCues, timeupdateHandler, changed, prop;
+
+ options = options || {};
+
+ if (!options['player']) {
+ throw new Error('A player was not provided.');
+ }
+
+ tt = this;
+ if (vjs.IS_IE8) {
+ tt = document.createElement('custom');
+
+ for (prop in vjs.TextTrack.prototype) {
+ tt[prop] = vjs.TextTrack.prototype[prop];
+ }
+ }
+
+ tt.player_ = options['player'];
+
+ mode = vjs.TextTrackMode[options['mode']] || 'disabled';
+ kind = vjs.TextTrackKind[options['kind']] || 'subtitles';
+ label = options['label'] || '';
+ language = options['language'] || options['srclang'] || '';
+ id = options['id'] || 'vjs_text_track_' + vjs.guid++;
+
+ if (kind === 'metadata' || kind === 'chapters') {
+ mode = 'hidden';
+ }
+
+ tt.cues_ = [];
+ tt.activeCues_ = [];
+
+ cues = new vjs.TextTrackCueList(tt.cues_);
+ activeCues = new vjs.TextTrackCueList(tt.activeCues_);
+
+ changed = false;
+ timeupdateHandler = vjs.bind(tt, function() {
+ this['activeCues'];
+ if (changed) {
+ this['trigger']('cuechange');
+ changed = false;
+ }
+ });
+ if (mode !== 'disabled') {
+ tt.player_.on('timeupdate', timeupdateHandler);
+ }
+
+ Object.defineProperty(tt, 'kind', {
+ get: function() {
+ return kind;
+ },
+ set: Function.prototype
+ });
+
+ Object.defineProperty(tt, 'label', {
+ get: function() {
+ return label;
+ },
+ set: Function.prototype
+ });
+
+ Object.defineProperty(tt, 'language', {
+ get: function() {
+ return language;
+ },
+ set: Function.prototype
+ });
+
+ Object.defineProperty(tt, 'id', {
+ get: function() {
+ return id;
+ },
+ set: Function.prototype
+ });
+
+ Object.defineProperty(tt, 'mode', {
+ get: function() {
+ return mode;
+ },
+ set: function(newMode) {
+ if (!vjs.TextTrackMode[newMode]) {
+ return;
+ }
+ mode = newMode;
+ if (mode === 'showing') {
+ this.player_.on('timeupdate', timeupdateHandler);
+ }
+ this.trigger('modechange');
+ }
+ });
+
+ Object.defineProperty(tt, 'cues', {
+ get: function() {
+ if (!this.loaded_) {
+ return null;
+ }
+
+ return cues;
+ },
+ set: Function.prototype
+ });
+
+ Object.defineProperty(tt, 'activeCues', {
+ get: function() {
+ var i, l, active, ct, cue;
+
+ if (!this.loaded_) {
+ return null;
+ }
+
+ if (this['cues'].length === 0) {
+ return activeCues; // nothing to do
+ }
+
+ ct = this.player_.currentTime();
+ i = 0;
+ l = this['cues'].length;
+ active = [];
+
+ for (; i < l; i++) {
+ cue = this['cues'][i];
+ if (cue['startTime'] <= ct && cue['endTime'] >= ct) {
+ active.push(cue);
+ } else if (cue['startTime'] === cue['endTime'] && cue['startTime'] <= ct && cue['startTime'] + 0.5 >= ct) {
+ active.push(cue);
+ }
+ }
+
+ changed = false;
+
+ if (active.length !== this.activeCues_.length) {
+ changed = true;
+ } else {
+ for (i = 0; i < active.length; i++) {
+ if (indexOf.call(this.activeCues_, active[i]) === -1) {
+ changed = true;
+ }
+ }
+ }
+
+ this.activeCues_ = active;
+ activeCues.setCues_(this.activeCues_);
+
+ return activeCues;
+ },
+ set: Function.prototype
+ });
+
+ if (options.src) {
+ loadTrack(options.src, tt);
+ } else {
+ tt.loaded_ = true;
+ }
+
+ if (vjs.IS_IE8) {
+ return tt;
+ }
+};
+
+vjs.TextTrack.prototype = vjs.obj.create(vjs.EventEmitter.prototype);
+vjs.TextTrack.prototype.constructor = vjs.TextTrack;
+
+/*
+ * cuechange - One or more cues in the track have become active or stopped being active.
+ */
+vjs.TextTrack.prototype.allowedEvents_ = {
+ 'cuechange': 'cuechange'
+};
+
+vjs.TextTrack.prototype.addCue = function(cue) {
+ var tracks = this.player_.textTracks(),
+ i = 0;
+
+ if (tracks) {
+ for (; i < tracks.length; i++) {
+ if (tracks[i] !== this) {
+ tracks[i].removeCue(cue);
+ }
+ }
+ }
+
+ this.cues_.push(cue);
+ this['cues'].setCues_(this.cues_);
+};
+
+vjs.TextTrack.prototype.removeCue = function(removeCue) {
+ var i = 0,
+ l = this.cues_.length,
+ cue,
+ removed = false;
+
+ for (; i < l; i++) {
+ cue = this.cues_[i];
+ if (cue === removeCue) {
+ this.cues_.splice(i, 1);
+ removed = true;
+ }
+ }
+
+ if (removed) {
+ this.cues.setCues_(this.cues_);
+ }
+};
+
+/*
+ * Downloading stuff happens below this point
+ */
+var loadTrack, parseCues, indexOf;
+
+loadTrack = function(src, track) {
+ vjs.xhr(src, vjs.bind(this, function(err, response, responseBody){
+ if (err) {
+ return vjs.log.error(err);
+ }
+
+
+ track.loaded_ = true;
+ parseCues(responseBody, track);
+ }));
+};
+
+parseCues = function(srcContent, track) {
+ if (typeof window['WebVTT'] !== 'function') {
+ //try again a bit later
+ return window.setTimeout(function() {
+ parseCues(srcContent, track);
+ }, 25);
+ }
+
+ var parser = new window['WebVTT']['Parser'](window, window['vttjs'], window['WebVTT']['StringDecoder']());
+
+ parser['oncue'] = function(cue) {
+ track.addCue(cue);
+ };
+ parser['onparsingerror'] = function(error) {
+ vjs.log.error(error);
+ };
+
+ parser['parse'](srcContent);
+ parser['flush']();
+};
+
+indexOf = function(searchElement, fromIndex) {
+
+ var k;
+
+ if (this == null) {
+ throw new TypeError('"this" is null or not defined');
+ }
+
+ var O = Object(this);
+
+ var len = O.length >>> 0;
+
+ if (len === 0) {
+ return -1;
+ }
+
+ var n = +fromIndex || 0;
+
+ if (Math.abs(n) === Infinity) {
+ n = 0;
+ }
+
+ if (n >= len) {
+ return -1;
+ }
+
+ k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
+
+ while (k < len) {
+ if (k in O && O[k] === searchElement) {
+ return k;
+ }
+ k++;
+ }
+ return -1;
+};
+
+})();
diff --git a/bower_components/video.js/src/js/util.js b/bower_components/video.js/src/js/util.js
new file mode 100644
index 0000000..97a59f7
--- /dev/null
+++ b/bower_components/video.js/src/js/util.js
@@ -0,0 +1,37 @@
+/**
+ * Utility functions namespace
+ * @namespace
+ * @type {Object}
+ */
+vjs.util = {};
+
+/**
+ * Merge two options objects, recursively merging any plain object properties as
+ * well. Previously `deepMerge`
+ *
+ * @param {Object} obj1 Object to override values in
+ * @param {Object} obj2 Overriding object
+ * @return {Object} New object -- obj1 and obj2 will be untouched
+ */
+vjs.util.mergeOptions = function(obj1, obj2){
+ var key, val1, val2;
+
+ // make a copy of obj1 so we're not overwriting original values.
+ // like prototype.options_ and all sub options objects
+ obj1 = vjs.obj.copy(obj1);
+
+ for (key in obj2){
+ if (obj2.hasOwnProperty(key)) {
+ val1 = obj1[key];
+ val2 = obj2[key];
+
+ // Check if both properties are pure objects and do a deep merge if so
+ if (vjs.obj.isPlain(val1) && vjs.obj.isPlain(val2)) {
+ obj1[key] = vjs.util.mergeOptions(val1, val2);
+ } else {
+ obj1[key] = obj2[key];
+ }
+ }
+ }
+ return obj1;
+};
\ No newline at end of file
diff --git a/bower_components/video.js/src/js/xhr.js b/bower_components/video.js/src/js/xhr.js
new file mode 100644
index 0000000..abe08be
--- /dev/null
+++ b/bower_components/video.js/src/js/xhr.js
@@ -0,0 +1,151 @@
+/**
+ * Simple http request for retrieving external files (e.g. text tracks)
+ *
+ * ##### Example
+ *
+ * // using url string
+ * videojs.xhr('http://example.com/myfile.vtt', function(error, response, responseBody){});
+ *
+ * // or options block
+ * videojs.xhr({
+ * uri: 'http://example.com/myfile.vtt',
+ * method: 'GET',
+ * responseType: 'text'
+ * }, function(error, response, responseBody){
+ * if (error) {
+ * // log the error
+ * } else {
+ * // successful, do something with the response
+ * }
+ * });
+ *
+ *
+ * API is modeled after the Raynos/xhr, which we hope to use after
+ * getting browserify implemented.
+ * https://github.com/Raynos/xhr/blob/master/index.js
+ *
+ * @param {Object|String} options Options block or URL string
+ * @param {Function} callback The callback function
+ * @returns {Object} The request
+ */
+vjs.xhr = function(options, callback){
+ var XHR, request, urlInfo, winLoc, fileUrl, crossOrigin, abortTimeout, successHandler, errorHandler;
+
+ // If options is a string it's the url
+ if (typeof options === 'string') {
+ options = {
+ uri: options
+ };
+ }
+
+ // Merge with default options
+ videojs.util.mergeOptions({
+ method: 'GET',
+ timeout: 45 * 1000
+ }, options);
+
+ callback = callback || function(){};
+
+ successHandler = function(){
+ window.clearTimeout(abortTimeout);
+ callback(null, request, request.response || request.responseText);
+ };
+
+ errorHandler = function(err){
+ window.clearTimeout(abortTimeout);
+
+ if (!err || typeof err === 'string') {
+ err = new Error(err);
+ }
+
+ callback(err, request);
+ };
+
+ XHR = window.XMLHttpRequest;
+
+ if (typeof XHR === 'undefined') {
+ // Shim XMLHttpRequest for older IEs
+ XHR = function () {
+ try { return new window.ActiveXObject('Msxml2.XMLHTTP.6.0'); } catch (e) {}
+ try { return new window.ActiveXObject('Msxml2.XMLHTTP.3.0'); } catch (f) {}
+ try { return new window.ActiveXObject('Msxml2.XMLHTTP'); } catch (g) {}
+ throw new Error('This browser does not support XMLHttpRequest.');
+ };
+ }
+
+ request = new XHR();
+ // Store a reference to the url on the request instance
+ request.uri = options.uri;
+
+ urlInfo = vjs.parseUrl(options.uri);
+ winLoc = window.location;
+ // Check if url is for another domain/origin
+ // IE8 doesn't know location.origin, so we won't rely on it here
+ crossOrigin = (urlInfo.protocol + urlInfo.host) !== (winLoc.protocol + winLoc.host);
+
+ // XDomainRequest -- Use for IE if XMLHTTPRequest2 isn't available
+ // 'withCredentials' is only available in XMLHTTPRequest2
+ // Also XDomainRequest has a lot of gotchas, so only use if cross domain
+ if (crossOrigin && window.XDomainRequest && !('withCredentials' in request)) {
+ request = new window.XDomainRequest();
+ request.onload = successHandler;
+ request.onerror = errorHandler;
+ // These blank handlers need to be set to fix ie9
+ // http://cypressnorth.com/programming/internet-explorer-aborting-ajax-requests-fixed/
+ request.onprogress = function(){};
+ request.ontimeout = function(){};
+
+ // XMLHTTPRequest
+ } else {
+ fileUrl = (urlInfo.protocol == 'file:' || winLoc.protocol == 'file:');
+
+ request.onreadystatechange = function() {
+ if (request.readyState === 4) {
+ if (request.timedout) {
+ return errorHandler('timeout');
+ }
+
+ if (request.status === 200 || fileUrl && request.status === 0) {
+ successHandler();
+ } else {
+ errorHandler();
+ }
+ }
+ };
+
+ if (options.timeout) {
+ abortTimeout = window.setTimeout(function() {
+ if (request.readyState !== 4) {
+ request.timedout = true;
+ request.abort();
+ }
+ }, options.timeout);
+ }
+ }
+
+ // open the connection
+ try {
+ // Third arg is async, or ignored by XDomainRequest
+ request.open(options.method || 'GET', options.uri, true);
+ } catch(err) {
+ return errorHandler(err);
+ }
+
+ // withCredentials only supported by XMLHttpRequest2
+ if(options.withCredentials) {
+ request.withCredentials = true;
+ }
+
+ if (options.responseType) {
+ request.responseType = options.responseType;
+ }
+
+ // send the request
+ try {
+ request.send();
+ } catch(err) {
+ return errorHandler(err);
+ }
+
+ return request;
+};
diff --git a/build_designer.sh b/build_designer.sh
new file mode 100644
index 0000000..73f4a2b
--- /dev/null
+++ b/build_designer.sh
@@ -0,0 +1 @@
+jekyll serve --config configs/config_designer.yml --destination /users/tjohnson/projects/documentation-theme-jekyll-builds/designer
\ No newline at end of file
diff --git a/build_designer_pdf.sh b/build_designer_pdf.sh
new file mode 100644
index 0000000..21bf295
--- /dev/null
+++ b/build_designer_pdf.sh
@@ -0,0 +1,7 @@
+# first build jekyll
+jekyll serve --detach --config configs/config_designer_pdf.yml --destination /users/tjohnson/projects/documentation-theme-jekyll-builds/designer-pdf
+
+# now call prince and build the pdf
+prince --input-list=/users/tjohnson/projects/documentation-theme-jekyll-builds/designer-pdf/prince-file-list.txt -o /users/tjohnson/projects/documentation-theme-jekyll-builds/designer-pdf
+
+# now find a way to kill the detached server
diff --git a/build_writer.sh b/build_writer.sh
new file mode 100644
index 0000000..72e530e
--- /dev/null
+++ b/build_writer.sh
@@ -0,0 +1,2 @@
+jekyll serve --config configs/config_writer.yml --destination /users/tjohnson/projects/documentation-theme-jekyll-builds/writer
+
diff --git a/build_writer_pdf.sh b/build_writer_pdf.sh
new file mode 100644
index 0000000..daf76e8
--- /dev/null
+++ b/build_writer_pdf.sh
@@ -0,0 +1,7 @@
+# first build jekyll
+jekyll serve --detach --config configs/config_writer_pdf.yml --destination /users/tjohnson/projects/documentation-theme-jekyll-builds/writer-pdf
+# now call prince and build the pdf
+
+prince --input-list=/users/tjohnson/projects/documentation-theme-jekyll-builds/writer-pdf/prince-file-list.txt -o /users/tjohnson/projects/documentation-theme-jekyll-builds/writer-pdf
+
+# now find a way to kill the detached server
diff --git a/configs/config_designer.yml b/configs/config_designer.yml
new file mode 100644
index 0000000..becda29
--- /dev/null
+++ b/configs/config_designer.yml
@@ -0,0 +1,93 @@
+# the audience for this site. even if you're not single sourcing, you still need to define an audience here.
+audience: designer
+
+# your project's title. appears in the top nav home button.
+title: Jekyll for Designers 2.0
+
+# currently the version is used only in the print cover
+version: 2.0
+
+# appears above the sidebar (optional)
+tagline: Guide for designers
+
+# the base hostname & protocol for your site (everything at the .com or .org and before)
+url: "http://idratherbewriting.com"
+
+# the subpath of your site. If you're publishing to the root directory, just type "". Usually set this as your project name.
+baseurl: "/documentation-theme-jekyll/designer"
+
+# this is how you will preview the site on your local machine. leave as is.
+host: 127.0.0.1
+
+# specified here in case you have multiple sites and want to view them simultaneously in different tabs (you'll need different ports)
+port: 4007
+
+# whether you want the sidebar to use an accordion, such that other sections collapse when one expands.
+sidebar_accordion: true
+
+# Disqus shortname for commenting features. leave blank if you don't want a comment form.
+disqus_shortname: idrbwjekyll
+
+# Insert your google analytics tracking number. leave blank if you don't want google analytics integration.
+google_analytics: UA-408430-5
+
+markdown: redcarpet
+
+# options for the redcarpet markdown processing. leave as is, especially the "with_toc_data" or the mini-toc won't appear.
+redcarpet:
+ extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables", "with_toc_data"]
+highlighter: rouge
+
+# put all files or directories that you want to exclude from your project here.
+exclude:
+ - _drafts
+ - bower_components
+ - .idea
+ - _site
+
+# these are defaults that get applied to each page or post's frontmatter. leave as is.
+permalink: :title
+defaults:
+ -
+ scope:
+ path: ""
+ type: "pages"
+ values:
+ layout: "page"
+ comments: true
+ search: include
+ -
+ scope:
+ path: ""
+ type: "posts"
+ values:
+ layout: "post"
+ comments: true
+ search: include
+ -
+ scope:
+ path: ""
+ type: "tooltips"
+ values:
+ layout: "page"
+ tooltip: true
+ search: include
+
+sass:
+ sass_dir: _sass
+
+# this enables the tooltip collection.
+collections:
+ tooltips:
+ output: true
+
+# this enables the tooltip collection.
+collections:
+ tooltips:
+ output: true
+
+# if you want to show a label on each page indicating the audience that can see the content, put true here.
+show_audience_label: true
+
+# is this a print build? if so, put true. otherwise, false.
+print: false
\ No newline at end of file
diff --git a/configs/config_designer_print.yml b/configs/config_designer_print.yml
new file mode 100644
index 0000000..468727c
--- /dev/null
+++ b/configs/config_designer_print.yml
@@ -0,0 +1,79 @@
+# the audience for this site. even if you're not single sourcing, you still need to define an audience here.
+audience: designer
+
+# your project's title. appears in the top nav home button.
+title: Jekyll for Designers 2.0
+
+# currently the version is used only in the print cover
+version: 2.0
+
+# appears above the sidebar (optional)
+tagline: Guide for designers
+
+# the base hostname & protocol for your site (everything at the .com or .org and before)
+url: "http://idratherbewriting.com"
+
+# the subpath of your site. If you're publishing to the root directory, just type "". Usually set this as your project name.
+baseurl: "/documentation-theme-jekyll/designer"
+
+# this is how you will preview the site on your local machine. leave as is.
+host: 127.0.0.1
+
+# specified here in case you have multiple sites and want to view them simultaneously in different tabs (you'll need different ports)
+port: 4005
+
+markdown: redcarpet
+
+# options for the redcarpet markdown processing. leave as is, especially the "with_toc_data" or the mini-toc won't appear.
+redcarpet:
+ extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables", "with_toc_data"]
+highlighter: rouge
+
+# put all files or directories that you want to exclude from your project here.
+exclude:
+ - _drafts
+ - bower_components
+ - .idea
+ - _site
+
+# these are defaults that get applied to each page or post's frontmatter. note that the default layout for pages is page_print instead of page.
+permalink: :title
+defaults:
+ -
+ scope:
+ path: ""
+ type: "pages"
+ values:
+ layout: "page_print"
+ comments: true
+ search: include
+ -
+ scope:
+ path: ""
+ type: "posts"
+ values:
+ layout: "post"
+ comments: true
+ search: include
+ -
+ scope:
+ path: ""
+ type: "tooltips"
+ values:
+ layout: "page"
+ tooltip: true
+ search: include
+
+sass:
+ sass_dir: _sass
+
+# this enables the tooltip collection.
+collections:
+ tooltips:
+ output: true
+
+# if you want to show a label on each page indicating the audience that can see the content, put true here.
+show_audience_label: false
+
+# is this a print build? if so, put true. otherwise, false.
+print: true
\ No newline at end of file
diff --git a/configs/config_writer.yml b/configs/config_writer.yml
new file mode 100644
index 0000000..e439cc4
--- /dev/null
+++ b/configs/config_writer.yml
@@ -0,0 +1,88 @@
+# the audience for this site. even if you're not single sourcing, you still need to define an audience here.
+audience: writer
+
+# your project's title. appears in the top nav home button.
+title: Jekyll for Technical Writers 2.0
+
+# currently the version is used only in the print cover
+version: 2.0
+
+# appears above the sidebar (optional)
+tagline: Guide for technical writers
+
+# the base hostname & protocol for your site (everything at the .com or .org and before)
+url: "http://idratherbewriting.com"
+
+# the subpath of your site. If you're publishing to the root directory, just type "". Usually set this as your project name.
+baseurl: "/documentation-theme-jekyll/writer"
+
+# this is how you will preview the site on your local machine. leave as is.
+host: 127.0.0.1
+
+# specified here in case you have multiple sites and want to view them simultaneously in different tabs (you'll need different ports)
+port: 4008
+
+# whether you want the sidebar to use an accordion, such that other sections collapse when one expands.
+sidebar_accordion: true
+
+# Disqus shortname for commenting features. leave blank if you don't want a comment form.
+disqus_shortname: idrbwjekyll
+
+# Insert your google analytics tracking number. leave blank if you don't want google analytics integration.
+google_analytics: UA-408430-5
+
+markdown: redcarpet
+
+# options for the redcarpet markdown processing. leave as is, especially the "with_toc_data" or the mini-toc won't appear.
+redcarpet:
+ extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables", "with_toc_data"]
+highlighter: rouge
+
+# put all files or directories that you want to exclude from your project here.
+exclude:
+ - _drafts
+ - bower_components
+ - .idea
+ - _site
+
+# this enables the tooltip collection.
+collections:
+ tooltips:
+ output: true
+
+# these are defaults that get applied to each page or post's frontmatter. leave as is.
+permalink: :title
+defaults:
+ -
+ scope:
+ path: ""
+ type: "pages"
+ values:
+ layout: "page"
+ comments: true
+ search: include
+ -
+ scope:
+ path: ""
+ type: "posts"
+ values:
+ layout: "post"
+ comments: true
+ search: include
+ -
+ scope:
+ path: ""
+ type: "tooltips"
+ values:
+ layout: "page"
+ tooltip: true
+ search: include
+
+sass:
+ sass_dir: _sass
+
+# if you want to show a label on each page indicating the audience that can see the content, put true here.
+show_audience_label: true
+
+# is this a print build? if so, put true. otherwise, false.
+print: false
\ No newline at end of file
diff --git a/configs/config_writer_print.yml b/configs/config_writer_print.yml
new file mode 100644
index 0000000..f8d196a
--- /dev/null
+++ b/configs/config_writer_print.yml
@@ -0,0 +1,79 @@
+# the audience for this site. even if you're not single sourcing, you still need to define an audience here.
+audience: writer
+
+# your project's title. appears in the top nav home button.
+title: Jekyll for Technical Writers 2.0
+
+# currently the version is used only in the print cover
+version: 2.0
+
+# appears above the sidebar (optional)
+tagline: Guide for technical writers
+
+# the base hostname & protocol for your site (everything at the .com or .org and before)
+url: "http://idratherbewriting.com"
+
+# the subpath of your site. If you're publishing to the root directory, just type "". Usually set this as your project name.
+baseurl: "/documentation-theme-jekyll/writer"
+
+# this is how you will preview the site on your local machine. leave as is.
+host: 127.0.0.1
+
+# specified here in case you have multiple sites and want to view them simultaneously in different tabs (you'll need different ports)
+port: 4005
+
+markdown: redcarpet
+
+# options for the redcarpet markdown processing. leave as is, especially the "with_toc_data" or the mini-toc won't appear.
+redcarpet:
+ extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables", "with_toc_data"]
+highlighter: rouge
+
+# put all files or directories that you want to exclude from your project here.
+exclude:
+ - _drafts
+ - bower_components
+ - .idea
+ - _site
+
+# these are defaults that get applied to each page or post's frontmatter. note that the default layout for pages is page_print instead of page.
+permalink: :title
+defaults:
+ -
+ scope:
+ path: ""
+ type: "pages"
+ values:
+ layout: "page_print"
+ comments: true
+ search: include
+ -
+ scope:
+ path: ""
+ type: "posts"
+ values:
+ layout: "post"
+ comments: true
+ search: include
+ -
+ scope:
+ path: ""
+ type: "tooltips"
+ values:
+ layout: "page"
+ tooltip: true
+ search: include
+
+sass:
+ sass_dir: _sass
+
+# this enables the tooltip collection.
+collections:
+ tooltips:
+ output: true
+
+# if you want to show a label on each page indicating the audience that can see the content, put true here.
+show_audience_label: false
+
+# is this a print build? if so, put true. otherwise, false.
+print: true
\ No newline at end of file
diff --git a/css/bootstrap.css b/css/bootstrap.css
new file mode 100755
index 0000000..c46af7d
--- /dev/null
+++ b/css/bootstrap.css
@@ -0,0 +1,6566 @@
+/*!
+ * Bootstrap v3.3.2 (http://getbootstrap.com)
+ * Copyright 2011-2015 Twitter, Inc.
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+ */
+
+/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
+html {
+ font-family: sans-serif;
+ -webkit-text-size-adjust: 100%;
+ -ms-text-size-adjust: 100%;
+}
+body {
+ margin: 0;
+}
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+hgroup,
+main,
+menu,
+nav,
+section,
+summary {
+ display: block;
+}
+audio,
+canvas,
+progress,
+video {
+ display: inline-block;
+ vertical-align: baseline;
+}
+audio:not([controls]) {
+ display: none;
+ height: 0;
+}
+[hidden],
+template {
+ display: none;
+}
+a {
+ background-color: transparent;
+}
+a:active,
+a:hover {
+ outline: 0;
+}
+abbr[title] {
+ border-bottom: 1px dotted;
+}
+b,
+strong {
+ font-weight: bold;
+}
+dfn {
+ font-style: italic;
+}
+h1 {
+ margin: .67em 0;
+ font-size: 2em;
+}
+mark {
+ color: #000;
+ background: #ff0;
+}
+small {
+ font-size: 80%;
+}
+sub,
+sup {
+ position: relative;
+ font-size: 75%;
+ line-height: 0;
+ vertical-align: baseline;
+}
+sup {
+ top: -.5em;
+}
+sub {
+ bottom: -.25em;
+}
+img {
+ border: 0;
+}
+svg:not(:root) {
+ overflow: hidden;
+}
+figure {
+ margin: 1em 40px;
+}
+hr {
+ height: 0;
+ -webkit-box-sizing: content-box;
+ -moz-box-sizing: content-box;
+ box-sizing: content-box;
+}
+pre {
+ overflow: auto;
+}
+code,
+kbd,
+pre,
+samp {
+ font-family: monospace, monospace;
+ font-size: 1em;
+}
+button,
+input,
+optgroup,
+select,
+textarea {
+ margin: 0;
+ font: inherit;
+ color: inherit;
+}
+button {
+ overflow: visible;
+}
+button,
+select {
+ text-transform: none;
+}
+button,
+html input[type="button"],
+input[type="reset"],
+input[type="submit"] {
+ -webkit-appearance: button;
+ cursor: pointer;
+}
+button[disabled],
+html input[disabled] {
+ cursor: default;
+}
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+ padding: 0;
+ border: 0;
+}
+input {
+ line-height: normal;
+}
+input[type="checkbox"],
+input[type="radio"] {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ padding: 0;
+}
+input[type="number"]::-webkit-inner-spin-button,
+input[type="number"]::-webkit-outer-spin-button {
+ height: auto;
+}
+input[type="search"] {
+ -webkit-box-sizing: content-box;
+ -moz-box-sizing: content-box;
+ box-sizing: content-box;
+ -webkit-appearance: textfield;
+}
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+fieldset {
+ padding: .35em .625em .75em;
+ margin: 0 2px;
+ border: 1px solid #c0c0c0;
+}
+legend {
+ padding: 0;
+ border: 0;
+}
+textarea {
+ overflow: auto;
+}
+optgroup {
+ font-weight: bold;
+}
+table {
+ border-spacing: 0;
+ border-collapse: collapse;
+}
+td,
+th {
+ padding: 0;
+}
+/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */
+@media print {
+ *,
+ *:before,
+ *:after {
+ color: #000 !important;
+ text-shadow: none !important;
+ background: transparent !important;
+ -webkit-box-shadow: none !important;
+ box-shadow: none !important;
+ }
+ a,
+ a:visited {
+ text-decoration: underline;
+ }
+ a[href]:after {
+ content: " (" attr(href) ")";
+ }
+ abbr[title]:after {
+ content: " (" attr(title) ")";
+ }
+ a[href^="#"]:after,
+ a[href^="javascript:"]:after {
+ content: "";
+ }
+ pre,
+ blockquote {
+ border: 1px solid #999;
+
+ page-break-inside: avoid;
+ }
+ thead {
+ display: table-header-group;
+ }
+ tr,
+ img {
+ page-break-inside: avoid;
+ }
+ img {
+ max-width: 100% !important;
+ }
+ p,
+ h2,
+ h3 {
+ orphans: 3;
+ widows: 3;
+ }
+ h2,
+ h3 {
+ page-break-after: avoid;
+ }
+ select {
+ background: #fff !important;
+ }
+ .navbar {
+ display: none;
+ }
+ .btn > .caret,
+ .dropup > .btn > .caret {
+ border-top-color: #000 !important;
+ }
+ .label {
+ border: 1px solid #000;
+ }
+ .table {
+ border-collapse: collapse !important;
+ }
+ .table td,
+ .table th {
+ background-color: #fff !important;
+ }
+ .table-bordered th,
+ .table-bordered td {
+ border: 1px solid #ddd !important;
+ }
+}
+@font-face {
+ font-family: 'Glyphicons Halflings';
+
+ src: url('../fonts/glyphicons-halflings-regular.eot');
+ src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
+}
+.glyphicon {
+ position: relative;
+ top: 1px;
+ display: inline-block;
+ font-family: 'Glyphicons Halflings';
+ font-style: normal;
+ font-weight: normal;
+ line-height: 1;
+
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+.glyphicon-asterisk:before {
+ content: "\2a";
+}
+.glyphicon-plus:before {
+ content: "\2b";
+}
+.glyphicon-euro:before,
+.glyphicon-eur:before {
+ content: "\20ac";
+}
+.glyphicon-minus:before {
+ content: "\2212";
+}
+.glyphicon-cloud:before {
+ content: "\2601";
+}
+.glyphicon-envelope:before {
+ content: "\2709";
+}
+.glyphicon-pencil:before {
+ content: "\270f";
+}
+.glyphicon-glass:before {
+ content: "\e001";
+}
+.glyphicon-music:before {
+ content: "\e002";
+}
+.glyphicon-search:before {
+ content: "\e003";
+}
+.glyphicon-heart:before {
+ content: "\e005";
+}
+.glyphicon-star:before {
+ content: "\e006";
+}
+.glyphicon-star-empty:before {
+ content: "\e007";
+}
+.glyphicon-user:before {
+ content: "\e008";
+}
+.glyphicon-film:before {
+ content: "\e009";
+}
+.glyphicon-th-large:before {
+ content: "\e010";
+}
+.glyphicon-th:before {
+ content: "\e011";
+}
+.glyphicon-th-list:before {
+ content: "\e012";
+}
+.glyphicon-ok:before {
+ content: "\e013";
+}
+.glyphicon-remove:before {
+ content: "\e014";
+}
+.glyphicon-zoom-in:before {
+ content: "\e015";
+}
+.glyphicon-zoom-out:before {
+ content: "\e016";
+}
+.glyphicon-off:before {
+ content: "\e017";
+}
+.glyphicon-signal:before {
+ content: "\e018";
+}
+.glyphicon-cog:before {
+ content: "\e019";
+}
+.glyphicon-trash:before {
+ content: "\e020";
+}
+.glyphicon-home:before {
+ content: "\e021";
+}
+.glyphicon-file:before {
+ content: "\e022";
+}
+.glyphicon-time:before {
+ content: "\e023";
+}
+.glyphicon-road:before {
+ content: "\e024";
+}
+.glyphicon-download-alt:before {
+ content: "\e025";
+}
+.glyphicon-download:before {
+ content: "\e026";
+}
+.glyphicon-upload:before {
+ content: "\e027";
+}
+.glyphicon-inbox:before {
+ content: "\e028";
+}
+.glyphicon-play-circle:before {
+ content: "\e029";
+}
+.glyphicon-repeat:before {
+ content: "\e030";
+}
+.glyphicon-refresh:before {
+ content: "\e031";
+}
+.glyphicon-list-alt:before {
+ content: "\e032";
+}
+.glyphicon-lock:before {
+ content: "\e033";
+}
+.glyphicon-flag:before {
+ content: "\e034";
+}
+.glyphicon-headphones:before {
+ content: "\e035";
+}
+.glyphicon-volume-off:before {
+ content: "\e036";
+}
+.glyphicon-volume-down:before {
+ content: "\e037";
+}
+.glyphicon-volume-up:before {
+ content: "\e038";
+}
+.glyphicon-qrcode:before {
+ content: "\e039";
+}
+.glyphicon-barcode:before {
+ content: "\e040";
+}
+.glyphicon-tag:before {
+ content: "\e041";
+}
+.glyphicon-tags:before {
+ content: "\e042";
+}
+.glyphicon-book:before {
+ content: "\e043";
+}
+.glyphicon-bookmark:before {
+ content: "\e044";
+}
+.glyphicon-print:before {
+ content: "\e045";
+}
+.glyphicon-camera:before {
+ content: "\e046";
+}
+.glyphicon-font:before {
+ content: "\e047";
+}
+.glyphicon-bold:before {
+ content: "\e048";
+}
+.glyphicon-italic:before {
+ content: "\e049";
+}
+.glyphicon-text-height:before {
+ content: "\e050";
+}
+.glyphicon-text-width:before {
+ content: "\e051";
+}
+.glyphicon-align-left:before {
+ content: "\e052";
+}
+.glyphicon-align-center:before {
+ content: "\e053";
+}
+.glyphicon-align-right:before {
+ content: "\e054";
+}
+.glyphicon-align-justify:before {
+ content: "\e055";
+}
+.glyphicon-list:before {
+ content: "\e056";
+}
+.glyphicon-indent-left:before {
+ content: "\e057";
+}
+.glyphicon-indent-right:before {
+ content: "\e058";
+}
+.glyphicon-facetime-video:before {
+ content: "\e059";
+}
+.glyphicon-picture:before {
+ content: "\e060";
+}
+.glyphicon-map-marker:before {
+ content: "\e062";
+}
+.glyphicon-adjust:before {
+ content: "\e063";
+}
+.glyphicon-tint:before {
+ content: "\e064";
+}
+.glyphicon-edit:before {
+ content: "\e065";
+}
+.glyphicon-share:before {
+ content: "\e066";
+}
+.glyphicon-check:before {
+ content: "\e067";
+}
+.glyphicon-move:before {
+ content: "\e068";
+}
+.glyphicon-step-backward:before {
+ content: "\e069";
+}
+.glyphicon-fast-backward:before {
+ content: "\e070";
+}
+.glyphicon-backward:before {
+ content: "\e071";
+}
+.glyphicon-play:before {
+ content: "\e072";
+}
+.glyphicon-pause:before {
+ content: "\e073";
+}
+.glyphicon-stop:before {
+ content: "\e074";
+}
+.glyphicon-forward:before {
+ content: "\e075";
+}
+.glyphicon-fast-forward:before {
+ content: "\e076";
+}
+.glyphicon-step-forward:before {
+ content: "\e077";
+}
+.glyphicon-eject:before {
+ content: "\e078";
+}
+.glyphicon-chevron-left:before {
+ content: "\e079";
+}
+.glyphicon-chevron-right:before {
+ content: "\e080";
+}
+.glyphicon-plus-sign:before {
+ content: "\e081";
+}
+.glyphicon-minus-sign:before {
+ content: "\e082";
+}
+.glyphicon-remove-sign:before {
+ content: "\e083";
+}
+.glyphicon-ok-sign:before {
+ content: "\e084";
+}
+.glyphicon-question-sign:before {
+ content: "\e085";
+}
+.glyphicon-info-sign:before {
+ content: "\e086";
+}
+.glyphicon-screenshot:before {
+ content: "\e087";
+}
+.glyphicon-remove-circle:before {
+ content: "\e088";
+}
+.glyphicon-ok-circle:before {
+ content: "\e089";
+}
+.glyphicon-ban-circle:before {
+ content: "\e090";
+}
+.glyphicon-arrow-left:before {
+ content: "\e091";
+}
+.glyphicon-arrow-right:before {
+ content: "\e092";
+}
+.glyphicon-arrow-up:before {
+ content: "\e093";
+}
+.glyphicon-arrow-down:before {
+ content: "\e094";
+}
+.glyphicon-share-alt:before {
+ content: "\e095";
+}
+.glyphicon-resize-full:before {
+ content: "\e096";
+}
+.glyphicon-resize-small:before {
+ content: "\e097";
+}
+.glyphicon-exclamation-sign:before {
+ content: "\e101";
+}
+.glyphicon-gift:before {
+ content: "\e102";
+}
+.glyphicon-leaf:before {
+ content: "\e103";
+}
+.glyphicon-fire:before {
+ content: "\e104";
+}
+.glyphicon-eye-open:before {
+ content: "\e105";
+}
+.glyphicon-eye-close:before {
+ content: "\e106";
+}
+.glyphicon-warning-sign:before {
+ content: "\e107";
+}
+.glyphicon-plane:before {
+ content: "\e108";
+}
+.glyphicon-calendar:before {
+ content: "\e109";
+}
+.glyphicon-random:before {
+ content: "\e110";
+}
+.glyphicon-comment:before {
+ content: "\e111";
+}
+.glyphicon-magnet:before {
+ content: "\e112";
+}
+.glyphicon-chevron-up:before {
+ content: "\e113";
+}
+.glyphicon-chevron-down:before {
+ content: "\e114";
+}
+.glyphicon-retweet:before {
+ content: "\e115";
+}
+.glyphicon-shopping-cart:before {
+ content: "\e116";
+}
+.glyphicon-folder-close:before {
+ content: "\e117";
+}
+.glyphicon-folder-open:before {
+ content: "\e118";
+}
+.glyphicon-resize-vertical:before {
+ content: "\e119";
+}
+.glyphicon-resize-horizontal:before {
+ content: "\e120";
+}
+.glyphicon-hdd:before {
+ content: "\e121";
+}
+.glyphicon-bullhorn:before {
+ content: "\e122";
+}
+.glyphicon-bell:before {
+ content: "\e123";
+}
+.glyphicon-certificate:before {
+ content: "\e124";
+}
+.glyphicon-thumbs-up:before {
+ content: "\e125";
+}
+.glyphicon-thumbs-down:before {
+ content: "\e126";
+}
+.glyphicon-hand-right:before {
+ content: "\e127";
+}
+.glyphicon-hand-left:before {
+ content: "\e128";
+}
+.glyphicon-hand-up:before {
+ content: "\e129";
+}
+.glyphicon-hand-down:before {
+ content: "\e130";
+}
+.glyphicon-circle-arrow-right:before {
+ content: "\e131";
+}
+.glyphicon-circle-arrow-left:before {
+ content: "\e132";
+}
+.glyphicon-circle-arrow-up:before {
+ content: "\e133";
+}
+.glyphicon-circle-arrow-down:before {
+ content: "\e134";
+}
+.glyphicon-globe:before {
+ content: "\e135";
+}
+.glyphicon-wrench:before {
+ content: "\e136";
+}
+.glyphicon-tasks:before {
+ content: "\e137";
+}
+.glyphicon-filter:before {
+ content: "\e138";
+}
+.glyphicon-briefcase:before {
+ content: "\e139";
+}
+.glyphicon-fullscreen:before {
+ content: "\e140";
+}
+.glyphicon-dashboard:before {
+ content: "\e141";
+}
+.glyphicon-paperclip:before {
+ content: "\e142";
+}
+.glyphicon-heart-empty:before {
+ content: "\e143";
+}
+.glyphicon-link:before {
+ content: "\e144";
+}
+.glyphicon-phone:before {
+ content: "\e145";
+}
+.glyphicon-pushpin:before {
+ content: "\e146";
+}
+.glyphicon-usd:before {
+ content: "\e148";
+}
+.glyphicon-gbp:before {
+ content: "\e149";
+}
+.glyphicon-sort:before {
+ content: "\e150";
+}
+.glyphicon-sort-by-alphabet:before {
+ content: "\e151";
+}
+.glyphicon-sort-by-alphabet-alt:before {
+ content: "\e152";
+}
+.glyphicon-sort-by-order:before {
+ content: "\e153";
+}
+.glyphicon-sort-by-order-alt:before {
+ content: "\e154";
+}
+.glyphicon-sort-by-attributes:before {
+ content: "\e155";
+}
+.glyphicon-sort-by-attributes-alt:before {
+ content: "\e156";
+}
+.glyphicon-unchecked:before {
+ content: "\e157";
+}
+.glyphicon-expand:before {
+ content: "\e158";
+}
+.glyphicon-collapse-down:before {
+ content: "\e159";
+}
+.glyphicon-collapse-up:before {
+ content: "\e160";
+}
+.glyphicon-log-in:before {
+ content: "\e161";
+}
+.glyphicon-flash:before {
+ content: "\e162";
+}
+.glyphicon-log-out:before {
+ content: "\e163";
+}
+.glyphicon-new-window:before {
+ content: "\e164";
+}
+.glyphicon-record:before {
+ content: "\e165";
+}
+.glyphicon-save:before {
+ content: "\e166";
+}
+.glyphicon-open:before {
+ content: "\e167";
+}
+.glyphicon-saved:before {
+ content: "\e168";
+}
+.glyphicon-import:before {
+ content: "\e169";
+}
+.glyphicon-export:before {
+ content: "\e170";
+}
+.glyphicon-send:before {
+ content: "\e171";
+}
+.glyphicon-floppy-disk:before {
+ content: "\e172";
+}
+.glyphicon-floppy-saved:before {
+ content: "\e173";
+}
+.glyphicon-floppy-remove:before {
+ content: "\e174";
+}
+.glyphicon-floppy-save:before {
+ content: "\e175";
+}
+.glyphicon-floppy-open:before {
+ content: "\e176";
+}
+.glyphicon-credit-card:before {
+ content: "\e177";
+}
+.glyphicon-transfer:before {
+ content: "\e178";
+}
+.glyphicon-cutlery:before {
+ content: "\e179";
+}
+.glyphicon-header:before {
+ content: "\e180";
+}
+.glyphicon-compressed:before {
+ content: "\e181";
+}
+.glyphicon-earphone:before {
+ content: "\e182";
+}
+.glyphicon-phone-alt:before {
+ content: "\e183";
+}
+.glyphicon-tower:before {
+ content: "\e184";
+}
+.glyphicon-stats:before {
+ content: "\e185";
+}
+.glyphicon-sd-video:before {
+ content: "\e186";
+}
+.glyphicon-hd-video:before {
+ content: "\e187";
+}
+.glyphicon-subtitles:before {
+ content: "\e188";
+}
+.glyphicon-sound-stereo:before {
+ content: "\e189";
+}
+.glyphicon-sound-dolby:before {
+ content: "\e190";
+}
+.glyphicon-sound-5-1:before {
+ content: "\e191";
+}
+.glyphicon-sound-6-1:before {
+ content: "\e192";
+}
+.glyphicon-sound-7-1:before {
+ content: "\e193";
+}
+.glyphicon-copyright-mark:before {
+ content: "\e194";
+}
+.glyphicon-registration-mark:before {
+ content: "\e195";
+}
+.glyphicon-cloud-download:before {
+ content: "\e197";
+}
+.glyphicon-cloud-upload:before {
+ content: "\e198";
+}
+.glyphicon-tree-conifer:before {
+ content: "\e199";
+}
+.glyphicon-tree-deciduous:before {
+ content: "\e200";
+}
+.glyphicon-cd:before {
+ content: "\e201";
+}
+.glyphicon-save-file:before {
+ content: "\e202";
+}
+.glyphicon-open-file:before {
+ content: "\e203";
+}
+.glyphicon-level-up:before {
+ content: "\e204";
+}
+.glyphicon-copy:before {
+ content: "\e205";
+}
+.glyphicon-paste:before {
+ content: "\e206";
+}
+.glyphicon-alert:before {
+ content: "\e209";
+}
+.glyphicon-equalizer:before {
+ content: "\e210";
+}
+.glyphicon-king:before {
+ content: "\e211";
+}
+.glyphicon-queen:before {
+ content: "\e212";
+}
+.glyphicon-pawn:before {
+ content: "\e213";
+}
+.glyphicon-bishop:before {
+ content: "\e214";
+}
+.glyphicon-knight:before {
+ content: "\e215";
+}
+.glyphicon-baby-formula:before {
+ content: "\e216";
+}
+.glyphicon-tent:before {
+ content: "\26fa";
+}
+.glyphicon-blackboard:before {
+ content: "\e218";
+}
+.glyphicon-bed:before {
+ content: "\e219";
+}
+.glyphicon-apple:before {
+ content: "\f8ff";
+}
+.glyphicon-erase:before {
+ content: "\e221";
+}
+.glyphicon-hourglass:before {
+ content: "\231b";
+}
+.glyphicon-lamp:before {
+ content: "\e223";
+}
+.glyphicon-duplicate:before {
+ content: "\e224";
+}
+.glyphicon-piggy-bank:before {
+ content: "\e225";
+}
+.glyphicon-scissors:before {
+ content: "\e226";
+}
+.glyphicon-bitcoin:before {
+ content: "\e227";
+}
+.glyphicon-yen:before {
+ content: "\00a5";
+}
+.glyphicon-ruble:before {
+ content: "\20bd";
+}
+.glyphicon-scale:before {
+ content: "\e230";
+}
+.glyphicon-ice-lolly:before {
+ content: "\e231";
+}
+.glyphicon-ice-lolly-tasted:before {
+ content: "\e232";
+}
+.glyphicon-education:before {
+ content: "\e233";
+}
+.glyphicon-option-horizontal:before {
+ content: "\e234";
+}
+.glyphicon-option-vertical:before {
+ content: "\e235";
+}
+.glyphicon-menu-hamburger:before {
+ content: "\e236";
+}
+.glyphicon-modal-window:before {
+ content: "\e237";
+}
+.glyphicon-oil:before {
+ content: "\e238";
+}
+.glyphicon-grain:before {
+ content: "\e239";
+}
+.glyphicon-sunglasses:before {
+ content: "\e240";
+}
+.glyphicon-text-size:before {
+ content: "\e241";
+}
+.glyphicon-text-color:before {
+ content: "\e242";
+}
+.glyphicon-text-background:before {
+ content: "\e243";
+}
+.glyphicon-object-align-top:before {
+ content: "\e244";
+}
+.glyphicon-object-align-bottom:before {
+ content: "\e245";
+}
+.glyphicon-object-align-horizontal:before {
+ content: "\e246";
+}
+.glyphicon-object-align-left:before {
+ content: "\e247";
+}
+.glyphicon-object-align-vertical:before {
+ content: "\e248";
+}
+.glyphicon-object-align-right:before {
+ content: "\e249";
+}
+.glyphicon-triangle-right:before {
+ content: "\e250";
+}
+.glyphicon-triangle-left:before {
+ content: "\e251";
+}
+.glyphicon-triangle-bottom:before {
+ content: "\e252";
+}
+.glyphicon-triangle-top:before {
+ content: "\e253";
+}
+.glyphicon-console:before {
+ content: "\e254";
+}
+.glyphicon-superscript:before {
+ content: "\e255";
+}
+.glyphicon-subscript:before {
+ content: "\e256";
+}
+.glyphicon-menu-left:before {
+ content: "\e257";
+}
+.glyphicon-menu-right:before {
+ content: "\e258";
+}
+.glyphicon-menu-down:before {
+ content: "\e259";
+}
+.glyphicon-menu-up:before {
+ content: "\e260";
+}
+* {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+*:before,
+*:after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+html {
+ font-size: 10px;
+
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+}
+body {
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+ font-size: 14px;
+ line-height: 1.42857143;
+ color: #333;
+ background-color: #fff;
+}
+input,
+button,
+select,
+textarea {
+ font-family: inherit;
+ font-size: inherit;
+ line-height: inherit;
+}
+a {
+ color: #337ab7;
+ text-decoration: none;
+}
+a:hover,
+a:focus {
+ color: #23527c;
+ text-decoration: underline;
+}
+a:focus {
+ outline: thin dotted;
+ outline: 5px auto -webkit-focus-ring-color;
+ outline-offset: -2px;
+}
+figure {
+ margin: 0;
+}
+img {
+ vertical-align: middle;
+}
+.img-responsive,
+.thumbnail > img,
+.thumbnail a > img,
+.carousel-inner > .item > img,
+.carousel-inner > .item > a > img {
+ display: block;
+ max-width: 100%;
+ height: auto;
+}
+.img-rounded {
+ border-radius: 6px;
+}
+.img-thumbnail {
+ display: inline-block;
+ max-width: 100%;
+ height: auto;
+ padding: 4px;
+ line-height: 1.42857143;
+ background-color: #fff;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ -webkit-transition: all .2s ease-in-out;
+ -o-transition: all .2s ease-in-out;
+ transition: all .2s ease-in-out;
+}
+.img-circle {
+ border-radius: 50%;
+}
+hr {
+ margin-top: 20px;
+ margin-bottom: 20px;
+ border: 0;
+ border-top: 1px solid #eee;
+}
+.sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ border: 0;
+}
+.sr-only-focusable:active,
+.sr-only-focusable:focus {
+ position: static;
+ width: auto;
+ height: auto;
+ margin: 0;
+ overflow: visible;
+ clip: auto;
+}
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+.h1,
+.h2,
+.h3,
+.h4,
+.h5,
+.h6 {
+ font-family: inherit;
+ font-weight: 500;
+ line-height: 1.1;
+ color: inherit;
+}
+h1 small,
+h2 small,
+h3 small,
+h4 small,
+h5 small,
+h6 small,
+.h1 small,
+.h2 small,
+.h3 small,
+.h4 small,
+.h5 small,
+.h6 small,
+h1 .small,
+h2 .small,
+h3 .small,
+h4 .small,
+h5 .small,
+h6 .small,
+.h1 .small,
+.h2 .small,
+.h3 .small,
+.h4 .small,
+.h5 .small,
+.h6 .small {
+ font-weight: normal;
+ line-height: 1;
+ color: #777;
+}
+h1,
+.h1,
+h2,
+.h2,
+h3,
+.h3 {
+ margin-top: 20px;
+ margin-bottom: 10px;
+}
+h1 small,
+.h1 small,
+h2 small,
+.h2 small,
+h3 small,
+.h3 small,
+h1 .small,
+.h1 .small,
+h2 .small,
+.h2 .small,
+h3 .small,
+.h3 .small {
+ font-size: 65%;
+}
+h4,
+.h4,
+h5,
+.h5,
+h6,
+.h6 {
+ margin-top: 10px;
+ margin-bottom: 10px;
+}
+h4 small,
+.h4 small,
+h5 small,
+.h5 small,
+h6 small,
+.h6 small,
+h4 .small,
+.h4 .small,
+h5 .small,
+.h5 .small,
+h6 .small,
+.h6 .small {
+ font-size: 75%;
+}
+h1,
+.h1 {
+ font-size: 36px;
+}
+h2,
+.h2 {
+ font-size: 30px;
+}
+h3,
+.h3 {
+ font-size: 24px;
+}
+h4,
+.h4 {
+ font-size: 18px;
+}
+h5,
+.h5 {
+ font-size: 14px;
+}
+h6,
+.h6 {
+ font-size: 12px;
+}
+p {
+ margin: 0 0 10px;
+}
+.lead {
+ margin-bottom: 20px;
+ font-size: 16px;
+ font-weight: 300;
+ line-height: 1.4;
+}
+@media (min-width: 768px) {
+ .lead {
+ font-size: 21px;
+ }
+}
+small,
+.small {
+ font-size: 85%;
+}
+mark,
+.mark {
+ padding: .2em;
+ background-color: #fcf8e3;
+}
+.text-left {
+ text-align: left;
+}
+.text-right {
+ text-align: right;
+}
+.text-center {
+ text-align: center;
+}
+.text-justify {
+ text-align: justify;
+}
+.text-nowrap {
+ white-space: nowrap;
+}
+.text-lowercase {
+ text-transform: lowercase;
+}
+.text-uppercase {
+ text-transform: uppercase;
+}
+.text-capitalize {
+ text-transform: capitalize;
+}
+.text-muted {
+ color: #777;
+}
+.text-primary {
+ color: #337ab7;
+}
+a.text-primary:hover {
+ color: #286090;
+}
+.text-success {
+ color: #3c763d;
+}
+a.text-success:hover {
+ color: #2b542c;
+}
+.text-info {
+ color: #31708f;
+}
+a.text-info:hover {
+ color: #245269;
+}
+.text-warning {
+ color: #8a6d3b;
+}
+a.text-warning:hover {
+ color: #66512c;
+}
+.text-danger {
+ color: #a94442;
+}
+a.text-danger:hover {
+ color: #843534;
+}
+.bg-primary {
+ color: #fff;
+ background-color: #337ab7;
+}
+a.bg-primary:hover {
+ background-color: #286090;
+}
+.bg-success {
+ background-color: #dff0d8;
+}
+a.bg-success:hover {
+ background-color: #c1e2b3;
+}
+.bg-info {
+ background-color: #d9edf7;
+}
+a.bg-info:hover {
+ background-color: #afd9ee;
+}
+.bg-warning {
+ background-color: #fcf8e3;
+}
+a.bg-warning:hover {
+ background-color: #f7ecb5;
+}
+.bg-danger {
+ background-color: #f2dede;
+}
+a.bg-danger:hover {
+ background-color: #e4b9b9;
+}
+.page-header {
+ padding-bottom: 9px;
+ margin: 40px 0 20px;
+ border-bottom: 1px solid #eee;
+}
+ul,
+ol {
+ margin-top: 0;
+ margin-bottom: 10px;
+}
+ul ul,
+ol ul,
+ul ol,
+ol ol {
+ margin-bottom: 0;
+}
+.list-unstyled {
+ padding-left: 0;
+ list-style: none;
+}
+.list-inline {
+ padding-left: 0;
+ margin-left: -5px;
+ list-style: none;
+}
+.list-inline > li {
+ display: inline-block;
+ padding-right: 5px;
+ padding-left: 5px;
+}
+dl {
+ margin-top: 0;
+ margin-bottom: 20px;
+}
+dt,
+dd {
+ line-height: 1.42857143;
+}
+dt {
+ font-weight: bold;
+}
+dd {
+ margin-left: 0;
+}
+@media (min-width: 768px) {
+ .dl-horizontal dt {
+ float: left;
+ width: 160px;
+ overflow: hidden;
+ clear: left;
+ text-align: right;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+ .dl-horizontal dd {
+ margin-left: 180px;
+ }
+}
+abbr[title],
+abbr[data-original-title] {
+ cursor: help;
+ border-bottom: 1px dotted #777;
+}
+.initialism {
+ font-size: 90%;
+ text-transform: uppercase;
+}
+blockquote {
+ padding: 10px 20px;
+ margin: 0 0 20px;
+ font-size: 17.5px;
+ border-left: 5px solid #eee;
+}
+blockquote p:last-child,
+blockquote ul:last-child,
+blockquote ol:last-child {
+ margin-bottom: 0;
+}
+blockquote footer,
+blockquote small,
+blockquote .small {
+ display: block;
+ font-size: 80%;
+ line-height: 1.42857143;
+ color: #777;
+}
+blockquote footer:before,
+blockquote small:before,
+blockquote .small:before {
+ content: '\2014 \00A0';
+}
+.blockquote-reverse,
+blockquote.pull-right {
+ padding-right: 15px;
+ padding-left: 0;
+ text-align: right;
+ border-right: 5px solid #eee;
+ border-left: 0;
+}
+.blockquote-reverse footer:before,
+blockquote.pull-right footer:before,
+.blockquote-reverse small:before,
+blockquote.pull-right small:before,
+.blockquote-reverse .small:before,
+blockquote.pull-right .small:before {
+ content: '';
+}
+.blockquote-reverse footer:after,
+blockquote.pull-right footer:after,
+.blockquote-reverse small:after,
+blockquote.pull-right small:after,
+.blockquote-reverse .small:after,
+blockquote.pull-right .small:after {
+ content: '\00A0 \2014';
+}
+address {
+ margin-bottom: 20px;
+ font-style: normal;
+ line-height: 1.42857143;
+}
+code,
+kbd,
+pre,
+samp {
+ font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
+}
+code {
+ padding: 2px 4px;
+ font-size: 90%;
+ color: #c7254e;
+ background-color: #f9f2f4;
+ border-radius: 4px;
+}
+kbd {
+ padding: 2px 4px;
+ font-size: 90%;
+ color: #fff;
+ background-color: #333;
+ border-radius: 3px;
+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25);
+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25);
+}
+kbd kbd {
+ padding: 0;
+ font-size: 100%;
+ font-weight: bold;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+pre {
+ display: block;
+ padding: 9.5px;
+ margin: 0 0 10px;
+ font-size: 13px;
+ line-height: 1.42857143;
+ color: #333;
+ word-break: break-all;
+ word-wrap: break-word;
+ background-color: #f5f5f5;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+pre code {
+ padding: 0;
+ font-size: inherit;
+ color: inherit;
+ white-space: pre-wrap;
+ background-color: transparent;
+ border-radius: 0;
+}
+.pre-scrollable {
+ max-height: 340px;
+ overflow-y: scroll;
+}
+.container {
+ padding-right: 15px;
+ padding-left: 15px;
+ margin-right: auto;
+ margin-left: auto;
+}
+@media (min-width: 768px) {
+ .container {
+ width: 750px;
+ }
+}
+@media (min-width: 992px) {
+ .container {
+ width: 970px;
+ }
+}
+@media (min-width: 1200px) {
+ .container {
+ width: 1170px;
+ }
+}
+.container-fluid {
+ padding-right: 15px;
+ padding-left: 15px;
+ margin-right: auto;
+ margin-left: auto;
+}
+.row {
+ margin-right: -15px;
+ margin-left: -15px;
+}
+.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
+ position: relative;
+ min-height: 1px;
+ padding-right: 15px;
+ padding-left: 15px;
+}
+.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
+ float: left;
+}
+.col-xs-12 {
+ width: 100%;
+}
+.col-xs-11 {
+ width: 91.66666667%;
+}
+.col-xs-10 {
+ width: 83.33333333%;
+}
+.col-xs-9 {
+ width: 75%;
+}
+.col-xs-8 {
+ width: 66.66666667%;
+}
+.col-xs-7 {
+ width: 58.33333333%;
+}
+.col-xs-6 {
+ width: 50%;
+}
+.col-xs-5 {
+ width: 41.66666667%;
+}
+.col-xs-4 {
+ width: 33.33333333%;
+}
+.col-xs-3 {
+ width: 25%;
+}
+.col-xs-2 {
+ width: 16.66666667%;
+}
+.col-xs-1 {
+ width: 8.33333333%;
+}
+.col-xs-pull-12 {
+ right: 100%;
+}
+.col-xs-pull-11 {
+ right: 91.66666667%;
+}
+.col-xs-pull-10 {
+ right: 83.33333333%;
+}
+.col-xs-pull-9 {
+ right: 75%;
+}
+.col-xs-pull-8 {
+ right: 66.66666667%;
+}
+.col-xs-pull-7 {
+ right: 58.33333333%;
+}
+.col-xs-pull-6 {
+ right: 50%;
+}
+.col-xs-pull-5 {
+ right: 41.66666667%;
+}
+.col-xs-pull-4 {
+ right: 33.33333333%;
+}
+.col-xs-pull-3 {
+ right: 25%;
+}
+.col-xs-pull-2 {
+ right: 16.66666667%;
+}
+.col-xs-pull-1 {
+ right: 8.33333333%;
+}
+.col-xs-pull-0 {
+ right: auto;
+}
+.col-xs-push-12 {
+ left: 100%;
+}
+.col-xs-push-11 {
+ left: 91.66666667%;
+}
+.col-xs-push-10 {
+ left: 83.33333333%;
+}
+.col-xs-push-9 {
+ left: 75%;
+}
+.col-xs-push-8 {
+ left: 66.66666667%;
+}
+.col-xs-push-7 {
+ left: 58.33333333%;
+}
+.col-xs-push-6 {
+ left: 50%;
+}
+.col-xs-push-5 {
+ left: 41.66666667%;
+}
+.col-xs-push-4 {
+ left: 33.33333333%;
+}
+.col-xs-push-3 {
+ left: 25%;
+}
+.col-xs-push-2 {
+ left: 16.66666667%;
+}
+.col-xs-push-1 {
+ left: 8.33333333%;
+}
+.col-xs-push-0 {
+ left: auto;
+}
+.col-xs-offset-12 {
+ margin-left: 100%;
+}
+.col-xs-offset-11 {
+ margin-left: 91.66666667%;
+}
+.col-xs-offset-10 {
+ margin-left: 83.33333333%;
+}
+.col-xs-offset-9 {
+ margin-left: 75%;
+}
+.col-xs-offset-8 {
+ margin-left: 66.66666667%;
+}
+.col-xs-offset-7 {
+ margin-left: 58.33333333%;
+}
+.col-xs-offset-6 {
+ margin-left: 50%;
+}
+.col-xs-offset-5 {
+ margin-left: 41.66666667%;
+}
+.col-xs-offset-4 {
+ margin-left: 33.33333333%;
+}
+.col-xs-offset-3 {
+ margin-left: 25%;
+}
+.col-xs-offset-2 {
+ margin-left: 16.66666667%;
+}
+.col-xs-offset-1 {
+ margin-left: 8.33333333%;
+}
+.col-xs-offset-0 {
+ margin-left: 0;
+}
+@media (min-width: 768px) {
+ .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
+ float: left;
+ }
+ .col-sm-12 {
+ width: 100%;
+ }
+ .col-sm-11 {
+ width: 91.66666667%;
+ }
+ .col-sm-10 {
+ width: 83.33333333%;
+ }
+ .col-sm-9 {
+ width: 75%;
+ }
+ .col-sm-8 {
+ width: 66.66666667%;
+ }
+ .col-sm-7 {
+ width: 58.33333333%;
+ }
+ .col-sm-6 {
+ width: 50%;
+ }
+ .col-sm-5 {
+ width: 41.66666667%;
+ }
+ .col-sm-4 {
+ width: 33.33333333%;
+ }
+ .col-sm-3 {
+ width: 25%;
+ }
+ .col-sm-2 {
+ width: 16.66666667%;
+ }
+ .col-sm-1 {
+ width: 8.33333333%;
+ }
+ .col-sm-pull-12 {
+ right: 100%;
+ }
+ .col-sm-pull-11 {
+ right: 91.66666667%;
+ }
+ .col-sm-pull-10 {
+ right: 83.33333333%;
+ }
+ .col-sm-pull-9 {
+ right: 75%;
+ }
+ .col-sm-pull-8 {
+ right: 66.66666667%;
+ }
+ .col-sm-pull-7 {
+ right: 58.33333333%;
+ }
+ .col-sm-pull-6 {
+ right: 50%;
+ }
+ .col-sm-pull-5 {
+ right: 41.66666667%;
+ }
+ .col-sm-pull-4 {
+ right: 33.33333333%;
+ }
+ .col-sm-pull-3 {
+ right: 25%;
+ }
+ .col-sm-pull-2 {
+ right: 16.66666667%;
+ }
+ .col-sm-pull-1 {
+ right: 8.33333333%;
+ }
+ .col-sm-pull-0 {
+ right: auto;
+ }
+ .col-sm-push-12 {
+ left: 100%;
+ }
+ .col-sm-push-11 {
+ left: 91.66666667%;
+ }
+ .col-sm-push-10 {
+ left: 83.33333333%;
+ }
+ .col-sm-push-9 {
+ left: 75%;
+ }
+ .col-sm-push-8 {
+ left: 66.66666667%;
+ }
+ .col-sm-push-7 {
+ left: 58.33333333%;
+ }
+ .col-sm-push-6 {
+ left: 50%;
+ }
+ .col-sm-push-5 {
+ left: 41.66666667%;
+ }
+ .col-sm-push-4 {
+ left: 33.33333333%;
+ }
+ .col-sm-push-3 {
+ left: 25%;
+ }
+ .col-sm-push-2 {
+ left: 16.66666667%;
+ }
+ .col-sm-push-1 {
+ left: 8.33333333%;
+ }
+ .col-sm-push-0 {
+ left: auto;
+ }
+ .col-sm-offset-12 {
+ margin-left: 100%;
+ }
+ .col-sm-offset-11 {
+ margin-left: 91.66666667%;
+ }
+ .col-sm-offset-10 {
+ margin-left: 83.33333333%;
+ }
+ .col-sm-offset-9 {
+ margin-left: 75%;
+ }
+ .col-sm-offset-8 {
+ margin-left: 66.66666667%;
+ }
+ .col-sm-offset-7 {
+ margin-left: 58.33333333%;
+ }
+ .col-sm-offset-6 {
+ margin-left: 50%;
+ }
+ .col-sm-offset-5 {
+ margin-left: 41.66666667%;
+ }
+ .col-sm-offset-4 {
+ margin-left: 33.33333333%;
+ }
+ .col-sm-offset-3 {
+ margin-left: 25%;
+ }
+ .col-sm-offset-2 {
+ margin-left: 16.66666667%;
+ }
+ .col-sm-offset-1 {
+ margin-left: 8.33333333%;
+ }
+ .col-sm-offset-0 {
+ margin-left: 0;
+ }
+}
+@media (min-width: 992px) {
+ .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
+ float: left;
+ }
+ .col-md-12 {
+ width: 100%;
+ }
+ .col-md-11 {
+ width: 91.66666667%;
+ }
+ .col-md-10 {
+ width: 83.33333333%;
+ }
+ .col-md-9 {
+ width: 75%;
+ }
+ .col-md-8 {
+ width: 66.66666667%;
+ }
+ .col-md-7 {
+ width: 58.33333333%;
+ }
+ .col-md-6 {
+ width: 50%;
+ }
+ .col-md-5 {
+ width: 41.66666667%;
+ }
+ .col-md-4 {
+ width: 33.33333333%;
+ }
+ .col-md-3 {
+ width: 25%;
+ }
+ .col-md-2 {
+ width: 16.66666667%;
+ }
+ .col-md-1 {
+ width: 8.33333333%;
+ }
+ .col-md-pull-12 {
+ right: 100%;
+ }
+ .col-md-pull-11 {
+ right: 91.66666667%;
+ }
+ .col-md-pull-10 {
+ right: 83.33333333%;
+ }
+ .col-md-pull-9 {
+ right: 75%;
+ }
+ .col-md-pull-8 {
+ right: 66.66666667%;
+ }
+ .col-md-pull-7 {
+ right: 58.33333333%;
+ }
+ .col-md-pull-6 {
+ right: 50%;
+ }
+ .col-md-pull-5 {
+ right: 41.66666667%;
+ }
+ .col-md-pull-4 {
+ right: 33.33333333%;
+ }
+ .col-md-pull-3 {
+ right: 25%;
+ }
+ .col-md-pull-2 {
+ right: 16.66666667%;
+ }
+ .col-md-pull-1 {
+ right: 8.33333333%;
+ }
+ .col-md-pull-0 {
+ right: auto;
+ }
+ .col-md-push-12 {
+ left: 100%;
+ }
+ .col-md-push-11 {
+ left: 91.66666667%;
+ }
+ .col-md-push-10 {
+ left: 83.33333333%;
+ }
+ .col-md-push-9 {
+ left: 75%;
+ }
+ .col-md-push-8 {
+ left: 66.66666667%;
+ }
+ .col-md-push-7 {
+ left: 58.33333333%;
+ }
+ .col-md-push-6 {
+ left: 50%;
+ }
+ .col-md-push-5 {
+ left: 41.66666667%;
+ }
+ .col-md-push-4 {
+ left: 33.33333333%;
+ }
+ .col-md-push-3 {
+ left: 25%;
+ }
+ .col-md-push-2 {
+ left: 16.66666667%;
+ }
+ .col-md-push-1 {
+ left: 8.33333333%;
+ }
+ .col-md-push-0 {
+ left: auto;
+ }
+ .col-md-offset-12 {
+ margin-left: 100%;
+ }
+ .col-md-offset-11 {
+ margin-left: 91.66666667%;
+ }
+ .col-md-offset-10 {
+ margin-left: 83.33333333%;
+ }
+ .col-md-offset-9 {
+ margin-left: 75%;
+ }
+ .col-md-offset-8 {
+ margin-left: 66.66666667%;
+ }
+ .col-md-offset-7 {
+ margin-left: 58.33333333%;
+ }
+ .col-md-offset-6 {
+ margin-left: 50%;
+ }
+ .col-md-offset-5 {
+ margin-left: 41.66666667%;
+ }
+ .col-md-offset-4 {
+ margin-left: 33.33333333%;
+ }
+ .col-md-offset-3 {
+ margin-left: 25%;
+ }
+ .col-md-offset-2 {
+ margin-left: 16.66666667%;
+ }
+ .col-md-offset-1 {
+ margin-left: 8.33333333%;
+ }
+ .col-md-offset-0 {
+ margin-left: 0;
+ }
+}
+@media (min-width: 1200px) {
+ .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
+ float: left;
+ }
+ .col-lg-12 {
+ width: 100%;
+ }
+ .col-lg-11 {
+ width: 91.66666667%;
+ }
+ .col-lg-10 {
+ width: 83.33333333%;
+ }
+ .col-lg-9 {
+ width: 75%;
+ }
+ .col-lg-8 {
+ width: 66.66666667%;
+ }
+ .col-lg-7 {
+ width: 58.33333333%;
+ }
+ .col-lg-6 {
+ width: 50%;
+ }
+ .col-lg-5 {
+ width: 41.66666667%;
+ }
+ .col-lg-4 {
+ width: 33.33333333%;
+ }
+ .col-lg-3 {
+ width: 25%;
+ }
+ .col-lg-2 {
+ width: 16.66666667%;
+ }
+ .col-lg-1 {
+ width: 8.33333333%;
+ }
+ .col-lg-pull-12 {
+ right: 100%;
+ }
+ .col-lg-pull-11 {
+ right: 91.66666667%;
+ }
+ .col-lg-pull-10 {
+ right: 83.33333333%;
+ }
+ .col-lg-pull-9 {
+ right: 75%;
+ }
+ .col-lg-pull-8 {
+ right: 66.66666667%;
+ }
+ .col-lg-pull-7 {
+ right: 58.33333333%;
+ }
+ .col-lg-pull-6 {
+ right: 50%;
+ }
+ .col-lg-pull-5 {
+ right: 41.66666667%;
+ }
+ .col-lg-pull-4 {
+ right: 33.33333333%;
+ }
+ .col-lg-pull-3 {
+ right: 25%;
+ }
+ .col-lg-pull-2 {
+ right: 16.66666667%;
+ }
+ .col-lg-pull-1 {
+ right: 8.33333333%;
+ }
+ .col-lg-pull-0 {
+ right: auto;
+ }
+ .col-lg-push-12 {
+ left: 100%;
+ }
+ .col-lg-push-11 {
+ left: 91.66666667%;
+ }
+ .col-lg-push-10 {
+ left: 83.33333333%;
+ }
+ .col-lg-push-9 {
+ left: 75%;
+ }
+ .col-lg-push-8 {
+ left: 66.66666667%;
+ }
+ .col-lg-push-7 {
+ left: 58.33333333%;
+ }
+ .col-lg-push-6 {
+ left: 50%;
+ }
+ .col-lg-push-5 {
+ left: 41.66666667%;
+ }
+ .col-lg-push-4 {
+ left: 33.33333333%;
+ }
+ .col-lg-push-3 {
+ left: 25%;
+ }
+ .col-lg-push-2 {
+ left: 16.66666667%;
+ }
+ .col-lg-push-1 {
+ left: 8.33333333%;
+ }
+ .col-lg-push-0 {
+ left: auto;
+ }
+ .col-lg-offset-12 {
+ margin-left: 100%;
+ }
+ .col-lg-offset-11 {
+ margin-left: 91.66666667%;
+ }
+ .col-lg-offset-10 {
+ margin-left: 83.33333333%;
+ }
+ .col-lg-offset-9 {
+ margin-left: 75%;
+ }
+ .col-lg-offset-8 {
+ margin-left: 66.66666667%;
+ }
+ .col-lg-offset-7 {
+ margin-left: 58.33333333%;
+ }
+ .col-lg-offset-6 {
+ margin-left: 50%;
+ }
+ .col-lg-offset-5 {
+ margin-left: 41.66666667%;
+ }
+ .col-lg-offset-4 {
+ margin-left: 33.33333333%;
+ }
+ .col-lg-offset-3 {
+ margin-left: 25%;
+ }
+ .col-lg-offset-2 {
+ margin-left: 16.66666667%;
+ }
+ .col-lg-offset-1 {
+ margin-left: 8.33333333%;
+ }
+ .col-lg-offset-0 {
+ margin-left: 0;
+ }
+}
+table {
+ background-color: transparent;
+}
+caption {
+ padding-top: 8px;
+ padding-bottom: 8px;
+ color: #777;
+ text-align: left;
+}
+th {
+ text-align: left;
+}
+.table {
+ width: 100%;
+ max-width: 100%;
+ margin-bottom: 20px;
+}
+.table > thead > tr > th,
+.table > tbody > tr > th,
+.table > tfoot > tr > th,
+.table > thead > tr > td,
+.table > tbody > tr > td,
+.table > tfoot > tr > td {
+ padding: 8px;
+ line-height: 1.42857143;
+ vertical-align: top;
+ border-top: 1px solid #ddd;
+}
+.table > thead > tr > th {
+ vertical-align: bottom;
+ border-bottom: 2px solid #ddd;
+}
+.table > caption + thead > tr:first-child > th,
+.table > colgroup + thead > tr:first-child > th,
+.table > thead:first-child > tr:first-child > th,
+.table > caption + thead > tr:first-child > td,
+.table > colgroup + thead > tr:first-child > td,
+.table > thead:first-child > tr:first-child > td {
+ border-top: 0;
+}
+.table > tbody + tbody {
+ border-top: 2px solid #ddd;
+}
+.table .table {
+ background-color: #fff;
+}
+.table-condensed > thead > tr > th,
+.table-condensed > tbody > tr > th,
+.table-condensed > tfoot > tr > th,
+.table-condensed > thead > tr > td,
+.table-condensed > tbody > tr > td,
+.table-condensed > tfoot > tr > td {
+ padding: 5px;
+}
+.table-bordered {
+ border: 1px solid #ddd;
+}
+.table-bordered > thead > tr > th,
+.table-bordered > tbody > tr > th,
+.table-bordered > tfoot > tr > th,
+.table-bordered > thead > tr > td,
+.table-bordered > tbody > tr > td,
+.table-bordered > tfoot > tr > td {
+ border: 1px solid #ddd;
+}
+.table-bordered > thead > tr > th,
+.table-bordered > thead > tr > td {
+ border-bottom-width: 2px;
+}
+.table-striped > tbody > tr:nth-of-type(odd) {
+ background-color: #f9f9f9;
+}
+.table-hover > tbody > tr:hover {
+ background-color: #f5f5f5;
+}
+table col[class*="col-"] {
+ position: static;
+ display: table-column;
+ float: none;
+}
+table td[class*="col-"],
+table th[class*="col-"] {
+ position: static;
+ display: table-cell;
+ float: none;
+}
+.table > thead > tr > td.active,
+.table > tbody > tr > td.active,
+.table > tfoot > tr > td.active,
+.table > thead > tr > th.active,
+.table > tbody > tr > th.active,
+.table > tfoot > tr > th.active,
+.table > thead > tr.active > td,
+.table > tbody > tr.active > td,
+.table > tfoot > tr.active > td,
+.table > thead > tr.active > th,
+.table > tbody > tr.active > th,
+.table > tfoot > tr.active > th {
+ background-color: #f5f5f5;
+}
+.table-hover > tbody > tr > td.active:hover,
+.table-hover > tbody > tr > th.active:hover,
+.table-hover > tbody > tr.active:hover > td,
+.table-hover > tbody > tr:hover > .active,
+.table-hover > tbody > tr.active:hover > th {
+ background-color: #e8e8e8;
+}
+.table > thead > tr > td.success,
+.table > tbody > tr > td.success,
+.table > tfoot > tr > td.success,
+.table > thead > tr > th.success,
+.table > tbody > tr > th.success,
+.table > tfoot > tr > th.success,
+.table > thead > tr.success > td,
+.table > tbody > tr.success > td,
+.table > tfoot > tr.success > td,
+.table > thead > tr.success > th,
+.table > tbody > tr.success > th,
+.table > tfoot > tr.success > th {
+ background-color: #dff0d8;
+}
+.table-hover > tbody > tr > td.success:hover,
+.table-hover > tbody > tr > th.success:hover,
+.table-hover > tbody > tr.success:hover > td,
+.table-hover > tbody > tr:hover > .success,
+.table-hover > tbody > tr.success:hover > th {
+ background-color: #d0e9c6;
+}
+.table > thead > tr > td.info,
+.table > tbody > tr > td.info,
+.table > tfoot > tr > td.info,
+.table > thead > tr > th.info,
+.table > tbody > tr > th.info,
+.table > tfoot > tr > th.info,
+.table > thead > tr.info > td,
+.table > tbody > tr.info > td,
+.table > tfoot > tr.info > td,
+.table > thead > tr.info > th,
+.table > tbody > tr.info > th,
+.table > tfoot > tr.info > th {
+ background-color: #d9edf7;
+}
+.table-hover > tbody > tr > td.info:hover,
+.table-hover > tbody > tr > th.info:hover,
+.table-hover > tbody > tr.info:hover > td,
+.table-hover > tbody > tr:hover > .info,
+.table-hover > tbody > tr.info:hover > th {
+ background-color: #c4e3f3;
+}
+.table > thead > tr > td.warning,
+.table > tbody > tr > td.warning,
+.table > tfoot > tr > td.warning,
+.table > thead > tr > th.warning,
+.table > tbody > tr > th.warning,
+.table > tfoot > tr > th.warning,
+.table > thead > tr.warning > td,
+.table > tbody > tr.warning > td,
+.table > tfoot > tr.warning > td,
+.table > thead > tr.warning > th,
+.table > tbody > tr.warning > th,
+.table > tfoot > tr.warning > th {
+ background-color: #fcf8e3;
+}
+.table-hover > tbody > tr > td.warning:hover,
+.table-hover > tbody > tr > th.warning:hover,
+.table-hover > tbody > tr.warning:hover > td,
+.table-hover > tbody > tr:hover > .warning,
+.table-hover > tbody > tr.warning:hover > th {
+ background-color: #faf2cc;
+}
+.table > thead > tr > td.danger,
+.table > tbody > tr > td.danger,
+.table > tfoot > tr > td.danger,
+.table > thead > tr > th.danger,
+.table > tbody > tr > th.danger,
+.table > tfoot > tr > th.danger,
+.table > thead > tr.danger > td,
+.table > tbody > tr.danger > td,
+.table > tfoot > tr.danger > td,
+.table > thead > tr.danger > th,
+.table > tbody > tr.danger > th,
+.table > tfoot > tr.danger > th {
+ background-color: #f2dede;
+}
+.table-hover > tbody > tr > td.danger:hover,
+.table-hover > tbody > tr > th.danger:hover,
+.table-hover > tbody > tr.danger:hover > td,
+.table-hover > tbody > tr:hover > .danger,
+.table-hover > tbody > tr.danger:hover > th {
+ background-color: #ebcccc;
+}
+.table-responsive {
+ min-height: .01%;
+ overflow-x: auto;
+}
+@media screen and (max-width: 767px) {
+ .table-responsive {
+ width: 100%;
+ margin-bottom: 15px;
+ overflow-y: hidden;
+ -ms-overflow-style: -ms-autohiding-scrollbar;
+ border: 1px solid #ddd;
+ }
+ .table-responsive > .table {
+ margin-bottom: 0;
+ }
+ .table-responsive > .table > thead > tr > th,
+ .table-responsive > .table > tbody > tr > th,
+ .table-responsive > .table > tfoot > tr > th,
+ .table-responsive > .table > thead > tr > td,
+ .table-responsive > .table > tbody > tr > td,
+ .table-responsive > .table > tfoot > tr > td {
+ white-space: nowrap;
+ }
+ .table-responsive > .table-bordered {
+ border: 0;
+ }
+ .table-responsive > .table-bordered > thead > tr > th:first-child,
+ .table-responsive > .table-bordered > tbody > tr > th:first-child,
+ .table-responsive > .table-bordered > tfoot > tr > th:first-child,
+ .table-responsive > .table-bordered > thead > tr > td:first-child,
+ .table-responsive > .table-bordered > tbody > tr > td:first-child,
+ .table-responsive > .table-bordered > tfoot > tr > td:first-child {
+ border-left: 0;
+ }
+ .table-responsive > .table-bordered > thead > tr > th:last-child,
+ .table-responsive > .table-bordered > tbody > tr > th:last-child,
+ .table-responsive > .table-bordered > tfoot > tr > th:last-child,
+ .table-responsive > .table-bordered > thead > tr > td:last-child,
+ .table-responsive > .table-bordered > tbody > tr > td:last-child,
+ .table-responsive > .table-bordered > tfoot > tr > td:last-child {
+ border-right: 0;
+ }
+ .table-responsive > .table-bordered > tbody > tr:last-child > th,
+ .table-responsive > .table-bordered > tfoot > tr:last-child > th,
+ .table-responsive > .table-bordered > tbody > tr:last-child > td,
+ .table-responsive > .table-bordered > tfoot > tr:last-child > td {
+ border-bottom: 0;
+ }
+}
+fieldset {
+ min-width: 0;
+ padding: 0;
+ margin: 0;
+ border: 0;
+}
+legend {
+ display: block;
+ width: 100%;
+ padding: 0;
+ margin-bottom: 20px;
+ font-size: 21px;
+ line-height: inherit;
+ color: #333;
+ border: 0;
+ border-bottom: 1px solid #e5e5e5;
+}
+label {
+ display: inline-block;
+ max-width: 100%;
+ margin-bottom: 5px;
+ font-weight: bold;
+}
+input[type="search"] {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+input[type="radio"],
+input[type="checkbox"] {
+ margin: 4px 0 0;
+ margin-top: 1px \9;
+ line-height: normal;
+}
+input[type="file"] {
+ display: block;
+}
+input[type="range"] {
+ display: block;
+ width: 100%;
+}
+select[multiple],
+select[size] {
+ height: auto;
+}
+input[type="file"]:focus,
+input[type="radio"]:focus,
+input[type="checkbox"]:focus {
+ outline: thin dotted;
+ outline: 5px auto -webkit-focus-ring-color;
+ outline-offset: -2px;
+}
+output {
+ display: block;
+ padding-top: 7px;
+ font-size: 14px;
+ line-height: 1.42857143;
+ color: #555;
+}
+.form-control {
+ display: block;
+ width: 100%;
+ height: 34px;
+ padding: 6px 12px;
+ font-size: 14px;
+ line-height: 1.42857143;
+ color: #555;
+ background-color: #fff;
+ background-image: none;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
+ -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
+ -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
+ transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
+}
+.form-control:focus {
+ border-color: #66afe9;
+ outline: 0;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
+}
+.form-control::-moz-placeholder {
+ color: #999;
+ opacity: 1;
+}
+.form-control:-ms-input-placeholder {
+ color: #999;
+}
+.form-control::-webkit-input-placeholder {
+ color: #999;
+}
+.form-control[disabled],
+.form-control[readonly],
+fieldset[disabled] .form-control {
+ cursor: not-allowed;
+ background-color: #eee;
+ opacity: 1;
+}
+textarea.form-control {
+ height: auto;
+}
+input[type="search"] {
+ -webkit-appearance: none;
+}
+@media screen and (-webkit-min-device-pixel-ratio: 0) {
+ input[type="date"],
+ input[type="time"],
+ input[type="datetime-local"],
+ input[type="month"] {
+ line-height: 34px;
+ }
+ input[type="date"].input-sm,
+ input[type="time"].input-sm,
+ input[type="datetime-local"].input-sm,
+ input[type="month"].input-sm,
+ .input-group-sm input[type="date"],
+ .input-group-sm input[type="time"],
+ .input-group-sm input[type="datetime-local"],
+ .input-group-sm input[type="month"] {
+ line-height: 30px;
+ }
+ input[type="date"].input-lg,
+ input[type="time"].input-lg,
+ input[type="datetime-local"].input-lg,
+ input[type="month"].input-lg,
+ .input-group-lg input[type="date"],
+ .input-group-lg input[type="time"],
+ .input-group-lg input[type="datetime-local"],
+ .input-group-lg input[type="month"] {
+ line-height: 46px;
+ }
+}
+.form-group {
+ margin-bottom: 15px;
+}
+.radio,
+.checkbox {
+ position: relative;
+ display: block;
+ margin-top: 10px;
+ margin-bottom: 10px;
+}
+.radio label,
+.checkbox label {
+ min-height: 20px;
+ padding-left: 20px;
+ margin-bottom: 0;
+ font-weight: normal;
+ cursor: pointer;
+}
+.radio input[type="radio"],
+.radio-inline input[type="radio"],
+.checkbox input[type="checkbox"],
+.checkbox-inline input[type="checkbox"] {
+ position: absolute;
+ margin-top: 4px \9;
+ margin-left: -20px;
+}
+.radio + .radio,
+.checkbox + .checkbox {
+ margin-top: -5px;
+}
+.radio-inline,
+.checkbox-inline {
+ display: inline-block;
+ padding-left: 20px;
+ margin-bottom: 0;
+ font-weight: normal;
+ vertical-align: middle;
+ cursor: pointer;
+}
+.radio-inline + .radio-inline,
+.checkbox-inline + .checkbox-inline {
+ margin-top: 0;
+ margin-left: 10px;
+}
+input[type="radio"][disabled],
+input[type="checkbox"][disabled],
+input[type="radio"].disabled,
+input[type="checkbox"].disabled,
+fieldset[disabled] input[type="radio"],
+fieldset[disabled] input[type="checkbox"] {
+ cursor: not-allowed;
+}
+.radio-inline.disabled,
+.checkbox-inline.disabled,
+fieldset[disabled] .radio-inline,
+fieldset[disabled] .checkbox-inline {
+ cursor: not-allowed;
+}
+.radio.disabled label,
+.checkbox.disabled label,
+fieldset[disabled] .radio label,
+fieldset[disabled] .checkbox label {
+ cursor: not-allowed;
+}
+.form-control-static {
+ padding-top: 7px;
+ padding-bottom: 7px;
+ margin-bottom: 0;
+}
+.form-control-static.input-lg,
+.form-control-static.input-sm {
+ padding-right: 0;
+ padding-left: 0;
+}
+.input-sm {
+ height: 30px;
+ padding: 5px 10px;
+ font-size: 12px;
+ line-height: 1.5;
+ border-radius: 3px;
+}
+select.input-sm {
+ height: 30px;
+ line-height: 30px;
+}
+textarea.input-sm,
+select[multiple].input-sm {
+ height: auto;
+}
+.form-group-sm .form-control {
+ height: 30px;
+ padding: 5px 10px;
+ font-size: 12px;
+ line-height: 1.5;
+ border-radius: 3px;
+}
+select.form-group-sm .form-control {
+ height: 30px;
+ line-height: 30px;
+}
+textarea.form-group-sm .form-control,
+select[multiple].form-group-sm .form-control {
+ height: auto;
+}
+.form-group-sm .form-control-static {
+ height: 30px;
+ padding: 5px 10px;
+ font-size: 12px;
+ line-height: 1.5;
+}
+.input-lg {
+ height: 46px;
+ padding: 10px 16px;
+ font-size: 18px;
+ line-height: 1.3333333;
+ border-radius: 6px;
+}
+select.input-lg {
+ height: 46px;
+ line-height: 46px;
+}
+textarea.input-lg,
+select[multiple].input-lg {
+ height: auto;
+}
+.form-group-lg .form-control {
+ height: 46px;
+ padding: 10px 16px;
+ font-size: 18px;
+ line-height: 1.3333333;
+ border-radius: 6px;
+}
+select.form-group-lg .form-control {
+ height: 46px;
+ line-height: 46px;
+}
+textarea.form-group-lg .form-control,
+select[multiple].form-group-lg .form-control {
+ height: auto;
+}
+.form-group-lg .form-control-static {
+ height: 46px;
+ padding: 10px 16px;
+ font-size: 18px;
+ line-height: 1.3333333;
+}
+.has-feedback {
+ position: relative;
+}
+.has-feedback .form-control {
+ padding-right: 42.5px;
+}
+.form-control-feedback {
+ position: absolute;
+ top: 0;
+ right: 0;
+ z-index: 2;
+ display: block;
+ width: 34px;
+ height: 34px;
+ line-height: 34px;
+ text-align: center;
+ pointer-events: none;
+}
+.input-lg + .form-control-feedback {
+ width: 46px;
+ height: 46px;
+ line-height: 46px;
+}
+.input-sm + .form-control-feedback {
+ width: 30px;
+ height: 30px;
+ line-height: 30px;
+}
+.has-success .help-block,
+.has-success .control-label,
+.has-success .radio,
+.has-success .checkbox,
+.has-success .radio-inline,
+.has-success .checkbox-inline,
+.has-success.radio label,
+.has-success.checkbox label,
+.has-success.radio-inline label,
+.has-success.checkbox-inline label {
+ color: #3c763d;
+}
+.has-success .form-control {
+ border-color: #3c763d;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
+}
+.has-success .form-control:focus {
+ border-color: #2b542c;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;
+}
+.has-success .input-group-addon {
+ color: #3c763d;
+ background-color: #dff0d8;
+ border-color: #3c763d;
+}
+.has-success .form-control-feedback {
+ color: #3c763d;
+}
+.has-warning .help-block,
+.has-warning .control-label,
+.has-warning .radio,
+.has-warning .checkbox,
+.has-warning .radio-inline,
+.has-warning .checkbox-inline,
+.has-warning.radio label,
+.has-warning.checkbox label,
+.has-warning.radio-inline label,
+.has-warning.checkbox-inline label {
+ color: #8a6d3b;
+}
+.has-warning .form-control {
+ border-color: #8a6d3b;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
+}
+.has-warning .form-control:focus {
+ border-color: #66512c;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;
+}
+.has-warning .input-group-addon {
+ color: #8a6d3b;
+ background-color: #fcf8e3;
+ border-color: #8a6d3b;
+}
+.has-warning .form-control-feedback {
+ color: #8a6d3b;
+}
+.has-error .help-block,
+.has-error .control-label,
+.has-error .radio,
+.has-error .checkbox,
+.has-error .radio-inline,
+.has-error .checkbox-inline,
+.has-error.radio label,
+.has-error.checkbox label,
+.has-error.radio-inline label,
+.has-error.checkbox-inline label {
+ color: #a94442;
+}
+.has-error .form-control {
+ border-color: #a94442;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
+}
+.has-error .form-control:focus {
+ border-color: #843534;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
+}
+.has-error .input-group-addon {
+ color: #a94442;
+ background-color: #f2dede;
+ border-color: #a94442;
+}
+.has-error .form-control-feedback {
+ color: #a94442;
+}
+.has-feedback label ~ .form-control-feedback {
+ top: 25px;
+}
+.has-feedback label.sr-only ~ .form-control-feedback {
+ top: 0;
+}
+.help-block {
+ display: block;
+ margin-top: 5px;
+ margin-bottom: 10px;
+ color: #737373;
+}
+@media (min-width: 768px) {
+ .form-inline .form-group {
+ display: inline-block;
+ margin-bottom: 0;
+ vertical-align: middle;
+ }
+ .form-inline .form-control {
+ display: inline-block;
+ width: auto;
+ vertical-align: middle;
+ }
+ .form-inline .form-control-static {
+ display: inline-block;
+ }
+ .form-inline .input-group {
+ display: inline-table;
+ vertical-align: middle;
+ }
+ .form-inline .input-group .input-group-addon,
+ .form-inline .input-group .input-group-btn,
+ .form-inline .input-group .form-control {
+ width: auto;
+ }
+ .form-inline .input-group > .form-control {
+ width: 100%;
+ }
+ .form-inline .control-label {
+ margin-bottom: 0;
+ vertical-align: middle;
+ }
+ .form-inline .radio,
+ .form-inline .checkbox {
+ display: inline-block;
+ margin-top: 0;
+ margin-bottom: 0;
+ vertical-align: middle;
+ }
+ .form-inline .radio label,
+ .form-inline .checkbox label {
+ padding-left: 0;
+ }
+ .form-inline .radio input[type="radio"],
+ .form-inline .checkbox input[type="checkbox"] {
+ position: relative;
+ margin-left: 0;
+ }
+ .form-inline .has-feedback .form-control-feedback {
+ top: 0;
+ }
+}
+.form-horizontal .radio,
+.form-horizontal .checkbox,
+.form-horizontal .radio-inline,
+.form-horizontal .checkbox-inline {
+ padding-top: 7px;
+ margin-top: 0;
+ margin-bottom: 0;
+}
+.form-horizontal .radio,
+.form-horizontal .checkbox {
+ min-height: 27px;
+}
+.form-horizontal .form-group {
+ margin-right: -15px;
+ margin-left: -15px;
+}
+@media (min-width: 768px) {
+ .form-horizontal .control-label {
+ padding-top: 7px;
+ margin-bottom: 0;
+ text-align: right;
+ }
+}
+.form-horizontal .has-feedback .form-control-feedback {
+ right: 15px;
+}
+@media (min-width: 768px) {
+ .form-horizontal .form-group-lg .control-label {
+ padding-top: 14.333333px;
+ }
+}
+@media (min-width: 768px) {
+ .form-horizontal .form-group-sm .control-label {
+ padding-top: 6px;
+ }
+}
+.btn {
+ display: inline-block;
+ padding: 6px 12px;
+ margin-bottom: 0;
+ font-size: 14px;
+ font-weight: normal;
+ line-height: 1.42857143;
+ text-align: center;
+ white-space: nowrap;
+ vertical-align: middle;
+ -ms-touch-action: manipulation;
+ touch-action: manipulation;
+ cursor: pointer;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ background-image: none;
+ border: 1px solid transparent;
+ border-radius: 4px;
+}
+.btn:focus,
+.btn:active:focus,
+.btn.active:focus,
+.btn.focus,
+.btn:active.focus,
+.btn.active.focus {
+ outline: thin dotted;
+ outline: 5px auto -webkit-focus-ring-color;
+ outline-offset: -2px;
+}
+.btn:hover,
+.btn:focus,
+.btn.focus {
+ color: #333;
+ text-decoration: none;
+}
+.btn:active,
+.btn.active {
+ background-image: none;
+ outline: 0;
+ -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
+ box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
+}
+.btn.disabled,
+.btn[disabled],
+fieldset[disabled] .btn {
+ pointer-events: none;
+ cursor: not-allowed;
+ filter: alpha(opacity=65);
+ -webkit-box-shadow: none;
+ box-shadow: none;
+ opacity: .65;
+}
+.btn-default {
+ color: #333;
+ background-color: #fff;
+ border-color: #ccc;
+}
+.btn-default:hover,
+.btn-default:focus,
+.btn-default.focus,
+.btn-default:active,
+.btn-default.active,
+.open > .dropdown-toggle.btn-default {
+ color: #333;
+ background-color: #e6e6e6;
+ border-color: #adadad;
+}
+.btn-default:active,
+.btn-default.active,
+.open > .dropdown-toggle.btn-default {
+ background-image: none;
+}
+.btn-default.disabled,
+.btn-default[disabled],
+fieldset[disabled] .btn-default,
+.btn-default.disabled:hover,
+.btn-default[disabled]:hover,
+fieldset[disabled] .btn-default:hover,
+.btn-default.disabled:focus,
+.btn-default[disabled]:focus,
+fieldset[disabled] .btn-default:focus,
+.btn-default.disabled.focus,
+.btn-default[disabled].focus,
+fieldset[disabled] .btn-default.focus,
+.btn-default.disabled:active,
+.btn-default[disabled]:active,
+fieldset[disabled] .btn-default:active,
+.btn-default.disabled.active,
+.btn-default[disabled].active,
+fieldset[disabled] .btn-default.active {
+ background-color: #fff;
+ border-color: #ccc;
+}
+.btn-default .badge {
+ color: #fff;
+ background-color: #333;
+}
+.btn-primary {
+ color: #fff;
+ background-color: #337ab7;
+ border-color: #2e6da4;
+}
+.btn-primary:hover,
+.btn-primary:focus,
+.btn-primary.focus,
+.btn-primary:active,
+.btn-primary.active,
+.open > .dropdown-toggle.btn-primary {
+ color: #fff;
+ background-color: #286090;
+ border-color: #204d74;
+}
+.btn-primary:active,
+.btn-primary.active,
+.open > .dropdown-toggle.btn-primary {
+ background-image: none;
+}
+.btn-primary.disabled,
+.btn-primary[disabled],
+fieldset[disabled] .btn-primary,
+.btn-primary.disabled:hover,
+.btn-primary[disabled]:hover,
+fieldset[disabled] .btn-primary:hover,
+.btn-primary.disabled:focus,
+.btn-primary[disabled]:focus,
+fieldset[disabled] .btn-primary:focus,
+.btn-primary.disabled.focus,
+.btn-primary[disabled].focus,
+fieldset[disabled] .btn-primary.focus,
+.btn-primary.disabled:active,
+.btn-primary[disabled]:active,
+fieldset[disabled] .btn-primary:active,
+.btn-primary.disabled.active,
+.btn-primary[disabled].active,
+fieldset[disabled] .btn-primary.active {
+ background-color: #337ab7;
+ border-color: #2e6da4;
+}
+.btn-primary .badge {
+ color: #337ab7;
+ background-color: #fff;
+}
+.btn-success {
+ color: #fff;
+ background-color: #5cb85c;
+ border-color: #4cae4c;
+}
+.btn-success:hover,
+.btn-success:focus,
+.btn-success.focus,
+.btn-success:active,
+.btn-success.active,
+.open > .dropdown-toggle.btn-success {
+ color: #fff;
+ background-color: #449d44;
+ border-color: #398439;
+}
+.btn-success:active,
+.btn-success.active,
+.open > .dropdown-toggle.btn-success {
+ background-image: none;
+}
+.btn-success.disabled,
+.btn-success[disabled],
+fieldset[disabled] .btn-success,
+.btn-success.disabled:hover,
+.btn-success[disabled]:hover,
+fieldset[disabled] .btn-success:hover,
+.btn-success.disabled:focus,
+.btn-success[disabled]:focus,
+fieldset[disabled] .btn-success:focus,
+.btn-success.disabled.focus,
+.btn-success[disabled].focus,
+fieldset[disabled] .btn-success.focus,
+.btn-success.disabled:active,
+.btn-success[disabled]:active,
+fieldset[disabled] .btn-success:active,
+.btn-success.disabled.active,
+.btn-success[disabled].active,
+fieldset[disabled] .btn-success.active {
+ background-color: #5cb85c;
+ border-color: #4cae4c;
+}
+.btn-success .badge {
+ color: #5cb85c;
+ background-color: #fff;
+}
+.btn-info {
+ color: #fff;
+ background-color: #5bc0de;
+ border-color: #46b8da;
+}
+.btn-info:hover,
+.btn-info:focus,
+.btn-info.focus,
+.btn-info:active,
+.btn-info.active,
+.open > .dropdown-toggle.btn-info {
+ color: #fff;
+ background-color: #31b0d5;
+ border-color: #269abc;
+}
+.btn-info:active,
+.btn-info.active,
+.open > .dropdown-toggle.btn-info {
+ background-image: none;
+}
+.btn-info.disabled,
+.btn-info[disabled],
+fieldset[disabled] .btn-info,
+.btn-info.disabled:hover,
+.btn-info[disabled]:hover,
+fieldset[disabled] .btn-info:hover,
+.btn-info.disabled:focus,
+.btn-info[disabled]:focus,
+fieldset[disabled] .btn-info:focus,
+.btn-info.disabled.focus,
+.btn-info[disabled].focus,
+fieldset[disabled] .btn-info.focus,
+.btn-info.disabled:active,
+.btn-info[disabled]:active,
+fieldset[disabled] .btn-info:active,
+.btn-info.disabled.active,
+.btn-info[disabled].active,
+fieldset[disabled] .btn-info.active {
+ background-color: #5bc0de;
+ border-color: #46b8da;
+}
+.btn-info .badge {
+ color: #5bc0de;
+ background-color: #fff;
+}
+.btn-warning {
+ color: #fff;
+ background-color: #f0ad4e;
+ border-color: #eea236;
+}
+.btn-warning:hover,
+.btn-warning:focus,
+.btn-warning.focus,
+.btn-warning:active,
+.btn-warning.active,
+.open > .dropdown-toggle.btn-warning {
+ color: #fff;
+ background-color: #ec971f;
+ border-color: #d58512;
+}
+.btn-warning:active,
+.btn-warning.active,
+.open > .dropdown-toggle.btn-warning {
+ background-image: none;
+}
+.btn-warning.disabled,
+.btn-warning[disabled],
+fieldset[disabled] .btn-warning,
+.btn-warning.disabled:hover,
+.btn-warning[disabled]:hover,
+fieldset[disabled] .btn-warning:hover,
+.btn-warning.disabled:focus,
+.btn-warning[disabled]:focus,
+fieldset[disabled] .btn-warning:focus,
+.btn-warning.disabled.focus,
+.btn-warning[disabled].focus,
+fieldset[disabled] .btn-warning.focus,
+.btn-warning.disabled:active,
+.btn-warning[disabled]:active,
+fieldset[disabled] .btn-warning:active,
+.btn-warning.disabled.active,
+.btn-warning[disabled].active,
+fieldset[disabled] .btn-warning.active {
+ background-color: #f0ad4e;
+ border-color: #eea236;
+}
+.btn-warning .badge {
+ color: #f0ad4e;
+ background-color: #fff;
+}
+.btn-danger {
+ color: #fff;
+ background-color: #d9534f;
+ border-color: #d43f3a;
+}
+.btn-danger:hover,
+.btn-danger:focus,
+.btn-danger.focus,
+.btn-danger:active,
+.btn-danger.active,
+.open > .dropdown-toggle.btn-danger {
+ color: #fff;
+ background-color: #c9302c;
+ border-color: #ac2925;
+}
+.btn-danger:active,
+.btn-danger.active,
+.open > .dropdown-toggle.btn-danger {
+ background-image: none;
+}
+.btn-danger.disabled,
+.btn-danger[disabled],
+fieldset[disabled] .btn-danger,
+.btn-danger.disabled:hover,
+.btn-danger[disabled]:hover,
+fieldset[disabled] .btn-danger:hover,
+.btn-danger.disabled:focus,
+.btn-danger[disabled]:focus,
+fieldset[disabled] .btn-danger:focus,
+.btn-danger.disabled.focus,
+.btn-danger[disabled].focus,
+fieldset[disabled] .btn-danger.focus,
+.btn-danger.disabled:active,
+.btn-danger[disabled]:active,
+fieldset[disabled] .btn-danger:active,
+.btn-danger.disabled.active,
+.btn-danger[disabled].active,
+fieldset[disabled] .btn-danger.active {
+ background-color: #d9534f;
+ border-color: #d43f3a;
+}
+.btn-danger .badge {
+ color: #d9534f;
+ background-color: #fff;
+}
+.btn-link {
+ font-weight: normal;
+ color: #337ab7;
+ border-radius: 0;
+}
+.btn-link,
+.btn-link:active,
+.btn-link.active,
+.btn-link[disabled],
+fieldset[disabled] .btn-link {
+ background-color: transparent;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.btn-link,
+.btn-link:hover,
+.btn-link:focus,
+.btn-link:active {
+ border-color: transparent;
+}
+.btn-link:hover,
+.btn-link:focus {
+ color: #23527c;
+ text-decoration: underline;
+ background-color: transparent;
+}
+.btn-link[disabled]:hover,
+fieldset[disabled] .btn-link:hover,
+.btn-link[disabled]:focus,
+fieldset[disabled] .btn-link:focus {
+ color: #777;
+ text-decoration: none;
+}
+.btn-lg,
+.btn-group-lg > .btn {
+ padding: 10px 16px;
+ font-size: 18px;
+ line-height: 1.3333333;
+ border-radius: 6px;
+}
+.btn-sm,
+.btn-group-sm > .btn {
+ padding: 5px 10px;
+ font-size: 12px;
+ line-height: 1.5;
+ border-radius: 3px;
+}
+.btn-xs,
+.btn-group-xs > .btn {
+ padding: 1px 5px;
+ font-size: 12px;
+ line-height: 1.5;
+ border-radius: 3px;
+}
+.btn-block {
+ display: block;
+ width: 100%;
+}
+.btn-block + .btn-block {
+ margin-top: 5px;
+}
+input[type="submit"].btn-block,
+input[type="reset"].btn-block,
+input[type="button"].btn-block {
+ width: 100%;
+}
+.fade {
+ opacity: 0;
+ -webkit-transition: opacity .15s linear;
+ -o-transition: opacity .15s linear;
+ transition: opacity .15s linear;
+}
+.fade.in {
+ opacity: 1;
+}
+.collapse {
+ display: none;
+ visibility: hidden;
+}
+.collapse.in {
+ display: block;
+ visibility: visible;
+}
+tr.collapse.in {
+ display: table-row;
+}
+tbody.collapse.in {
+ display: table-row-group;
+}
+.collapsing {
+ position: relative;
+ height: 0;
+ overflow: hidden;
+ -webkit-transition-timing-function: ease;
+ -o-transition-timing-function: ease;
+ transition-timing-function: ease;
+ -webkit-transition-duration: .35s;
+ -o-transition-duration: .35s;
+ transition-duration: .35s;
+ -webkit-transition-property: height, visibility;
+ -o-transition-property: height, visibility;
+ transition-property: height, visibility;
+}
+.caret {
+ display: inline-block;
+ width: 0;
+ height: 0;
+ margin-left: 2px;
+ vertical-align: middle;
+ border-top: 4px solid;
+ border-right: 4px solid transparent;
+ border-left: 4px solid transparent;
+}
+.dropup,
+.dropdown {
+ position: relative;
+}
+.dropdown-toggle:focus {
+ outline: 0;
+}
+.dropdown-menu {
+ position: absolute;
+ top: 100%;
+ left: 0;
+ z-index: 1000;
+ display: none;
+ float: left;
+ min-width: 160px;
+ padding: 5px 0;
+ margin: 2px 0 0;
+ font-size: 14px;
+ text-align: left;
+ list-style: none;
+ background-color: #fff;
+ -webkit-background-clip: padding-box;
+ background-clip: padding-box;
+ border: 1px solid #ccc;
+ border: 1px solid rgba(0, 0, 0, .15);
+ border-radius: 4px;
+ -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
+ box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
+}
+.dropdown-menu.pull-right {
+ right: 0;
+ left: auto;
+}
+.dropdown-menu .divider {
+ height: 1px;
+ margin: 9px 0;
+ overflow: hidden;
+ background-color: #e5e5e5;
+}
+.dropdown-menu > li > a {
+ display: block;
+ padding: 3px 20px;
+ clear: both;
+ font-weight: normal;
+ line-height: 1.42857143;
+ color: #333;
+ white-space: nowrap;
+}
+.dropdown-menu > li > a:hover,
+.dropdown-menu > li > a:focus {
+ color: #262626;
+ text-decoration: none;
+ background-color: #f5f5f5;
+}
+.dropdown-menu > .active > a,
+.dropdown-menu > .active > a:hover,
+.dropdown-menu > .active > a:focus {
+ color: #fff;
+ text-decoration: none;
+ background-color: #337ab7;
+ outline: 0;
+}
+.dropdown-menu > .disabled > a,
+.dropdown-menu > .disabled > a:hover,
+.dropdown-menu > .disabled > a:focus {
+ color: #777;
+}
+.dropdown-menu > .disabled > a:hover,
+.dropdown-menu > .disabled > a:focus {
+ text-decoration: none;
+ cursor: not-allowed;
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
+}
+.open > .dropdown-menu {
+ display: block;
+}
+.open > a {
+ outline: 0;
+}
+.dropdown-menu-right {
+ right: 0;
+ left: auto;
+}
+.dropdown-menu-left {
+ right: auto;
+ left: 0;
+}
+.dropdown-header {
+ display: block;
+ padding: 3px 20px;
+ font-size: 12px;
+ line-height: 1.42857143;
+ color: #777;
+ white-space: nowrap;
+}
+.dropdown-backdrop {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 990;
+}
+.pull-right > .dropdown-menu {
+ right: 0;
+ left: auto;
+}
+.dropup .caret,
+.navbar-fixed-bottom .dropdown .caret {
+ content: "";
+ border-top: 0;
+ border-bottom: 4px solid;
+}
+.dropup .dropdown-menu,
+.navbar-fixed-bottom .dropdown .dropdown-menu {
+ top: auto;
+ bottom: 100%;
+ margin-bottom: 2px;
+}
+@media (min-width: 768px) {
+ .navbar-right .dropdown-menu {
+ right: 0;
+ left: auto;
+ }
+ .navbar-right .dropdown-menu-left {
+ right: auto;
+ left: 0;
+ }
+}
+.btn-group,
+.btn-group-vertical {
+ position: relative;
+ display: inline-block;
+ vertical-align: middle;
+}
+.btn-group > .btn,
+.btn-group-vertical > .btn {
+ position: relative;
+ float: left;
+}
+.btn-group > .btn:hover,
+.btn-group-vertical > .btn:hover,
+.btn-group > .btn:focus,
+.btn-group-vertical > .btn:focus,
+.btn-group > .btn:active,
+.btn-group-vertical > .btn:active,
+.btn-group > .btn.active,
+.btn-group-vertical > .btn.active {
+ z-index: 2;
+}
+.btn-group .btn + .btn,
+.btn-group .btn + .btn-group,
+.btn-group .btn-group + .btn,
+.btn-group .btn-group + .btn-group {
+ margin-left: -1px;
+}
+.btn-toolbar {
+ margin-left: -5px;
+}
+.btn-toolbar .btn-group,
+.btn-toolbar .input-group {
+ float: left;
+}
+.btn-toolbar > .btn,
+.btn-toolbar > .btn-group,
+.btn-toolbar > .input-group {
+ margin-left: 5px;
+}
+.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
+ border-radius: 0;
+}
+.btn-group > .btn:first-child {
+ margin-left: 0;
+}
+.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+}
+.btn-group > .btn:last-child:not(:first-child),
+.btn-group > .dropdown-toggle:not(:first-child) {
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+}
+.btn-group > .btn-group {
+ float: left;
+}
+.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
+ border-radius: 0;
+}
+.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,
+.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+}
+.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+}
+.btn-group .dropdown-toggle:active,
+.btn-group.open .dropdown-toggle {
+ outline: 0;
+}
+.btn-group > .btn + .dropdown-toggle {
+ padding-right: 8px;
+ padding-left: 8px;
+}
+.btn-group > .btn-lg + .dropdown-toggle {
+ padding-right: 12px;
+ padding-left: 12px;
+}
+.btn-group.open .dropdown-toggle {
+ -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
+ box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
+}
+.btn-group.open .dropdown-toggle.btn-link {
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.btn .caret {
+ margin-left: 0;
+}
+.btn-lg .caret {
+ border-width: 5px 5px 0;
+ border-bottom-width: 0;
+}
+.dropup .btn-lg .caret {
+ border-width: 0 5px 5px;
+}
+.btn-group-vertical > .btn,
+.btn-group-vertical > .btn-group,
+.btn-group-vertical > .btn-group > .btn {
+ display: block;
+ float: none;
+ width: 100%;
+ max-width: 100%;
+}
+.btn-group-vertical > .btn-group > .btn {
+ float: none;
+}
+.btn-group-vertical > .btn + .btn,
+.btn-group-vertical > .btn + .btn-group,
+.btn-group-vertical > .btn-group + .btn,
+.btn-group-vertical > .btn-group + .btn-group {
+ margin-top: -1px;
+ margin-left: 0;
+}
+.btn-group-vertical > .btn:not(:first-child):not(:last-child) {
+ border-radius: 0;
+}
+.btn-group-vertical > .btn:first-child:not(:last-child) {
+ border-top-right-radius: 4px;
+ border-bottom-right-radius: 0;
+ border-bottom-left-radius: 0;
+}
+.btn-group-vertical > .btn:last-child:not(:first-child) {
+ border-top-left-radius: 0;
+ border-top-right-radius: 0;
+ border-bottom-left-radius: 4px;
+}
+.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
+ border-radius: 0;
+}
+.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,
+.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
+ border-bottom-right-radius: 0;
+ border-bottom-left-radius: 0;
+}
+.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
+ border-top-left-radius: 0;
+ border-top-right-radius: 0;
+}
+.btn-group-justified {
+ display: table;
+ width: 100%;
+ table-layout: fixed;
+ border-collapse: separate;
+}
+.btn-group-justified > .btn,
+.btn-group-justified > .btn-group {
+ display: table-cell;
+ float: none;
+ width: 1%;
+}
+.btn-group-justified > .btn-group .btn {
+ width: 100%;
+}
+.btn-group-justified > .btn-group .dropdown-menu {
+ left: auto;
+}
+[data-toggle="buttons"] > .btn input[type="radio"],
+[data-toggle="buttons"] > .btn-group > .btn input[type="radio"],
+[data-toggle="buttons"] > .btn input[type="checkbox"],
+[data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] {
+ position: absolute;
+ clip: rect(0, 0, 0, 0);
+ pointer-events: none;
+}
+.input-group {
+ position: relative;
+ display: table;
+ border-collapse: separate;
+}
+.input-group[class*="col-"] {
+ float: none;
+ padding-right: 0;
+ padding-left: 0;
+}
+.input-group .form-control {
+ position: relative;
+ z-index: 2;
+ float: left;
+ width: 100%;
+ margin-bottom: 0;
+}
+.input-group-lg > .form-control,
+.input-group-lg > .input-group-addon,
+.input-group-lg > .input-group-btn > .btn {
+ height: 46px;
+ padding: 10px 16px;
+ font-size: 18px;
+ line-height: 1.3333333;
+ border-radius: 6px;
+}
+select.input-group-lg > .form-control,
+select.input-group-lg > .input-group-addon,
+select.input-group-lg > .input-group-btn > .btn {
+ height: 46px;
+ line-height: 46px;
+}
+textarea.input-group-lg > .form-control,
+textarea.input-group-lg > .input-group-addon,
+textarea.input-group-lg > .input-group-btn > .btn,
+select[multiple].input-group-lg > .form-control,
+select[multiple].input-group-lg > .input-group-addon,
+select[multiple].input-group-lg > .input-group-btn > .btn {
+ height: auto;
+}
+.input-group-sm > .form-control,
+.input-group-sm > .input-group-addon,
+.input-group-sm > .input-group-btn > .btn {
+ height: 30px;
+ padding: 5px 10px;
+ font-size: 12px;
+ line-height: 1.5;
+ border-radius: 3px;
+}
+select.input-group-sm > .form-control,
+select.input-group-sm > .input-group-addon,
+select.input-group-sm > .input-group-btn > .btn {
+ height: 30px;
+ line-height: 30px;
+}
+textarea.input-group-sm > .form-control,
+textarea.input-group-sm > .input-group-addon,
+textarea.input-group-sm > .input-group-btn > .btn,
+select[multiple].input-group-sm > .form-control,
+select[multiple].input-group-sm > .input-group-addon,
+select[multiple].input-group-sm > .input-group-btn > .btn {
+ height: auto;
+}
+.input-group-addon,
+.input-group-btn,
+.input-group .form-control {
+ display: table-cell;
+}
+.input-group-addon:not(:first-child):not(:last-child),
+.input-group-btn:not(:first-child):not(:last-child),
+.input-group .form-control:not(:first-child):not(:last-child) {
+ border-radius: 0;
+}
+.input-group-addon,
+.input-group-btn {
+ width: 1%;
+ white-space: nowrap;
+ vertical-align: middle;
+}
+.input-group-addon {
+ padding: 6px 12px;
+ font-size: 14px;
+ font-weight: normal;
+ line-height: 1;
+ color: #555;
+ text-align: center;
+ background-color: #eee;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+.input-group-addon.input-sm {
+ padding: 5px 10px;
+ font-size: 12px;
+ border-radius: 3px;
+}
+.input-group-addon.input-lg {
+ padding: 10px 16px;
+ font-size: 18px;
+ border-radius: 6px;
+}
+.input-group-addon input[type="radio"],
+.input-group-addon input[type="checkbox"] {
+ margin-top: 0;
+}
+.input-group .form-control:first-child,
+.input-group-addon:first-child,
+.input-group-btn:first-child > .btn,
+.input-group-btn:first-child > .btn-group > .btn,
+.input-group-btn:first-child > .dropdown-toggle,
+.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),
+.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+}
+.input-group-addon:first-child {
+ border-right: 0;
+}
+.input-group .form-control:last-child,
+.input-group-addon:last-child,
+.input-group-btn:last-child > .btn,
+.input-group-btn:last-child > .btn-group > .btn,
+.input-group-btn:last-child > .dropdown-toggle,
+.input-group-btn:first-child > .btn:not(:first-child),
+.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+}
+.input-group-addon:last-child {
+ border-left: 0;
+}
+.input-group-btn {
+ position: relative;
+ font-size: 0;
+ white-space: nowrap;
+}
+.input-group-btn > .btn {
+ position: relative;
+}
+.input-group-btn > .btn + .btn {
+ margin-left: -1px;
+}
+.input-group-btn > .btn:hover,
+.input-group-btn > .btn:focus,
+.input-group-btn > .btn:active {
+ z-index: 2;
+}
+.input-group-btn:first-child > .btn,
+.input-group-btn:first-child > .btn-group {
+ margin-right: -1px;
+}
+.input-group-btn:last-child > .btn,
+.input-group-btn:last-child > .btn-group {
+ margin-left: -1px;
+}
+.nav {
+ padding-left: 0;
+ margin-bottom: 0;
+ list-style: none;
+}
+.nav > li {
+ position: relative;
+ display: block;
+}
+.nav > li > a {
+ position: relative;
+ display: block;
+ padding: 10px 15px;
+}
+.nav > li > a:hover,
+.nav > li > a:focus {
+ text-decoration: none;
+ background-color: #eee;
+}
+.nav > li.disabled > a {
+ color: #777;
+}
+.nav > li.disabled > a:hover,
+.nav > li.disabled > a:focus {
+ color: #777;
+ text-decoration: none;
+ cursor: not-allowed;
+ background-color: transparent;
+}
+.nav .open > a,
+.nav .open > a:hover,
+.nav .open > a:focus {
+ background-color: #eee;
+ border-color: #337ab7;
+}
+.nav .nav-divider {
+ height: 1px;
+ margin: 9px 0;
+ overflow: hidden;
+ background-color: #e5e5e5;
+}
+.nav > li > a > img {
+ max-width: none;
+}
+.nav-tabs {
+ border-bottom: 1px solid #ddd;
+}
+.nav-tabs > li {
+ float: left;
+ margin-bottom: -1px;
+}
+.nav-tabs > li > a {
+ margin-right: 2px;
+ line-height: 1.42857143;
+ border: 1px solid transparent;
+ border-radius: 4px 4px 0 0;
+}
+.nav-tabs > li > a:hover {
+ border-color: #eee #eee #ddd;
+}
+.nav-tabs > li.active > a,
+.nav-tabs > li.active > a:hover,
+.nav-tabs > li.active > a:focus {
+ color: #555;
+ cursor: default;
+ background-color: #fff;
+ border: 1px solid #ddd;
+ border-bottom-color: transparent;
+}
+.nav-tabs.nav-justified {
+ width: 100%;
+ border-bottom: 0;
+}
+.nav-tabs.nav-justified > li {
+ float: none;
+}
+.nav-tabs.nav-justified > li > a {
+ margin-bottom: 5px;
+ text-align: center;
+}
+.nav-tabs.nav-justified > .dropdown .dropdown-menu {
+ top: auto;
+ left: auto;
+}
+@media (min-width: 768px) {
+ .nav-tabs.nav-justified > li {
+ display: table-cell;
+ width: 1%;
+ }
+ .nav-tabs.nav-justified > li > a {
+ margin-bottom: 0;
+ }
+}
+.nav-tabs.nav-justified > li > a {
+ margin-right: 0;
+ border-radius: 4px;
+}
+.nav-tabs.nav-justified > .active > a,
+.nav-tabs.nav-justified > .active > a:hover,
+.nav-tabs.nav-justified > .active > a:focus {
+ border: 1px solid #ddd;
+}
+@media (min-width: 768px) {
+ .nav-tabs.nav-justified > li > a {
+ border-bottom: 1px solid #ddd;
+ border-radius: 4px 4px 0 0;
+ }
+ .nav-tabs.nav-justified > .active > a,
+ .nav-tabs.nav-justified > .active > a:hover,
+ .nav-tabs.nav-justified > .active > a:focus {
+ border-bottom-color: #fff;
+ }
+}
+.nav-pills > li {
+ float: left;
+}
+.nav-pills > li > a {
+ border-radius: 4px;
+}
+.nav-pills > li + li {
+ margin-left: 2px;
+}
+.nav-pills > li.active > a,
+.nav-pills > li.active > a:hover,
+.nav-pills > li.active > a:focus {
+ color: #fff;
+ background-color: #337ab7;
+}
+.nav-stacked > li {
+ float: none;
+}
+.nav-stacked > li + li {
+ margin-top: 2px;
+ margin-left: 0;
+}
+.nav-justified {
+ width: 100%;
+}
+.nav-justified > li {
+ float: none;
+}
+.nav-justified > li > a {
+ margin-bottom: 5px;
+ text-align: center;
+}
+.nav-justified > .dropdown .dropdown-menu {
+ top: auto;
+ left: auto;
+}
+@media (min-width: 768px) {
+ .nav-justified > li {
+ display: table-cell;
+ width: 1%;
+ }
+ .nav-justified > li > a {
+ margin-bottom: 0;
+ }
+}
+.nav-tabs-justified {
+ border-bottom: 0;
+}
+.nav-tabs-justified > li > a {
+ margin-right: 0;
+ border-radius: 4px;
+}
+.nav-tabs-justified > .active > a,
+.nav-tabs-justified > .active > a:hover,
+.nav-tabs-justified > .active > a:focus {
+ border: 1px solid #ddd;
+}
+@media (min-width: 768px) {
+ .nav-tabs-justified > li > a {
+ border-bottom: 1px solid #ddd;
+ border-radius: 4px 4px 0 0;
+ }
+ .nav-tabs-justified > .active > a,
+ .nav-tabs-justified > .active > a:hover,
+ .nav-tabs-justified > .active > a:focus {
+ border-bottom-color: #fff;
+ }
+}
+.tab-content > .tab-pane {
+ display: none;
+ visibility: hidden;
+}
+.tab-content > .active {
+ display: block;
+ visibility: visible;
+}
+.nav-tabs .dropdown-menu {
+ margin-top: -1px;
+ border-top-left-radius: 0;
+ border-top-right-radius: 0;
+}
+.navbar {
+ position: relative;
+ min-height: 50px;
+ margin-bottom: 20px;
+ border: 1px solid transparent;
+}
+@media (min-width: 768px) {
+ .navbar {
+ border-radius: 4px;
+ }
+}
+@media (min-width: 768px) {
+ .navbar-header {
+ float: left;
+ }
+}
+.navbar-collapse {
+ padding-right: 15px;
+ padding-left: 15px;
+ overflow-x: visible;
+ -webkit-overflow-scrolling: touch;
+ border-top: 1px solid transparent;
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
+}
+.navbar-collapse.in {
+ overflow-y: auto;
+}
+@media (min-width: 768px) {
+ .navbar-collapse {
+ width: auto;
+ border-top: 0;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+ }
+ .navbar-collapse.collapse {
+ display: block !important;
+ height: auto !important;
+ padding-bottom: 0;
+ overflow: visible !important;
+ visibility: visible !important;
+ }
+ .navbar-collapse.in {
+ overflow-y: visible;
+ }
+ .navbar-fixed-top .navbar-collapse,
+ .navbar-static-top .navbar-collapse,
+ .navbar-fixed-bottom .navbar-collapse {
+ padding-right: 0;
+ padding-left: 0;
+ }
+}
+.navbar-fixed-top .navbar-collapse,
+.navbar-fixed-bottom .navbar-collapse {
+ max-height: 340px;
+}
+@media (max-device-width: 480px) and (orientation: landscape) {
+ .navbar-fixed-top .navbar-collapse,
+ .navbar-fixed-bottom .navbar-collapse {
+ max-height: 200px;
+ }
+}
+.container > .navbar-header,
+.container-fluid > .navbar-header,
+.container > .navbar-collapse,
+.container-fluid > .navbar-collapse {
+ margin-right: -15px;
+ margin-left: -15px;
+}
+@media (min-width: 768px) {
+ .container > .navbar-header,
+ .container-fluid > .navbar-header,
+ .container > .navbar-collapse,
+ .container-fluid > .navbar-collapse {
+ margin-right: 0;
+ margin-left: 0;
+ }
+}
+.navbar-static-top {
+ z-index: 1000;
+ border-width: 0 0 1px;
+}
+@media (min-width: 768px) {
+ .navbar-static-top {
+ border-radius: 0;
+ }
+}
+.navbar-fixed-top,
+.navbar-fixed-bottom {
+ position: fixed;
+ right: 0;
+ left: 0;
+ z-index: 1030;
+}
+@media (min-width: 768px) {
+ .navbar-fixed-top,
+ .navbar-fixed-bottom {
+ border-radius: 0;
+ }
+}
+.navbar-fixed-top {
+ top: 0;
+ border-width: 0 0 1px;
+}
+.navbar-fixed-bottom {
+ bottom: 0;
+ margin-bottom: 0;
+ border-width: 1px 0 0;
+}
+.navbar-brand {
+ float: left;
+ height: 50px;
+ padding: 15px 15px;
+ font-size: 18px;
+ line-height: 20px;
+}
+.navbar-brand:hover,
+.navbar-brand:focus {
+ text-decoration: none;
+}
+.navbar-brand > img {
+ display: block;
+}
+@media (min-width: 768px) {
+ .navbar > .container .navbar-brand,
+ .navbar > .container-fluid .navbar-brand {
+ margin-left: -15px;
+ }
+}
+.navbar-toggle {
+ position: relative;
+ float: right;
+ padding: 9px 10px;
+ margin-top: 8px;
+ margin-right: 15px;
+ margin-bottom: 8px;
+ background-color: transparent;
+ background-image: none;
+ border: 1px solid transparent;
+ border-radius: 4px;
+}
+.navbar-toggle:focus {
+ outline: 0;
+}
+.navbar-toggle .icon-bar {
+ display: block;
+ width: 22px;
+ height: 2px;
+ border-radius: 1px;
+}
+.navbar-toggle .icon-bar + .icon-bar {
+ margin-top: 4px;
+}
+@media (min-width: 768px) {
+ .navbar-toggle {
+ display: none;
+ }
+}
+.navbar-nav {
+ margin: 7.5px -15px;
+}
+.navbar-nav > li > a {
+ padding-top: 10px;
+ padding-bottom: 10px;
+ line-height: 20px;
+}
+@media (max-width: 767px) {
+ .navbar-nav .open .dropdown-menu {
+ position: static;
+ float: none;
+ width: auto;
+ margin-top: 0;
+ background-color: transparent;
+ border: 0;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+ }
+ .navbar-nav .open .dropdown-menu > li > a,
+ .navbar-nav .open .dropdown-menu .dropdown-header {
+ padding: 5px 15px 5px 25px;
+ }
+ .navbar-nav .open .dropdown-menu > li > a {
+ line-height: 20px;
+ }
+ .navbar-nav .open .dropdown-menu > li > a:hover,
+ .navbar-nav .open .dropdown-menu > li > a:focus {
+ background-image: none;
+ }
+}
+@media (min-width: 768px) {
+ .navbar-nav {
+ float: left;
+ margin: 0;
+ }
+ .navbar-nav > li {
+ float: left;
+ }
+ .navbar-nav > li > a {
+ padding-top: 15px;
+ padding-bottom: 15px;
+ }
+}
+.navbar-form {
+ padding: 10px 15px;
+ margin-top: 8px;
+ margin-right: -15px;
+ margin-bottom: 8px;
+ margin-left: -15px;
+ border-top: 1px solid transparent;
+ border-bottom: 1px solid transparent;
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1);
+}
+@media (min-width: 768px) {
+ .navbar-form .form-group {
+ display: inline-block;
+ margin-bottom: 0;
+ vertical-align: middle;
+ }
+ .navbar-form .form-control {
+ display: inline-block;
+ width: auto;
+ vertical-align: middle;
+ }
+ .navbar-form .form-control-static {
+ display: inline-block;
+ }
+ .navbar-form .input-group {
+ display: inline-table;
+ vertical-align: middle;
+ }
+ .navbar-form .input-group .input-group-addon,
+ .navbar-form .input-group .input-group-btn,
+ .navbar-form .input-group .form-control {
+ width: auto;
+ }
+ .navbar-form .input-group > .form-control {
+ width: 100%;
+ }
+ .navbar-form .control-label {
+ margin-bottom: 0;
+ vertical-align: middle;
+ }
+ .navbar-form .radio,
+ .navbar-form .checkbox {
+ display: inline-block;
+ margin-top: 0;
+ margin-bottom: 0;
+ vertical-align: middle;
+ }
+ .navbar-form .radio label,
+ .navbar-form .checkbox label {
+ padding-left: 0;
+ }
+ .navbar-form .radio input[type="radio"],
+ .navbar-form .checkbox input[type="checkbox"] {
+ position: relative;
+ margin-left: 0;
+ }
+ .navbar-form .has-feedback .form-control-feedback {
+ top: 0;
+ }
+}
+@media (max-width: 767px) {
+ .navbar-form .form-group {
+ margin-bottom: 5px;
+ }
+ .navbar-form .form-group:last-child {
+ margin-bottom: 0;
+ }
+}
+@media (min-width: 768px) {
+ .navbar-form {
+ width: auto;
+ padding-top: 0;
+ padding-bottom: 0;
+ margin-right: 0;
+ margin-left: 0;
+ border: 0;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+ }
+}
+.navbar-nav > li > .dropdown-menu {
+ margin-top: 0;
+ border-top-left-radius: 0;
+ border-top-right-radius: 0;
+}
+.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
+ margin-bottom: 0;
+ border-top-left-radius: 4px;
+ border-top-right-radius: 4px;
+ border-bottom-right-radius: 0;
+ border-bottom-left-radius: 0;
+}
+.navbar-btn {
+ margin-top: 8px;
+ margin-bottom: 8px;
+}
+.navbar-btn.btn-sm {
+ margin-top: 10px;
+ margin-bottom: 10px;
+}
+.navbar-btn.btn-xs {
+ margin-top: 14px;
+ margin-bottom: 14px;
+}
+.navbar-text {
+ margin-top: 15px;
+ margin-bottom: 15px;
+}
+@media (min-width: 768px) {
+ .navbar-text {
+ float: left;
+ margin-right: 15px;
+ margin-left: 15px;
+ }
+}
+@media (min-width: 768px) {
+ .navbar-left {
+ float: left !important;
+ }
+ .navbar-right {
+ float: right !important;
+ margin-right: -15px;
+ }
+ .navbar-right ~ .navbar-right {
+ margin-right: 0;
+ }
+}
+.navbar-default {
+ background-color: #f8f8f8;
+ border-color: #e7e7e7;
+}
+.navbar-default .navbar-brand {
+ color: #777;
+}
+.navbar-default .navbar-brand:hover,
+.navbar-default .navbar-brand:focus {
+ color: #5e5e5e;
+ background-color: transparent;
+}
+.navbar-default .navbar-text {
+ color: #777;
+}
+.navbar-default .navbar-nav > li > a {
+ color: #777;
+}
+.navbar-default .navbar-nav > li > a:hover,
+.navbar-default .navbar-nav > li > a:focus {
+ color: #333;
+ background-color: transparent;
+}
+.navbar-default .navbar-nav > .active > a,
+.navbar-default .navbar-nav > .active > a:hover,
+.navbar-default .navbar-nav > .active > a:focus {
+ color: #555;
+ background-color: #e7e7e7;
+}
+.navbar-default .navbar-nav > .disabled > a,
+.navbar-default .navbar-nav > .disabled > a:hover,
+.navbar-default .navbar-nav > .disabled > a:focus {
+ color: #ccc;
+ background-color: transparent;
+}
+.navbar-default .navbar-toggle {
+ border-color: #ddd;
+}
+.navbar-default .navbar-toggle:hover,
+.navbar-default .navbar-toggle:focus {
+ background-color: #ddd;
+}
+.navbar-default .navbar-toggle .icon-bar {
+ background-color: #888;
+}
+.navbar-default .navbar-collapse,
+.navbar-default .navbar-form {
+ border-color: #e7e7e7;
+}
+.navbar-default .navbar-nav > .open > a,
+.navbar-default .navbar-nav > .open > a:hover,
+.navbar-default .navbar-nav > .open > a:focus {
+ color: #555;
+ background-color: #e7e7e7;
+}
+@media (max-width: 767px) {
+ .navbar-default .navbar-nav .open .dropdown-menu > li > a {
+ color: #777;
+ }
+ .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
+ .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
+ color: #333;
+ background-color: transparent;
+ }
+ .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
+ .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
+ .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
+ color: #555;
+ background-color: #e7e7e7;
+ }
+ .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
+ .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
+ .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
+ color: #ccc;
+ background-color: transparent;
+ }
+}
+.navbar-default .navbar-link {
+ color: #777;
+}
+.navbar-default .navbar-link:hover {
+ color: #333;
+}
+.navbar-default .btn-link {
+ color: #777;
+}
+.navbar-default .btn-link:hover,
+.navbar-default .btn-link:focus {
+ color: #333;
+}
+.navbar-default .btn-link[disabled]:hover,
+fieldset[disabled] .navbar-default .btn-link:hover,
+.navbar-default .btn-link[disabled]:focus,
+fieldset[disabled] .navbar-default .btn-link:focus {
+ color: #ccc;
+}
+.navbar-inverse {
+ background-color: #222;
+ border-color: #080808;
+}
+.navbar-inverse .navbar-brand {
+ color: #9d9d9d;
+}
+.navbar-inverse .navbar-brand:hover,
+.navbar-inverse .navbar-brand:focus {
+ color: #fff;
+ background-color: transparent;
+}
+.navbar-inverse .navbar-text {
+ color: #9d9d9d;
+}
+.navbar-inverse .navbar-nav > li > a {
+ color: #9d9d9d;
+}
+.navbar-inverse .navbar-nav > li > a:hover,
+.navbar-inverse .navbar-nav > li > a:focus {
+ color: #fff;
+ background-color: transparent;
+}
+.navbar-inverse .navbar-nav > .active > a,
+.navbar-inverse .navbar-nav > .active > a:hover,
+.navbar-inverse .navbar-nav > .active > a:focus {
+ color: #fff;
+ background-color: #080808;
+}
+.navbar-inverse .navbar-nav > .disabled > a,
+.navbar-inverse .navbar-nav > .disabled > a:hover,
+.navbar-inverse .navbar-nav > .disabled > a:focus {
+ color: #444;
+ background-color: transparent;
+}
+.navbar-inverse .navbar-toggle {
+ border-color: #333;
+}
+.navbar-inverse .navbar-toggle:hover,
+.navbar-inverse .navbar-toggle:focus {
+ background-color: #333;
+}
+.navbar-inverse .navbar-toggle .icon-bar {
+ background-color: #fff;
+}
+.navbar-inverse .navbar-collapse,
+.navbar-inverse .navbar-form {
+ border-color: #101010;
+}
+.navbar-inverse .navbar-nav > .open > a,
+.navbar-inverse .navbar-nav > .open > a:hover,
+.navbar-inverse .navbar-nav > .open > a:focus {
+ color: #fff;
+ background-color: #080808;
+}
+@media (max-width: 767px) {
+ .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {
+ border-color: #080808;
+ }
+ .navbar-inverse .navbar-nav .open .dropdown-menu .divider {
+ background-color: #080808;
+ }
+ .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
+ color: #9d9d9d;
+ }
+ .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
+ .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
+ color: #fff;
+ background-color: transparent;
+ }
+ .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,
+ .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,
+ .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {
+ color: #fff;
+ background-color: #080808;
+ }
+ .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,
+ .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,
+ .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {
+ color: #444;
+ background-color: transparent;
+ }
+}
+.navbar-inverse .navbar-link {
+ color: #9d9d9d;
+}
+.navbar-inverse .navbar-link:hover {
+ color: #fff;
+}
+.navbar-inverse .btn-link {
+ color: #9d9d9d;
+}
+.navbar-inverse .btn-link:hover,
+.navbar-inverse .btn-link:focus {
+ color: #fff;
+}
+.navbar-inverse .btn-link[disabled]:hover,
+fieldset[disabled] .navbar-inverse .btn-link:hover,
+.navbar-inverse .btn-link[disabled]:focus,
+fieldset[disabled] .navbar-inverse .btn-link:focus {
+ color: #444;
+}
+.breadcrumb {
+ padding: 8px 15px;
+ margin-bottom: 20px;
+ list-style: none;
+ background-color: #f5f5f5;
+ border-radius: 4px;
+}
+.breadcrumb > li {
+ display: inline-block;
+}
+.breadcrumb > li + li:before {
+ padding: 0 5px;
+ color: #ccc;
+ content: "/\00a0";
+}
+.breadcrumb > .active {
+ color: #777;
+}
+.pagination {
+ display: inline-block;
+ padding-left: 0;
+ margin: 20px 0;
+ border-radius: 4px;
+}
+.pagination > li {
+ display: inline;
+}
+.pagination > li > a,
+.pagination > li > span {
+ position: relative;
+ float: left;
+ padding: 6px 12px;
+ margin-left: -1px;
+ line-height: 1.42857143;
+ color: #337ab7;
+ text-decoration: none;
+ background-color: #fff;
+ border: 1px solid #ddd;
+}
+.pagination > li:first-child > a,
+.pagination > li:first-child > span {
+ margin-left: 0;
+ border-top-left-radius: 4px;
+ border-bottom-left-radius: 4px;
+}
+.pagination > li:last-child > a,
+.pagination > li:last-child > span {
+ border-top-right-radius: 4px;
+ border-bottom-right-radius: 4px;
+}
+.pagination > li > a:hover,
+.pagination > li > span:hover,
+.pagination > li > a:focus,
+.pagination > li > span:focus {
+ color: #23527c;
+ background-color: #eee;
+ border-color: #ddd;
+}
+.pagination > .active > a,
+.pagination > .active > span,
+.pagination > .active > a:hover,
+.pagination > .active > span:hover,
+.pagination > .active > a:focus,
+.pagination > .active > span:focus {
+ z-index: 2;
+ color: #fff;
+ cursor: default;
+ background-color: #337ab7;
+ border-color: #337ab7;
+}
+.pagination > .disabled > span,
+.pagination > .disabled > span:hover,
+.pagination > .disabled > span:focus,
+.pagination > .disabled > a,
+.pagination > .disabled > a:hover,
+.pagination > .disabled > a:focus {
+ color: #777;
+ cursor: not-allowed;
+ background-color: #fff;
+ border-color: #ddd;
+}
+.pagination-lg > li > a,
+.pagination-lg > li > span {
+ padding: 10px 16px;
+ font-size: 18px;
+}
+.pagination-lg > li:first-child > a,
+.pagination-lg > li:first-child > span {
+ border-top-left-radius: 6px;
+ border-bottom-left-radius: 6px;
+}
+.pagination-lg > li:last-child > a,
+.pagination-lg > li:last-child > span {
+ border-top-right-radius: 6px;
+ border-bottom-right-radius: 6px;
+}
+.pagination-sm > li > a,
+.pagination-sm > li > span {
+ padding: 5px 10px;
+ font-size: 12px;
+}
+.pagination-sm > li:first-child > a,
+.pagination-sm > li:first-child > span {
+ border-top-left-radius: 3px;
+ border-bottom-left-radius: 3px;
+}
+.pagination-sm > li:last-child > a,
+.pagination-sm > li:last-child > span {
+ border-top-right-radius: 3px;
+ border-bottom-right-radius: 3px;
+}
+.pager {
+ padding-left: 0;
+ margin: 20px 0;
+ text-align: center;
+ list-style: none;
+}
+.pager li {
+ display: inline;
+}
+.pager li > a,
+.pager li > span {
+ display: inline-block;
+ padding: 5px 14px;
+ background-color: #fff;
+ border: 1px solid #ddd;
+ border-radius: 15px;
+}
+.pager li > a:hover,
+.pager li > a:focus {
+ text-decoration: none;
+ background-color: #eee;
+}
+.pager .next > a,
+.pager .next > span {
+ float: right;
+}
+.pager .previous > a,
+.pager .previous > span {
+ float: left;
+}
+.pager .disabled > a,
+.pager .disabled > a:hover,
+.pager .disabled > a:focus,
+.pager .disabled > span {
+ color: #777;
+ cursor: not-allowed;
+ background-color: #fff;
+}
+.label {
+ display: inline;
+ padding: .2em .6em .3em;
+ font-size: 75%;
+ font-weight: bold;
+ line-height: 1;
+ color: #fff;
+ text-align: center;
+ white-space: nowrap;
+ vertical-align: baseline;
+ border-radius: .25em;
+}
+a.label:hover,
+a.label:focus {
+ color: #fff;
+ text-decoration: none;
+ cursor: pointer;
+}
+.label:empty {
+ display: none;
+}
+.btn .label {
+ position: relative;
+ top: -1px;
+}
+.label-default {
+ background-color: #777;
+}
+.label-default[href]:hover,
+.label-default[href]:focus {
+ background-color: #5e5e5e;
+}
+.label-primary {
+ background-color: #337ab7;
+}
+.label-primary[href]:hover,
+.label-primary[href]:focus {
+ background-color: #286090;
+}
+.label-success {
+ background-color: #5cb85c;
+}
+.label-success[href]:hover,
+.label-success[href]:focus {
+ background-color: #449d44;
+}
+.label-info {
+ background-color: #5bc0de;
+}
+.label-info[href]:hover,
+.label-info[href]:focus {
+ background-color: #31b0d5;
+}
+.label-warning {
+ background-color: #f0ad4e;
+}
+.label-warning[href]:hover,
+.label-warning[href]:focus {
+ background-color: #ec971f;
+}
+.label-danger {
+ background-color: #d9534f;
+}
+.label-danger[href]:hover,
+.label-danger[href]:focus {
+ background-color: #c9302c;
+}
+.badge {
+ display: inline-block;
+ min-width: 10px;
+ padding: 3px 7px;
+ font-size: 12px;
+ font-weight: bold;
+ line-height: 1;
+ color: #fff;
+ text-align: center;
+ white-space: nowrap;
+ vertical-align: baseline;
+ background-color: #777;
+ border-radius: 10px;
+}
+.badge:empty {
+ display: none;
+}
+.btn .badge {
+ position: relative;
+ top: -1px;
+}
+.btn-xs .badge {
+ top: 0;
+ padding: 1px 5px;
+}
+a.badge:hover,
+a.badge:focus {
+ color: #fff;
+ text-decoration: none;
+ cursor: pointer;
+}
+.list-group-item.active > .badge,
+.nav-pills > .active > a > .badge {
+ color: #337ab7;
+ background-color: #fff;
+}
+.list-group-item > .badge {
+ float: right;
+}
+.list-group-item > .badge + .badge {
+ margin-right: 5px;
+}
+.nav-pills > li > a > .badge {
+ margin-left: 3px;
+}
+.jumbotron {
+ padding: 30px 15px;
+ margin-bottom: 30px;
+ color: inherit;
+ background-color: #eee;
+}
+.jumbotron h1,
+.jumbotron .h1 {
+ color: inherit;
+}
+.jumbotron p {
+ margin-bottom: 15px;
+ font-size: 21px;
+ font-weight: 200;
+}
+.jumbotron > hr {
+ border-top-color: #d5d5d5;
+}
+.container .jumbotron,
+.container-fluid .jumbotron {
+ border-radius: 6px;
+}
+.jumbotron .container {
+ max-width: 100%;
+}
+@media screen and (min-width: 768px) {
+ .jumbotron {
+ padding: 48px 0;
+ }
+ .container .jumbotron,
+ .container-fluid .jumbotron {
+ padding-right: 60px;
+ padding-left: 60px;
+ }
+ .jumbotron h1,
+ .jumbotron .h1 {
+ font-size: 63px;
+ }
+}
+.thumbnail {
+ display: block;
+ padding: 4px;
+ margin-bottom: 20px;
+ line-height: 1.42857143;
+ background-color: #fff;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ -webkit-transition: border .2s ease-in-out;
+ -o-transition: border .2s ease-in-out;
+ transition: border .2s ease-in-out;
+}
+.thumbnail > img,
+.thumbnail a > img {
+ margin-right: auto;
+ margin-left: auto;
+}
+a.thumbnail:hover,
+a.thumbnail:focus,
+a.thumbnail.active {
+ border-color: #337ab7;
+}
+.thumbnail .caption {
+ padding: 9px;
+ color: #333;
+}
+.alert {
+ padding: 15px;
+ margin-bottom: 20px;
+ border: 1px solid transparent;
+ border-radius: 4px;
+}
+.alert h4 {
+ margin-top: 0;
+ color: inherit;
+}
+.alert .alert-link {
+ font-weight: bold;
+}
+.alert > p,
+.alert > ul {
+ margin-bottom: 0;
+}
+.alert > p + p {
+ margin-top: 5px;
+}
+.alert-dismissable,
+.alert-dismissible {
+ padding-right: 35px;
+}
+.alert-dismissable .close,
+.alert-dismissible .close {
+ position: relative;
+ top: -2px;
+ right: -21px;
+ color: inherit;
+}
+.alert-success {
+ color: #3c763d;
+ background-color: #dff0d8;
+ border-color: #d6e9c6;
+}
+.alert-success hr {
+ border-top-color: #c9e2b3;
+}
+.alert-success .alert-link {
+ color: #2b542c;
+}
+.alert-info {
+ color: #31708f;
+ background-color: #d9edf7;
+ border-color: #bce8f1;
+}
+.alert-info hr {
+ border-top-color: #a6e1ec;
+}
+.alert-info .alert-link {
+ color: #245269;
+}
+.alert-warning {
+ color: #8a6d3b;
+ background-color: #fcf8e3;
+ border-color: #faebcc;
+}
+.alert-warning hr {
+ border-top-color: #f7e1b5;
+}
+.alert-warning .alert-link {
+ color: #66512c;
+}
+.alert-danger {
+ color: #a94442;
+ background-color: #f2dede;
+ border-color: #ebccd1;
+}
+.alert-danger hr {
+ border-top-color: #e4b9c0;
+}
+.alert-danger .alert-link {
+ color: #843534;
+}
+@-webkit-keyframes progress-bar-stripes {
+ from {
+ background-position: 40px 0;
+ }
+ to {
+ background-position: 0 0;
+ }
+}
+@-o-keyframes progress-bar-stripes {
+ from {
+ background-position: 40px 0;
+ }
+ to {
+ background-position: 0 0;
+ }
+}
+@keyframes progress-bar-stripes {
+ from {
+ background-position: 40px 0;
+ }
+ to {
+ background-position: 0 0;
+ }
+}
+.progress {
+ height: 20px;
+ margin-bottom: 20px;
+ overflow: hidden;
+ background-color: #f5f5f5;
+ border-radius: 4px;
+ -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
+}
+.progress-bar {
+ float: left;
+ width: 0;
+ height: 100%;
+ font-size: 12px;
+ line-height: 20px;
+ color: #fff;
+ text-align: center;
+ background-color: #337ab7;
+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
+ -webkit-transition: width .6s ease;
+ -o-transition: width .6s ease;
+ transition: width .6s ease;
+}
+.progress-striped .progress-bar,
+.progress-bar-striped {
+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
+ background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
+ background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
+ -webkit-background-size: 40px 40px;
+ background-size: 40px 40px;
+}
+.progress.active .progress-bar,
+.progress-bar.active {
+ -webkit-animation: progress-bar-stripes 2s linear infinite;
+ -o-animation: progress-bar-stripes 2s linear infinite;
+ animation: progress-bar-stripes 2s linear infinite;
+}
+.progress-bar-success {
+ background-color: #5cb85c;
+}
+.progress-striped .progress-bar-success {
+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
+ background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
+ background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
+}
+.progress-bar-info {
+ background-color: #5bc0de;
+}
+.progress-striped .progress-bar-info {
+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
+ background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
+ background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
+}
+.progress-bar-warning {
+ background-color: #f0ad4e;
+}
+.progress-striped .progress-bar-warning {
+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
+ background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
+ background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
+}
+.progress-bar-danger {
+ background-color: #d9534f;
+}
+.progress-striped .progress-bar-danger {
+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
+ background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
+ background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
+}
+.media {
+ margin-top: 15px;
+}
+.media:first-child {
+ margin-top: 0;
+}
+.media,
+.media-body {
+ overflow: hidden;
+ zoom: 1;
+}
+.media-body {
+ width: 10000px;
+}
+.media-object {
+ display: block;
+}
+.media-right,
+.media > .pull-right {
+ padding-left: 10px;
+}
+.media-left,
+.media > .pull-left {
+ padding-right: 10px;
+}
+.media-left,
+.media-right,
+.media-body {
+ display: table-cell;
+ vertical-align: top;
+}
+.media-middle {
+ vertical-align: middle;
+}
+.media-bottom {
+ vertical-align: bottom;
+}
+.media-heading {
+ margin-top: 0;
+ margin-bottom: 5px;
+}
+.media-list {
+ padding-left: 0;
+ list-style: none;
+}
+.list-group {
+ padding-left: 0;
+ margin-bottom: 20px;
+}
+.list-group-item {
+ position: relative;
+ display: block;
+ padding: 10px 15px;
+ margin-bottom: -1px;
+ background-color: #fff;
+ border: 1px solid #ddd;
+}
+.list-group-item:first-child {
+ border-top-left-radius: 4px;
+ border-top-right-radius: 4px;
+}
+.list-group-item:last-child {
+ margin-bottom: 0;
+ border-bottom-right-radius: 4px;
+ border-bottom-left-radius: 4px;
+}
+a.list-group-item {
+ color: #555;
+}
+a.list-group-item .list-group-item-heading {
+ color: #333;
+}
+a.list-group-item:hover,
+a.list-group-item:focus {
+ color: #555;
+ text-decoration: none;
+ background-color: #f5f5f5;
+}
+.list-group-item.disabled,
+.list-group-item.disabled:hover,
+.list-group-item.disabled:focus {
+ color: #777;
+ cursor: not-allowed;
+ background-color: #eee;
+}
+.list-group-item.disabled .list-group-item-heading,
+.list-group-item.disabled:hover .list-group-item-heading,
+.list-group-item.disabled:focus .list-group-item-heading {
+ color: inherit;
+}
+.list-group-item.disabled .list-group-item-text,
+.list-group-item.disabled:hover .list-group-item-text,
+.list-group-item.disabled:focus .list-group-item-text {
+ color: #777;
+}
+.list-group-item.active,
+.list-group-item.active:hover,
+.list-group-item.active:focus {
+ z-index: 2;
+ color: #fff;
+ background-color: #337ab7;
+ border-color: #337ab7;
+}
+.list-group-item.active .list-group-item-heading,
+.list-group-item.active:hover .list-group-item-heading,
+.list-group-item.active:focus .list-group-item-heading,
+.list-group-item.active .list-group-item-heading > small,
+.list-group-item.active:hover .list-group-item-heading > small,
+.list-group-item.active:focus .list-group-item-heading > small,
+.list-group-item.active .list-group-item-heading > .small,
+.list-group-item.active:hover .list-group-item-heading > .small,
+.list-group-item.active:focus .list-group-item-heading > .small {
+ color: inherit;
+}
+.list-group-item.active .list-group-item-text,
+.list-group-item.active:hover .list-group-item-text,
+.list-group-item.active:focus .list-group-item-text {
+ color: #c7ddef;
+}
+.list-group-item-success {
+ color: #3c763d;
+ background-color: #dff0d8;
+}
+a.list-group-item-success {
+ color: #3c763d;
+}
+a.list-group-item-success .list-group-item-heading {
+ color: inherit;
+}
+a.list-group-item-success:hover,
+a.list-group-item-success:focus {
+ color: #3c763d;
+ background-color: #d0e9c6;
+}
+a.list-group-item-success.active,
+a.list-group-item-success.active:hover,
+a.list-group-item-success.active:focus {
+ color: #fff;
+ background-color: #3c763d;
+ border-color: #3c763d;
+}
+.list-group-item-info {
+ color: #31708f;
+ background-color: #d9edf7;
+}
+a.list-group-item-info {
+ color: #31708f;
+}
+a.list-group-item-info .list-group-item-heading {
+ color: inherit;
+}
+a.list-group-item-info:hover,
+a.list-group-item-info:focus {
+ color: #31708f;
+ background-color: #c4e3f3;
+}
+a.list-group-item-info.active,
+a.list-group-item-info.active:hover,
+a.list-group-item-info.active:focus {
+ color: #fff;
+ background-color: #31708f;
+ border-color: #31708f;
+}
+.list-group-item-warning {
+ color: #8a6d3b;
+ background-color: #fcf8e3;
+}
+a.list-group-item-warning {
+ color: #8a6d3b;
+}
+a.list-group-item-warning .list-group-item-heading {
+ color: inherit;
+}
+a.list-group-item-warning:hover,
+a.list-group-item-warning:focus {
+ color: #8a6d3b;
+ background-color: #faf2cc;
+}
+a.list-group-item-warning.active,
+a.list-group-item-warning.active:hover,
+a.list-group-item-warning.active:focus {
+ color: #fff;
+ background-color: #8a6d3b;
+ border-color: #8a6d3b;
+}
+.list-group-item-danger {
+ color: #a94442;
+ background-color: #f2dede;
+}
+a.list-group-item-danger {
+ color: #a94442;
+}
+a.list-group-item-danger .list-group-item-heading {
+ color: inherit;
+}
+a.list-group-item-danger:hover,
+a.list-group-item-danger:focus {
+ color: #a94442;
+ background-color: #ebcccc;
+}
+a.list-group-item-danger.active,
+a.list-group-item-danger.active:hover,
+a.list-group-item-danger.active:focus {
+ color: #fff;
+ background-color: #a94442;
+ border-color: #a94442;
+}
+.list-group-item-heading {
+ margin-top: 0;
+ margin-bottom: 5px;
+}
+.list-group-item-text {
+ margin-bottom: 0;
+ line-height: 1.3;
+}
+.panel {
+ margin-bottom: 20px;
+ background-color: #fff;
+ border: 1px solid transparent;
+ border-radius: 4px;
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
+}
+.panel-body {
+ padding: 15px;
+}
+.panel-heading {
+ padding: 10px 15px;
+ border-bottom: 1px solid transparent;
+ border-top-left-radius: 3px;
+ border-top-right-radius: 3px;
+}
+.panel-heading > .dropdown .dropdown-toggle {
+ color: inherit;
+}
+.panel-title {
+ margin-top: 0;
+ margin-bottom: 0;
+ font-size: 16px;
+ color: inherit;
+}
+.panel-title > a,
+.panel-title > small,
+.panel-title > .small,
+.panel-title > small > a,
+.panel-title > .small > a {
+ color: inherit;
+}
+.panel-footer {
+ padding: 10px 15px;
+ background-color: #f5f5f5;
+ border-top: 1px solid #ddd;
+ border-bottom-right-radius: 3px;
+ border-bottom-left-radius: 3px;
+}
+.panel > .list-group,
+.panel > .panel-collapse > .list-group {
+ margin-bottom: 0;
+}
+.panel > .list-group .list-group-item,
+.panel > .panel-collapse > .list-group .list-group-item {
+ border-width: 1px 0;
+ border-radius: 0;
+}
+.panel > .list-group:first-child .list-group-item:first-child,
+.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child {
+ border-top: 0;
+ border-top-left-radius: 3px;
+ border-top-right-radius: 3px;
+}
+.panel > .list-group:last-child .list-group-item:last-child,
+.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child {
+ border-bottom: 0;
+ border-bottom-right-radius: 3px;
+ border-bottom-left-radius: 3px;
+}
+.panel-heading + .list-group .list-group-item:first-child {
+ border-top-width: 0;
+}
+.list-group + .panel-footer {
+ border-top-width: 0;
+}
+.panel > .table,
+.panel > .table-responsive > .table,
+.panel > .panel-collapse > .table {
+ margin-bottom: 0;
+}
+.panel > .table caption,
+.panel > .table-responsive > .table caption,
+.panel > .panel-collapse > .table caption {
+ padding-right: 15px;
+ padding-left: 15px;
+}
+.panel > .table:first-child,
+.panel > .table-responsive:first-child > .table:first-child {
+ border-top-left-radius: 3px;
+ border-top-right-radius: 3px;
+}
+.panel > .table:first-child > thead:first-child > tr:first-child,
+.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child,
+.panel > .table:first-child > tbody:first-child > tr:first-child,
+.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child {
+ border-top-left-radius: 3px;
+ border-top-right-radius: 3px;
+}
+.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,
+.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,
+.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,
+.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,
+.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,
+.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,
+.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,
+.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {
+ border-top-left-radius: 3px;
+}
+.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,
+.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,
+.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,
+.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,
+.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,
+.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,
+.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,
+.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {
+ border-top-right-radius: 3px;
+}
+.panel > .table:last-child,
+.panel > .table-responsive:last-child > .table:last-child {
+ border-bottom-right-radius: 3px;
+ border-bottom-left-radius: 3px;
+}
+.panel > .table:last-child > tbody:last-child > tr:last-child,
+.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child,
+.panel > .table:last-child > tfoot:last-child > tr:last-child,
+.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child {
+ border-bottom-right-radius: 3px;
+ border-bottom-left-radius: 3px;
+}
+.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,
+.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,
+.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
+.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
+.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,
+.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,
+.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,
+.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {
+ border-bottom-left-radius: 3px;
+}
+.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,
+.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,
+.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
+.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
+.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,
+.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,
+.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,
+.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {
+ border-bottom-right-radius: 3px;
+}
+.panel > .panel-body + .table,
+.panel > .panel-body + .table-responsive,
+.panel > .table + .panel-body,
+.panel > .table-responsive + .panel-body {
+ border-top: 1px solid #ddd;
+}
+.panel > .table > tbody:first-child > tr:first-child th,
+.panel > .table > tbody:first-child > tr:first-child td {
+ border-top: 0;
+}
+.panel > .table-bordered,
+.panel > .table-responsive > .table-bordered {
+ border: 0;
+}
+.panel > .table-bordered > thead > tr > th:first-child,
+.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,
+.panel > .table-bordered > tbody > tr > th:first-child,
+.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,
+.panel > .table-bordered > tfoot > tr > th:first-child,
+.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,
+.panel > .table-bordered > thead > tr > td:first-child,
+.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,
+.panel > .table-bordered > tbody > tr > td:first-child,
+.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,
+.panel > .table-bordered > tfoot > tr > td:first-child,
+.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {
+ border-left: 0;
+}
+.panel > .table-bordered > thead > tr > th:last-child,
+.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,
+.panel > .table-bordered > tbody > tr > th:last-child,
+.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,
+.panel > .table-bordered > tfoot > tr > th:last-child,
+.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,
+.panel > .table-bordered > thead > tr > td:last-child,
+.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,
+.panel > .table-bordered > tbody > tr > td:last-child,
+.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,
+.panel > .table-bordered > tfoot > tr > td:last-child,
+.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {
+ border-right: 0;
+}
+.panel > .table-bordered > thead > tr:first-child > td,
+.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,
+.panel > .table-bordered > tbody > tr:first-child > td,
+.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,
+.panel > .table-bordered > thead > tr:first-child > th,
+.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,
+.panel > .table-bordered > tbody > tr:first-child > th,
+.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {
+ border-bottom: 0;
+}
+.panel > .table-bordered > tbody > tr:last-child > td,
+.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,
+.panel > .table-bordered > tfoot > tr:last-child > td,
+.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,
+.panel > .table-bordered > tbody > tr:last-child > th,
+.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,
+.panel > .table-bordered > tfoot > tr:last-child > th,
+.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {
+ border-bottom: 0;
+}
+.panel > .table-responsive {
+ margin-bottom: 0;
+ border: 0;
+}
+.panel-group {
+ margin-bottom: 20px;
+}
+.panel-group .panel {
+ margin-bottom: 0;
+ border-radius: 4px;
+}
+.panel-group .panel + .panel {
+ margin-top: 5px;
+}
+.panel-group .panel-heading {
+ border-bottom: 0;
+}
+.panel-group .panel-heading + .panel-collapse > .panel-body,
+.panel-group .panel-heading + .panel-collapse > .list-group {
+ border-top: 1px solid #ddd;
+}
+.panel-group .panel-footer {
+ border-top: 0;
+}
+.panel-group .panel-footer + .panel-collapse .panel-body {
+ border-bottom: 1px solid #ddd;
+}
+.panel-default {
+ border-color: #ddd;
+}
+.panel-default > .panel-heading {
+ color: #333;
+ background-color: #f5f5f5;
+ border-color: #ddd;
+}
+.panel-default > .panel-heading + .panel-collapse > .panel-body {
+ border-top-color: #ddd;
+}
+.panel-default > .panel-heading .badge {
+ color: #f5f5f5;
+ background-color: #333;
+}
+.panel-default > .panel-footer + .panel-collapse > .panel-body {
+ border-bottom-color: #ddd;
+}
+.panel-primary {
+ border-color: #337ab7;
+}
+.panel-primary > .panel-heading {
+ color: #fff;
+ background-color: #337ab7;
+ border-color: #337ab7;
+}
+.panel-primary > .panel-heading + .panel-collapse > .panel-body {
+ border-top-color: #337ab7;
+}
+.panel-primary > .panel-heading .badge {
+ color: #337ab7;
+ background-color: #fff;
+}
+.panel-primary > .panel-footer + .panel-collapse > .panel-body {
+ border-bottom-color: #337ab7;
+}
+.panel-success {
+ border-color: #d6e9c6;
+}
+.panel-success > .panel-heading {
+ color: #3c763d;
+ background-color: #dff0d8;
+ border-color: #d6e9c6;
+}
+.panel-success > .panel-heading + .panel-collapse > .panel-body {
+ border-top-color: #d6e9c6;
+}
+.panel-success > .panel-heading .badge {
+ color: #dff0d8;
+ background-color: #3c763d;
+}
+.panel-success > .panel-footer + .panel-collapse > .panel-body {
+ border-bottom-color: #d6e9c6;
+}
+.panel-info {
+ border-color: #bce8f1;
+}
+.panel-info > .panel-heading {
+ color: #31708f;
+ background-color: #d9edf7;
+ border-color: #bce8f1;
+}
+.panel-info > .panel-heading + .panel-collapse > .panel-body {
+ border-top-color: #bce8f1;
+}
+.panel-info > .panel-heading .badge {
+ color: #d9edf7;
+ background-color: #31708f;
+}
+.panel-info > .panel-footer + .panel-collapse > .panel-body {
+ border-bottom-color: #bce8f1;
+}
+.panel-warning {
+ border-color: #faebcc;
+}
+.panel-warning > .panel-heading {
+ color: #8a6d3b;
+ background-color: #fcf8e3;
+ border-color: #faebcc;
+}
+.panel-warning > .panel-heading + .panel-collapse > .panel-body {
+ border-top-color: #faebcc;
+}
+.panel-warning > .panel-heading .badge {
+ color: #fcf8e3;
+ background-color: #8a6d3b;
+}
+.panel-warning > .panel-footer + .panel-collapse > .panel-body {
+ border-bottom-color: #faebcc;
+}
+.panel-danger {
+ border-color: #ebccd1;
+}
+.panel-danger > .panel-heading {
+ color: #a94442;
+ background-color: #f2dede;
+ border-color: #ebccd1;
+}
+.panel-danger > .panel-heading + .panel-collapse > .panel-body {
+ border-top-color: #ebccd1;
+}
+.panel-danger > .panel-heading .badge {
+ color: #f2dede;
+ background-color: #a94442;
+}
+.panel-danger > .panel-footer + .panel-collapse > .panel-body {
+ border-bottom-color: #ebccd1;
+}
+.embed-responsive {
+ position: relative;
+ display: block;
+ height: 0;
+ padding: 0;
+ overflow: hidden;
+}
+.embed-responsive .embed-responsive-item,
+.embed-responsive iframe,
+.embed-responsive embed,
+.embed-responsive object,
+.embed-responsive video {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ border: 0;
+}
+.embed-responsive.embed-responsive-16by9 {
+ padding-bottom: 56.25%;
+}
+.embed-responsive.embed-responsive-4by3 {
+ padding-bottom: 75%;
+}
+.well {
+ min-height: 20px;
+ padding: 19px;
+ margin-bottom: 20px;
+ background-color: #f5f5f5;
+ border: 1px solid #e3e3e3;
+ border-radius: 4px;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
+}
+.well blockquote {
+ border-color: #ddd;
+ border-color: rgba(0, 0, 0, .15);
+}
+.well-lg {
+ padding: 24px;
+ border-radius: 6px;
+}
+.well-sm {
+ padding: 9px;
+ border-radius: 3px;
+}
+.close {
+ float: right;
+ font-size: 21px;
+ font-weight: bold;
+ line-height: 1;
+ color: #000;
+ text-shadow: 0 1px 0 #fff;
+ filter: alpha(opacity=20);
+ opacity: .2;
+}
+.close:hover,
+.close:focus {
+ color: #000;
+ text-decoration: none;
+ cursor: pointer;
+ filter: alpha(opacity=50);
+ opacity: .5;
+}
+button.close {
+ -webkit-appearance: none;
+ padding: 0;
+ cursor: pointer;
+ background: transparent;
+ border: 0;
+}
+.modal-open {
+ overflow: hidden;
+}
+.modal {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 1040;
+ display: none;
+ overflow: hidden;
+ -webkit-overflow-scrolling: touch;
+ outline: 0;
+}
+.modal.fade .modal-dialog {
+ -webkit-transition: -webkit-transform .3s ease-out;
+ -o-transition: -o-transform .3s ease-out;
+ transition: transform .3s ease-out;
+ -webkit-transform: translate(0, -25%);
+ -ms-transform: translate(0, -25%);
+ -o-transform: translate(0, -25%);
+ transform: translate(0, -25%);
+}
+.modal.in .modal-dialog {
+ -webkit-transform: translate(0, 0);
+ -ms-transform: translate(0, 0);
+ -o-transform: translate(0, 0);
+ transform: translate(0, 0);
+}
+.modal-open .modal {
+ overflow-x: hidden;
+ overflow-y: auto;
+}
+.modal-dialog {
+ position: relative;
+ width: auto;
+ margin: 10px;
+}
+.modal-content {
+ position: relative;
+ background-color: #fff;
+ -webkit-background-clip: padding-box;
+ background-clip: padding-box;
+ border: 1px solid #999;
+ border: 1px solid rgba(0, 0, 0, .2);
+ border-radius: 6px;
+ outline: 0;
+ -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
+ box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
+}
+.modal-backdrop {
+ position: absolute;
+ top: 0;
+ right: 0;
+ left: 0;
+ background-color: #000;
+}
+.modal-backdrop.fade {
+ filter: alpha(opacity=0);
+ opacity: 0;
+}
+.modal-backdrop.in {
+ filter: alpha(opacity=50);
+ opacity: .5;
+}
+.modal-header {
+ min-height: 16.42857143px;
+ padding: 15px;
+ border-bottom: 1px solid #e5e5e5;
+}
+.modal-header .close {
+ margin-top: -2px;
+}
+.modal-title {
+ margin: 0;
+ line-height: 1.42857143;
+}
+.modal-body {
+ position: relative;
+ padding: 15px;
+}
+.modal-footer {
+ padding: 15px;
+ text-align: right;
+ border-top: 1px solid #e5e5e5;
+}
+.modal-footer .btn + .btn {
+ margin-bottom: 0;
+ margin-left: 5px;
+}
+.modal-footer .btn-group .btn + .btn {
+ margin-left: -1px;
+}
+.modal-footer .btn-block + .btn-block {
+ margin-left: 0;
+}
+.modal-scrollbar-measure {
+ position: absolute;
+ top: -9999px;
+ width: 50px;
+ height: 50px;
+ overflow: scroll;
+}
+@media (min-width: 768px) {
+ .modal-dialog {
+ width: 600px;
+ margin: 30px auto;
+ }
+ .modal-content {
+ -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
+ box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
+ }
+ .modal-sm {
+ width: 300px;
+ }
+}
+@media (min-width: 992px) {
+ .modal-lg {
+ width: 900px;
+ }
+}
+.tooltip {
+ position: absolute;
+ z-index: 1070;
+ display: block;
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+ font-size: 12px;
+ font-weight: normal;
+ line-height: 1.4;
+ visibility: visible;
+ filter: alpha(opacity=0);
+ opacity: 0;
+}
+.tooltip.in {
+ filter: alpha(opacity=90);
+ opacity: .9;
+}
+.tooltip.top {
+ padding: 5px 0;
+ margin-top: -3px;
+}
+.tooltip.right {
+ padding: 0 5px;
+ margin-left: 3px;
+}
+.tooltip.bottom {
+ padding: 5px 0;
+ margin-top: 3px;
+}
+.tooltip.left {
+ padding: 0 5px;
+ margin-left: -3px;
+}
+.tooltip-inner {
+ max-width: 200px;
+ padding: 3px 8px;
+ color: #fff;
+ text-align: center;
+ text-decoration: none;
+ background-color: #000;
+ border-radius: 4px;
+}
+.tooltip-arrow {
+ position: absolute;
+ width: 0;
+ height: 0;
+ border-color: transparent;
+ border-style: solid;
+}
+.tooltip.top .tooltip-arrow {
+ bottom: 0;
+ left: 50%;
+ margin-left: -5px;
+ border-width: 5px 5px 0;
+ border-top-color: #000;
+}
+.tooltip.top-left .tooltip-arrow {
+ right: 5px;
+ bottom: 0;
+ margin-bottom: -5px;
+ border-width: 5px 5px 0;
+ border-top-color: #000;
+}
+.tooltip.top-right .tooltip-arrow {
+ bottom: 0;
+ left: 5px;
+ margin-bottom: -5px;
+ border-width: 5px 5px 0;
+ border-top-color: #000;
+}
+.tooltip.right .tooltip-arrow {
+ top: 50%;
+ left: 0;
+ margin-top: -5px;
+ border-width: 5px 5px 5px 0;
+ border-right-color: #000;
+}
+.tooltip.left .tooltip-arrow {
+ top: 50%;
+ right: 0;
+ margin-top: -5px;
+ border-width: 5px 0 5px 5px;
+ border-left-color: #000;
+}
+.tooltip.bottom .tooltip-arrow {
+ top: 0;
+ left: 50%;
+ margin-left: -5px;
+ border-width: 0 5px 5px;
+ border-bottom-color: #000;
+}
+.tooltip.bottom-left .tooltip-arrow {
+ top: 0;
+ right: 5px;
+ margin-top: -5px;
+ border-width: 0 5px 5px;
+ border-bottom-color: #000;
+}
+.tooltip.bottom-right .tooltip-arrow {
+ top: 0;
+ left: 5px;
+ margin-top: -5px;
+ border-width: 0 5px 5px;
+ border-bottom-color: #000;
+}
+.popover {
+ position: absolute;
+ top: 0;
+ left: 0;
+ z-index: 1060;
+ display: none;
+ max-width: 276px;
+ padding: 1px;
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+ font-size: 14px;
+ font-weight: normal;
+ line-height: 1.42857143;
+ text-align: left;
+ white-space: normal;
+ background-color: #fff;
+ -webkit-background-clip: padding-box;
+ background-clip: padding-box;
+ border: 1px solid #ccc;
+ border: 1px solid rgba(0, 0, 0, .2);
+ border-radius: 6px;
+ -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
+ box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
+}
+.popover.top {
+ margin-top: -10px;
+}
+.popover.right {
+ margin-left: 10px;
+}
+.popover.bottom {
+ margin-top: 10px;
+}
+.popover.left {
+ margin-left: -10px;
+}
+.popover-title {
+ padding: 8px 14px;
+ margin: 0;
+ font-size: 14px;
+ background-color: #f7f7f7;
+ border-bottom: 1px solid #ebebeb;
+ border-radius: 5px 5px 0 0;
+}
+.popover-content {
+ padding: 9px 14px;
+}
+.popover > .arrow,
+.popover > .arrow:after {
+ position: absolute;
+ display: block;
+ width: 0;
+ height: 0;
+ border-color: transparent;
+ border-style: solid;
+}
+.popover > .arrow {
+ border-width: 11px;
+}
+.popover > .arrow:after {
+ content: "";
+ border-width: 10px;
+}
+.popover.top > .arrow {
+ bottom: -11px;
+ left: 50%;
+ margin-left: -11px;
+ border-top-color: #999;
+ border-top-color: rgba(0, 0, 0, .25);
+ border-bottom-width: 0;
+}
+.popover.top > .arrow:after {
+ bottom: 1px;
+ margin-left: -10px;
+ content: " ";
+ border-top-color: #fff;
+ border-bottom-width: 0;
+}
+.popover.right > .arrow {
+ top: 50%;
+ left: -11px;
+ margin-top: -11px;
+ border-right-color: #999;
+ border-right-color: rgba(0, 0, 0, .25);
+ border-left-width: 0;
+}
+.popover.right > .arrow:after {
+ bottom: -10px;
+ left: 1px;
+ content: " ";
+ border-right-color: #fff;
+ border-left-width: 0;
+}
+.popover.bottom > .arrow {
+ top: -11px;
+ left: 50%;
+ margin-left: -11px;
+ border-top-width: 0;
+ border-bottom-color: #999;
+ border-bottom-color: rgba(0, 0, 0, .25);
+}
+.popover.bottom > .arrow:after {
+ top: 1px;
+ margin-left: -10px;
+ content: " ";
+ border-top-width: 0;
+ border-bottom-color: #fff;
+}
+.popover.left > .arrow {
+ top: 50%;
+ right: -11px;
+ margin-top: -11px;
+ border-right-width: 0;
+ border-left-color: #999;
+ border-left-color: rgba(0, 0, 0, .25);
+}
+.popover.left > .arrow:after {
+ right: 1px;
+ bottom: -10px;
+ content: " ";
+ border-right-width: 0;
+ border-left-color: #fff;
+}
+.carousel {
+ position: relative;
+}
+.carousel-inner {
+ position: relative;
+ width: 100%;
+ overflow: hidden;
+}
+.carousel-inner > .item {
+ position: relative;
+ display: none;
+ -webkit-transition: .6s ease-in-out left;
+ -o-transition: .6s ease-in-out left;
+ transition: .6s ease-in-out left;
+}
+.carousel-inner > .item > img,
+.carousel-inner > .item > a > img {
+ line-height: 1;
+}
+@media all and (transform-3d), (-webkit-transform-3d) {
+ .carousel-inner > .item {
+ -webkit-transition: -webkit-transform .6s ease-in-out;
+ -o-transition: -o-transform .6s ease-in-out;
+ transition: transform .6s ease-in-out;
+
+ -webkit-backface-visibility: hidden;
+ backface-visibility: hidden;
+ -webkit-perspective: 1000;
+ perspective: 1000;
+ }
+ .carousel-inner > .item.next,
+ .carousel-inner > .item.active.right {
+ left: 0;
+ -webkit-transform: translate3d(100%, 0, 0);
+ transform: translate3d(100%, 0, 0);
+ }
+ .carousel-inner > .item.prev,
+ .carousel-inner > .item.active.left {
+ left: 0;
+ -webkit-transform: translate3d(-100%, 0, 0);
+ transform: translate3d(-100%, 0, 0);
+ }
+ .carousel-inner > .item.next.left,
+ .carousel-inner > .item.prev.right,
+ .carousel-inner > .item.active {
+ left: 0;
+ -webkit-transform: translate3d(0, 0, 0);
+ transform: translate3d(0, 0, 0);
+ }
+}
+.carousel-inner > .active,
+.carousel-inner > .next,
+.carousel-inner > .prev {
+ display: block;
+}
+.carousel-inner > .active {
+ left: 0;
+}
+.carousel-inner > .next,
+.carousel-inner > .prev {
+ position: absolute;
+ top: 0;
+ width: 100%;
+}
+.carousel-inner > .next {
+ left: 100%;
+}
+.carousel-inner > .prev {
+ left: -100%;
+}
+.carousel-inner > .next.left,
+.carousel-inner > .prev.right {
+ left: 0;
+}
+.carousel-inner > .active.left {
+ left: -100%;
+}
+.carousel-inner > .active.right {
+ left: 100%;
+}
+.carousel-control {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ width: 15%;
+ font-size: 20px;
+ color: #fff;
+ text-align: center;
+ text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
+ filter: alpha(opacity=50);
+ opacity: .5;
+}
+.carousel-control.left {
+ background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%);
+ background-image: -o-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%);
+ background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, .0001)));
+ background-image: linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);
+ background-repeat: repeat-x;
+}
+.carousel-control.right {
+ right: 0;
+ left: auto;
+ background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%);
+ background-image: -o-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%);
+ background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .0001)), to(rgba(0, 0, 0, .5)));
+ background-image: linear-gradient(to right, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);
+ background-repeat: repeat-x;
+}
+.carousel-control:hover,
+.carousel-control:focus {
+ color: #fff;
+ text-decoration: none;
+ filter: alpha(opacity=90);
+ outline: 0;
+ opacity: .9;
+}
+.carousel-control .icon-prev,
+.carousel-control .icon-next,
+.carousel-control .glyphicon-chevron-left,
+.carousel-control .glyphicon-chevron-right {
+ position: absolute;
+ top: 50%;
+ z-index: 5;
+ display: inline-block;
+}
+.carousel-control .icon-prev,
+.carousel-control .glyphicon-chevron-left {
+ left: 50%;
+ margin-left: -10px;
+}
+.carousel-control .icon-next,
+.carousel-control .glyphicon-chevron-right {
+ right: 50%;
+ margin-right: -10px;
+}
+.carousel-control .icon-prev,
+.carousel-control .icon-next {
+ width: 20px;
+ height: 20px;
+ margin-top: -10px;
+ font-family: serif;
+ line-height: 1;
+}
+.carousel-control .icon-prev:before {
+ content: '\2039';
+}
+.carousel-control .icon-next:before {
+ content: '\203a';
+}
+.carousel-indicators {
+ position: absolute;
+ bottom: 10px;
+ left: 50%;
+ z-index: 15;
+ width: 60%;
+ padding-left: 0;
+ margin-left: -30%;
+ text-align: center;
+ list-style: none;
+}
+.carousel-indicators li {
+ display: inline-block;
+ width: 10px;
+ height: 10px;
+ margin: 1px;
+ text-indent: -999px;
+ cursor: pointer;
+ background-color: #000 \9;
+ background-color: rgba(0, 0, 0, 0);
+ border: 1px solid #fff;
+ border-radius: 10px;
+}
+.carousel-indicators .active {
+ width: 12px;
+ height: 12px;
+ margin: 0;
+ background-color: #fff;
+}
+.carousel-caption {
+ position: absolute;
+ right: 15%;
+ bottom: 20px;
+ left: 15%;
+ z-index: 10;
+ padding-top: 20px;
+ padding-bottom: 20px;
+ color: #fff;
+ text-align: center;
+ text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
+}
+.carousel-caption .btn {
+ text-shadow: none;
+}
+@media screen and (min-width: 768px) {
+ .carousel-control .glyphicon-chevron-left,
+ .carousel-control .glyphicon-chevron-right,
+ .carousel-control .icon-prev,
+ .carousel-control .icon-next {
+ width: 30px;
+ height: 30px;
+ margin-top: -15px;
+ font-size: 30px;
+ }
+ .carousel-control .glyphicon-chevron-left,
+ .carousel-control .icon-prev {
+ margin-left: -15px;
+ }
+ .carousel-control .glyphicon-chevron-right,
+ .carousel-control .icon-next {
+ margin-right: -15px;
+ }
+ .carousel-caption {
+ right: 20%;
+ left: 20%;
+ padding-bottom: 30px;
+ }
+ .carousel-indicators {
+ bottom: 20px;
+ }
+}
+.clearfix:before,
+.clearfix:after,
+.dl-horizontal dd:before,
+.dl-horizontal dd:after,
+.container:before,
+.container:after,
+.container-fluid:before,
+.container-fluid:after,
+.row:before,
+.row:after,
+.form-horizontal .form-group:before,
+.form-horizontal .form-group:after,
+.btn-toolbar:before,
+.btn-toolbar:after,
+.btn-group-vertical > .btn-group:before,
+.btn-group-vertical > .btn-group:after,
+.nav:before,
+.nav:after,
+.navbar:before,
+.navbar:after,
+.navbar-header:before,
+.navbar-header:after,
+.navbar-collapse:before,
+.navbar-collapse:after,
+.pager:before,
+.pager:after,
+.panel-body:before,
+.panel-body:after,
+.modal-footer:before,
+.modal-footer:after {
+ display: table;
+ content: " ";
+}
+.clearfix:after,
+.dl-horizontal dd:after,
+.container:after,
+.container-fluid:after,
+.row:after,
+.form-horizontal .form-group:after,
+.btn-toolbar:after,
+.btn-group-vertical > .btn-group:after,
+.nav:after,
+.navbar:after,
+.navbar-header:after,
+.navbar-collapse:after,
+.pager:after,
+.panel-body:after,
+.modal-footer:after {
+ clear: both;
+}
+.center-block {
+ display: block;
+ margin-right: auto;
+ margin-left: auto;
+}
+.pull-right {
+ float: right !important;
+}
+.pull-left {
+ float: left !important;
+}
+.hide {
+ display: none !important;
+}
+.show {
+ display: block !important;
+}
+.invisible {
+ visibility: hidden;
+}
+.text-hide {
+ font: 0/0 a;
+ color: transparent;
+ text-shadow: none;
+ background-color: transparent;
+ border: 0;
+}
+.hidden {
+ display: none !important;
+ visibility: hidden !important;
+}
+.affix {
+ position: fixed;
+}
+@-ms-viewport {
+ width: device-width;
+}
+.visible-xs,
+.visible-sm,
+.visible-md,
+.visible-lg {
+ display: none !important;
+}
+.visible-xs-block,
+.visible-xs-inline,
+.visible-xs-inline-block,
+.visible-sm-block,
+.visible-sm-inline,
+.visible-sm-inline-block,
+.visible-md-block,
+.visible-md-inline,
+.visible-md-inline-block,
+.visible-lg-block,
+.visible-lg-inline,
+.visible-lg-inline-block {
+ display: none !important;
+}
+@media (max-width: 767px) {
+ .visible-xs {
+ display: block !important;
+ }
+ table.visible-xs {
+ display: table;
+ }
+ tr.visible-xs {
+ display: table-row !important;
+ }
+ th.visible-xs,
+ td.visible-xs {
+ display: table-cell !important;
+ }
+}
+@media (max-width: 767px) {
+ .visible-xs-block {
+ display: block !important;
+ }
+}
+@media (max-width: 767px) {
+ .visible-xs-inline {
+ display: inline !important;
+ }
+}
+@media (max-width: 767px) {
+ .visible-xs-inline-block {
+ display: inline-block !important;
+ }
+}
+@media (min-width: 768px) and (max-width: 991px) {
+ .visible-sm {
+ display: block !important;
+ }
+ table.visible-sm {
+ display: table;
+ }
+ tr.visible-sm {
+ display: table-row !important;
+ }
+ th.visible-sm,
+ td.visible-sm {
+ display: table-cell !important;
+ }
+}
+@media (min-width: 768px) and (max-width: 991px) {
+ .visible-sm-block {
+ display: block !important;
+ }
+}
+@media (min-width: 768px) and (max-width: 991px) {
+ .visible-sm-inline {
+ display: inline !important;
+ }
+}
+@media (min-width: 768px) and (max-width: 991px) {
+ .visible-sm-inline-block {
+ display: inline-block !important;
+ }
+}
+@media (min-width: 992px) and (max-width: 1199px) {
+ .visible-md {
+ display: block !important;
+ }
+ table.visible-md {
+ display: table;
+ }
+ tr.visible-md {
+ display: table-row !important;
+ }
+ th.visible-md,
+ td.visible-md {
+ display: table-cell !important;
+ }
+}
+@media (min-width: 992px) and (max-width: 1199px) {
+ .visible-md-block {
+ display: block !important;
+ }
+}
+@media (min-width: 992px) and (max-width: 1199px) {
+ .visible-md-inline {
+ display: inline !important;
+ }
+}
+@media (min-width: 992px) and (max-width: 1199px) {
+ .visible-md-inline-block {
+ display: inline-block !important;
+ }
+}
+@media (min-width: 1200px) {
+ .visible-lg {
+ display: block !important;
+ }
+ table.visible-lg {
+ display: table;
+ }
+ tr.visible-lg {
+ display: table-row !important;
+ }
+ th.visible-lg,
+ td.visible-lg {
+ display: table-cell !important;
+ }
+}
+@media (min-width: 1200px) {
+ .visible-lg-block {
+ display: block !important;
+ }
+}
+@media (min-width: 1200px) {
+ .visible-lg-inline {
+ display: inline !important;
+ }
+}
+@media (min-width: 1200px) {
+ .visible-lg-inline-block {
+ display: inline-block !important;
+ }
+}
+@media (max-width: 767px) {
+ .hidden-xs {
+ display: none !important;
+ }
+}
+@media (min-width: 768px) and (max-width: 991px) {
+ .hidden-sm {
+ display: none !important;
+ }
+}
+@media (min-width: 992px) and (max-width: 1199px) {
+ .hidden-md {
+ display: none !important;
+ }
+}
+@media (min-width: 1200px) {
+ .hidden-lg {
+ display: none !important;
+ }
+}
+.visible-print {
+ display: none !important;
+}
+@media print {
+ .visible-print {
+ display: block !important;
+ }
+ table.visible-print {
+ display: table;
+ }
+ tr.visible-print {
+ display: table-row !important;
+ }
+ th.visible-print,
+ td.visible-print {
+ display: table-cell !important;
+ }
+}
+.visible-print-block {
+ display: none !important;
+}
+@media print {
+ .visible-print-block {
+ display: block !important;
+ }
+}
+.visible-print-inline {
+ display: none !important;
+}
+@media print {
+ .visible-print-inline {
+ display: inline !important;
+ }
+}
+.visible-print-inline-block {
+ display: none !important;
+}
+@media print {
+ .visible-print-inline-block {
+ display: inline-block !important;
+ }
+}
+@media print {
+ .hidden-print {
+ display: none !important;
+ }
+}
+/*# sourceMappingURL=bootstrap.css.map */
diff --git a/css/bootstrap.min.css b/css/bootstrap.min.css
new file mode 100755
index 0000000..28f154d
--- /dev/null
+++ b/css/bootstrap.min.css
@@ -0,0 +1,5 @@
+/*!
+ * Bootstrap v3.3.2 (http://getbootstrap.com)
+ * Copyright 2011-2015 Twitter, Inc.
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+ *//*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee;opacity:1}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date],input[type=time],input[type=datetime-local],input[type=month]{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px \9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.form-group-sm .form-control{height:30px;line-height:30px}select[multiple].form-group-sm .form-control,textarea.form-group-sm .form-control{height:auto}.form-group-sm .form-control-static{height:30px;padding:5px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.form-group-lg .form-control{height:46px;line-height:46px}select[multiple].form-group-lg .form-control,textarea.form-group-lg .form-control{height:auto}.form-group-lg .form-control-static{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:14.33px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.active,.btn-default.focus,.btn-default:active,.btn-default:focus,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.active,.btn-primary.focus,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.active,.btn-success.focus,.btn-success:active,.btn-success:focus,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.active,.btn-info.focus,.btn-info:active,.btn-info:focus,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.active,.btn-warning.focus,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.active,.btn-danger.focus,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none;visibility:hidden}.collapse.in{display:block;visibility:visible}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px solid}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none;visibility:hidden}.tab-content>.active{display:block;visibility:visible}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important;visibility:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:2;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px 15px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding:48px 0}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:absolute;top:0;right:0;left:0;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{min-height:16.43px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-weight:400;line-height:1.4;visibility:visible;filter:alpha(opacity=0);opacity:0}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-weight:400;line-height:1.42857143;text-align:left;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000;perspective:1000}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;margin-top:-10px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000 \9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important;visibility:hidden!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}
\ No newline at end of file
diff --git a/css/customstyles.css b/css/customstyles.css
new file mode 100644
index 0000000..891dede
--- /dev/null
+++ b/css/customstyles.css
@@ -0,0 +1,566 @@
+.bs-callout {
+ padding: 20px;
+ margin: 20px 0;
+ border: 1px solid #eee;
+ border-left-width: 5px;
+ border-radius: 3px;
+}
+.bs-callout h4 {
+ margin-top: 0;
+ margin-bottom: 5px;
+}
+.bs-callout p:last-child {
+ margin-bottom: 0;
+}
+.bs-callout code {
+ border-radius: 3px;
+}
+.bs-callout+.bs-callout {
+ margin-top: -5px;
+}
+.bs-callout-default {
+ border-left-color: #777;
+}
+.bs-callout-default h4 {
+ color: #777;
+}
+.bs-callout-primary {
+ border-left-color: #428bca;
+}
+.bs-callout-primary h4 {
+ color: #428bca;
+}
+.bs-callout-success {
+ border-left-color: #5cb85c;
+}
+.bs-callout-success h4 {
+ color: #5cb85c;
+}
+.bs-callout-danger {
+ border-left-color: #d9534f;
+}
+.bs-callout-danger h4 {
+ color: #d9534f;
+}
+.bs-callout-warning {
+ border-left-color: #f0ad4e;
+}
+.bs-callout-warning h4 {
+ color: #f0ad4e;
+}
+.bs-callout-info {
+ border-left-color: #5bc0de;
+}
+.bs-callout-info h4 {
+ color: #5bc0de;
+}
+
+
+.gi-2x{font-size: 2em;}
+.gi-3x{font-size: 3em;}
+.gi-4x{font-size: 4em;}
+.gi-5x{font-size: 5em;}
+
+
+
+
+
+.breadcrumb > .active {color: #777 !important;}
+
+/* make room for the nav bar */
+h1[id],
+h2[id],
+h3[id],
+h4[id],
+h5[id],
+h6[id],
+dt[id]{
+ padding-top: 60px;
+ margin-top: -40px
+}
+
+body h1 {margin-top:40px;}
+
+img {
+max-width: 650px;
+margin: 12px 0px 3px 0px;
+}
+
+.post-content ol li, .post-content ul li {
+margin: 10px 0px;
+}
+
+.pageSummary {
+ font-size:13px;
+ display:block;
+ margin-bottom:15px;
+ padding-left:20px;
+}
+
+.post-summary {
+margin-bottom:12px;
+}
+
+.bs-example{
+ margin: 20px;
+ }
+
+.breadcrumb li {
+color: gray;
+}
+
+table {
+ background-color: transparent;
+}
+caption {
+ padding-top: 8px;
+ padding-bottom: 8px;
+ color: #777;
+ text-align: left;
+}
+th {
+ text-align: left;
+}
+table {
+ max-width: 90%;
+ margin-bottom: 20px;
+ border: 1px solid #dedede;
+}
+
+table > thead > tr > th,
+table > tbody > tr > th,
+table > tfoot > tr > th,
+table > thead > tr > td,
+table > tbody > tr > td,
+table > tfoot > tr > td {
+ padding: 8px;
+ line-height: 1.42857143;
+ vertical-align: top;
+ border-top: 1px solid #ddd;
+}
+table > thead > tr > th {
+ vertical-align: bottom;
+ border-bottom: 2px solid #ddd;
+ text-transform: uppercase;
+ background-color: #444;
+ color: white;
+ text-align: center;
+}
+table > caption + thead > tr:first-child > th,
+table > colgroup + thead > tr:first-child > th,
+table > thead:first-child > tr:first-child > th,
+table > caption + thead > tr:first-child > td,
+table > colgroup + thead > tr:first-child > td,
+table > thead:first-child > tr:first-child > td {
+ border-top: 0;
+}
+table > tbody + tbody {
+ b
+}
+table > tbody > tr:nth-of-type(odd) {
+ background-color: #f9f9f9;
+}
+
+table col[class*="col-"] {
+ position: static;
+ display: table-column;
+ float: none;
+}
+table td[class*="col-"],
+table th[class*="col-"] {
+ position: static;
+ display: table-cell;
+ float: none;
+}
+
+
+table td:first-child {
+ width: 150px;
+ font-weight:bold;
+}
+
+table tr td {
+ hyphens: auto;
+}
+
+
+p.external a {
+ text-align:right;
+ font-size:12px;
+ font-color: #0088cc;
+ display:inline;
+}
+
+#definition-box-container div a.active {
+ font-weight: bold;
+}
+p.post-meta {font-size: 80%; color: #777;}
+
+.entry-date{font-size:14px;font-size:0.875rem;line-height:1.71429;margin-bottom:0;text-transform:uppercase;}
+
+/* search area */
+#search-demo-container ul#results-container {
+list-style: none;
+font-size: 12px;
+background-color: white;
+position: absolute;
+top: 40px; /* if you change anything about the nav, you'll prob. need to reset the top and left values here.*/
+left: 20px;
+z-index: -1;
+width:223px;
+border-left: 1px solid #dedede;
+box-shadow: 2px 3px 2px #dedede;
+}
+
+
+ul#results-container a {
+background-color: transparent;
+}
+
+ul#results-container a: hover {
+ color: black;
+}
+
+
+#search-demo-container a:hover {
+ color: black;
+}
+#search-input {
+ padding: .5em;
+ margin-left:20px;
+ width:20em;
+ font-size: 0.8em;
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ float: right;
+ margin-top:10px;
+ }
+/* end search */
+
+.filter-options {
+margin-bottom: 20px;
+}
+.filter-options button {
+margin: 3px;
+}
+
+div#toc ul li {
+margin: 3px 18px;
+font-size: 90%;
+}
+div#toc ul {
+background-color: whitesmoke;
+padding: 10px;
+border-radius: 5px;
+list-style: square;
+max-width: 300px;
+padding-top:10px;
+color: gray;
+}
+
+div#toc ul li ul {
+ padding:0px;
+
+}
+
+div#toc >ul::before {
+ content: "Contents";
+ font-weight:bold;
+ color: black;
+}
+
+li.dropdownActive a {
+ font-weight: bold;
+}
+
+
+.post-content a.fa-rss {
+color: orange;
+}
+
+
+.navbar-inverse .navbar-nav > li > a {
+background-color: transparent;
+margin-top:10px;
+}
+
+.post-content .rssfeedLink {
+color: #248EC2;
+}
+
+footer {
+font-size: smaller;
+}
+
+/* FAQ page */
+#accordion .panel-heading {
+font-size: 12px;
+}
+
+a.accordion-toggle, a.accordion-collapsed {
+font-size: 14px;
+text-decoration: none;
+}
+
+/* navgoco sidebar styles (customized) */
+.nav, .nav ul, .nav li {
+ list-style: none;
+}
+
+.nav ul {
+ padding: 0;
+ /*margin: 0 0 0 18px;*/
+ margin:0px;
+}
+
+.nav {
+ /* padding: 4px;*/
+ padding:0px;
+ margin: 0px;
+}
+
+.nav > li {
+ margin: 1px 0;
+}
+
+.nav > li li {
+ margin: 2px 0;
+}
+
+.nav a {
+ color: #333;
+ display: block;
+ outline: none;
+ /*-webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;*/
+ text-decoration: none;
+}
+
+.nav li > a > span {
+ float: right;
+ font-size: 19px;
+ font-weight: bolder;
+}
+
+
+.nav li > a > span:after {
+ content: '\25be';
+}
+.nav li.open > a > span:after {
+ content: '\25b4';
+}
+
+.nav a:hover, .nav li.active > a {
+ background-color: #8D8D8D;
+ color: #f5f5f5;
+}
+
+.nav > li.active > a {
+ background-color: #248ec2;
+}
+
+.nav li a {
+ font-size: 12px;
+ line-height: 18px;
+ padding: 2px 10px;
+}
+
+.nav > li > a {
+ font-size: 14px;
+ line-height: 20px;
+ padding: 4px 10px;
+}
+
+ul#mysidebar {
+ margin-top:40px;
+
+ border-radius:0px;
+}
+
+
+#mysidebar {
+min-width: 240px;
+}
+
+.nav ul li ul li a {
+ padding-left:20px;
+}
+
+
+.nav li.thirdlevel > a {
+background-color: #FAFAFA !important;
+color: #248EC2;
+font-weight:bold;
+}
+
+
+.nav ul li a {
+background-color: #FAFAFA;
+}
+
+.nav li a {
+ background-color: #EDEDED;
+ padding-right:10px;
+}
+
+
+.nav ul li a {
+border-top:1px solid whitesmoke;
+padding-left:10px;
+}
+/* end sidebar */
+
+.navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus {
+ border-radius:5px;
+}
+
+.navbar-inverse .navbar-nav>.open>a, .navbar-inverse .navbar-nav>.open>a:focus, .navbar-inverse .navbar-nav>.open>a:hover {
+border-radius: 5px;
+}
+
+span.projectTitle {
+ font-family: Helvetica;
+ font-weight: bold;
+}
+
+.footer {
+text-align: right;
+}
+
+.footerMeta {
+background-color: whitesmoke;
+padding: 10px;
+max-width: 250px;
+border-radius: 5px;
+margin-top: 50px;
+font-style:italic;
+font-size:12px;
+}
+
+@media (max-width: 767px) {
+.navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
+color: #444;
+}}
+
+
+img.screenshotSmall {
+max-width: 300px;
+}
+
+
+
+dl dt p {
+ margin-left:20px;
+}
+
+
+dl dd {
+ margin-top:12px;
+ margin-bottom:12px;
+}
+
+@media (max-width: 990px) {
+ #mysidebar {
+ position: relative;
+ }
+}
+
+figcaption {
+
+ padding-bottom:12px;
+ padding-top:6px;
+ max-width: 90%;
+ margin-bottom:20px;
+
+}
+
+.siteTagline {
+margin: 20px 0px;
+font-size:17px;
+}
+
+.testing {
+ color: orange;
+}
+
+.preference {
+ color: red;
+}
+
+
+table.dataTable thead {
+ background-color: #444;
+}
+table td {
+ hyphens: auto;
+}
+
+section table tr.success {
+ background-color: #dff0d8 !important;
+}
+
+table tr.info {
+ background-color: #d9edf7 !important;
+}
+
+section table tr.warning, table tr.testing, table tr.testing > td.sorting_1 {
+ background-color: #fcf8e3 !important;
+}
+section table tr.danger, table tr.preference, table tr.preference > td.sorting_1 {
+ background-color: #f2dede !important;
+}
+
+
+.orange {
+ color: orange;
+}
+
+table.profile thead tr th {
+background-color: #248ec2;
+}
+
+table.request thead tr th {
+background-color: #b62273;
+}
+
+.audienceLabel {
+ margin: 10px;
+ float: right;
+ border:1px solid #dedede;
+ padding:7px;
+}
+
+.prefaceAudienceLabel {
+ color: gray;
+ text-align: center;
+ margin:5px;
+}
+span.myLabel {
+ padding-left:10px;
+ padding-right:10px;
+}
+
+button.cursorNorm {
+cursor: default;
+}
+
+a.dropdown-toggle, .navbar-inverse .navbar-nav > li > a {
+ margin-left: 10px;
+}
+
+hr.faded {
+ border: 0;
+ height: 1px;
+ background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
+ background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
+ background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
+ background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
+}
+
+hr.shaded {
+ height: 12px;
+ border: 0;
+ box-shadow: inset 0 12px 12px -12px rgba(0,0,0,0.5);
+}
diff --git a/css/font-awesome.min.css b/css/font-awesome.min.css
new file mode 100644
index 0000000..ec53d4d
--- /dev/null
+++ b/css/font-awesome.min.css
@@ -0,0 +1,4 @@
+/*!
+ * Font Awesome 4.2.0 by @davegandy - http://fontawesome.io - @fontawesome
+ * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
+ */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.2.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff?v=4.2.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.2.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}
\ No newline at end of file
diff --git a/css/lavish-bootstrap.css b/css/lavish-bootstrap.css
new file mode 100644
index 0000000..b1903c5
--- /dev/null
+++ b/css/lavish-bootstrap.css
@@ -0,0 +1,5901 @@
+/* CSS generated by http://lavishbootstrap.com */
+/*! normalize.css v2.1.0 | MIT License | git.io/normalize */
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+hgroup,
+main,
+nav,
+section,
+summary {
+ display: block;
+}
+audio,
+canvas,
+video {
+ display: inline-block;
+}
+audio:not([controls]) {
+ display: none;
+ height: 0;
+}
+[hidden] {
+ display: none;
+}
+html {
+ font-family: sans-serif;
+ -webkit-text-size-adjust: 100%;
+ -ms-text-size-adjust: 100%;
+}
+body {
+ margin: 0;
+}
+a:focus {
+ outline: thin dotted;
+}
+a:active,
+a:hover {
+ outline: 0;
+}
+h1 {
+ font-size: 2em;
+ margin: 0.67em 0;
+}
+abbr[title] {
+ border-bottom: 1px dotted;
+}
+b,
+strong {
+ font-weight: bold;
+}
+dfn {
+ font-style: italic;
+}
+hr {
+ -moz-box-sizing: content-box;
+ box-sizing: content-box;
+ height: 0;
+}
+mark {
+ background: #ff0;
+ color: #000;
+}
+code,
+kbd,
+pre,
+samp {
+ font-family: monospace, serif;
+ font-size: 1em;
+}
+pre {
+ white-space: pre-wrap;
+}
+q {
+ quotes: "\201C" "\201D" "\2018" "\2019";
+}
+small {
+ font-size: 80%;
+}
+sub,
+sup {
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline;
+}
+sup {
+ top: -0.5em;
+}
+sub {
+ bottom: -0.25em;
+}
+img {
+ border: 0;
+}
+svg:not(:root) {
+ overflow: hidden;
+}
+figure {
+ margin: 0;
+}
+fieldset {
+ border: 1px solid #c0c0c0;
+ margin: 0 2px;
+ padding: 0.35em 0.625em 0.75em;
+}
+legend {
+ border: 0;
+ padding: 0;
+}
+button,
+input,
+select,
+textarea {
+ font-family: inherit;
+ font-size: 100%;
+ margin: 0;
+}
+button,
+input {
+ line-height: normal;
+}
+button,
+select {
+ text-transform: none;
+}
+button,
+html input[type="button"],
+input[type="reset"],
+input[type="submit"] {
+ -webkit-appearance: button;
+ cursor: pointer;
+}
+button[disabled],
+html input[disabled] {
+ cursor: default;
+}
+input[type="checkbox"],
+input[type="radio"] {
+ box-sizing: border-box;
+ padding: 0;
+}
+input[type="search"] {
+ -webkit-appearance: textfield;
+ -moz-box-sizing: content-box;
+ -webkit-box-sizing: content-box;
+ box-sizing: content-box;
+}
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+ border: 0;
+ padding: 0;
+}
+textarea {
+ overflow: auto;
+ vertical-align: top;
+}
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+@media print {
+ * {
+ text-shadow: none !important;
+ color: #000 !important;
+ background: transparent !important;
+ box-shadow: none !important;
+ }
+ a,
+ a:visited {
+ text-decoration: underline;
+ }
+ a[href]:after {
+ content: " (" attr(href) ")";
+ }
+ abbr[title]:after {
+ content: " (" attr(title) ")";
+ }
+ .ir a:after,
+ a[href^="javascript:"]:after,
+ a[href^="#"]:after {
+ content: "";
+ }
+ pre,
+ blockquote {
+ border: 1px solid #999;
+ page-break-inside: avoid;
+ }
+ thead {
+ display: table-header-group;
+ }
+ tr,
+ img {
+ page-break-inside: avoid;
+ }
+ img {
+ max-width: 100% !important;
+ }
+ @page {
+ margin: 2cm .5cm;
+ }
+ p,
+ h2,
+ h3 {
+ orphans: 3;
+ widows: 3;
+ }
+ h2,
+ h3 {
+ page-break-after: avoid;
+ }
+ .navbar {
+ display: none;
+ }
+ .table td,
+ .table th {
+ background-color: #fff !important;
+ }
+ .btn > .caret,
+ .dropup > .btn > .caret {
+ border-top-color: #000 !important;
+ }
+ .label {
+ border: 1px solid #000;
+ }
+ .table {
+ border-collapse: collapse !important;
+ }
+ .table-bordered th,
+ .table-bordered td {
+ border: 1px solid #ddd !important;
+ }
+}
+*,
+*:before,
+*:after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+html {
+ font-size: 62.5%;
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+}
+body {
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+ font-size: 14px;
+ line-height: 1.428571429;
+ /*color: #77777a; */
+ background-color: #ffffff;
+}
+input,
+button,
+select,
+textarea {
+ font-family: inherit;
+ font-size: inherit;
+ line-height: inherit;
+}
+button,
+input,
+select[multiple],
+textarea {
+ background-image: none;
+}
+a {
+ color: #248EC2;
+ text-decoration: none;
+}
+a:hover,
+a:focus {
+ color: #517738;
+ text-decoration: underline;
+}
+a:focus {
+ outline: thin dotted #333;
+ outline: 5px auto -webkit-focus-ring-color;
+ outline-offset: -2px;
+}
+img {
+ vertical-align: middle;
+}
+.img-responsive {
+ display: block;
+ max-width: 100%;
+ height: auto;
+}
+.img-rounded {
+ border-radius: 6px;
+}
+.img-thumbnail {
+ padding: 4px;
+ line-height: 1.428571429;
+ background-color: #ffffff;
+ border: 1px solid #dddddd;
+ border-radius: 4px;
+ -webkit-transition: all 0.2s ease-in-out;
+ transition: all 0.2s ease-in-out;
+ display: inline-block;
+ max-width: 100%;
+ height: auto;
+}
+.img-circle {
+ border-radius: 50%;
+}
+hr {
+ margin-top: 20px;
+ margin-bottom: 20px;
+ border: 0;
+ border-top: 1px solid #bac9c2;
+}
+.sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ margin: -1px;
+ padding: 0;
+ overflow: hidden;
+ clip: rect(0 0 0 0);
+ border: 0;
+}
+p {
+ margin: 0 0 10px;
+}
+.lead {
+ margin-bottom: 20px;
+ font-size: 16.099999999999998px;
+ font-weight: 200;
+ line-height: 1.4;
+}
+@media (min-width: 768px) {
+ .lead {
+ font-size: 21px;
+ }
+}
+small {
+ font-size: 85%;
+}
+cite {
+ font-style: normal;
+}
+.text-muted {
+ color: #f9faf9;
+}
+.text-primary {
+ color: #74ab50;
+}
+.text-warning {
+ color: #c09853;
+}
+.text-danger {
+ color: #b94a48;
+}
+.text-success {
+ color: #468847;
+}
+.text-info {
+ color: #3a87ad;
+}
+.text-left {
+ text-align: left;
+}
+.text-right {
+ text-align: right;
+}
+.text-center {
+ text-align: center;
+}
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+.h1,
+.h2,
+.h3,
+.h4,
+.h5,
+.h6 {
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+ font-weight: 500;
+ line-height: 1.1;
+}
+h1 small,
+h2 small,
+h3 small,
+h4 small,
+h5 small,
+h6 small,
+.h1 small,
+.h2 small,
+.h3 small,
+.h4 small,
+.h5 small,
+.h6 small {
+ font-weight: normal;
+ line-height: 1;
+ color: #f9faf9;
+}
+h1,
+h2,
+h3 {
+ margin-top: 20px;
+ margin-bottom: 10px;
+}
+h4,
+h5,
+h6 {
+ margin-top: 10px;
+ margin-bottom: 10px;
+}
+h1,
+.h1 {
+ font-size: 36px;
+}
+h2,
+.h2 {
+ font-size: 30px;
+}
+h3,
+.h3 {
+ font-size: 24px;
+}
+h4,
+.h4 {
+ font-size: 18px;
+}
+h5,
+.h5 {
+ font-size: 14px;
+}
+h6,
+.h6 {
+ font-size: 12px;
+}
+h1 small,
+.h1 small {
+ font-size: 24px;
+}
+h2 small,
+.h2 small {
+ font-size: 18px;
+}
+h3 small,
+.h3 small,
+h4 small,
+.h4 small {
+ font-size: 14px;
+}
+.page-header {
+ padding-bottom: 9px;
+ margin: 40px 0 20px;
+ border-bottom: 1px solid #bac9c2;
+}
+ul,
+ol {
+ margin-top: 0;
+ margin-bottom: 10px;
+}
+ul ul,
+ol ul,
+ul ol,
+ol ol {
+ margin-bottom: 0;
+}
+.list-unstyled {
+ padding-left: 0;
+ list-style: none;
+}
+.list-inline {
+ padding-left: 0;
+ list-style: none;
+}
+.list-inline > li {
+ display: inline-block;
+ padding-left: 5px;
+ padding-right: 5px;
+}
+dl {
+ margin-bottom: 20px;
+}
+dt,
+dd {
+ line-height: 1.428571429;
+}
+dt {
+ font-weight: bold;
+}
+dd {
+ margin-left: 0;
+}
+@media (min-width: 768px) {
+ .dl-horizontal dt {
+ float: left;
+ width: 160px;
+ clear: left;
+ text-align: right;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+ .dl-horizontal dd {
+ margin-left: 180px;
+ }
+ .dl-horizontal dd:before,
+ .dl-horizontal dd:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+ }
+ .dl-horizontal dd:after {
+ clear: both;
+ }
+ .dl-horizontal dd:before,
+ .dl-horizontal dd:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+ }
+ .dl-horizontal dd:after {
+ clear: both;
+ }
+}
+abbr[title],
+abbr[data-original-title] {
+ cursor: help;
+ border-bottom: 1px dotted #f9faf9;
+}
+abbr.initialism {
+ font-size: 90%;
+ text-transform: uppercase;
+}
+blockquote {
+ padding: 10px 20px;
+ margin: 0 0 20px;
+ border-left: 5px solid #bac9c2;
+}
+blockquote p {
+ font-size: 17.5px;
+ font-weight: 300;
+ line-height: 1.25;
+}
+blockquote p:last-child {
+ margin-bottom: 0;
+}
+blockquote small {
+ display: block;
+ line-height: 1.428571429;
+ color: #f9faf9;
+}
+blockquote small:before {
+ content: '\2014 \00A0';
+}
+blockquote.pull-right {
+ padding-right: 15px;
+ padding-left: 0;
+ border-right: 5px solid #bac9c2;
+ border-left: 0;
+}
+blockquote.pull-right p,
+blockquote.pull-right small {
+ text-align: right;
+}
+blockquote.pull-right small:before {
+ content: '';
+}
+blockquote.pull-right small:after {
+ content: '\00A0 \2014';
+}
+q:before,
+q:after,
+blockquote:before,
+blockquote:after {
+ content: "";
+}
+address {
+ display: block;
+ margin-bottom: 20px;
+ font-style: normal;
+ line-height: 1.428571429;
+}
+code,
+pre {
+ font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
+}
+code {
+ padding: 2px 4px;
+ font-size: 90%;
+ color: #444;
+ background-color: #f0f0f0;
+ white-space: nowrap;
+ border-radius: 4px;
+}
+
+pre {
+ display: block;
+ padding: 9.5px;
+ margin: 0 0 10px;
+ font-size: 13px;
+ line-height: 1.428571429;
+ word-break: break-all;
+ word-wrap: break-word;
+ color: #77777a;
+ background-color: #f5f5f5;
+ border: 1px solid #cccccc;
+ border-radius: 4px;
+}
+pre.prettyprint {
+ margin-bottom: 20px;
+}
+pre code {
+ padding: 0;
+ font-size: inherit;
+ color: inherit;
+ white-space: pre-wrap;
+ background-color: transparent;
+ border: 0;
+}
+.pre-scrollable {
+ max-height: 340px;
+ overflow-y: scroll;
+}
+.container {
+ margin-right: auto;
+ margin-left: auto;
+ padding-left: 15px;
+ padding-right: 15px;
+}
+.container:before,
+.container:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.container:after {
+ clear: both;
+}
+.container:before,
+.container:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.container:after {
+ clear: both;
+}
+.row {
+ margin-left: -15px;
+ margin-right: -15px;
+}
+.row:before,
+.row:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.row:after {
+ clear: both;
+}
+.row:before,
+.row:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.row:after {
+ clear: both;
+}
+.col-xs-1,
+.col-xs-2,
+.col-xs-3,
+.col-xs-4,
+.col-xs-5,
+.col-xs-6,
+.col-xs-7,
+.col-xs-8,
+.col-xs-9,
+.col-xs-10,
+.col-xs-11,
+.col-xs-12,
+.col-sm-1,
+.col-sm-2,
+.col-sm-3,
+.col-sm-4,
+.col-sm-5,
+.col-sm-6,
+.col-sm-7,
+.col-sm-8,
+.col-sm-9,
+.col-sm-10,
+.col-sm-11,
+.col-sm-12,
+.col-md-1,
+.col-md-2,
+.col-md-3,
+.col-md-4,
+.col-md-5,
+.col-md-6,
+.col-md-7,
+.col-md-8,
+.col-md-9,
+.col-md-10,
+.col-md-11,
+.col-md-12,
+.col-lg-1,
+.col-lg-2,
+.col-lg-3,
+.col-lg-4,
+.col-lg-5,
+.col-lg-6,
+.col-lg-7,
+.col-lg-8,
+.col-lg-9,
+.col-lg-10,
+.col-lg-11,
+.col-lg-12 {
+ position: relative;
+ min-height: 1px;
+ padding-left: 15px;
+ padding-right: 15px;
+}
+.col-xs-1,
+.col-xs-2,
+.col-xs-3,
+.col-xs-4,
+.col-xs-5,
+.col-xs-6,
+.col-xs-7,
+.col-xs-8,
+.col-xs-9,
+.col-xs-10,
+.col-xs-11 {
+ float: left;
+}
+.col-xs-1 {
+ width: 8.333333333333332%;
+}
+.col-xs-2 {
+ width: 16.666666666666664%;
+}
+.col-xs-3 {
+ width: 25%;
+}
+.col-xs-4 {
+ width: 33.33333333333333%;
+}
+.col-xs-5 {
+ width: 41.66666666666667%;
+}
+.col-xs-6 {
+ width: 50%;
+}
+.col-xs-7 {
+ width: 58.333333333333336%;
+}
+.col-xs-8 {
+ width: 66.66666666666666%;
+}
+.col-xs-9 {
+ width: 75%;
+}
+.col-xs-10 {
+ width: 83.33333333333334%;
+}
+.col-xs-11 {
+ width: 91.66666666666666%;
+}
+.col-xs-12 {
+ width: 100%;
+}
+@media (min-width: 768px) {
+ .container {
+ max-width: 750px;
+ }
+ .col-sm-1,
+ .col-sm-2,
+ .col-sm-3,
+ .col-sm-4,
+ .col-sm-5,
+ .col-sm-6,
+ .col-sm-7,
+ .col-sm-8,
+ .col-sm-9,
+ .col-sm-10,
+ .col-sm-11 {
+ float: left;
+ }
+ .col-sm-1 {
+ width: 8.333333333333332%;
+ }
+ .col-sm-2 {
+ width: 16.666666666666664%;
+ }
+ .col-sm-3 {
+ width: 25%;
+ }
+ .col-sm-4 {
+ width: 33.33333333333333%;
+ }
+ .col-sm-5 {
+ width: 41.66666666666667%;
+ }
+ .col-sm-6 {
+ width: 50%;
+ }
+ .col-sm-7 {
+ width: 58.333333333333336%;
+ }
+ .col-sm-8 {
+ width: 66.66666666666666%;
+ }
+ .col-sm-9 {
+ width: 75%;
+ }
+ .col-sm-10 {
+ width: 83.33333333333334%;
+ }
+ .col-sm-11 {
+ width: 91.66666666666666%;
+ }
+ .col-sm-12 {
+ width: 100%;
+ }
+ .col-sm-push-1 {
+ left: 8.333333333333332%;
+ }
+ .col-sm-push-2 {
+ left: 16.666666666666664%;
+ }
+ .col-sm-push-3 {
+ left: 25%;
+ }
+ .col-sm-push-4 {
+ left: 33.33333333333333%;
+ }
+ .col-sm-push-5 {
+ left: 41.66666666666667%;
+ }
+ .col-sm-push-6 {
+ left: 50%;
+ }
+ .col-sm-push-7 {
+ left: 58.333333333333336%;
+ }
+ .col-sm-push-8 {
+ left: 66.66666666666666%;
+ }
+ .col-sm-push-9 {
+ left: 75%;
+ }
+ .col-sm-push-10 {
+ left: 83.33333333333334%;
+ }
+ .col-sm-push-11 {
+ left: 91.66666666666666%;
+ }
+ .col-sm-pull-1 {
+ right: 8.333333333333332%;
+ }
+ .col-sm-pull-2 {
+ right: 16.666666666666664%;
+ }
+ .col-sm-pull-3 {
+ right: 25%;
+ }
+ .col-sm-pull-4 {
+ right: 33.33333333333333%;
+ }
+ .col-sm-pull-5 {
+ right: 41.66666666666667%;
+ }
+ .col-sm-pull-6 {
+ right: 50%;
+ }
+ .col-sm-pull-7 {
+ right: 58.333333333333336%;
+ }
+ .col-sm-pull-8 {
+ right: 66.66666666666666%;
+ }
+ .col-sm-pull-9 {
+ right: 75%;
+ }
+ .col-sm-pull-10 {
+ right: 83.33333333333334%;
+ }
+ .col-sm-pull-11 {
+ right: 91.66666666666666%;
+ }
+ .col-sm-offset-1 {
+ margin-left: 8.333333333333332%;
+ }
+ .col-sm-offset-2 {
+ margin-left: 16.666666666666664%;
+ }
+ .col-sm-offset-3 {
+ margin-left: 25%;
+ }
+ .col-sm-offset-4 {
+ margin-left: 33.33333333333333%;
+ }
+ .col-sm-offset-5 {
+ margin-left: 41.66666666666667%;
+ }
+ .col-sm-offset-6 {
+ margin-left: 50%;
+ }
+ .col-sm-offset-7 {
+ margin-left: 58.333333333333336%;
+ }
+ .col-sm-offset-8 {
+ margin-left: 66.66666666666666%;
+ }
+ .col-sm-offset-9 {
+ margin-left: 75%;
+ }
+ .col-sm-offset-10 {
+ margin-left: 83.33333333333334%;
+ }
+ .col-sm-offset-11 {
+ margin-left: 91.66666666666666%;
+ }
+}
+@media (min-width: 992px) {
+ .container {
+ max-width: 970px;
+ }
+ .col-md-1,
+ .col-md-2,
+ .col-md-3,
+ .col-md-4,
+ .col-md-5,
+ .col-md-6,
+ .col-md-7,
+ .col-md-8,
+ .col-md-9,
+ .col-md-10,
+ .col-md-11 {
+ float: left;
+ }
+ .col-md-1 {
+ width: 8.333333333333332%;
+ }
+ .col-md-2 {
+ width: 16.666666666666664%;
+ }
+ .col-md-3 {
+ width: 25%;
+ }
+ .col-md-4 {
+ width: 33.33333333333333%;
+ }
+ .col-md-5 {
+ width: 41.66666666666667%;
+ }
+ .col-md-6 {
+ width: 50%;
+ }
+ .col-md-7 {
+ width: 58.333333333333336%;
+ }
+ .col-md-8 {
+ width: 66.66666666666666%;
+ }
+ .col-md-9 {
+ width: 75%;
+ }
+ .col-md-10 {
+ width: 83.33333333333334%;
+ }
+ .col-md-11 {
+ width: 91.66666666666666%;
+ }
+ .col-md-12 {
+ width: 100%;
+ }
+ .col-md-push-0 {
+ left: auto;
+ }
+ .col-md-push-1 {
+ left: 8.333333333333332%;
+ }
+ .col-md-push-2 {
+ left: 16.666666666666664%;
+ }
+ .col-md-push-3 {
+ left: 25%;
+ }
+ .col-md-push-4 {
+ left: 33.33333333333333%;
+ }
+ .col-md-push-5 {
+ left: 41.66666666666667%;
+ }
+ .col-md-push-6 {
+ left: 50%;
+ }
+ .col-md-push-7 {
+ left: 58.333333333333336%;
+ }
+ .col-md-push-8 {
+ left: 66.66666666666666%;
+ }
+ .col-md-push-9 {
+ left: 75%;
+ }
+ .col-md-push-10 {
+ left: 83.33333333333334%;
+ }
+ .col-md-push-11 {
+ left: 91.66666666666666%;
+ }
+ .col-md-pull-0 {
+ right: auto;
+ }
+ .col-md-pull-1 {
+ right: 8.333333333333332%;
+ }
+ .col-md-pull-2 {
+ right: 16.666666666666664%;
+ }
+ .col-md-pull-3 {
+ right: 25%;
+ }
+ .col-md-pull-4 {
+ right: 33.33333333333333%;
+ }
+ .col-md-pull-5 {
+ right: 41.66666666666667%;
+ }
+ .col-md-pull-6 {
+ right: 50%;
+ }
+ .col-md-pull-7 {
+ right: 58.333333333333336%;
+ }
+ .col-md-pull-8 {
+ right: 66.66666666666666%;
+ }
+ .col-md-pull-9 {
+ right: 75%;
+ }
+ .col-md-pull-10 {
+ right: 83.33333333333334%;
+ }
+ .col-md-pull-11 {
+ right: 91.66666666666666%;
+ }
+ .col-md-offset-0 {
+ margin-left: 0;
+ }
+ .col-md-offset-1 {
+ margin-left: 8.333333333333332%;
+ }
+ .col-md-offset-2 {
+ margin-left: 16.666666666666664%;
+ }
+ .col-md-offset-3 {
+ margin-left: 25%;
+ }
+ .col-md-offset-4 {
+ margin-left: 33.33333333333333%;
+ }
+ .col-md-offset-5 {
+ margin-left: 41.66666666666667%;
+ }
+ .col-md-offset-6 {
+ margin-left: 50%;
+ }
+ .col-md-offset-7 {
+ margin-left: 58.333333333333336%;
+ }
+ .col-md-offset-8 {
+ margin-left: 66.66666666666666%;
+ }
+ .col-md-offset-9 {
+ margin-left: 75%;
+ }
+ .col-md-offset-10 {
+ margin-left: 83.33333333333334%;
+ }
+ .col-md-offset-11 {
+ margin-left: 91.66666666666666%;
+ }
+}
+@media (min-width: 1200px) {
+ .container {
+ max-width: 1170px;
+ }
+ .col-lg-1,
+ .col-lg-2,
+ .col-lg-3,
+ .col-lg-4,
+ .col-lg-5,
+ .col-lg-6,
+ .col-lg-7,
+ .col-lg-8,
+ .col-lg-9,
+ .col-lg-10,
+ .col-lg-11 {
+ float: left;
+ }
+ .col-lg-1 {
+ width: 8.333333333333332%;
+ }
+ .col-lg-2 {
+ width: 16.666666666666664%;
+ }
+ .col-lg-3 {
+ width: 25%;
+ }
+ .col-lg-4 {
+ width: 33.33333333333333%;
+ }
+ .col-lg-5 {
+ width: 41.66666666666667%;
+ }
+ .col-lg-6 {
+ width: 50%;
+ }
+ .col-lg-7 {
+ width: 58.333333333333336%;
+ }
+ .col-lg-8 {
+ width: 66.66666666666666%;
+ }
+ .col-lg-9 {
+ width: 75%;
+ }
+ .col-lg-10 {
+ width: 83.33333333333334%;
+ }
+ .col-lg-11 {
+ width: 91.66666666666666%;
+ }
+ .col-lg-12 {
+ width: 100%;
+ }
+ .col-lg-push-0 {
+ left: auto;
+ }
+ .col-lg-push-1 {
+ left: 8.333333333333332%;
+ }
+ .col-lg-push-2 {
+ left: 16.666666666666664%;
+ }
+ .col-lg-push-3 {
+ left: 25%;
+ }
+ .col-lg-push-4 {
+ left: 33.33333333333333%;
+ }
+ .col-lg-push-5 {
+ left: 41.66666666666667%;
+ }
+ .col-lg-push-6 {
+ left: 50%;
+ }
+ .col-lg-push-7 {
+ left: 58.333333333333336%;
+ }
+ .col-lg-push-8 {
+ left: 66.66666666666666%;
+ }
+ .col-lg-push-9 {
+ left: 75%;
+ }
+ .col-lg-push-10 {
+ left: 83.33333333333334%;
+ }
+ .col-lg-push-11 {
+ left: 91.66666666666666%;
+ }
+ .col-lg-pull-0 {
+ right: auto;
+ }
+ .col-lg-pull-1 {
+ right: 8.333333333333332%;
+ }
+ .col-lg-pull-2 {
+ right: 16.666666666666664%;
+ }
+ .col-lg-pull-3 {
+ right: 25%;
+ }
+ .col-lg-pull-4 {
+ right: 33.33333333333333%;
+ }
+ .col-lg-pull-5 {
+ right: 41.66666666666667%;
+ }
+ .col-lg-pull-6 {
+ right: 50%;
+ }
+ .col-lg-pull-7 {
+ right: 58.333333333333336%;
+ }
+ .col-lg-pull-8 {
+ right: 66.66666666666666%;
+ }
+ .col-lg-pull-9 {
+ right: 75%;
+ }
+ .col-lg-pull-10 {
+ right: 83.33333333333334%;
+ }
+ .col-lg-pull-11 {
+ right: 91.66666666666666%;
+ }
+ .col-lg-offset-0 {
+ margin-left: 0;
+ }
+ .col-lg-offset-1 {
+ margin-left: 8.333333333333332%;
+ }
+ .col-lg-offset-2 {
+ margin-left: 16.666666666666664%;
+ }
+ .col-lg-offset-3 {
+ margin-left: 25%;
+ }
+ .col-lg-offset-4 {
+ margin-left: 33.33333333333333%;
+ }
+ .col-lg-offset-5 {
+ margin-left: 41.66666666666667%;
+ }
+ .col-lg-offset-6 {
+ margin-left: 50%;
+ }
+ .col-lg-offset-7 {
+ margin-left: 58.333333333333336%;
+ }
+ .col-lg-offset-8 {
+ margin-left: 66.66666666666666%;
+ }
+ .col-lg-offset-9 {
+ margin-left: 75%;
+ }
+ .col-lg-offset-10 {
+ margin-left: 83.33333333333334%;
+ }
+ .col-lg-offset-11 {
+ margin-left: 91.66666666666666%;
+ }
+}
+table {
+ max-width: 100%;
+ background-color: transparent;
+}
+th {
+ text-align: left;
+}
+.table {
+ width: 100%;
+ margin-bottom: 20px;
+}
+.table thead > tr > th,
+.table tbody > tr > th,
+.table tfoot > tr > th,
+.table thead > tr > td,
+.table tbody > tr > td,
+.table tfoot > tr > td {
+ padding: 8px;
+ line-height: 1.428571429;
+ vertical-align: top;
+ border-top: 1px solid #77777a;
+}
+.table thead > tr > th {
+ vertical-align: bottom;
+ border-bottom: 2px solid #77777a;
+}
+.table caption + thead tr:first-child th,
+.table colgroup + thead tr:first-child th,
+.table thead:first-child tr:first-child th,
+.table caption + thead tr:first-child td,
+.table colgroup + thead tr:first-child td,
+.table thead:first-child tr:first-child td {
+ border-top: 0;
+}
+.table tbody + tbody {
+ border-top: 2px solid #77777a;
+}
+.table .table {
+ background-color: #ffffff;
+}
+.table-condensed thead > tr > th,
+.table-condensed tbody > tr > th,
+.table-condensed tfoot > tr > th,
+.table-condensed thead > tr > td,
+.table-condensed tbody > tr > td,
+.table-condensed tfoot > tr > td {
+ padding: 5px;
+}
+.table-bordered {
+ border: 1px solid #77777a;
+}
+.table-bordered > thead > tr > th,
+.table-bordered > tbody > tr > th,
+.table-bordered > tfoot > tr > th,
+.table-bordered > thead > tr > td,
+.table-bordered > tbody > tr > td,
+.table-bordered > tfoot > tr > td {
+ border: 1px solid #77777a;
+}
+.table-bordered > thead > tr > th,
+.table-bordered > thead > tr > td {
+ border-bottom-width: 2px;
+}
+.table-striped > tbody > tr:nth-child(odd) > td,
+.table-striped > tbody > tr:nth-child(odd) > th {
+ background-color: #f9f9f9;
+}
+.table-hover > tbody > tr:hover > td,
+.table-hover > tbody > tr:hover > th {
+ background-color: #f5f5f5;
+}
+table col[class*="col-"] {
+ float: none;
+ display: table-column;
+}
+table td[class*="col-"],
+table th[class*="col-"] {
+ float: none;
+ display: table-cell;
+}
+.table > thead > tr > td.active,
+.table > tbody > tr > td.active,
+.table > tfoot > tr > td.active,
+.table > thead > tr > th.active,
+.table > tbody > tr > th.active,
+.table > tfoot > tr > th.active,
+.table > thead > tr.active > td,
+.table > tbody > tr.active > td,
+.table > tfoot > tr.active > td,
+.table > thead > tr.active > th,
+.table > tbody > tr.active > th,
+.table > tfoot > tr.active > th {
+ background-color: #f5f5f5;
+}
+.table > thead > tr > td.success,
+.table > tbody > tr > td.success,
+.table > tfoot > tr > td.success,
+.table > thead > tr > th.success,
+.table > tbody > tr > th.success,
+.table > tfoot > tr > th.success,
+.table > thead > tr.success > td,
+.table > tbody > tr.success > td,
+.table > tfoot > tr.success > td,
+.table > thead > tr.success > th,
+.table > tbody > tr.success > th,
+.table > tfoot > tr.success > th {
+ background-color: #dff0d8;
+ border-color: #d6e9c6;
+}
+.table-hover > tbody > tr > td.success:hover,
+.table-hover > tbody > tr > th.success:hover,
+.table-hover > tbody > tr.success:hover > td {
+ background-color: #d0e9c6;
+ border-color: #c9e2b3;
+}
+.table > thead > tr > td.danger,
+.table > tbody > tr > td.danger,
+.table > tfoot > tr > td.danger,
+.table > thead > tr > th.danger,
+.table > tbody > tr > th.danger,
+.table > tfoot > tr > th.danger,
+.table > thead > tr.danger > td,
+.table > tbody > tr.danger > td,
+.table > tfoot > tr.danger > td,
+.table > thead > tr.danger > th,
+.table > tbody > tr.danger > th,
+.table > tfoot > tr.danger > th {
+ background-color: #f2dede;
+ border-color: #eed3d7;
+}
+.table-hover > tbody > tr > td.danger:hover,
+.table-hover > tbody > tr > th.danger:hover,
+.table-hover > tbody > tr.danger:hover > td {
+ background-color: #ebcccc;
+ border-color: #e6c1c7;
+}
+.table > thead > tr > td.warning,
+.table > tbody > tr > td.warning,
+.table > tfoot > tr > td.warning,
+.table > thead > tr > th.warning,
+.table > tbody > tr > th.warning,
+.table > tfoot > tr > th.warning,
+.table > thead > tr.warning > td,
+.table > tbody > tr.warning > td,
+.table > tfoot > tr.warning > td,
+.table > thead > tr.warning > th,
+.table > tbody > tr.warning > th,
+.table > tfoot > tr.warning > th {
+ background-color: #fcf8e3;
+ border-color: #fbeed5;
+}
+.table-hover > tbody > tr > td.warning:hover,
+.table-hover > tbody > tr > th.warning:hover,
+.table-hover > tbody > tr.warning:hover > td {
+ background-color: #faf2cc;
+ border-color: #f8e5be;
+}
+@media (max-width: 768px) {
+ .table-responsive {
+ width: 100%;
+ margin-bottom: 15px;
+ overflow-y: hidden;
+ overflow-x: scroll;
+ border: 1px solid #77777a;
+ }
+ .table-responsive > .table {
+ margin-bottom: 0;
+ background-color: #fff;
+ }
+ .table-responsive > .table > thead > tr > th,
+ .table-responsive > .table > tbody > tr > th,
+ .table-responsive > .table > tfoot > tr > th,
+ .table-responsive > .table > thead > tr > td,
+ .table-responsive > .table > tbody > tr > td,
+ .table-responsive > .table > tfoot > tr > td {
+ white-space: nowrap;
+ }
+ .table-responsive > .table-bordered {
+ border: 0;
+ }
+ .table-responsive > .table-bordered > thead > tr > th:first-child,
+ .table-responsive > .table-bordered > tbody > tr > th:first-child,
+ .table-responsive > .table-bordered > tfoot > tr > th:first-child,
+ .table-responsive > .table-bordered > thead > tr > td:first-child,
+ .table-responsive > .table-bordered > tbody > tr > td:first-child,
+ .table-responsive > .table-bordered > tfoot > tr > td:first-child {
+ border-left: 0;
+ }
+ .table-responsive > .table-bordered > thead > tr > th:last-child,
+ .table-responsive > .table-bordered > tbody > tr > th:last-child,
+ .table-responsive > .table-bordered > tfoot > tr > th:last-child,
+ .table-responsive > .table-bordered > thead > tr > td:last-child,
+ .table-responsive > .table-bordered > tbody > tr > td:last-child,
+ .table-responsive > .table-bordered > tfoot > tr > td:last-child {
+ border-right: 0;
+ }
+ .table-responsive > .table-bordered > thead > tr:last-child > th,
+ .table-responsive > .table-bordered > tbody > tr:last-child > th,
+ .table-responsive > .table-bordered > tfoot > tr:last-child > th,
+ .table-responsive > .table-bordered > thead > tr:last-child > td,
+ .table-responsive > .table-bordered > tbody > tr:last-child > td,
+ .table-responsive > .table-bordered > tfoot > tr:last-child > td {
+ border-bottom: 0;
+ }
+}
+fieldset {
+ padding: 0;
+ margin: 0;
+ border: 0;
+}
+legend {
+ display: block;
+ width: 100%;
+ padding: 0;
+ margin-bottom: 20px;
+ font-size: 21px;
+ line-height: inherit;
+ color: #77777a;
+ border: 0;
+ border-bottom: 1px solid #e5e5e5;
+}
+label {
+ display: inline-block;
+ margin-bottom: 5px;
+ font-weight: bold;
+}
+input[type="search"] {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+input[type="radio"],
+input[type="checkbox"] {
+ margin: 4px 0 0;
+ margin-top: 1px \9;
+ /* IE8-9 */
+
+ line-height: normal;
+}
+input[type="file"] {
+ display: block;
+}
+select[multiple],
+select[size] {
+ height: auto;
+}
+select optgroup {
+ font-size: inherit;
+ font-style: inherit;
+ font-family: inherit;
+}
+input[type="file"]:focus,
+input[type="radio"]:focus,
+input[type="checkbox"]:focus {
+ outline: thin dotted #333;
+ outline: 5px auto -webkit-focus-ring-color;
+ outline-offset: -2px;
+}
+input[type="number"]::-webkit-outer-spin-button,
+input[type="number"]::-webkit-inner-spin-button {
+ height: auto;
+}
+.form-control:-moz-placeholder {
+ color: #f9faf9;
+}
+.form-control::-moz-placeholder {
+ color: #f9faf9;
+}
+.form-control:-ms-input-placeholder {
+ color: #f9faf9;
+}
+.form-control::-webkit-input-placeholder {
+ color: #f9faf9;
+}
+.form-control {
+ display: block;
+ width: 100%;
+ height: 34px;
+ padding: 6px 12px;
+ font-size: 14px;
+ line-height: 1.428571429;
+ color: #4aadd6;
+ vertical-align: middle;
+ background-color: #ffffff;
+ border: 1px solid #cccccc;
+ border-radius: 4px;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+ -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
+ transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
+}
+.form-control:focus {
+ border-color: #66afe9;
+ outline: 0;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
+}
+.form-control[disabled],
+.form-control[readonly],
+fieldset[disabled] .form-control {
+ cursor: not-allowed;
+ background-color: #bac9c2;
+}
+textarea.form-control {
+ height: auto;
+}
+.form-group {
+ margin-bottom: 15px;
+}
+.radio,
+.checkbox {
+ display: block;
+ min-height: 20px;
+ margin-top: 10px;
+ margin-bottom: 10px;
+ padding-left: 20px;
+ vertical-align: middle;
+}
+.radio label,
+.checkbox label {
+ display: inline;
+ margin-bottom: 0;
+ font-weight: normal;
+ cursor: pointer;
+}
+.radio input[type="radio"],
+.radio-inline input[type="radio"],
+.checkbox input[type="checkbox"],
+.checkbox-inline input[type="checkbox"] {
+ float: left;
+ margin-left: -20px;
+}
+.radio + .radio,
+.checkbox + .checkbox {
+ margin-top: -5px;
+}
+.radio-inline,
+.checkbox-inline {
+ display: inline-block;
+ padding-left: 20px;
+ margin-bottom: 0;
+ vertical-align: middle;
+ font-weight: normal;
+ cursor: pointer;
+}
+.radio-inline + .radio-inline,
+.checkbox-inline + .checkbox-inline {
+ margin-top: 0;
+ margin-left: 10px;
+}
+input[type="radio"][disabled],
+input[type="checkbox"][disabled],
+.radio[disabled],
+.radio-inline[disabled],
+.checkbox[disabled],
+.checkbox-inline[disabled],
+fieldset[disabled] input[type="radio"],
+fieldset[disabled] input[type="checkbox"],
+fieldset[disabled] .radio,
+fieldset[disabled] .radio-inline,
+fieldset[disabled] .checkbox,
+fieldset[disabled] .checkbox-inline {
+ cursor: not-allowed;
+}
+.input-sm {
+ height: 30px;
+ padding: 5px 10px;
+ font-size: 12px;
+ line-height: 1.5;
+ border-radius: 3px;
+}
+select.input-sm {
+ height: 30px;
+ line-height: 30px;
+}
+textarea.input-sm {
+ height: auto;
+}
+.input-lg {
+ height: 45px;
+ padding: 10px 16px;
+ font-size: 18px;
+ line-height: 1.33;
+ border-radius: 6px;
+}
+select.input-lg {
+ height: 45px;
+ line-height: 45px;
+}
+textarea.input-lg {
+ height: auto;
+}
+.has-warning .help-block,
+.has-warning .control-label {
+ color: #c09853;
+}
+.has-warning .form-control {
+ border-color: #c09853;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+}
+.has-warning .form-control:focus {
+ border-color: #a47e3c;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e;
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e;
+}
+.has-warning .input-group-addon {
+ color: #c09853;
+ border-color: #c09853;
+ background-color: #fcf8e3;
+}
+.has-error .help-block,
+.has-error .control-label {
+ color: #b94a48;
+}
+.has-error .form-control {
+ border-color: #b94a48;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+}
+.has-error .form-control:focus {
+ border-color: #953b39;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
+}
+.has-error .input-group-addon {
+ color: #b94a48;
+ border-color: #b94a48;
+ background-color: #f2dede;
+}
+.has-success .help-block,
+.has-success .control-label {
+ color: #468847;
+}
+.has-success .form-control {
+ border-color: #468847;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+}
+.has-success .form-control:focus {
+ border-color: #356635;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b;
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b;
+}
+.has-success .input-group-addon {
+ color: #468847;
+ border-color: #468847;
+ background-color: #dff0d8;
+}
+.form-control-static {
+ margin-bottom: 0;
+ padding-top: 7px;
+}
+.help-block {
+ display: block;
+ margin-top: 5px;
+ margin-bottom: 10px;
+ color: #b7b7b9;
+}
+@media (min-width: 768px) {
+ .form-inline .form-group {
+ display: inline-block;
+ margin-bottom: 0;
+ vertical-align: middle;
+ }
+ .form-inline .form-control {
+ display: inline-block;
+ }
+ .form-inline .radio,
+ .form-inline .checkbox {
+ display: inline-block;
+ margin-top: 0;
+ margin-bottom: 0;
+ padding-left: 0;
+ }
+ .form-inline .radio input[type="radio"],
+ .form-inline .checkbox input[type="checkbox"] {
+ float: none;
+ margin-left: 0;
+ }
+}
+.form-horizontal .control-label,
+.form-horizontal .radio,
+.form-horizontal .checkbox,
+.form-horizontal .radio-inline,
+.form-horizontal .checkbox-inline {
+ margin-top: 0;
+ margin-bottom: 0;
+ padding-top: 7px;
+}
+.form-horizontal .form-group {
+ margin-left: -15px;
+ margin-right: -15px;
+}
+.form-horizontal .form-group:before,
+.form-horizontal .form-group:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.form-horizontal .form-group:after {
+ clear: both;
+}
+.form-horizontal .form-group:before,
+.form-horizontal .form-group:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.form-horizontal .form-group:after {
+ clear: both;
+}
+@media (min-width: 768px) {
+ .form-horizontal .control-label {
+ text-align: right;
+ }
+}
+.btn {
+ display: inline-block;
+ padding: 6px 12px;
+ margin-bottom: 0;
+ font-size: 14px;
+ font-weight: normal;
+ line-height: 1.428571429;
+ text-align: center;
+ vertical-align: middle;
+ cursor: pointer;
+ border: 1px solid transparent;
+ border-radius: 4px;
+ white-space: nowrap;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ -o-user-select: none;
+ user-select: none;
+}
+.btn:focus {
+ outline: thin dotted #333;
+ outline: 5px auto -webkit-focus-ring-color;
+ outline-offset: -2px;
+}
+.btn:hover,
+.btn:focus {
+ color: #333333;
+ text-decoration: none;
+}
+.btn:active,
+.btn.active {
+ outline: 0;
+ background-image: none;
+ -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
+ box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
+}
+.btn.disabled,
+.btn[disabled],
+fieldset[disabled] .btn {
+ cursor: not-allowed;
+ pointer-events: none;
+ opacity: 0.65;
+ filter: alpha(opacity=65);
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.btn-default {
+ color: #333333;
+ background-color: #ffffff;
+ border-color: #cccccc;
+}
+.btn-default:hover,
+.btn-default:focus,
+.btn-default:active,
+.btn-default.active,
+.open .dropdown-toggle.btn-default {
+ color: #333333;
+ background-color: #ebebeb;
+ border-color: #adadad;
+}
+.btn-default:active,
+.btn-default.active,
+.open .dropdown-toggle.btn-default {
+ background-image: none;
+}
+.btn-default.disabled,
+.btn-default[disabled],
+fieldset[disabled] .btn-default,
+.btn-default.disabled:hover,
+.btn-default[disabled]:hover,
+fieldset[disabled] .btn-default:hover,
+.btn-default.disabled:focus,
+.btn-default[disabled]:focus,
+fieldset[disabled] .btn-default:focus,
+.btn-default.disabled:active,
+.btn-default[disabled]:active,
+fieldset[disabled] .btn-default:active,
+.btn-default.disabled.active,
+.btn-default[disabled].active,
+fieldset[disabled] .btn-default.active {
+ background-color: #ffffff;
+ border-color: #cccccc;
+}
+.btn-primary {
+ color: #ffffff;
+ background-color: #74ab50;
+ border-color: #689a48;
+}
+.btn-primary:hover,
+.btn-primary:focus,
+.btn-primary:active,
+.btn-primary.active,
+.open .dropdown-toggle.btn-primary {
+ color: #ffffff;
+ background-color: #618f43;
+ border-color: #4c7034;
+}
+.btn-primary:active,
+.btn-primary.active,
+.open .dropdown-toggle.btn-primary {
+ background-image: none;
+}
+.btn-primary.disabled,
+.btn-primary[disabled],
+fieldset[disabled] .btn-primary,
+.btn-primary.disabled:hover,
+.btn-primary[disabled]:hover,
+fieldset[disabled] .btn-primary:hover,
+.btn-primary.disabled:focus,
+.btn-primary[disabled]:focus,
+fieldset[disabled] .btn-primary:focus,
+.btn-primary.disabled:active,
+.btn-primary[disabled]:active,
+fieldset[disabled] .btn-primary:active,
+.btn-primary.disabled.active,
+.btn-primary[disabled].active,
+fieldset[disabled] .btn-primary.active {
+ background-color: #74ab50;
+ border-color: #689a48;
+}
+.btn-warning {
+ color: #ffffff;
+ background-color: #f0ad4e;
+ border-color: #eea236;
+}
+.btn-warning:hover,
+.btn-warning:focus,
+.btn-warning:active,
+.btn-warning.active,
+.open .dropdown-toggle.btn-warning {
+ color: #ffffff;
+ background-color: #ed9c28;
+ border-color: #d58512;
+}
+.btn-warning:active,
+.btn-warning.active,
+.open .dropdown-toggle.btn-warning {
+ background-image: none;
+}
+.btn-warning.disabled,
+.btn-warning[disabled],
+fieldset[disabled] .btn-warning,
+.btn-warning.disabled:hover,
+.btn-warning[disabled]:hover,
+fieldset[disabled] .btn-warning:hover,
+.btn-warning.disabled:focus,
+.btn-warning[disabled]:focus,
+fieldset[disabled] .btn-warning:focus,
+.btn-warning.disabled:active,
+.btn-warning[disabled]:active,
+fieldset[disabled] .btn-warning:active,
+.btn-warning.disabled.active,
+.btn-warning[disabled].active,
+fieldset[disabled] .btn-warning.active {
+ background-color: #f0ad4e;
+ border-color: #eea236;
+}
+.btn-danger {
+ color: #ffffff;
+ background-color: #d9534f;
+ border-color: #d43f3a;
+}
+.btn-danger:hover,
+.btn-danger:focus,
+.btn-danger:active,
+.btn-danger.active,
+.open .dropdown-toggle.btn-danger {
+ color: #ffffff;
+ background-color: #d2322d;
+ border-color: #ac2925;
+}
+.btn-danger:active,
+.btn-danger.active,
+.open .dropdown-toggle.btn-danger {
+ background-image: none;
+}
+.btn-danger.disabled,
+.btn-danger[disabled],
+fieldset[disabled] .btn-danger,
+.btn-danger.disabled:hover,
+.btn-danger[disabled]:hover,
+fieldset[disabled] .btn-danger:hover,
+.btn-danger.disabled:focus,
+.btn-danger[disabled]:focus,
+fieldset[disabled] .btn-danger:focus,
+.btn-danger.disabled:active,
+.btn-danger[disabled]:active,
+fieldset[disabled] .btn-danger:active,
+.btn-danger.disabled.active,
+.btn-danger[disabled].active,
+fieldset[disabled] .btn-danger.active {
+ background-color: #d9534f;
+ border-color: #d43f3a;
+}
+.btn-success {
+ color: #ffffff;
+ background-color: #5cb85c;
+ border-color: #4cae4c;
+}
+.btn-success:hover,
+.btn-success:focus,
+.btn-success:active,
+.btn-success.active,
+.open .dropdown-toggle.btn-success {
+ color: #ffffff;
+ background-color: #47a447;
+ border-color: #398439;
+}
+.btn-success:active,
+.btn-success.active,
+.open .dropdown-toggle.btn-success {
+ background-image: none;
+}
+.btn-success.disabled,
+.btn-success[disabled],
+fieldset[disabled] .btn-success,
+.btn-success.disabled:hover,
+.btn-success[disabled]:hover,
+fieldset[disabled] .btn-success:hover,
+.btn-success.disabled:focus,
+.btn-success[disabled]:focus,
+fieldset[disabled] .btn-success:focus,
+.btn-success.disabled:active,
+.btn-success[disabled]:active,
+fieldset[disabled] .btn-success:active,
+.btn-success.disabled.active,
+.btn-success[disabled].active,
+fieldset[disabled] .btn-success.active {
+ background-color: #5cb85c;
+ border-color: #4cae4c;
+}
+.btn-info {
+ color: #ffffff;
+ background-color: #5bc0de;
+ border-color: #46b8da;
+}
+.btn-info:hover,
+.btn-info:focus,
+.btn-info:active,
+.btn-info.active,
+.open .dropdown-toggle.btn-info {
+ color: #ffffff;
+ background-color: #39b3d7;
+ border-color: #269abc;
+}
+.btn-info:active,
+.btn-info.active,
+.open .dropdown-toggle.btn-info {
+ background-image: none;
+}
+.btn-info.disabled,
+.btn-info[disabled],
+fieldset[disabled] .btn-info,
+.btn-info.disabled:hover,
+.btn-info[disabled]:hover,
+fieldset[disabled] .btn-info:hover,
+.btn-info.disabled:focus,
+.btn-info[disabled]:focus,
+fieldset[disabled] .btn-info:focus,
+.btn-info.disabled:active,
+.btn-info[disabled]:active,
+fieldset[disabled] .btn-info:active,
+.btn-info.disabled.active,
+.btn-info[disabled].active,
+fieldset[disabled] .btn-info.active {
+ background-color: #5bc0de;
+ border-color: #46b8da;
+}
+.btn-link {
+ color: #74ab50;
+ font-weight: normal;
+ cursor: pointer;
+ border-radius: 0;
+}
+.btn-link,
+.btn-link:active,
+.btn-link[disabled],
+fieldset[disabled] .btn-link {
+ background-color: transparent;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.btn-link,
+.btn-link:hover,
+.btn-link:focus,
+.btn-link:active {
+ border-color: transparent;
+}
+.btn-link:hover,
+.btn-link:focus {
+ color: #517738;
+ text-decoration: underline;
+ background-color: transparent;
+}
+.btn-link[disabled]:hover,
+fieldset[disabled] .btn-link:hover,
+.btn-link[disabled]:focus,
+fieldset[disabled] .btn-link:focus {
+ color: #f9faf9;
+ text-decoration: none;
+}
+.btn-lg {
+ padding: 10px 16px;
+ font-size: 18px;
+ line-height: 1.33;
+ border-radius: 6px;
+}
+.btn-sm,
+.btn-xs {
+ padding: 5px 10px;
+ font-size: 12px;
+ line-height: 1.5;
+ border-radius: 3px;
+}
+.btn-xs {
+ padding: 1px 5px;
+}
+.btn-block {
+ display: block;
+ width: 100%;
+ padding-left: 0;
+ padding-right: 0;
+}
+.btn-block + .btn-block {
+ margin-top: 5px;
+}
+input[type="submit"].btn-block,
+input[type="reset"].btn-block,
+input[type="button"].btn-block {
+ width: 100%;
+}
+.fade {
+ opacity: 0;
+ -webkit-transition: opacity 0.15s linear;
+ transition: opacity 0.15s linear;
+}
+.fade.in {
+ opacity: 1;
+}
+.collapse {
+ display: none;
+}
+.collapse.in {
+ display: block;
+}
+.collapsing {
+ position: relative;
+ height: 0;
+ overflow: hidden;
+ -webkit-transition: height 0.35s ease;
+ transition: height 0.35s ease;
+}
+@font-face {
+ font-family: 'Glyphicons Halflings';
+ src: url('../fonts/glyphicons-halflings-regular.eot');
+ src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg');
+}
+.glyphicon {
+ position: relative;
+ top: 1px;
+ display: inline-block;
+ font-family: 'Glyphicons Halflings';
+ font-style: normal;
+ font-weight: normal;
+ line-height: 1;
+ -webkit-font-smoothing: antialiased;
+}
+.glyphicon-asterisk:before {
+ content: "\2a";
+}
+.glyphicon-plus:before {
+ content: "\2b";
+}
+.glyphicon-euro:before {
+ content: "\20ac";
+}
+.glyphicon-minus:before {
+ content: "\2212";
+}
+.glyphicon-cloud:before {
+ content: "\2601";
+}
+.glyphicon-envelope:before {
+ content: "\2709";
+}
+.glyphicon-pencil:before {
+ content: "\270f";
+}
+.glyphicon-glass:before {
+ content: "\e001";
+}
+.glyphicon-music:before {
+ content: "\e002";
+}
+.glyphicon-search:before {
+ content: "\e003";
+}
+.glyphicon-heart:before {
+ content: "\e005";
+}
+.glyphicon-star:before {
+ content: "\e006";
+}
+.glyphicon-star-empty:before {
+ content: "\e007";
+}
+.glyphicon-user:before {
+ content: "\e008";
+}
+.glyphicon-film:before {
+ content: "\e009";
+}
+.glyphicon-th-large:before {
+ content: "\e010";
+}
+.glyphicon-th:before {
+ content: "\e011";
+}
+.glyphicon-th-list:before {
+ content: "\e012";
+}
+.glyphicon-ok:before {
+ content: "\e013";
+}
+.glyphicon-remove:before {
+ content: "\e014";
+}
+.glyphicon-zoom-in:before {
+ content: "\e015";
+}
+.glyphicon-zoom-out:before {
+ content: "\e016";
+}
+.glyphicon-off:before {
+ content: "\e017";
+}
+.glyphicon-signal:before {
+ content: "\e018";
+}
+.glyphicon-cog:before {
+ content: "\e019";
+}
+.glyphicon-trash:before {
+ content: "\e020";
+}
+.glyphicon-home:before {
+ content: "\e021";
+}
+.glyphicon-file:before {
+ content: "\e022";
+}
+.glyphicon-time:before {
+ content: "\e023";
+}
+.glyphicon-road:before {
+ content: "\e024";
+}
+.glyphicon-download-alt:before {
+ content: "\e025";
+}
+.glyphicon-download:before {
+ content: "\e026";
+}
+.glyphicon-upload:before {
+ content: "\e027";
+}
+.glyphicon-inbox:before {
+ content: "\e028";
+}
+.glyphicon-play-circle:before {
+ content: "\e029";
+}
+.glyphicon-repeat:before {
+ content: "\e030";
+}
+.glyphicon-refresh:before {
+ content: "\e031";
+}
+.glyphicon-list-alt:before {
+ content: "\e032";
+}
+.glyphicon-flag:before {
+ content: "\e034";
+}
+.glyphicon-headphones:before {
+ content: "\e035";
+}
+.glyphicon-volume-off:before {
+ content: "\e036";
+}
+.glyphicon-volume-down:before {
+ content: "\e037";
+}
+.glyphicon-volume-up:before {
+ content: "\e038";
+}
+.glyphicon-qrcode:before {
+ content: "\e039";
+}
+.glyphicon-barcode:before {
+ content: "\e040";
+}
+.glyphicon-tag:before {
+ content: "\e041";
+}
+.glyphicon-tags:before {
+ content: "\e042";
+}
+.glyphicon-book:before {
+ content: "\e043";
+}
+.glyphicon-print:before {
+ content: "\e045";
+}
+.glyphicon-font:before {
+ content: "\e047";
+}
+.glyphicon-bold:before {
+ content: "\e048";
+}
+.glyphicon-italic:before {
+ content: "\e049";
+}
+.glyphicon-text-height:before {
+ content: "\e050";
+}
+.glyphicon-text-width:before {
+ content: "\e051";
+}
+.glyphicon-align-left:before {
+ content: "\e052";
+}
+.glyphicon-align-center:before {
+ content: "\e053";
+}
+.glyphicon-align-right:before {
+ content: "\e054";
+}
+.glyphicon-align-justify:before {
+ content: "\e055";
+}
+.glyphicon-list:before {
+ content: "\e056";
+}
+.glyphicon-indent-left:before {
+ content: "\e057";
+}
+.glyphicon-indent-right:before {
+ content: "\e058";
+}
+.glyphicon-facetime-video:before {
+ content: "\e059";
+}
+.glyphicon-picture:before {
+ content: "\e060";
+}
+.glyphicon-map-marker:before {
+ content: "\e062";
+}
+.glyphicon-adjust:before {
+ content: "\e063";
+}
+.glyphicon-tint:before {
+ content: "\e064";
+}
+.glyphicon-edit:before {
+ content: "\e065";
+}
+.glyphicon-share:before {
+ content: "\e066";
+}
+.glyphicon-check:before {
+ content: "\e067";
+}
+.glyphicon-move:before {
+ content: "\e068";
+}
+.glyphicon-step-backward:before {
+ content: "\e069";
+}
+.glyphicon-fast-backward:before {
+ content: "\e070";
+}
+.glyphicon-backward:before {
+ content: "\e071";
+}
+.glyphicon-play:before {
+ content: "\e072";
+}
+.glyphicon-pause:before {
+ content: "\e073";
+}
+.glyphicon-stop:before {
+ content: "\e074";
+}
+.glyphicon-forward:before {
+ content: "\e075";
+}
+.glyphicon-fast-forward:before {
+ content: "\e076";
+}
+.glyphicon-step-forward:before {
+ content: "\e077";
+}
+.glyphicon-eject:before {
+ content: "\e078";
+}
+.glyphicon-chevron-left:before {
+ content: "\e079";
+}
+.glyphicon-chevron-right:before {
+ content: "\e080";
+}
+.glyphicon-plus-sign:before {
+ content: "\e081";
+}
+.glyphicon-minus-sign:before {
+ content: "\e082";
+}
+.glyphicon-remove-sign:before {
+ content: "\e083";
+}
+.glyphicon-ok-sign:before {
+ content: "\e084";
+}
+.glyphicon-question-sign:before {
+ content: "\e085";
+}
+.glyphicon-info-sign:before {
+ content: "\e086";
+}
+.glyphicon-screenshot:before {
+ content: "\e087";
+}
+.glyphicon-remove-circle:before {
+ content: "\e088";
+}
+.glyphicon-ok-circle:before {
+ content: "\e089";
+}
+.glyphicon-ban-circle:before {
+ content: "\e090";
+}
+.glyphicon-arrow-left:before {
+ content: "\e091";
+}
+.glyphicon-arrow-right:before {
+ content: "\e092";
+}
+.glyphicon-arrow-up:before {
+ content: "\e093";
+}
+.glyphicon-arrow-down:before {
+ content: "\e094";
+}
+.glyphicon-share-alt:before {
+ content: "\e095";
+}
+.glyphicon-resize-full:before {
+ content: "\e096";
+}
+.glyphicon-resize-small:before {
+ content: "\e097";
+}
+.glyphicon-exclamation-sign:before {
+ content: "\e101";
+}
+.glyphicon-gift:before {
+ content: "\e102";
+}
+.glyphicon-leaf:before {
+ content: "\e103";
+}
+.glyphicon-eye-open:before {
+ content: "\e105";
+}
+.glyphicon-eye-close:before {
+ content: "\e106";
+}
+.glyphicon-warning-sign:before {
+ content: "\e107";
+}
+.glyphicon-plane:before {
+ content: "\e108";
+}
+.glyphicon-random:before {
+ content: "\e110";
+}
+.glyphicon-comment:before {
+ content: "\e111";
+}
+.glyphicon-magnet:before {
+ content: "\e112";
+}
+.glyphicon-chevron-up:before {
+ content: "\e113";
+}
+.glyphicon-chevron-down:before {
+ content: "\e114";
+}
+.glyphicon-retweet:before {
+ content: "\e115";
+}
+.glyphicon-shopping-cart:before {
+ content: "\e116";
+}
+.glyphicon-folder-close:before {
+ content: "\e117";
+}
+.glyphicon-folder-open:before {
+ content: "\e118";
+}
+.glyphicon-resize-vertical:before {
+ content: "\e119";
+}
+.glyphicon-resize-horizontal:before {
+ content: "\e120";
+}
+.glyphicon-hdd:before {
+ content: "\e121";
+}
+.glyphicon-bullhorn:before {
+ content: "\e122";
+}
+.glyphicon-certificate:before {
+ content: "\e124";
+}
+.glyphicon-thumbs-up:before {
+ content: "\e125";
+}
+.glyphicon-thumbs-down:before {
+ content: "\e126";
+}
+.glyphicon-hand-right:before {
+ content: "\e127";
+}
+.glyphicon-hand-left:before {
+ content: "\e128";
+}
+.glyphicon-hand-up:before {
+ content: "\e129";
+}
+.glyphicon-hand-down:before {
+ content: "\e130";
+}
+.glyphicon-circle-arrow-right:before {
+ content: "\e131";
+}
+.glyphicon-circle-arrow-left:before {
+ content: "\e132";
+}
+.glyphicon-circle-arrow-up:before {
+ content: "\e133";
+}
+.glyphicon-circle-arrow-down:before {
+ content: "\e134";
+}
+.glyphicon-globe:before {
+ content: "\e135";
+}
+.glyphicon-tasks:before {
+ content: "\e137";
+}
+.glyphicon-filter:before {
+ content: "\e138";
+}
+.glyphicon-fullscreen:before {
+ content: "\e140";
+}
+.glyphicon-dashboard:before {
+ content: "\e141";
+}
+.glyphicon-heart-empty:before {
+ content: "\e143";
+}
+.glyphicon-link:before {
+ content: "\e144";
+}
+.glyphicon-phone:before {
+ content: "\e145";
+}
+.glyphicon-usd:before {
+ content: "\e148";
+}
+.glyphicon-gbp:before {
+ content: "\e149";
+}
+.glyphicon-sort:before {
+ content: "\e150";
+}
+.glyphicon-sort-by-alphabet:before {
+ content: "\e151";
+}
+.glyphicon-sort-by-alphabet-alt:before {
+ content: "\e152";
+}
+.glyphicon-sort-by-order:before {
+ content: "\e153";
+}
+.glyphicon-sort-by-order-alt:before {
+ content: "\e154";
+}
+.glyphicon-sort-by-attributes:before {
+ content: "\e155";
+}
+.glyphicon-sort-by-attributes-alt:before {
+ content: "\e156";
+}
+.glyphicon-unchecked:before {
+ content: "\e157";
+}
+.glyphicon-expand:before {
+ content: "\e158";
+}
+.glyphicon-collapse-down:before {
+ content: "\e159";
+}
+.glyphicon-collapse-up:before {
+ content: "\e160";
+}
+.glyphicon-log-in:before {
+ content: "\e161";
+}
+.glyphicon-flash:before {
+ content: "\e162";
+}
+.glyphicon-log-out:before {
+ content: "\e163";
+}
+.glyphicon-new-window:before {
+ content: "\e164";
+}
+.glyphicon-record:before {
+ content: "\e165";
+}
+.glyphicon-save:before {
+ content: "\e166";
+}
+.glyphicon-open:before {
+ content: "\e167";
+}
+.glyphicon-saved:before {
+ content: "\e168";
+}
+.glyphicon-import:before {
+ content: "\e169";
+}
+.glyphicon-export:before {
+ content: "\e170";
+}
+.glyphicon-send:before {
+ content: "\e171";
+}
+.glyphicon-floppy-disk:before {
+ content: "\e172";
+}
+.glyphicon-floppy-saved:before {
+ content: "\e173";
+}
+.glyphicon-floppy-remove:before {
+ content: "\e174";
+}
+.glyphicon-floppy-save:before {
+ content: "\e175";
+}
+.glyphicon-floppy-open:before {
+ content: "\e176";
+}
+.glyphicon-credit-card:before {
+ content: "\e177";
+}
+.glyphicon-transfer:before {
+ content: "\e178";
+}
+.glyphicon-cutlery:before {
+ content: "\e179";
+}
+.glyphicon-header:before {
+ content: "\e180";
+}
+.glyphicon-compressed:before {
+ content: "\e181";
+}
+.glyphicon-earphone:before {
+ content: "\e182";
+}
+.glyphicon-phone-alt:before {
+ content: "\e183";
+}
+.glyphicon-tower:before {
+ content: "\e184";
+}
+.glyphicon-stats:before {
+ content: "\e185";
+}
+.glyphicon-sd-video:before {
+ content: "\e186";
+}
+.glyphicon-hd-video:before {
+ content: "\e187";
+}
+.glyphicon-subtitles:before {
+ content: "\e188";
+}
+.glyphicon-sound-stereo:before {
+ content: "\e189";
+}
+.glyphicon-sound-dolby:before {
+ content: "\e190";
+}
+.glyphicon-sound-5-1:before {
+ content: "\e191";
+}
+.glyphicon-sound-6-1:before {
+ content: "\e192";
+}
+.glyphicon-sound-7-1:before {
+ content: "\e193";
+}
+.glyphicon-copyright-mark:before {
+ content: "\e194";
+}
+.glyphicon-registration-mark:before {
+ content: "\e195";
+}
+.glyphicon-cloud-download:before {
+ content: "\e197";
+}
+.glyphicon-cloud-upload:before {
+ content: "\e198";
+}
+.glyphicon-tree-conifer:before {
+ content: "\e199";
+}
+.glyphicon-tree-deciduous:before {
+ content: "\e200";
+}
+.glyphicon-briefcase:before {
+ content: "\1f4bc";
+}
+.glyphicon-calendar:before {
+ content: "\1f4c5";
+}
+.glyphicon-pushpin:before {
+ content: "\1f4cc";
+}
+.glyphicon-paperclip:before {
+ content: "\1f4ce";
+}
+.glyphicon-camera:before {
+ content: "\1f4f7";
+}
+.glyphicon-lock:before {
+ content: "\1f512";
+}
+.glyphicon-bell:before {
+ content: "\1f514";
+}
+.glyphicon-bookmark:before {
+ content: "\1f516";
+}
+.glyphicon-fire:before {
+ content: "\1f525";
+}
+.glyphicon-wrench:before {
+ content: "\1f527";
+}
+.caret {
+ display: inline-block;
+ width: 0;
+ height: 0;
+ margin-left: 2px;
+ vertical-align: middle;
+ border-top: 4px solid #000000;
+ border-right: 4px solid transparent;
+ border-left: 4px solid transparent;
+ border-bottom: 0 dotted;
+ content: "";
+}
+.dropdown {
+ position: relative;
+}
+.dropdown-toggle:focus {
+ outline: 0;
+}
+.dropdown-menu {
+ position: absolute;
+ top: 100%;
+ left: 0;
+ z-index: 1000;
+ display: none;
+ float: left;
+ min-width: 160px;
+ padding: 5px 0;
+ margin: 2px 0 0;
+ list-style: none;
+ font-size: 14px;
+ background-color: #ffffff;
+ border: 1px solid #cccccc;
+ border: 1px solid rgba(0, 0, 0, 0.15);
+ border-radius: 4px;
+ -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
+ background-clip: padding-box;
+}
+.dropdown-menu.pull-right {
+ right: 0;
+ left: auto;
+}
+.dropdown-menu .divider {
+ height: 1px;
+ margin: 9px 0;
+ overflow: hidden;
+ background-color: #e5e5e5;
+}
+.dropdown-menu > li > a {
+ display: block;
+ padding: 3px 20px;
+ clear: both;
+ font-weight: normal;
+ line-height: 1.428571429;
+ color: #77777a;
+ white-space: nowrap;
+}
+.dropdown-menu > li > a:hover,
+.dropdown-menu > li > a:focus {
+ text-decoration: none;
+ color: #ffffff;
+ background-color: #74ab50;
+}
+.dropdown-menu > .active > a,
+.dropdown-menu > .active > a:hover,
+.dropdown-menu > .active > a:focus {
+ color: #ffffff;
+ text-decoration: none;
+ outline: 0;
+ background-color: #74ab50;
+}
+.dropdown-menu > .disabled > a,
+.dropdown-menu > .disabled > a:hover,
+.dropdown-menu > .disabled > a:focus {
+ color: #f9faf9;
+}
+.dropdown-menu > .disabled > a:hover,
+.dropdown-menu > .disabled > a:focus {
+ text-decoration: none;
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
+ cursor: not-allowed;
+}
+.open > .dropdown-menu {
+ display: block;
+}
+.open > a {
+ outline: 0;
+}
+.dropdown-header {
+ display: block;
+ padding: 3px 20px;
+ font-size: 12px;
+ line-height: 1.428571429;
+ color: #f9faf9;
+}
+.dropdown-backdrop {
+ position: fixed;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ top: 0;
+ z-index: 990;
+}
+.pull-right > .dropdown-menu {
+ right: 0;
+ left: auto;
+}
+.dropup .caret,
+.navbar-fixed-bottom .dropdown .caret {
+ border-top: 0 dotted;
+ border-bottom: 4px solid #000000;
+ content: "";
+}
+.dropup .dropdown-menu,
+.navbar-fixed-bottom .dropdown .dropdown-menu {
+ top: auto;
+ bottom: 100%;
+ margin-bottom: 1px;
+}
+@media (min-width: 768px) {
+ .navbar-right .dropdown-menu {
+ right: 0;
+ left: auto;
+ }
+}
+.btn-default .caret {
+ border-top-color: #333333;
+}
+.btn-primary .caret,
+.btn-success .caret,
+.btn-warning .caret,
+.btn-danger .caret,
+.btn-info .caret {
+ border-top-color: #fff;
+}
+.dropup .btn-default .caret {
+ border-bottom-color: #333333;
+}
+.dropup .btn-primary .caret,
+.dropup .btn-success .caret,
+.dropup .btn-warning .caret,
+.dropup .btn-danger .caret,
+.dropup .btn-info .caret {
+ border-bottom-color: #fff;
+}
+.btn-group,
+.btn-group-vertical {
+ position: relative;
+ display: inline-block;
+ vertical-align: middle;
+}
+.btn-group > .btn,
+.btn-group-vertical > .btn {
+ position: relative;
+ float: left;
+}
+.btn-group > .btn:hover,
+.btn-group-vertical > .btn:hover,
+.btn-group > .btn:focus,
+.btn-group-vertical > .btn:focus,
+.btn-group > .btn:active,
+.btn-group-vertical > .btn:active,
+.btn-group > .btn.active,
+.btn-group-vertical > .btn.active {
+ z-index: 2;
+}
+.btn-group > .btn:focus,
+.btn-group-vertical > .btn:focus {
+ outline: none;
+}
+.btn-group .btn + .btn,
+.btn-group .btn + .btn-group,
+.btn-group .btn-group + .btn,
+.btn-group .btn-group + .btn-group {
+ margin-left: -1px;
+}
+.btn-toolbar:before,
+.btn-toolbar:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.btn-toolbar:after {
+ clear: both;
+}
+.btn-toolbar:before,
+.btn-toolbar:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.btn-toolbar:after {
+ clear: both;
+}
+.btn-toolbar .btn-group {
+ float: left;
+}
+.btn-toolbar > .btn + .btn,
+.btn-toolbar > .btn-group + .btn,
+.btn-toolbar > .btn + .btn-group,
+.btn-toolbar > .btn-group + .btn-group {
+ margin-left: 5px;
+}
+.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
+ border-radius: 0;
+}
+.btn-group > .btn:first-child {
+ margin-left: 0;
+}
+.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
+ border-bottom-right-radius: 0;
+ border-top-right-radius: 0;
+}
+.btn-group > .btn:last-child:not(:first-child),
+.btn-group > .dropdown-toggle:not(:first-child) {
+ border-bottom-left-radius: 0;
+ border-top-left-radius: 0;
+}
+.btn-group > .btn-group {
+ float: left;
+}
+.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
+ border-radius: 0;
+}
+.btn-group > .btn-group:first-child > .btn:last-child,
+.btn-group > .btn-group:first-child > .dropdown-toggle {
+ border-bottom-right-radius: 0;
+ border-top-right-radius: 0;
+}
+.btn-group > .btn-group:last-child > .btn:first-child {
+ border-bottom-left-radius: 0;
+ border-top-left-radius: 0;
+}
+.btn-group .dropdown-toggle:active,
+.btn-group.open .dropdown-toggle {
+ outline: 0;
+}
+.btn-group-xs > .btn {
+ padding: 5px 10px;
+ font-size: 12px;
+ line-height: 1.5;
+ border-radius: 3px;
+ padding: 1px 5px;
+}
+.btn-group-sm > .btn {
+ padding: 5px 10px;
+ font-size: 12px;
+ line-height: 1.5;
+ border-radius: 3px;
+}
+.btn-group-lg > .btn {
+ padding: 10px 16px;
+ font-size: 18px;
+ line-height: 1.33;
+ border-radius: 6px;
+}
+.btn-group > .btn + .dropdown-toggle {
+ padding-left: 8px;
+ padding-right: 8px;
+}
+.btn-group > .btn-lg + .dropdown-toggle {
+ padding-left: 12px;
+ padding-right: 12px;
+}
+.btn-group.open .dropdown-toggle {
+ -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
+ box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
+}
+.btn .caret {
+ margin-left: 0;
+}
+.btn-lg .caret {
+ border-width: 5px 5px 0;
+ border-bottom-width: 0;
+}
+.dropup .btn-lg .caret {
+ border-width: 0 5px 5px;
+}
+.btn-group-vertical > .btn,
+.btn-group-vertical > .btn-group {
+ display: block;
+ float: none;
+ width: 100%;
+ max-width: 100%;
+}
+.btn-group-vertical > .btn-group:before,
+.btn-group-vertical > .btn-group:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.btn-group-vertical > .btn-group:after {
+ clear: both;
+}
+.btn-group-vertical > .btn-group:before,
+.btn-group-vertical > .btn-group:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.btn-group-vertical > .btn-group:after {
+ clear: both;
+}
+.btn-group-vertical > .btn-group > .btn {
+ float: none;
+}
+.btn-group-vertical > .btn + .btn,
+.btn-group-vertical > .btn + .btn-group,
+.btn-group-vertical > .btn-group + .btn,
+.btn-group-vertical > .btn-group + .btn-group {
+ margin-top: -1px;
+ margin-left: 0;
+}
+.btn-group-vertical > .btn:not(:first-child):not(:last-child) {
+ border-radius: 0;
+}
+.btn-group-vertical > .btn:first-child:not(:last-child) {
+ border-top-right-radius: 4px;
+ border-bottom-right-radius: 0;
+ border-bottom-left-radius: 0;
+}
+.btn-group-vertical > .btn:last-child:not(:first-child) {
+ border-bottom-left-radius: 4px;
+ border-top-right-radius: 0;
+ border-top-left-radius: 0;
+}
+.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
+ border-radius: 0;
+}
+.btn-group-vertical > .btn-group:first-child > .btn:last-child,
+.btn-group-vertical > .btn-group:first-child > .dropdown-toggle {
+ border-bottom-right-radius: 0;
+ border-bottom-left-radius: 0;
+}
+.btn-group-vertical > .btn-group:last-child > .btn:first-child {
+ border-top-right-radius: 0;
+ border-top-left-radius: 0;
+}
+.btn-group-justified {
+ display: table;
+ width: 100%;
+ table-layout: fixed;
+ border-collapse: separate;
+}
+.btn-group-justified .btn {
+ float: none;
+ display: table-cell;
+ width: 1%;
+}
+[data-toggle="buttons"] > .btn > input[type="radio"],
+[data-toggle="buttons"] > .btn > input[type="checkbox"] {
+ display: none;
+}
+.input-group {
+ position: relative;
+ display: table;
+ border-collapse: separate;
+}
+.input-group.col {
+ float: none;
+ padding-left: 0;
+ padding-right: 0;
+}
+.input-group .form-control {
+ width: 100%;
+ margin-bottom: 0;
+}
+.input-group-lg > .form-control,
+.input-group-lg > .input-group-addon,
+.input-group-lg > .input-group-btn > .btn {
+ height: 45px;
+ padding: 10px 16px;
+ font-size: 18px;
+ line-height: 1.33;
+ border-radius: 6px;
+}
+select.input-group-lg > .form-control,
+select.input-group-lg > .input-group-addon,
+select.input-group-lg > .input-group-btn > .btn {
+ height: 45px;
+ line-height: 45px;
+}
+textarea.input-group-lg > .form-control,
+textarea.input-group-lg > .input-group-addon,
+textarea.input-group-lg > .input-group-btn > .btn {
+ height: auto;
+}
+.input-group-sm > .form-control,
+.input-group-sm > .input-group-addon,
+.input-group-sm > .input-group-btn > .btn {
+ height: 30px;
+ padding: 5px 10px;
+ font-size: 12px;
+ line-height: 1.5;
+ border-radius: 3px;
+}
+select.input-group-sm > .form-control,
+select.input-group-sm > .input-group-addon,
+select.input-group-sm > .input-group-btn > .btn {
+ height: 30px;
+ line-height: 30px;
+}
+textarea.input-group-sm > .form-control,
+textarea.input-group-sm > .input-group-addon,
+textarea.input-group-sm > .input-group-btn > .btn {
+ height: auto;
+}
+.input-group-addon,
+.input-group-btn,
+.input-group .form-control {
+ display: table-cell;
+}
+.input-group-addon:not(:first-child):not(:last-child),
+.input-group-btn:not(:first-child):not(:last-child),
+.input-group .form-control:not(:first-child):not(:last-child) {
+ border-radius: 0;
+}
+.input-group-addon,
+.input-group-btn {
+ width: 1%;
+ white-space: nowrap;
+ vertical-align: middle;
+}
+.input-group-addon {
+ padding: 6px 12px;
+ font-size: 14px;
+ font-weight: normal;
+ line-height: 1;
+ text-align: center;
+ background-color: #bac9c2;
+ border: 1px solid #cccccc;
+ border-radius: 4px;
+}
+.input-group-addon.input-sm {
+ padding: 5px 10px;
+ font-size: 12px;
+ border-radius: 3px;
+}
+.input-group-addon.input-lg {
+ padding: 10px 16px;
+ font-size: 18px;
+ border-radius: 6px;
+}
+.input-group-addon input[type="radio"],
+.input-group-addon input[type="checkbox"] {
+ margin-top: 0;
+}
+.input-group .form-control:first-child,
+.input-group-addon:first-child,
+.input-group-btn:first-child > .btn,
+.input-group-btn:first-child > .dropdown-toggle,
+.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
+ border-bottom-right-radius: 0;
+ border-top-right-radius: 0;
+}
+.input-group-addon:first-child {
+ border-right: 0;
+}
+.input-group .form-control:last-child,
+.input-group-addon:last-child,
+.input-group-btn:last-child > .btn,
+.input-group-btn:last-child > .dropdown-toggle,
+.input-group-btn:first-child > .btn:not(:first-child) {
+ border-bottom-left-radius: 0;
+ border-top-left-radius: 0;
+}
+.input-group-addon:last-child {
+ border-left: 0;
+}
+.input-group-btn {
+ position: relative;
+ white-space: nowrap;
+}
+.input-group-btn > .btn {
+ position: relative;
+}
+.input-group-btn > .btn + .btn {
+ margin-left: -4px;
+}
+.input-group-btn > .btn:hover,
+.input-group-btn > .btn:active {
+ z-index: 2;
+}
+.nav {
+ margin-bottom: 0;
+ padding-left: 0;
+ list-style: none;
+}
+.nav:before,
+.nav:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.nav:after {
+ clear: both;
+}
+.nav:before,
+.nav:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.nav:after {
+ clear: both;
+}
+.nav > li {
+ position: relative;
+ display: block;
+}
+.nav > li > a {
+ position: relative;
+ display: block;
+ padding: 10px 15px;
+}
+.nav > li > a:hover,
+.nav > li > a:focus {
+ text-decoration: none;
+ background-color: #bac9c2;
+}
+.nav > li.disabled > a {
+ color: #f9faf9;
+}
+.nav > li.disabled > a:hover,
+.nav > li.disabled > a:focus {
+ color: #f9faf9;
+ text-decoration: none;
+ background-color: transparent;
+ cursor: not-allowed;
+}
+.nav .open > a,
+.nav .open > a:hover,
+.nav .open > a:focus {
+ background-color: #bac9c2;
+ border-color: #74ab50;
+}
+.nav .nav-divider {
+ height: 1px;
+ margin: 9px 0;
+ overflow: hidden;
+ background-color: #e5e5e5;
+}
+.nav > li > a > img {
+ max-width: none;
+}
+.nav-tabs {
+ border-bottom: 1px solid #dddddd;
+}
+.nav-tabs > li {
+ float: left;
+ margin-bottom: -1px;
+}
+.nav-tabs > li > a {
+ margin-right: 2px;
+ line-height: 1.428571429;
+ border: 1px solid transparent;
+ border-radius: 4px 4px 0 0;
+}
+.nav-tabs > li > a:hover {
+ border-color: #bac9c2 #bac9c2 #dddddd;
+}
+.nav-tabs > li.active > a,
+.nav-tabs > li.active > a:hover,
+.nav-tabs > li.active > a:focus {
+ color: #4aadd6;
+ background-color: #ffffff;
+ border: 1px solid #dddddd;
+ border-bottom-color: transparent;
+ cursor: default;
+}
+.nav-tabs.nav-justified {
+ width: 100%;
+ border-bottom: 0;
+}
+.nav-tabs.nav-justified > li {
+ float: none;
+}
+.nav-tabs.nav-justified > li > a {
+ text-align: center;
+}
+@media (min-width: 768px) {
+ .nav-tabs.nav-justified > li {
+ display: table-cell;
+ width: 1%;
+ }
+}
+.nav-tabs.nav-justified > li > a {
+ border-bottom: 1px solid #dddddd;
+ margin-right: 0;
+}
+.nav-tabs.nav-justified > .active > a {
+ border-bottom-color: #ffffff;
+}
+.nav-pills > li {
+ float: left;
+}
+.nav-pills > li > a {
+ border-radius: 5px;
+}
+.nav-pills > li + li {
+ margin-left: 2px;
+}
+.nav-pills > li.active > a,
+.nav-pills > li.active > a:hover,
+.nav-pills > li.active > a:focus {
+ color: #ffffff;
+ background-color: #74ab50;
+}
+.nav-stacked > li {
+ float: none;
+}
+.nav-stacked > li + li {
+ margin-top: 2px;
+ margin-left: 0;
+}
+.nav-justified {
+ width: 100%;
+}
+.nav-justified > li {
+ float: none;
+}
+.nav-justified > li > a {
+ text-align: center;
+}
+@media (min-width: 768px) {
+ .nav-justified > li {
+ display: table-cell;
+ width: 1%;
+ }
+}
+.nav-tabs-justified {
+ border-bottom: 0;
+}
+.nav-tabs-justified > li > a {
+ border-bottom: 1px solid #dddddd;
+ margin-right: 0;
+}
+.nav-tabs-justified > .active > a {
+ border-bottom-color: #ffffff;
+}
+.tabbable:before,
+.tabbable:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.tabbable:after {
+ clear: both;
+}
+.tabbable:before,
+.tabbable:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.tabbable:after {
+ clear: both;
+}
+.tab-content > .tab-pane,
+.pill-content > .pill-pane {
+ display: none;
+}
+.tab-content > .active,
+.pill-content > .active {
+ display: block;
+}
+.nav .caret {
+ border-top-color: #74ab50;
+ border-bottom-color: #74ab50;
+}
+.nav a:hover .caret {
+ border-top-color: #517738;
+ border-bottom-color: #517738;
+}
+.nav-tabs .dropdown-menu {
+ margin-top: -1px;
+ border-top-right-radius: 0;
+ border-top-left-radius: 0;
+}
+.navbar {
+ position: relative;
+ z-index: 1000;
+ min-height: 50px;
+ margin-bottom: 20px;
+ border: 1px solid transparent;
+}
+.navbar:before,
+.navbar:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.navbar:after {
+ clear: both;
+}
+.navbar:before,
+.navbar:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.navbar:after {
+ clear: both;
+}
+@media (min-width: 768px) {
+ .navbar {
+ border-radius: 4px;
+ }
+}
+.navbar-header:before,
+.navbar-header:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.navbar-header:after {
+ clear: both;
+}
+.navbar-header:before,
+.navbar-header:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.navbar-header:after {
+ clear: both;
+}
+@media (min-width: 768px) {
+ .navbar-header {
+ float: left;
+ }
+}
+.navbar-collapse {
+ max-height: 340px;
+ overflow-x: visible;
+ padding-right: 15px;
+ padding-left: 15px;
+ border-top: 1px solid transparent;
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
+ -webkit-overflow-scrolling: touch;
+}
+.navbar-collapse:before,
+.navbar-collapse:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.navbar-collapse:after {
+ clear: both;
+}
+.navbar-collapse:before,
+.navbar-collapse:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.navbar-collapse:after {
+ clear: both;
+}
+.navbar-collapse.in {
+ overflow-y: auto;
+}
+@media (min-width: 768px) {
+ .navbar-collapse {
+ width: auto;
+ border-top: 0;
+ box-shadow: none;
+ }
+ .navbar-collapse.collapse {
+ display: block !important;
+ height: auto !important;
+ padding-bottom: 0;
+ overflow: visible !important;
+ }
+ .navbar-collapse.in {
+ overflow-y: visible;
+ }
+ .navbar-collapse .navbar-nav.navbar-left:first-child {
+ margin-left: -15px;
+ }
+ .navbar-collapse .navbar-nav.navbar-right:last-child {
+ margin-right: -15px;
+ }
+ .navbar-collapse .navbar-text:last-child {
+ margin-right: 0;
+ }
+}
+.container > .navbar-header,
+.container > .navbar-collapse {
+ margin-right: -15px;
+ margin-left: -15px;
+}
+@media (min-width: 768px) {
+ .container > .navbar-header,
+ .container > .navbar-collapse {
+ margin-right: 0;
+ margin-left: 0;
+ }
+}
+.navbar-static-top {
+ border-width: 0 0 1px;
+}
+@media (min-width: 768px) {
+ .navbar-static-top {
+ border-radius: 0;
+ }
+}
+.navbar-fixed-top,
+.navbar-fixed-bottom {
+ position: fixed;
+ right: 0;
+ left: 0;
+ border-width: 0 0 1px;
+}
+@media (min-width: 768px) {
+ .navbar-fixed-top,
+ .navbar-fixed-bottom {
+ border-radius: 0;
+ }
+}
+.navbar-fixed-top {
+ z-index: 1030;
+ top: 0;
+}
+.navbar-fixed-bottom {
+ bottom: 0;
+ margin-bottom: 0;
+}
+.navbar-brand {
+ float: left;
+ padding: 15px 15px;
+ font-size: 18px;
+ line-height: 20px;
+}
+.navbar-brand:hover,
+.navbar-brand:focus {
+ text-decoration: none;
+}
+@media (min-width: 768px) {
+ .navbar > .container .navbar-brand {
+ margin-left: -15px;
+ }
+}
+.navbar-toggle {
+ position: relative;
+ float: right;
+ margin-right: 15px;
+ padding: 9px 10px;
+ margin-top: 8px;
+ margin-bottom: 8px;
+ background-color: transparent;
+ border: 1px solid transparent;
+ border-radius: 4px;
+}
+.navbar-toggle .icon-bar {
+ display: block;
+ width: 22px;
+ height: 2px;
+ border-radius: 1px;
+}
+.navbar-toggle .icon-bar + .icon-bar {
+ margin-top: 4px;
+}
+@media (min-width: 768px) {
+ .navbar-toggle {
+ display: none;
+ }
+}
+.navbar-nav {
+ margin: 7.5px -15px;
+}
+.navbar-nav > li > a {
+ padding-top: 10px;
+ padding-bottom: 10px;
+ line-height: 20px;
+}
+@media (max-width: 767px) {
+ .navbar-nav .open .dropdown-menu {
+ position: static;
+ float: none;
+ width: auto;
+ margin-top: 0;
+ background-color: transparent;
+ border: 0;
+ box-shadow: none;
+ }
+ .navbar-nav .open .dropdown-menu > li > a,
+ .navbar-nav .open .dropdown-menu .dropdown-header {
+ padding: 5px 15px 5px 25px;
+ }
+ .navbar-nav .open .dropdown-menu > li > a {
+ line-height: 20px;
+ }
+ .navbar-nav .open .dropdown-menu > li > a:hover,
+ .navbar-nav .open .dropdown-menu > li > a:focus {
+ background-image: none;
+ }
+}
+@media (min-width: 768px) {
+ .navbar-nav {
+ float: left;
+ margin: 0;
+ }
+ .navbar-nav > li {
+ float: left;
+ }
+ .navbar-nav > li > a {
+ padding-top: 15px;
+ padding-bottom: 15px;
+ }
+}
+@media (min-width: 768px) {
+ .navbar-left {
+ float: left !important;
+ }
+ .navbar-right {
+ float: right !important;
+ }
+}
+.navbar-form {
+ margin-left: -15px;
+ margin-right: -15px;
+ padding: 10px 15px;
+ border-top: 1px solid transparent;
+ border-bottom: 1px solid transparent;
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
+ margin-top: 8px;
+ margin-bottom: 8px;
+}
+@media (min-width: 768px) {
+ .navbar-form .form-group {
+ display: inline-block;
+ margin-bottom: 0;
+ vertical-align: middle;
+ }
+ .navbar-form .form-control {
+ display: inline-block;
+ }
+ .navbar-form .radio,
+ .navbar-form .checkbox {
+ display: inline-block;
+ margin-top: 0;
+ margin-bottom: 0;
+ padding-left: 0;
+ }
+ .navbar-form .radio input[type="radio"],
+ .navbar-form .checkbox input[type="checkbox"] {
+ float: none;
+ margin-left: 0;
+ }
+}
+@media (max-width: 767px) {
+ .navbar-form .form-group {
+ margin-bottom: 5px;
+ }
+}
+@media (min-width: 768px) {
+ .navbar-form {
+ width: auto;
+ border: 0;
+ margin-left: 0;
+ margin-right: 0;
+ padding-top: 0;
+ padding-bottom: 0;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+ }
+}
+.navbar-nav > li > .dropdown-menu {
+ margin-top: 0;
+ border-top-right-radius: 0;
+ border-top-left-radius: 0;
+}
+.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
+ border-bottom-right-radius: 0;
+ border-bottom-left-radius: 0;
+}
+.navbar-nav.pull-right > li > .dropdown-menu,
+.navbar-nav > li > .dropdown-menu.pull-right {
+ left: auto;
+ right: 0;
+}
+.navbar-btn {
+ margin-top: 8px;
+ margin-bottom: 8px;
+}
+.navbar-text {
+ float: left;
+ margin-top: 15px;
+ margin-bottom: 15px;
+}
+@media (min-width: 768px) {
+ .navbar-text {
+ margin-left: 15px;
+ margin-right: 15px;
+ }
+}
+.navbar-default {
+ background-color: #f8f8f8;
+ border-color: #e7e7e7;
+}
+.navbar-default .navbar-brand {
+ color: #777777;
+}
+.navbar-default .navbar-brand:hover,
+.navbar-default .navbar-brand:focus {
+ color: #5e5e5e;
+ background-color: transparent;
+}
+.navbar-default .navbar-text {
+ color: #777777;
+}
+.navbar-default .navbar-nav > li > a {
+ color: #777777;
+}
+.navbar-default .navbar-nav > li > a:hover,
+.navbar-default .navbar-nav > li > a:focus {
+ color: #333333;
+ background-color: transparent;
+}
+.navbar-default .navbar-nav > .active > a,
+.navbar-default .navbar-nav > .active > a:hover,
+.navbar-default .navbar-nav > .active > a:focus {
+ color: #555555;
+ background-color: #e7e7e7;
+}
+.navbar-default .navbar-nav > .disabled > a,
+.navbar-default .navbar-nav > .disabled > a:hover,
+.navbar-default .navbar-nav > .disabled > a:focus {
+ color: #cccccc;
+ background-color: transparent;
+}
+.navbar-default .navbar-toggle {
+ border-color: #dddddd;
+}
+.navbar-default .navbar-toggle:hover,
+.navbar-default .navbar-toggle:focus {
+ background-color: #dddddd;
+}
+.navbar-default .navbar-toggle .icon-bar {
+ background-color: #cccccc;
+}
+.navbar-default .navbar-collapse,
+.navbar-default .navbar-form {
+ border-color: #e6e6e6;
+}
+.navbar-default .navbar-nav > .dropdown > a:hover .caret,
+.navbar-default .navbar-nav > .dropdown > a:focus .caret {
+ border-top-color: #333333;
+ border-bottom-color: #333333;
+}
+.navbar-default .navbar-nav > .open > a,
+.navbar-default .navbar-nav > .open > a:hover,
+.navbar-default .navbar-nav > .open > a:focus {
+ background-color: #e7e7e7;
+ color: #555555;
+}
+.navbar-default .navbar-nav > .open > a .caret,
+.navbar-default .navbar-nav > .open > a:hover .caret,
+.navbar-default .navbar-nav > .open > a:focus .caret {
+ border-top-color: #555555;
+ border-bottom-color: #555555;
+}
+.navbar-default .navbar-nav > .dropdown > a .caret {
+ border-top-color: #777777;
+ border-bottom-color: #777777;
+}
+@media (max-width: 767px) {
+ .navbar-default .navbar-nav .open .dropdown-menu > li > a {
+ color: #777777;
+ }
+ .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
+ .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
+ color: #333333;
+ background-color: transparent;
+ }
+ .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
+ .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
+ .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
+ color: #555555;
+ background-color: #e7e7e7;
+ }
+ .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
+ .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
+ .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
+ color: #cccccc;
+ background-color: transparent;
+ }
+}
+.navbar-default .navbar-link {
+ color: #777777;
+}
+.navbar-default .navbar-link:hover {
+ color: #333333;
+}
+.navbar-inverse {
+ background-color: #74ab50;
+ border-color: #5c8840;
+}
+.navbar-inverse .navbar-brand {
+ color: #f9faf9;
+}
+.navbar-inverse .navbar-brand:hover,
+.navbar-inverse .navbar-brand:focus {
+ color: #ffffff;
+ background-color: transparent;
+}
+.navbar-inverse .navbar-text {
+ color: #f9faf9;
+}
+.navbar-inverse .navbar-nav > li > a {
+ color: #f9faf9;
+}
+.navbar-inverse .navbar-nav > li > a:hover,
+.navbar-inverse .navbar-nav > li > a:focus {
+ color: #ffffff;
+ background-color: transparent;
+}
+.navbar-inverse .navbar-nav > .active > a,
+.navbar-inverse .navbar-nav > .active > a:hover,
+.navbar-inverse .navbar-nav > .active > a:focus {
+ color: #ffffff;
+ background-color: #5c8840;
+}
+.navbar-inverse .navbar-nav > .disabled > a,
+.navbar-inverse .navbar-nav > .disabled > a:hover,
+.navbar-inverse .navbar-nav > .disabled > a:focus {
+ color: #444444;
+ background-color: transparent;
+}
+.navbar-inverse .navbar-toggle {
+ border-color: #333333;
+}
+.navbar-inverse .navbar-toggle:hover,
+.navbar-inverse .navbar-toggle:focus {
+ background-color: #333333;
+}
+.navbar-inverse .navbar-toggle .icon-bar {
+ background-color: #ffffff;
+}
+.navbar-inverse .navbar-collapse,
+.navbar-inverse .navbar-form {
+ border-color: #649345;
+}
+.navbar-inverse .navbar-nav > .open > a,
+.navbar-inverse .navbar-nav > .open > a:hover,
+.navbar-inverse .navbar-nav > .open > a:focus {
+ background-color: #5c8840;
+ color: #ffffff;
+}
+.navbar-inverse .navbar-nav > .dropdown > a:hover .caret {
+ border-top-color: #ffffff;
+ border-bottom-color: #ffffff;
+}
+.navbar-inverse .navbar-nav > .dropdown > a .caret {
+ border-top-color: #f9faf9;
+ border-bottom-color: #f9faf9;
+}
+.navbar-inverse .navbar-nav > .open > a .caret,
+.navbar-inverse .navbar-nav > .open > a:hover .caret,
+.navbar-inverse .navbar-nav > .open > a:focus .caret {
+ border-top-color: #ffffff;
+ border-bottom-color: #ffffff;
+}
+@media (max-width: 767px) {
+ .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {
+ border-color: #5c8840;
+ }
+ .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
+ color: #f9faf9;
+ }
+ .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
+ .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
+ color: #ffffff;
+ background-color: transparent;
+ }
+ .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,
+ .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,
+ .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {
+ color: #ffffff;
+ background-color: #5c8840;
+ }
+ .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,
+ .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,
+ .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {
+ color: #444444;
+ background-color: transparent;
+ }
+}
+.navbar-inverse .navbar-link {
+ color: #f9faf9;
+}
+.navbar-inverse .navbar-link:hover {
+ color: #ffffff;
+}
+.breadcrumb {
+ padding: 8px 15px;
+ margin-bottom: 20px;
+ list-style: none;
+ background-color: #f5f5f5;
+ border-radius: 4px;
+}
+.breadcrumb > li {
+ display: inline-block;
+}
+.breadcrumb > li + li:before {
+ content: "/\00a0";
+ padding: 0 5px;
+ color: #cccccc;
+}
+.breadcrumb > .active {
+ color: #f9faf9;
+}
+.pagination {
+ display: inline-block;
+ padding-left: 0;
+ margin: 20px 0;
+ border-radius: 4px;
+}
+.pagination > li {
+ display: inline;
+}
+.pagination > li > a,
+.pagination > li > span {
+ position: relative;
+ float: left;
+ padding: 6px 12px;
+ line-height: 1.428571429;
+ text-decoration: none;
+ background-color: #ffffff;
+ border: 1px solid #dddddd;
+ margin-left: -1px;
+}
+.pagination > li:first-child > a,
+.pagination > li:first-child > span {
+ margin-left: 0;
+ border-bottom-left-radius: 4px;
+ border-top-left-radius: 4px;
+}
+.pagination > li:last-child > a,
+.pagination > li:last-child > span {
+ border-bottom-right-radius: 4px;
+ border-top-right-radius: 4px;
+}
+.pagination > li > a:hover,
+.pagination > li > span:hover,
+.pagination > li > a:focus,
+.pagination > li > span:focus {
+ background-color: #bac9c2;
+}
+.pagination > .active > a,
+.pagination > .active > span,
+.pagination > .active > a:hover,
+.pagination > .active > span:hover,
+.pagination > .active > a:focus,
+.pagination > .active > span:focus {
+ z-index: 2;
+ color: #ffffff;
+ background-color: #74ab50;
+ border-color: #74ab50;
+ cursor: default;
+}
+.pagination > .disabled > span,
+.pagination > .disabled > a,
+.pagination > .disabled > a:hover,
+.pagination > .disabled > a:focus {
+ color: #f9faf9;
+ background-color: #ffffff;
+ border-color: #dddddd;
+ cursor: not-allowed;
+}
+.pagination-lg > li > a,
+.pagination-lg > li > span {
+ padding: 10px 16px;
+ font-size: 18px;
+}
+.pagination-lg > li:first-child > a,
+.pagination-lg > li:first-child > span {
+ border-bottom-left-radius: 6px;
+ border-top-left-radius: 6px;
+}
+.pagination-lg > li:last-child > a,
+.pagination-lg > li:last-child > span {
+ border-bottom-right-radius: 6px;
+ border-top-right-radius: 6px;
+}
+.pagination-sm > li > a,
+.pagination-sm > li > span {
+ padding: 5px 10px;
+ font-size: 12px;
+}
+.pagination-sm > li:first-child > a,
+.pagination-sm > li:first-child > span {
+ border-bottom-left-radius: 3px;
+ border-top-left-radius: 3px;
+}
+.pagination-sm > li:last-child > a,
+.pagination-sm > li:last-child > span {
+ border-bottom-right-radius: 3px;
+ border-top-right-radius: 3px;
+}
+.pager {
+ padding-left: 0;
+ margin: 20px 0;
+ list-style: none;
+ text-align: center;
+}
+.pager:before,
+.pager:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.pager:after {
+ clear: both;
+}
+.pager:before,
+.pager:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.pager:after {
+ clear: both;
+}
+.pager li {
+ display: inline;
+}
+.pager li > a,
+.pager li > span {
+ display: inline-block;
+ padding: 5px 14px;
+ background-color: #ffffff;
+ border: 1px solid #dddddd;
+ border-radius: 15px;
+}
+.pager li > a:hover,
+.pager li > a:focus {
+ text-decoration: none;
+ background-color: #bac9c2;
+}
+.pager .next > a,
+.pager .next > span {
+ float: right;
+}
+.pager .previous > a,
+.pager .previous > span {
+ float: left;
+}
+.pager .disabled > a,
+.pager .disabled > a:hover,
+.pager .disabled > a:focus,
+.pager .disabled > span {
+ color: #f9faf9;
+ background-color: #ffffff;
+ cursor: not-allowed;
+}
+.label {
+ display: inline;
+ padding: .2em .6em .3em;
+ font-size: 75%;
+ font-weight: bold;
+ line-height: 1;
+ color: #ffffff;
+ text-align: center;
+ white-space: nowrap;
+ vertical-align: baseline;
+ border-radius: .25em;
+}
+.label[href]:hover,
+.label[href]:focus {
+ color: #ffffff;
+ text-decoration: none;
+ cursor: pointer;
+}
+.label:empty {
+ display: none;
+}
+.label-default {
+ background-color: #f9faf9;
+}
+.label-default[href]:hover,
+.label-default[href]:focus {
+ background-color: #dde3dd;
+}
+.label-primary {
+ background-color: #74ab50;
+}
+.label-primary[href]:hover,
+.label-primary[href]:focus {
+ background-color: #5c8840;
+}
+.label-success {
+ background-color: #5cb85c;
+}
+.label-success[href]:hover,
+.label-success[href]:focus {
+ background-color: #449d44;
+}
+.label-info {
+ background-color: #5bc0de;
+}
+.label-info[href]:hover,
+.label-info[href]:focus {
+ background-color: #31b0d5;
+}
+.label-warning {
+ background-color: #f0ad4e;
+}
+.label-warning[href]:hover,
+.label-warning[href]:focus {
+ background-color: #ec971f;
+}
+.label-danger {
+ background-color: #d9534f;
+}
+.label-danger[href]:hover,
+.label-danger[href]:focus {
+ background-color: #c9302c;
+}
+.badge {
+ display: inline-block;
+ min-width: 10px;
+ padding: 3px 7px;
+ font-size: 12px;
+ font-weight: bold;
+ color: #ffffff;
+ line-height: 1;
+ vertical-align: baseline;
+ white-space: nowrap;
+ text-align: center;
+ background-color: #f9faf9;
+ border-radius: 10px;
+}
+.badge:empty {
+ display: none;
+}
+a.badge:hover,
+a.badge:focus {
+ color: #ffffff;
+ text-decoration: none;
+ cursor: pointer;
+}
+.btn .badge {
+ position: relative;
+ top: -1px;
+}
+a.list-group-item.active > .badge,
+.nav-pills > .active > a > .badge {
+ color: #74ab50;
+ background-color: #ffffff;
+}
+.nav-pills > li > a > .badge {
+ margin-left: 3px;
+}
+.jumbotron {
+ padding: 30px;
+ margin-bottom: 30px;
+ font-size: 21px;
+ font-weight: 200;
+ line-height: 2.1428571435;
+ color: inherit;
+ background-color: #bac9c2;
+}
+.jumbotron h1 {
+ line-height: 1;
+ color: inherit;
+}
+.jumbotron p {
+ line-height: 1.4;
+}
+.container .jumbotron {
+ border-radius: 6px;
+}
+@media screen and (min-width: 768px) {
+ .jumbotron {
+ padding-top: 48px;
+ padding-bottom: 48px;
+ }
+ .container .jumbotron {
+ padding-left: 60px;
+ padding-right: 60px;
+ }
+ .jumbotron h1 {
+ font-size: 63px;
+ }
+}
+.thumbnail {
+ padding: 4px;
+ line-height: 1.428571429;
+ background-color: #ffffff;
+ border: 1px solid #dddddd;
+ border-radius: 4px;
+ -webkit-transition: all 0.2s ease-in-out;
+ transition: all 0.2s ease-in-out;
+ display: inline-block;
+ max-width: 100%;
+ height: auto;
+ display: block;
+}
+.thumbnail > img {
+ display: block;
+ max-width: 100%;
+ height: auto;
+}
+a.thumbnail:hover,
+a.thumbnail:focus {
+ border-color: #74ab50;
+}
+.thumbnail > img {
+ margin-left: auto;
+ margin-right: auto;
+}
+.thumbnail .caption {
+ padding: 9px;
+ color: #77777a;
+}
+.alert {
+ padding: 15px;
+ margin-bottom: 20px;
+ border: 1px solid transparent;
+ border-radius: 4px;
+}
+.alert h4 {
+ margin-top: 0;
+ color: inherit;
+}
+.alert .alert-link {
+ font-weight: bold;
+}
+.alert > p,
+.alert > ul {
+ margin-bottom: 0;
+}
+.alert > p + p {
+ margin-top: 5px;
+}
+.alert-dismissable {
+ padding-right: 35px;
+}
+.alert-dismissable .close {
+ position: relative;
+ top: -2px;
+ right: -21px;
+ color: inherit;
+}
+.alert-success {
+ background-color: #dff0d8;
+ border-color: #d6e9c6;
+ color: #468847;
+}
+.alert-success hr {
+ border-top-color: #c9e2b3;
+}
+.alert-success .alert-link {
+ color: #356635;
+}
+.alert-info {
+ background-color: #d9edf7;
+ border-color: #bce8f1;
+ color: #3a87ad;
+}
+.alert-info hr {
+ border-top-color: #a6e1ec;
+}
+.alert-info .alert-link {
+ color: #2d6987;
+}
+.alert-warning {
+ background-color: #fcf8e3;
+ border-color: #fbeed5;
+ color: #c09853;
+}
+.alert-warning hr {
+ border-top-color: #f8e5be;
+}
+.alert-warning .alert-link {
+ color: #a47e3c;
+}
+.alert-danger {
+ background-color: #f2dede;
+ border-color: #eed3d7;
+ color: #b94a48;
+}
+.alert-danger hr {
+ border-top-color: #e6c1c7;
+}
+.alert-danger .alert-link {
+ color: #953b39;
+}
+@-webkit-keyframes progress-bar-stripes {
+ from {
+ background-position: 40px 0;
+ }
+ to {
+ background-position: 0 0;
+ }
+}
+@-moz-keyframes progress-bar-stripes {
+ from {
+ background-position: 40px 0;
+ }
+ to {
+ background-position: 0 0;
+ }
+}
+@-o-keyframes progress-bar-stripes {
+ from {
+ background-position: 0 0;
+ }
+ to {
+ background-position: 40px 0;
+ }
+}
+@keyframes progress-bar-stripes {
+ from {
+ background-position: 40px 0;
+ }
+ to {
+ background-position: 0 0;
+ }
+}
+.progress {
+ overflow: hidden;
+ height: 20px;
+ margin-bottom: 20px;
+ background-color: #f5f5f5;
+ border-radius: 4px;
+ -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
+}
+.progress-bar {
+ float: left;
+ width: 0%;
+ height: 100%;
+ font-size: 12px;
+ color: #ffffff;
+ text-align: center;
+ background-color: #74ab50;
+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
+ -webkit-transition: width 0.6s ease;
+ transition: width 0.6s ease;
+}
+.progress-striped .progress-bar {
+ background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
+ background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
+ background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
+ background-size: 40px 40px;
+}
+.progress.active .progress-bar {
+ -webkit-animation: progress-bar-stripes 2s linear infinite;
+ -moz-animation: progress-bar-stripes 2s linear infinite;
+ -ms-animation: progress-bar-stripes 2s linear infinite;
+ -o-animation: progress-bar-stripes 2s linear infinite;
+ animation: progress-bar-stripes 2s linear infinite;
+}
+.progress-bar-success {
+ background-color: #5cb85c;
+}
+.progress-striped .progress-bar-success {
+ background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
+ background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
+ background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
+}
+.progress-bar-info {
+ background-color: #5bc0de;
+}
+.progress-striped .progress-bar-info {
+ background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
+ background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
+ background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
+}
+.progress-bar-warning {
+ background-color: #f0ad4e;
+}
+.progress-striped .progress-bar-warning {
+ background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
+ background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
+ background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
+}
+.progress-bar-danger {
+ background-color: #d9534f;
+}
+.progress-striped .progress-bar-danger {
+ background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
+ background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
+ background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
+}
+.media,
+.media-body {
+ overflow: hidden;
+ zoom: 1;
+}
+.media,
+.media .media {
+ margin-top: 15px;
+}
+.media:first-child {
+ margin-top: 0;
+}
+.media-object {
+ display: block;
+}
+.media-heading {
+ margin: 0 0 5px;
+}
+.media > .pull-left {
+ margin-right: 10px;
+}
+.media > .pull-right {
+ margin-left: 10px;
+}
+.media-list {
+ padding-left: 0;
+ list-style: none;
+}
+.list-group {
+ margin-bottom: 20px;
+ padding-left: 0;
+}
+.list-group-item {
+ position: relative;
+ display: block;
+ padding: 10px 15px;
+ margin-bottom: -1px;
+ background-color: #ffffff;
+ border: 1px solid #dddddd;
+}
+.list-group-item:first-child {
+ border-top-right-radius: 4px;
+ border-top-left-radius: 4px;
+}
+.list-group-item:last-child {
+ margin-bottom: 0;
+ border-bottom-right-radius: 4px;
+ border-bottom-left-radius: 4px;
+}
+.list-group-item > .badge {
+ float: right;
+}
+.list-group-item > .badge + .badge {
+ margin-right: 5px;
+}
+a.list-group-item {
+ color: #555555;
+}
+a.list-group-item .list-group-item-heading {
+ color: #333333;
+}
+a.list-group-item:hover,
+a.list-group-item:focus {
+ text-decoration: none;
+ background-color: #f5f5f5;
+}
+.list-group-item.active,
+.list-group-item.active:hover,
+.list-group-item.active:focus {
+ z-index: 2;
+ color: #ffffff;
+ background-color: #74ab50;
+ border-color: #74ab50;
+}
+.list-group-item.active .list-group-item-heading,
+.list-group-item.active:hover .list-group-item-heading,
+.list-group-item.active:focus .list-group-item-heading {
+ color: inherit;
+}
+.list-group-item.active .list-group-item-text,
+.list-group-item.active:hover .list-group-item-text,
+.list-group-item.active:focus .list-group-item-text {
+ color: #e1edda;
+}
+.list-group-item-heading {
+ margin-top: 0;
+ margin-bottom: 5px;
+}
+.list-group-item-text {
+ margin-bottom: 0;
+ line-height: 1.3;
+}
+.panel {
+ margin-bottom: 20px;
+ background-color: #ffffff;
+ border: 1px solid transparent;
+ border-radius: 4px;
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
+}
+.panel-body {
+ padding: 15px;
+}
+.panel-body:before,
+.panel-body:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.panel-body:after {
+ clear: both;
+}
+.panel-body:before,
+.panel-body:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.panel-body:after {
+ clear: both;
+}
+.panel > .list-group {
+ margin-bottom: 0;
+}
+.panel > .list-group .list-group-item {
+ border-width: 1px 0;
+}
+.panel > .list-group .list-group-item:first-child {
+ border-top-right-radius: 0;
+ border-top-left-radius: 0;
+}
+.panel > .list-group .list-group-item:last-child {
+ border-bottom: 0;
+}
+.panel-heading + .list-group .list-group-item:first-child {
+ border-top-width: 0;
+}
+.panel > .table {
+ margin-bottom: 0;
+}
+.panel > .panel-body + .table {
+ border-top: 1px solid #77777a;
+}
+.panel-heading {
+ padding: 10px 15px;
+ border-bottom: 1px solid transparent;
+ border-top-right-radius: 3px;
+ border-top-left-radius: 3px;
+}
+.panel-title {
+ margin-top: 0;
+ margin-bottom: 0;
+ font-size: 16px;
+}
+.panel-title > a {
+ color: inherit;
+}
+.panel-footer {
+ padding: 10px 15px;
+ background-color: #f5f5f5;
+ border-top: 1px solid #dddddd;
+ border-bottom-right-radius: 3px;
+ border-bottom-left-radius: 3px;
+}
+.panel-group .panel {
+ margin-bottom: 0;
+ border-radius: 4px;
+ overflow: hidden;
+}
+.panel-group .panel + .panel {
+ margin-top: 5px;
+}
+.panel-group .panel-heading {
+ border-bottom: 0;
+}
+.panel-group .panel-heading + .panel-collapse .panel-body {
+ border-top: 1px solid #dddddd;
+}
+.panel-group .panel-footer {
+ border-top: 0;
+}
+.panel-group .panel-footer + .panel-collapse .panel-body {
+ border-bottom: 1px solid #dddddd;
+}
+.panel-default {
+ border-color: #dddddd;
+}
+.panel-default > .panel-heading {
+ color: #77777a;
+ background-color: #f5f5f5;
+ border-color: #dddddd;
+}
+.panel-default > .panel-heading + .panel-collapse .panel-body {
+ border-top-color: #dddddd;
+}
+.panel-default > .panel-footer + .panel-collapse .panel-body {
+ border-bottom-color: #dddddd;
+}
+.panel-primary {
+ border-color: #74ab50;
+}
+.panel-primary > .panel-heading {
+ color: #ffffff;
+ background-color: #74ab50;
+ border-color: #74ab50;
+}
+.panel-primary > .panel-heading + .panel-collapse .panel-body {
+ border-top-color: #74ab50;
+}
+.panel-primary > .panel-footer + .panel-collapse .panel-body {
+ border-bottom-color: #74ab50;
+}
+.panel-success {
+ border-color: #d6e9c6;
+}
+.panel-success > .panel-heading {
+ color: #468847;
+ background-color: #dff0d8;
+ border-color: #d6e9c6;
+}
+.panel-success > .panel-heading + .panel-collapse .panel-body {
+ border-top-color: #d6e9c6;
+}
+.panel-success > .panel-footer + .panel-collapse .panel-body {
+ border-bottom-color: #d6e9c6;
+}
+.panel-warning {
+ border-color: #fbeed5;
+}
+.panel-warning > .panel-heading {
+ color: #c09853;
+ background-color: #fcf8e3;
+ border-color: #fbeed5;
+}
+.panel-warning > .panel-heading + .panel-collapse .panel-body {
+ border-top-color: #fbeed5;
+}
+.panel-warning > .panel-footer + .panel-collapse .panel-body {
+ border-bottom-color: #fbeed5;
+}
+.panel-danger {
+ border-color: #eed3d7;
+}
+.panel-danger > .panel-heading {
+ color: #b94a48;
+ background-color: #f2dede;
+ border-color: #eed3d7;
+}
+.panel-danger > .panel-heading + .panel-collapse .panel-body {
+ border-top-color: #eed3d7;
+}
+.panel-danger > .panel-footer + .panel-collapse .panel-body {
+ border-bottom-color: #eed3d7;
+}
+.panel-info {
+ border-color: #bce8f1;
+}
+.panel-info > .panel-heading {
+ color: #3a87ad;
+ background-color: #d9edf7;
+ border-color: #bce8f1;
+}
+.panel-info > .panel-heading + .panel-collapse .panel-body {
+ border-top-color: #bce8f1;
+}
+.panel-info > .panel-footer + .panel-collapse .panel-body {
+ border-bottom-color: #bce8f1;
+}
+.well {
+ min-height: 20px;
+ padding: 19px;
+ margin-bottom: 20px;
+ background-color: #f5f5f5;
+ border: 1px solid #e3e3e3;
+ border-radius: 4px;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
+}
+.well blockquote {
+ border-color: #ddd;
+ border-color: rgba(0, 0, 0, 0.15);
+}
+.well-lg {
+ padding: 24px;
+ border-radius: 6px;
+}
+.well-sm {
+ padding: 9px;
+ border-radius: 3px;
+}
+.close {
+ float: right;
+ font-size: 21px;
+ font-weight: bold;
+ line-height: 1;
+ color: #000000;
+ text-shadow: 0 1px 0 #ffffff;
+ opacity: 0.2;
+ filter: alpha(opacity=20);
+}
+.close:hover,
+.close:focus {
+ color: #000000;
+ text-decoration: none;
+ cursor: pointer;
+ opacity: 0.5;
+ filter: alpha(opacity=50);
+}
+button.close {
+ padding: 0;
+ cursor: pointer;
+ background: transparent;
+ border: 0;
+ -webkit-appearance: none;
+}
+.modal-open {
+ overflow: hidden;
+}
+body.modal-open,
+.modal-open .navbar-fixed-top,
+.modal-open .navbar-fixed-bottom {
+ margin-right: 15px;
+}
+.modal {
+ display: none;
+ overflow: auto;
+ overflow-y: scroll;
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 1040;
+}
+.modal.fade .modal-dialog {
+ -webkit-transform: translate(0, -25%);
+ -ms-transform: translate(0, -25%);
+ transform: translate(0, -25%);
+ -webkit-transition: -webkit-transform 0.3s ease-out;
+ -moz-transition: -moz-transform 0.3s ease-out;
+ -o-transition: -o-transform 0.3s ease-out;
+ transition: transform 0.3s ease-out;
+}
+.modal.in .modal-dialog {
+ -webkit-transform: translate(0, 0);
+ -ms-transform: translate(0, 0);
+ transform: translate(0, 0);
+}
+.modal-dialog {
+ margin-left: auto;
+ margin-right: auto;
+ width: auto;
+ padding: 10px;
+ z-index: 1050;
+}
+.modal-content {
+ position: relative;
+ background-color: #ffffff;
+ border: 1px solid #999999;
+ border: 1px solid rgba(0, 0, 0, 0.2);
+ border-radius: 6px;
+ -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
+ box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
+ background-clip: padding-box;
+ outline: none;
+}
+.modal-backdrop {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 1030;
+ background-color: #000000;
+}
+.modal-backdrop.fade {
+ opacity: 0;
+ filter: alpha(opacity=0);
+}
+.modal-backdrop.in {
+ opacity: 0.5;
+ filter: alpha(opacity=50);
+}
+.modal-header {
+ padding: 15px;
+ border-bottom: 1px solid #e5e5e5;
+ min-height: 16.428571429px;
+}
+.modal-header .close {
+ margin-top: -2px;
+}
+.modal-title {
+ margin: 0;
+ line-height: 1.428571429;
+}
+.modal-body {
+ position: relative;
+ padding: 20px;
+}
+.modal-footer {
+ margin-top: 15px;
+ padding: 19px 20px 20px;
+ text-align: right;
+ border-top: 1px solid #e5e5e5;
+}
+.modal-footer:before,
+.modal-footer:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.modal-footer:after {
+ clear: both;
+}
+.modal-footer:before,
+.modal-footer:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.modal-footer:after {
+ clear: both;
+}
+.modal-footer .btn + .btn {
+ margin-left: 5px;
+ margin-bottom: 0;
+}
+.modal-footer .btn-group .btn + .btn {
+ margin-left: -1px;
+}
+.modal-footer .btn-block + .btn-block {
+ margin-left: 0;
+}
+@media screen and (min-width: 768px) {
+ .modal-dialog {
+ left: 50%;
+ right: auto;
+ width: 600px;
+ padding-top: 30px;
+ padding-bottom: 30px;
+ }
+ .modal-content {
+ -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
+ }
+}
+.tooltip {
+ position: absolute;
+ z-index: 1030;
+ display: block;
+ visibility: visible;
+ font-size: 12px;
+ line-height: 1.4;
+ opacity: 0;
+ filter: alpha(opacity=0);
+}
+.tooltip.in {
+ opacity: 0.9;
+ filter: alpha(opacity=90);
+}
+.tooltip.top {
+ margin-top: -3px;
+ padding: 5px 0;
+}
+.tooltip.right {
+ margin-left: 3px;
+ padding: 0 5px;
+}
+.tooltip.bottom {
+ margin-top: 3px;
+ padding: 5px 0;
+}
+.tooltip.left {
+ margin-left: -3px;
+ padding: 0 5px;
+}
+.tooltip-inner {
+ max-width: 200px;
+ padding: 3px 8px;
+ color: #ffffff;
+ text-align: center;
+ text-decoration: none;
+ background-color: #000000;
+ border-radius: 4px;
+}
+.tooltip-arrow {
+ position: absolute;
+ width: 0;
+ height: 0;
+ border-color: transparent;
+ border-style: solid;
+}
+.tooltip.top .tooltip-arrow {
+ bottom: 0;
+ left: 50%;
+ margin-left: -5px;
+ border-width: 5px 5px 0;
+ border-top-color: #000000;
+}
+.tooltip.top-left .tooltip-arrow {
+ bottom: 0;
+ left: 5px;
+ border-width: 5px 5px 0;
+ border-top-color: #000000;
+}
+.tooltip.top-right .tooltip-arrow {
+ bottom: 0;
+ right: 5px;
+ border-width: 5px 5px 0;
+ border-top-color: #000000;
+}
+.tooltip.right .tooltip-arrow {
+ top: 50%;
+ left: 0;
+ margin-top: -5px;
+ border-width: 5px 5px 5px 0;
+ border-right-color: #000000;
+}
+.tooltip.left .tooltip-arrow {
+ top: 50%;
+ right: 0;
+ margin-top: -5px;
+ border-width: 5px 0 5px 5px;
+ border-left-color: #000000;
+}
+.tooltip.bottom .tooltip-arrow {
+ top: 0;
+ left: 50%;
+ margin-left: -5px;
+ border-width: 0 5px 5px;
+ border-bottom-color: #000000;
+}
+.tooltip.bottom-left .tooltip-arrow {
+ top: 0;
+ left: 5px;
+ border-width: 0 5px 5px;
+ border-bottom-color: #000000;
+}
+.tooltip.bottom-right .tooltip-arrow {
+ top: 0;
+ right: 5px;
+ border-width: 0 5px 5px;
+ border-bottom-color: #000000;
+}
+.popover {
+ position: absolute;
+ top: 0;
+ left: 0;
+ z-index: 1010;
+ display: none;
+ max-width: 276px;
+ padding: 1px;
+ text-align: left;
+ background-color: #ffffff;
+ background-clip: padding-box;
+ border: 1px solid #cccccc;
+ border: 1px solid rgba(0, 0, 0, 0.2);
+ border-radius: 6px;
+ -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
+ white-space: normal;
+}
+.popover.top {
+ margin-top: -10px;
+}
+.popover.right {
+ margin-left: 10px;
+}
+.popover.bottom {
+ margin-top: 10px;
+}
+.popover.left {
+ margin-left: -10px;
+}
+.popover-title {
+ margin: 0;
+ padding: 8px 14px;
+ font-size: 14px;
+ font-weight: normal;
+ line-height: 18px;
+ background-color: #f7f7f7;
+ border-bottom: 1px solid #ebebeb;
+ border-radius: 5px 5px 0 0;
+}
+.popover-content {
+ padding: 9px 14px;
+}
+.popover .arrow,
+.popover .arrow:after {
+ position: absolute;
+ display: block;
+ width: 0;
+ height: 0;
+ border-color: transparent;
+ border-style: solid;
+}
+.popover .arrow {
+ border-width: 11px;
+}
+.popover .arrow:after {
+ border-width: 10px;
+ content: "";
+}
+.popover.top .arrow {
+ left: 50%;
+ margin-left: -11px;
+ border-bottom-width: 0;
+ border-top-color: #999999;
+ border-top-color: rgba(0, 0, 0, 0.25);
+ bottom: -11px;
+}
+.popover.top .arrow:after {
+ content: " ";
+ bottom: 1px;
+ margin-left: -10px;
+ border-bottom-width: 0;
+ border-top-color: #ffffff;
+}
+.popover.right .arrow {
+ top: 50%;
+ left: -11px;
+ margin-top: -11px;
+ border-left-width: 0;
+ border-right-color: #999999;
+ border-right-color: rgba(0, 0, 0, 0.25);
+}
+.popover.right .arrow:after {
+ content: " ";
+ left: 1px;
+ bottom: -10px;
+ border-left-width: 0;
+ border-right-color: #ffffff;
+}
+.popover.bottom .arrow {
+ left: 50%;
+ margin-left: -11px;
+ border-top-width: 0;
+ border-bottom-color: #999999;
+ border-bottom-color: rgba(0, 0, 0, 0.25);
+ top: -11px;
+}
+.popover.bottom .arrow:after {
+ content: " ";
+ top: 1px;
+ margin-left: -10px;
+ border-top-width: 0;
+ border-bottom-color: #ffffff;
+}
+.popover.left .arrow {
+ top: 50%;
+ right: -11px;
+ margin-top: -11px;
+ border-right-width: 0;
+ border-left-color: #999999;
+ border-left-color: rgba(0, 0, 0, 0.25);
+}
+.popover.left .arrow:after {
+ content: " ";
+ right: 1px;
+ border-right-width: 0;
+ border-left-color: #ffffff;
+ bottom: -10px;
+}
+.carousel {
+ position: relative;
+}
+.carousel-inner {
+ position: relative;
+ overflow: hidden;
+ width: 100%;
+}
+.carousel-inner > .item {
+ display: none;
+ position: relative;
+ -webkit-transition: 0.6s ease-in-out left;
+ transition: 0.6s ease-in-out left;
+}
+.carousel-inner > .item > img,
+.carousel-inner > .item > a > img {
+ display: block;
+ max-width: 100%;
+ height: auto;
+ line-height: 1;
+}
+.carousel-inner > .active,
+.carousel-inner > .next,
+.carousel-inner > .prev {
+ display: block;
+}
+.carousel-inner > .active {
+ left: 0;
+}
+.carousel-inner > .next,
+.carousel-inner > .prev {
+ position: absolute;
+ top: 0;
+ width: 100%;
+}
+.carousel-inner > .next {
+ left: 100%;
+}
+.carousel-inner > .prev {
+ left: -100%;
+}
+.carousel-inner > .next.left,
+.carousel-inner > .prev.right {
+ left: 0;
+}
+.carousel-inner > .active.left {
+ left: -100%;
+}
+.carousel-inner > .active.right {
+ left: 100%;
+}
+.carousel-control {
+ position: absolute;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ width: 15%;
+ opacity: 0.5;
+ filter: alpha(opacity=50);
+ font-size: 20px;
+ color: #ffffff;
+ text-align: center;
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
+}
+.carousel-control.left {
+ background-image: -webkit-gradient(linear, 0% top, 100% top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.0001)));
+ background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.5) 0%), color-stop(rgba(0, 0, 0, 0.0001) 100%));
+ background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
+ background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);
+}
+.carousel-control.right {
+ left: auto;
+ right: 0;
+ background-image: -webkit-gradient(linear, 0% top, 100% top, from(rgba(0, 0, 0, 0.0001)), to(rgba(0, 0, 0, 0.5)));
+ background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.0001) 0%), color-stop(rgba(0, 0, 0, 0.5) 100%));
+ background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
+ background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);
+}
+.carousel-control:hover,
+.carousel-control:focus {
+ color: #ffffff;
+ text-decoration: none;
+ opacity: 0.9;
+ filter: alpha(opacity=90);
+}
+.carousel-control .icon-prev,
+.carousel-control .icon-next,
+.carousel-control .glyphicon-chevron-left,
+.carousel-control .glyphicon-chevron-right {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ z-index: 5;
+ display: inline-block;
+}
+.carousel-control .icon-prev,
+.carousel-control .icon-next {
+ width: 20px;
+ height: 20px;
+ margin-top: -10px;
+ margin-left: -10px;
+ font-family: serif;
+}
+.carousel-control .icon-prev:before {
+ content: '\2039';
+}
+.carousel-control .icon-next:before {
+ content: '\203a';
+}
+.carousel-indicators {
+ position: absolute;
+ bottom: 10px;
+ left: 50%;
+ z-index: 15;
+ width: 60%;
+ margin-left: -30%;
+ padding-left: 0;
+ list-style: none;
+ text-align: center;
+}
+.carousel-indicators li {
+ display: inline-block;
+ width: 10px;
+ height: 10px;
+ margin: 1px;
+ text-indent: -999px;
+ border: 1px solid #ffffff;
+ border-radius: 10px;
+ cursor: pointer;
+}
+.carousel-indicators .active {
+ margin: 0;
+ width: 12px;
+ height: 12px;
+ background-color: #ffffff;
+}
+.carousel-caption {
+ position: absolute;
+ left: 15%;
+ right: 15%;
+ bottom: 20px;
+ z-index: 10;
+ padding-top: 20px;
+ padding-bottom: 20px;
+ color: #ffffff;
+ text-align: center;
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
+}
+.carousel-caption .btn {
+ text-shadow: none;
+}
+@media screen and (min-width: 768px) {
+ .carousel-control .icon-prev,
+ .carousel-control .icon-next {
+ width: 30px;
+ height: 30px;
+ margin-top: -15px;
+ margin-left: -15px;
+ font-size: 30px;
+ }
+ .carousel-caption {
+ left: 20%;
+ right: 20%;
+ padding-bottom: 30px;
+ }
+ .carousel-indicators {
+ bottom: 20px;
+ }
+}
+.clearfix:before,
+.clearfix:after {
+ content: " ";
+ /* 1 */
+
+ display: table;
+ /* 2 */
+
+}
+.clearfix:after {
+ clear: both;
+}
+.pull-right {
+ float: right !important;
+}
+.pull-left {
+ float: left !important;
+}
+.hide {
+ display: none !important;
+}
+.show {
+ display: block !important;
+}
+.invisible {
+ visibility: hidden;
+}
+.text-hide {
+ font: 0/0 a;
+ color: transparent;
+ text-shadow: none;
+ background-color: transparent;
+ border: 0;
+}
+.affix {
+ position: fixed;
+}
+@-ms-viewport {
+ width: device-width;
+}
+@media screen and (max-width: 400px) {
+ @-ms-viewport {
+ width: 320px;
+ }
+}
+.hidden {
+ display: none !important;
+ visibility: hidden !important;
+}
+.visible-xs {
+ display: none !important;
+}
+tr.visible-xs {
+ display: none !important;
+}
+th.visible-xs,
+td.visible-xs {
+ display: none !important;
+}
+@media (max-width: 767px) {
+ .visible-xs {
+ display: block !important;
+ }
+ tr.visible-xs {
+ display: table-row !important;
+ }
+ th.visible-xs,
+ td.visible-xs {
+ display: table-cell !important;
+ }
+}
+@media (min-width: 768px) and (max-width: 991px) {
+ .visible-xs.visible-sm {
+ display: block !important;
+ }
+ tr.visible-xs.visible-sm {
+ display: table-row !important;
+ }
+ th.visible-xs.visible-sm,
+ td.visible-xs.visible-sm {
+ display: table-cell !important;
+ }
+}
+@media (min-width: 992px) and (max-width: 1199px) {
+ .visible-xs.visible-md {
+ display: block !important;
+ }
+ tr.visible-xs.visible-md {
+ display: table-row !important;
+ }
+ th.visible-xs.visible-md,
+ td.visible-xs.visible-md {
+ display: table-cell !important;
+ }
+}
+@media (min-width: 1200px) {
+ .visible-xs.visible-lg {
+ display: block !important;
+ }
+ tr.visible-xs.visible-lg {
+ display: table-row !important;
+ }
+ th.visible-xs.visible-lg,
+ td.visible-xs.visible-lg {
+ display: table-cell !important;
+ }
+}
+.visible-sm {
+ display: none !important;
+}
+tr.visible-sm {
+ display: none !important;
+}
+th.visible-sm,
+td.visible-sm {
+ display: none !important;
+}
+@media (max-width: 767px) {
+ .visible-sm.visible-xs {
+ display: block !important;
+ }
+ tr.visible-sm.visible-xs {
+ display: table-row !important;
+ }
+ th.visible-sm.visible-xs,
+ td.visible-sm.visible-xs {
+ display: table-cell !important;
+ }
+}
+@media (min-width: 768px) and (max-width: 991px) {
+ .visible-sm {
+ display: block !important;
+ }
+ tr.visible-sm {
+ display: table-row !important;
+ }
+ th.visible-sm,
+ td.visible-sm {
+ display: table-cell !important;
+ }
+}
+@media (min-width: 992px) and (max-width: 1199px) {
+ .visible-sm.visible-md {
+ display: block !important;
+ }
+ tr.visible-sm.visible-md {
+ display: table-row !important;
+ }
+ th.visible-sm.visible-md,
+ td.visible-sm.visible-md {
+ display: table-cell !important;
+ }
+}
+@media (min-width: 1200px) {
+ .visible-sm.visible-lg {
+ display: block !important;
+ }
+ tr.visible-sm.visible-lg {
+ display: table-row !important;
+ }
+ th.visible-sm.visible-lg,
+ td.visible-sm.visible-lg {
+ display: table-cell !important;
+ }
+}
+.visible-md {
+ display: none !important;
+}
+tr.visible-md {
+ display: none !important;
+}
+th.visible-md,
+td.visible-md {
+ display: none !important;
+}
+@media (max-width: 767px) {
+ .visible-md.visible-xs {
+ display: block !important;
+ }
+ tr.visible-md.visible-xs {
+ display: table-row !important;
+ }
+ th.visible-md.visible-xs,
+ td.visible-md.visible-xs {
+ display: table-cell !important;
+ }
+}
+@media (min-width: 768px) and (max-width: 991px) {
+ .visible-md.visible-sm {
+ display: block !important;
+ }
+ tr.visible-md.visible-sm {
+ display: table-row !important;
+ }
+ th.visible-md.visible-sm,
+ td.visible-md.visible-sm {
+ display: table-cell !important;
+ }
+}
+@media (min-width: 992px) and (max-width: 1199px) {
+ .visible-md {
+ display: block !important;
+ }
+ tr.visible-md {
+ display: table-row !important;
+ }
+ th.visible-md,
+ td.visible-md {
+ display: table-cell !important;
+ }
+}
+@media (min-width: 1200px) {
+ .visible-md.visible-lg {
+ display: block !important;
+ }
+ tr.visible-md.visible-lg {
+ display: table-row !important;
+ }
+ th.visible-md.visible-lg,
+ td.visible-md.visible-lg {
+ display: table-cell !important;
+ }
+}
+.visible-lg {
+ display: none !important;
+}
+tr.visible-lg {
+ display: none !important;
+}
+th.visible-lg,
+td.visible-lg {
+ display: none !important;
+}
+@media (max-width: 767px) {
+ .visible-lg.visible-xs {
+ display: block !important;
+ }
+ tr.visible-lg.visible-xs {
+ display: table-row !important;
+ }
+ th.visible-lg.visible-xs,
+ td.visible-lg.visible-xs {
+ display: table-cell !important;
+ }
+}
+@media (min-width: 768px) and (max-width: 991px) {
+ .visible-lg.visible-sm {
+ display: block !important;
+ }
+ tr.visible-lg.visible-sm {
+ display: table-row !important;
+ }
+ th.visible-lg.visible-sm,
+ td.visible-lg.visible-sm {
+ display: table-cell !important;
+ }
+}
+@media (min-width: 992px) and (max-width: 1199px) {
+ .visible-lg.visible-md {
+ display: block !important;
+ }
+ tr.visible-lg.visible-md {
+ display: table-row !important;
+ }
+ th.visible-lg.visible-md,
+ td.visible-lg.visible-md {
+ display: table-cell !important;
+ }
+}
+@media (min-width: 1200px) {
+ .visible-lg {
+ display: block !important;
+ }
+ tr.visible-lg {
+ display: table-row !important;
+ }
+ th.visible-lg,
+ td.visible-lg {
+ display: table-cell !important;
+ }
+}
+.hidden-xs {
+ display: block !important;
+}
+tr.hidden-xs {
+ display: table-row !important;
+}
+th.hidden-xs,
+td.hidden-xs {
+ display: table-cell !important;
+}
+@media (max-width: 767px) {
+ .hidden-xs {
+ display: none !important;
+ }
+ tr.hidden-xs {
+ display: none !important;
+ }
+ th.hidden-xs,
+ td.hidden-xs {
+ display: none !important;
+ }
+}
+@media (min-width: 768px) and (max-width: 991px) {
+ .hidden-xs.hidden-sm {
+ display: none !important;
+ }
+ tr.hidden-xs.hidden-sm {
+ display: none !important;
+ }
+ th.hidden-xs.hidden-sm,
+ td.hidden-xs.hidden-sm {
+ display: none !important;
+ }
+}
+@media (min-width: 992px) and (max-width: 1199px) {
+ .hidden-xs.hidden-md {
+ display: none !important;
+ }
+ tr.hidden-xs.hidden-md {
+ display: none !important;
+ }
+ th.hidden-xs.hidden-md,
+ td.hidden-xs.hidden-md {
+ display: none !important;
+ }
+}
+@media (min-width: 1200px) {
+ .hidden-xs.hidden-lg {
+ display: none !important;
+ }
+ tr.hidden-xs.hidden-lg {
+ display: none !important;
+ }
+ th.hidden-xs.hidden-lg,
+ td.hidden-xs.hidden-lg {
+ display: none !important;
+ }
+}
+.hidden-sm {
+ display: block !important;
+}
+tr.hidden-sm {
+ display: table-row !important;
+}
+th.hidden-sm,
+td.hidden-sm {
+ display: table-cell !important;
+}
+@media (max-width: 767px) {
+ .hidden-sm.hidden-xs {
+ display: none !important;
+ }
+ tr.hidden-sm.hidden-xs {
+ display: none !important;
+ }
+ th.hidden-sm.hidden-xs,
+ td.hidden-sm.hidden-xs {
+ display: none !important;
+ }
+}
+@media (min-width: 768px) and (max-width: 991px) {
+ .hidden-sm {
+ display: none !important;
+ }
+ tr.hidden-sm {
+ display: none !important;
+ }
+ th.hidden-sm,
+ td.hidden-sm {
+ display: none !important;
+ }
+}
+@media (min-width: 992px) and (max-width: 1199px) {
+ .hidden-sm.hidden-md {
+ display: none !important;
+ }
+ tr.hidden-sm.hidden-md {
+ display: none !important;
+ }
+ th.hidden-sm.hidden-md,
+ td.hidden-sm.hidden-md {
+ display: none !important;
+ }
+}
+@media (min-width: 1200px) {
+ .hidden-sm.hidden-lg {
+ display: none !important;
+ }
+ tr.hidden-sm.hidden-lg {
+ display: none !important;
+ }
+ th.hidden-sm.hidden-lg,
+ td.hidden-sm.hidden-lg {
+ display: none !important;
+ }
+}
+.hidden-md {
+ display: block !important;
+}
+tr.hidden-md {
+ display: table-row !important;
+}
+th.hidden-md,
+td.hidden-md {
+ display: table-cell !important;
+}
+@media (max-width: 767px) {
+ .hidden-md.hidden-xs {
+ display: none !important;
+ }
+ tr.hidden-md.hidden-xs {
+ display: none !important;
+ }
+ th.hidden-md.hidden-xs,
+ td.hidden-md.hidden-xs {
+ display: none !important;
+ }
+}
+@media (min-width: 768px) and (max-width: 991px) {
+ .hidden-md.hidden-sm {
+ display: none !important;
+ }
+ tr.hidden-md.hidden-sm {
+ display: none !important;
+ }
+ th.hidden-md.hidden-sm,
+ td.hidden-md.hidden-sm {
+ display: none !important;
+ }
+}
+@media (min-width: 992px) and (max-width: 1199px) {
+ .hidden-md {
+ display: none !important;
+ }
+ tr.hidden-md {
+ display: none !important;
+ }
+ th.hidden-md,
+ td.hidden-md {
+ display: none !important;
+ }
+}
+@media (min-width: 1200px) {
+ .hidden-md.hidden-lg {
+ display: none !important;
+ }
+ tr.hidden-md.hidden-lg {
+ display: none !important;
+ }
+ th.hidden-md.hidden-lg,
+ td.hidden-md.hidden-lg {
+ display: none !important;
+ }
+}
+.hidden-lg {
+ display: block !important;
+}
+tr.hidden-lg {
+ display: table-row !important;
+}
+th.hidden-lg,
+td.hidden-lg {
+ display: table-cell !important;
+}
+@media (max-width: 767px) {
+ .hidden-lg.hidden-xs {
+ display: none !important;
+ }
+ tr.hidden-lg.hidden-xs {
+ display: none !important;
+ }
+ th.hidden-lg.hidden-xs,
+ td.hidden-lg.hidden-xs {
+ display: none !important;
+ }
+}
+@media (min-width: 768px) and (max-width: 991px) {
+ .hidden-lg.hidden-sm {
+ display: none !important;
+ }
+ tr.hidden-lg.hidden-sm {
+ display: none !important;
+ }
+ th.hidden-lg.hidden-sm,
+ td.hidden-lg.hidden-sm {
+ display: none !important;
+ }
+}
+@media (min-width: 992px) and (max-width: 1199px) {
+ .hidden-lg.hidden-md {
+ display: none !important;
+ }
+ tr.hidden-lg.hidden-md {
+ display: none !important;
+ }
+ th.hidden-lg.hidden-md,
+ td.hidden-lg.hidden-md {
+ display: none !important;
+ }
+}
+@media (min-width: 1200px) {
+ .hidden-lg {
+ display: none !important;
+ }
+ tr.hidden-lg {
+ display: none !important;
+ }
+ th.hidden-lg,
+ td.hidden-lg {
+ display: none !important;
+ }
+}
+.visible-print {
+ display: none !important;
+}
+tr.visible-print {
+ display: none !important;
+}
+th.visible-print,
+td.visible-print {
+ display: none !important;
+}
+@media print {
+ .visible-print {
+ display: block !important;
+ }
+ tr.visible-print {
+ display: table-row !important;
+ }
+ th.visible-print,
+ td.visible-print {
+ display: table-cell !important;
+ }
+ .hidden-print {
+ display: none !important;
+ }
+ tr.hidden-print {
+ display: none !important;
+ }
+ th.hidden-print,
+ td.hidden-print {
+ display: none !important;
+ }
+}
diff --git a/css/modern-business.css b/css/modern-business.css
new file mode 100755
index 0000000..fd1e3fd
--- /dev/null
+++ b/css/modern-business.css
@@ -0,0 +1,93 @@
+/*!
+ * Start Bootstrap - Modern Business HTML Template (http://startbootstrap.com)
+ * Code licensed under the Apache License v2.0.
+ * For details, see http://www.apache.org/licenses/LICENSE-2.0.
+ */
+
+/* Global Styles */
+
+html,
+body {
+ height: 100%;
+}
+
+body {
+ padding-top: 50px; /* Required padding for .navbar-fixed-top. Remove if using .navbar-static-top. Change if height of navigation changes. */
+}
+
+.img-portfolio {
+ margin-bottom: 30px;
+}
+
+.img-hover:hover {
+ opacity: 0.8;
+}
+
+/* Home Page Carousel */
+
+header.carousel {
+ height: 50%;
+}
+
+header.carousel .item,
+header.carousel .item.active,
+header.carousel .carousel-inner {
+ height: 100%;
+}
+
+header.carousel .fill {
+ width: 100%;
+ height: 100%;
+ background-position: center;
+ background-size: cover;
+}
+
+/* 404 Page Styles */
+
+.error-404 {
+ font-size: 100px;
+}
+
+/* Pricing Page Styles */
+
+.price {
+ display: block;
+ font-size: 50px;
+ line-height: 50px;
+}
+
+.price sup {
+ top: -20px;
+ left: 2px;
+ font-size: 20px;
+}
+
+.period {
+ display: block;
+ font-style: italic;
+}
+
+/* Footer Styles */
+
+footer {
+ margin: 50px 0;
+}
+
+/* Responsive Styles */
+
+@media(max-width:991px) {
+ .customer-img,
+ .img-related {
+ margin-bottom: 30px;
+ }
+}
+
+@media(max-width:767px) {
+ .img-portfolio {
+ margin-bottom: 15px;
+ }
+
+ header.carousel .carousel {
+ height: 70%;
+ }
+}
\ No newline at end of file
diff --git a/css/print-header-designer.css b/css/print-header-designer.css
new file mode 100644
index 0000000..ac6c75b
--- /dev/null
+++ b/css/print-header-designer.css
@@ -0,0 +1,42 @@
+@page {
+ @top-left {
+ content: "Designer User Guide";
+ font-style: italic;
+ font-size: 12px;
+ }
+ @top-right {
+ content: "Last generated ..."
+ font-size: 12px;
+ font-style: italic;
+ }
+ @bottom-right {
+ content: "Page " counter(page);
+ font-size: 12px;
+ }
+ @bottom-left {
+ content: "Send feedback to ...";
+ font-size: 12px;
+ }
+}
+
+contents {
+ page: cover;
+ counter-reset: page 0
+}
+
+@page cover {
+ @top-left {
+ content: "";
+ }
+ @top-right {
+ content: ""
+
+ }
+ @bottom-right {
+ content: "";
+ }
+ @bottom-left {
+ content: "";
+ }
+}
+
diff --git a/css/print-header-writer.css b/css/print-header-writer.css
new file mode 100644
index 0000000..3d99c27
--- /dev/null
+++ b/css/print-header-writer.css
@@ -0,0 +1,20 @@
+@page {
+ @top-left {
+ content: "Writer Guide";
+ font-style: italic;
+ font-size: 12px;
+ }
+ @top-right {
+ content: "Last generated ..."
+ font-size: 12px;
+ font-style: italic;
+ }
+ @bottom-right {
+ content: "Page " counter(page);
+ font-size: 12px;
+ }
+ @bottom-left {
+ content: "Send feedback to ...";
+ font-size: 12px;
+ }
+}
\ No newline at end of file
diff --git a/css/printstyles.css b/css/printstyles.css
new file mode 100644
index 0000000..476656e
--- /dev/null
+++ b/css/printstyles.css
@@ -0,0 +1,64 @@
+body.print h2 {color: orange !important; font-size:22px;}
+body.print .container {max-width: 650px;}
+hr {border-top: 0px;}
+.nav ul li a {border-top:0px; background-color:transparent; }
+#navig a[href] {color: black !important;}
+table .table {max-width:650px;}
+
+#navig li.sectionHead {font-weight: bold; font-size: 18px;}
+#navig li {font-weight: normal;}
+
+#navig a[href]::after { content: leader(".") target-counter(attr(href), page); }
+
+a[href]::after, a[href].noCrossRef::after {
+ content: " (page " target-counter(attr(href), page) ")"
+ }
+
+a[href^="http:"]::after, a[href^="https:"]::after {
+ content: " (" attr(href) ")";
+ }
+
+a[href] {
+ color: blue !important;
+ }
+a[href*="mailto"]::after {
+ content: "";
+ }
+
+a[href*=tar.giz]::after {
+ content: "";
+}
+
+div.guideTitleArea {
+ border-top:2px solid #c0c0c0;
+ padding: 20px 20px;
+ page-break-after: always;
+}
+
+div.guideTitle {
+ font-size: 34px;
+ font-weight: bold;
+ text-align: right;
+}
+
+.titleVersion {
+ font-size: 18px;
+ font-color: gray;
+ font-style: italic;
+ margin-top:20px;
+ text-align: right;
+}
+div.titleImage {
+ padding-top:100px;
+ padding-bottom:330px;
+}
+
+@page { size: A4 }
+
+@page { margin: 40pt 60pt 40pt 60pt }
+
+
+
+/*
+h1::before, h1::after { content: "***" }
+*/
\ No newline at end of file
diff --git a/css/syntax.css b/css/syntax.css
new file mode 100644
index 0000000..1e651cf
--- /dev/null
+++ b/css/syntax.css
@@ -0,0 +1,60 @@
+.highlight { background: #ffffff; }
+.highlight .c { color: #999988; font-style: italic } /* Comment */
+.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
+.highlight .k { font-weight: bold } /* Keyword */
+.highlight .o { font-weight: bold } /* Operator */
+.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
+.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
+.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
+.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
+.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
+.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #aa0000 } /* Generic.Error */
+.highlight .gh { color: #999999 } /* Generic.Heading */
+.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
+.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #555555 } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
+.highlight .gt { color: #aa0000 } /* Generic.Traceback */
+.highlight .kc { font-weight: bold } /* Keyword.Constant */
+.highlight .kd { font-weight: bold } /* Keyword.Declaration */
+.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #009999 } /* Literal.Number */
+.highlight .s { color: #d14 } /* Literal.String */
+.highlight .na { color: #008080 } /* Name.Attribute */
+.highlight .nb { color: #0086B3 } /* Name.Builtin */
+.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
+.highlight .no { color: #008080 } /* Name.Constant */
+.highlight .ni { color: #800080 } /* Name.Entity */
+.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
+.highlight .nn { color: #555555 } /* Name.Namespace */
+.highlight .nt { color: #000080 } /* Name.Tag */
+.highlight .nv { color: #008080 } /* Name.Variable */
+.highlight .ow { font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mf { color: #009999 } /* Literal.Number.Float */
+.highlight .mh { color: #009999 } /* Literal.Number.Hex */
+.highlight .mi { color: #009999 } /* Literal.Number.Integer */
+.highlight .mo { color: #009999 } /* Literal.Number.Oct */
+.highlight .sb { color: #d14 } /* Literal.String.Backtick */
+.highlight .sc { color: #d14 } /* Literal.String.Char */
+.highlight .sd { color: #d14 } /* Literal.String.Doc */
+.highlight .s2 { color: #d14 } /* Literal.String.Double */
+.highlight .se { color: #d14 } /* Literal.String.Escape */
+.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
+.highlight .si { color: #d14 } /* Literal.String.Interpol */
+.highlight .sx { color: #d14 } /* Literal.String.Other */
+.highlight .sr { color: #009926 } /* Literal.String.Regex */
+.highlight .s1 { color: #d14 } /* Literal.String.Single */
+.highlight .ss { color: #990073 } /* Literal.String.Symbol */
+.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
+.highlight .vc { color: #008080 } /* Name.Variable.Class */
+.highlight .vg { color: #008080 } /* Name.Variable.Global */
+.highlight .vi { color: #008080 } /* Name.Variable.Instance */
+.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
\ No newline at end of file
diff --git a/feed.xml b/feed.xml
new file mode 100644
index 0000000..14c83e1
--- /dev/null
+++ b/feed.xml
@@ -0,0 +1,31 @@
+---
+layout: null
+search: exclude
+---
+
+
+
+ {{ site.title | xml_escape }}
+ {{ site.description | xml_escape }}
+ {{ site.url }}{{ site.baseurl }}/
+
+ {{ site.time | date_to_rfc822 }}
+ {{ site.time | date_to_rfc822 }}
+ Jekyll v{{ jekyll.version }}
+ {% for post in site.posts limit:10 %}
+ -
+
{{ post.title | xml_escape }}
+ {{ post.content | xml_escape }}
+ {{ post.date | date_to_rfc822 }}
+ {{ post.url | prepend: site.baseurl | prepend: site.url }}
+ {{ post.url | prepend: site.baseurl | prepend: site.url }}
+ {% for tag in post.tags %}
+ {{ tag | xml_escape }}
+ {% endfor %}
+ {% for cat in post.categories %}
+ {{ cat | xml_escape }}
+ {% endfor %}
+
+ {% endfor %}
+
+
diff --git a/fonts/FontAwesome.otf b/fonts/FontAwesome.otf
new file mode 100644
index 0000000..81c9ad9
Binary files /dev/null and b/fonts/FontAwesome.otf differ
diff --git a/fonts/fontawesome-webfont.eot b/fonts/fontawesome-webfont.eot
new file mode 100644
index 0000000..84677bc
Binary files /dev/null and b/fonts/fontawesome-webfont.eot differ
diff --git a/fonts/fontawesome-webfont.svg b/fonts/fontawesome-webfont.svg
new file mode 100644
index 0000000..d907b25
--- /dev/null
+++ b/fonts/fontawesome-webfont.svg
@@ -0,0 +1,520 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/fonts/fontawesome-webfont.ttf b/fonts/fontawesome-webfont.ttf
new file mode 100644
index 0000000..96a3639
Binary files /dev/null and b/fonts/fontawesome-webfont.ttf differ
diff --git a/fonts/fontawesome-webfont.woff b/fonts/fontawesome-webfont.woff
new file mode 100644
index 0000000..628b6a5
Binary files /dev/null and b/fonts/fontawesome-webfont.woff differ
diff --git a/fonts/glyphicons-halflings-regular.eot b/fonts/glyphicons-halflings-regular.eot
new file mode 100644
index 0000000..b93a495
Binary files /dev/null and b/fonts/glyphicons-halflings-regular.eot differ
diff --git a/fonts/glyphicons-halflings-regular.svg b/fonts/glyphicons-halflings-regular.svg
new file mode 100644
index 0000000..94fb549
--- /dev/null
+++ b/fonts/glyphicons-halflings-regular.svg
@@ -0,0 +1,288 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/fonts/glyphicons-halflings-regular.ttf b/fonts/glyphicons-halflings-regular.ttf
new file mode 100644
index 0000000..1413fc6
Binary files /dev/null and b/fonts/glyphicons-halflings-regular.ttf differ
diff --git a/fonts/glyphicons-halflings-regular.woff b/fonts/glyphicons-halflings-regular.woff
new file mode 100644
index 0000000..9e61285
Binary files /dev/null and b/fonts/glyphicons-halflings-regular.woff differ
diff --git a/fonts/glyphicons-halflings-regular.woff2 b/fonts/glyphicons-halflings-regular.woff2
new file mode 100644
index 0000000..64539b5
Binary files /dev/null and b/fonts/glyphicons-halflings-regular.woff2 differ
diff --git a/images/helpapi.svg b/images/helpapi.svg
new file mode 100644
index 0000000..831ba51
--- /dev/null
+++ b/images/helpapi.svg
@@ -0,0 +1,7580 @@
+
+
+
+
+
+
+
+
+
+
+]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ sample help text sample help text sample help text sample help text sample help text sample help text sample help
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Getting Started text sample help text sample help text sample help text sample help text sample help text sample help text sample
+
+
+
+
+
+
+
+
+
+
+
+
+ Learning Course sample help text sample help text sample help text sample help text sample help text sample help text sample help
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ sample help text sample help text sample help text sample help text sample help text sample
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Help API
+
+
+
+pulling from API
+
+
+
+pulling from API
+
+
+
+pulling from API
+
+
+
+pulling from API
+
+
+
+
+
+
+ website #1
+
+ website #2
+
+ website #4
+
+ website #3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/images/jekyll.png b/images/jekyll.png
new file mode 100644
index 0000000..ebaf27d
Binary files /dev/null and b/images/jekyll.png differ
diff --git a/index.md b/index.md
new file mode 100644
index 0000000..9e8edcf
--- /dev/null
+++ b/index.md
@@ -0,0 +1,55 @@
+---
+title: Documentation Theme for Jekyll
+permalink: "/"
+tags: overview
+---
+{% include linkrefs.html %}
+
+{% if site.audience == "writer" %}
+{{note}} This is the version of the documentation designed for writers.{{end}}
+{% endif %}
+
+
+{% if site.audience == "designer" %}
+{{note}} This is the version of the documentation designed for designers.{{end}}
+{% endif %}
+
+
+This is a Jekyll theme intended for documentation projects. What makes this theme unique is the approach in using Jekyll for single sourcing, that is, producing multiple outputs from the same theme. For example, you might have 3 different help systems that you're generating from the same Jekyll files. More than anything, this Jekyll theme shows you how to use Jekyll for documentation projects from the perspective of a technical writer.
+
+{{note}} I'm using this theme for my own technical writing projects, so this is an evolving project.{{end}}
+
+## Intended audience
+
+Although this theme could be used for any website, I'm assuming that my main audience involves technical writers. Very few technical writers are even aware of Jekyll as a platform, let alone how to use it for tech comm scenarios. The instructions for this theme, therefore, are extensive because they discuss a lot of Jekyll basics as well. I'm not going to assume that you're already familiar with Jekyll, or that you're a UX guru, or that you know how to do backflips in Liquid. I'll try to hold your hand as much as possible.
+
+## Supported tech comm features with Jekyll
+
+As far as I can tell, Jekyll supports most of the features a technical writer needs to author and publish content. See {{supported_features}} for an extensive list. Most importantly, using Jekyll allows you to take full advantage of a modern web development platform.
+
+## Theme features
+
+This theme specifically provides the following:
+
+* Bootstrap framework with responsive design
+* Integrated search
+* Navigation sidebar and top navigation
+* Font Awesome
+* Options for creating multiple builds for different audiences
+
+## Getting started
+
+To get started, see {{getting_started}}. It explains how to create a new project.
+
+## Questions
+
+Feel free to ask me a question if there's something I haven't addressed here.
+
+Tom Johnson tomjohnson1492@gmail.com
+
+
+
+
+
+
+
diff --git a/js/bootstrap.min.js b/js/bootstrap.min.js
new file mode 100644
index 0000000..d839865
--- /dev/null
+++ b/js/bootstrap.min.js
@@ -0,0 +1,7 @@
+/*!
+ * Bootstrap v3.3.1 (http://getbootstrap.com)
+ * Copyright 2011-2014 Twitter, Inc.
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+ */
+if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.1",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.1",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));a&&this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.1",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c="prev"==a?-1:1,d=this.getItemIndex(b),e=(d+c)%this.$items.length;return this.$items.eq(e)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i="next"==b?"first":"last",j=this;if(!f.length){if(!this.options.wrap)return;f=this.$element.find(".item")[i]()}if(f.hasClass("active"))return this.sliding=!1;var k=f[0],l=a.Event("slide.bs.carousel",{relatedTarget:k,direction:h});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var m=a(this.$indicators.children()[this.getItemIndex(f)]);m&&m.addClass("active")}var n=a.Event("slid.bs.carousel",{relatedTarget:k,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),j.sliding=!1,setTimeout(function(){j.$element.trigger(n)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(n)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&"show"==b&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a(this.options.trigger).filter('[href="#'+b.id+'"], [data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.1",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":a.extend({},e.data(),{trigger:this});c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){b&&3===b.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=c(d),f={relatedTarget:this};e.hasClass("open")&&(e.trigger(b=a.Event("hide.bs.dropdown",f)),b.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.1",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('
').insertAfter(a(this)).on("click",b);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger("shown.bs.dropdown",h)}return!1}},g.prototype.keydown=function(b){if(/(38|40|27|32)/.test(b.which)&&!/input|textarea/i.test(b.target.tagName)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled")){var e=c(d),g=e.hasClass("open");if(!g&&27!=b.which||g&&27==b.which)return 27==b.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.divider):visible a",i=e.find('[role="menu"]'+h+', [role="listbox"]'+h);if(i.length){var j=i.index(b.target);38==b.which&&j>0&&j--,40==b.which&&j ').prependTo(this.$element).on("click.dismiss.bs.modal",a.proxy(function(a){a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.options.backdrop&&this.adjustBackdrop(),this.adjustDialog()},c.prototype.adjustBackdrop=function(){this.$backdrop.css("height",0).css("height",this.$element[0].scrollHeight)},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){this.bodyIsOverflowing=document.body.scrollHeight>document.documentElement.clientHeight,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b,g=f&&f.selector;(e||"destroy"!=b)&&(g?(e||d.data("bs.tooltip",e={}),e[g]||(e[g]=new c(this,f))):e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",a,b)};c.VERSION="3.3.1",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(this.options.viewport.selector||this.options.viewport);for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c&&c.$tip&&c.$tip.is(":visible")?void(c.hoverState="in"):(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.options.container?a(this.options.container):this.$element.parent(),p=this.getPosition(o);h="bottom"==h&&k.bottom+m>p.bottom?"top":"top"==h&&k.top-mp.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.width&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type)})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b,g=f&&f.selector;(e||"destroy"!=b)&&(g?(e||d.data("bs.popover",e={}),e[g]||(e[g]=new c(this,f))):e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.1",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},c.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){var e=a.proxy(this.process,this);this.$body=a("body"),this.$scrollElement=a(a(c).is("body")?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.1",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b="offset",c=0;a.isWindow(this.$scrollElement[0])||(b="position",c=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var d=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[b]().top+c,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){d.offsets.push(this[0]),d.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.1",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})
+})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.1",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=i?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=a("body").height();"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
\ No newline at end of file
diff --git a/js/customscripts.js b/js/customscripts.js
new file mode 100644
index 0000000..80a70bd
--- /dev/null
+++ b/js/customscripts.js
@@ -0,0 +1,48 @@
+$('.sub_menu').hide();
+$('.clickable').toggle(function (){
+ $(this).next('ul').slideToggle();
+ $(this).css('background-position', '0px -12px');
+}, function (){
+ $(this).next('ul').slideToggle();
+ $(this).css('background-position', '0px 5px');
+});
+
+$('ul.sub_menu').has('a.active').css('display', 'block');
+
+$('#myButton').tooltip();
+
+// this does the highlighting for the active tab of the sidebar
+
+$(function () {
+ setNavigation();
+});
+
+function setNavigation() {
+ var path = window.location.pathname;
+ path = path.replace(/\/$/, "");
+ path = decodeURIComponent(path);
+
+ $(".nav a").each(function () {
+ var href = $(this).attr('href');
+ if (path.substring(0, href.length) === href) {
+ $(this).closest('li').addClass('active');
+ $(this).closest('li').parents().addClass('active');
+
+ }
+
+ });
+
+}
+
+
+$('#mysidebar').height($(".nav").height());
+
+// only use the affix class if the viewport is greater than 500px. otherwise it gets cut off.
+
+$( document ).ready(function() {
+ var h = $(window).height();
+ console.log (h);
+ if (h > 700) {
+ $( "#mysidebar" ).attr("class", "nav affix");
+ }
+});
diff --git a/js/jekyll-search.js b/js/jekyll-search.js
new file mode 100644
index 0000000..04d6a0d
--- /dev/null
+++ b/js/jekyll-search.js
@@ -0,0 +1 @@
+!function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o=0}var self=this;self.matches=function(string,crit){return"string"!=typeof string?!1:(string=string.trim(),doMatch(string,crit))}}module.exports=new LiteralSearchStrategy},{}],4:[function(require,module){module.exports=function(){function findMatches(store,crit,strategy){for(var data=store.get(),i=0;i{title} ',noResultsText:"No results found",limit:10,fuzzy:!1};self.init=function(_opt){validateOptions(_opt),assignOptions(_opt),isJSON(opt.dataSource)?initWithJSON(opt.dataSource):initWithURL(opt.dataSource)}}var Searcher=require("./Searcher"),Templater=require("./Templater"),Store=require("./Store"),JSONLoader=require("./JSONLoader"),searcher=new Searcher,templater=new Templater,store=new Store,jsonLoader=new JSONLoader;window.SimpleJekyllSearch=new SimpleJekyllSearch}(window,document)},{"./JSONLoader":1,"./Searcher":4,"./Store":5,"./Templater":6}]},{},[7]);
\ No newline at end of file
diff --git a/js/jquery.ba-throttle-debounce.min.js b/js/jquery.ba-throttle-debounce.min.js
new file mode 100644
index 0000000..0720550
--- /dev/null
+++ b/js/jquery.ba-throttle-debounce.min.js
@@ -0,0 +1,9 @@
+/*
+ * jQuery throttle / debounce - v1.1 - 3/7/2010
+ * http://benalman.com/projects/jquery-throttle-debounce-plugin/
+ *
+ * Copyright (c) 2010 "Cowboy" Ben Alman
+ * Dual licensed under the MIT and GPL licenses.
+ * http://benalman.com/about/license/
+ */
+(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this);
\ No newline at end of file
diff --git a/js/jquery.cookie.min.js b/js/jquery.cookie.min.js
new file mode 100755
index 0000000..cbe7d90
--- /dev/null
+++ b/js/jquery.cookie.min.js
@@ -0,0 +1,8 @@
+/*!
+ * jQuery Cookie Plugin v1.3.1
+ * https://github.com/carhartl/jquery-cookie
+ *
+ * Copyright 2013 Klaus Hartl
+ * Released under the MIT license
+ */
+!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(a){return a}function c(a){return decodeURIComponent(a.replace(e," "))}function d(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return f.json?JSON.parse(a):a}catch(b){}}var e=/\+/g,f=a.cookie=function(e,g,h){if(void 0!==g){if(h=a.extend({},f.defaults,h),"number"==typeof h.expires){var i=h.expires,j=h.expires=new Date;j.setDate(j.getDate()+i)}return g=f.json?JSON.stringify(g):String(g),document.cookie=[f.raw?e:encodeURIComponent(e),"=",f.raw?g:encodeURIComponent(g),h.expires?"; expires="+h.expires.toUTCString():"",h.path?"; path="+h.path:"",h.domain?"; domain="+h.domain:"",h.secure?"; secure":""].join("")}for(var k=f.raw?b:c,l=document.cookie.split("; "),m=e?void 0:{},n=0,o=l.length;o>n;n++){var p=l[n].split("="),q=k(p.shift()),r=k(p.join("="));if(e&&e===q){m=d(r);break}e||(m[q]=d(r))}return m};f.defaults={},a.removeCookie=function(b,c){return void 0!==a.cookie(b)?(a.cookie(b,"",a.extend({},c,{expires:-1})),!0):!1}});
\ No newline at end of file
diff --git a/js/jquery.localScroll.min.js b/js/jquery.localScroll.min.js
new file mode 100644
index 0000000..48a6e16
--- /dev/null
+++ b/js/jquery.localScroll.min.js
@@ -0,0 +1,7 @@
+/**
+ * Copyright (c) 2007-2014 Ariel Flesler - afleslergmailcom | http://flesler.blogspot.com
+ * Licensed under MIT
+ * @author Ariel Flesler
+ * @version 1.3.5
+ */
+;(function(a){if(typeof define==='function'&&define.amd){define(['jquery'],a)}else{a(jQuery)}}(function($){var g=location.href.replace(/#.*/,'');var h=$.localScroll=function(a){$('body').localScroll(a)};h.defaults={duration:1000,axis:'y',event:'click',stop:true,target:window};$.fn.localScroll=function(a){a=$.extend({},h.defaults,a);if(a.hash&&location.hash){if(a.target)window.scrollTo(0,0);scroll(0,location,a)}return a.lazy?this.on(a.event,'a,area',function(e){if(filter.call(this)){scroll(e,this,a)}}):this.find('a,area').filter(filter).bind(a.event,function(e){scroll(e,this,a)}).end().end();function filter(){return!!this.href&&!!this.hash&&this.href.replace(this.hash,'')==g&&(!a.filter||$(this).is(a.filter))}};h.hash=function(){};function scroll(e,a,b){var c=a.hash.slice(1),elem=document.getElementById(c)||document.getElementsByName(c)[0];if(!elem)return;if(e)e.preventDefault();var d=$(b.target);if(b.lock&&d.is(':animated')||b.onBefore&&b.onBefore(e,elem,d)===false)return;if(b.stop)d._scrollable().stop(true);if(b.hash){var f=elem.id===c?'id':'name',$a=$(' ').attr(f,c).css({position:'absolute',top:$(window).scrollTop(),left:$(window).scrollLeft()});elem[f]='';$('body').prepend($a);location.hash=a.hash;$a.remove();elem[f]=c}d.scrollTo(elem,b).trigger('notify.serialScroll',[elem])};return h}));
\ No newline at end of file
diff --git a/js/jquery.min.js b/js/jquery.min.js
new file mode 100755
index 0000000..e5ace11
--- /dev/null
+++ b/js/jquery.min.js
@@ -0,0 +1,4 @@
+/*! jQuery v2.1.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
+!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.1",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)>=0},isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=l.createElement("script"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b){return a===b&&(l=!0),0},C="undefined",D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(eb){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],!a||"string"!=typeof a)return d;if(1!==(k=b.nodeType)&&9!==k)return[];if(p&&!e){if(f=_.exec(a))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=9===k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+qb(o[l]);w=ab.test(a)&&ob(b.parentNode)||b,x=o.join(",")}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function gb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function hb(a){return a[u]=!0,a}function ib(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function jb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function kb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function ob(a){return a&&typeof a.getElementsByTagName!==C&&a}c=fb.support={},f=fb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fb.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;return e!==n&&9===e.nodeType&&e.documentElement?(n=e,o=e.documentElement,p=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){m()},!1):g.attachEvent&&g.attachEvent("onunload",function(){m()})),c.attributes=ib(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ib(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&&ib(function(a){return a.innerHTML="
",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=ib(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==C&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(e.querySelectorAll))&&(ib(function(a){a.innerHTML=" ",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),ib(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ib(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length>0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length>0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:hb(function(a){return W.test(a||"")||fb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0>c?c+b:c]}),even:nb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return vb(i>1&&sb(m),i>1&&qb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&wb(a.slice(i,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&fb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&ob(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ib(function(a){return a.innerHTML=" ","#"===a.firstChild.getAttribute("href")})||jb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ib(function(a){return a.innerHTML=" ",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||jb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute("disabled")})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fb}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+Math.random()}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)
+},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthx",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*\s*$/g,ib={option:[1,""," "],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1>$2>")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(ob(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1>$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(ob(c,"script"),kb),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(hb,"")))}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function tb(a){var b=l,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||n("")).appendTo(b.documentElement),b=qb[0].contentDocument,b.write(),b.close(),c=sb(a,b),qb.detach()),rb[a]=c),c}var ub=/^margin/,vb=new RegExp("^("+Q+")(?!px)[a-z%]+$","i"),wb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)};function xb(a,b,c){var d,e,f,g,h=a.style;return c=c||wb(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),vb.test(g)&&ub.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function yb(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d=l.documentElement,e=l.createElement("div"),f=l.createElement("div");if(f.style){f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===f.style.backgroundClip,e.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",e.appendChild(f);function g(){f.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",f.innerHTML="",d.appendChild(e);var g=a.getComputedStyle(f,null);b="1%"!==g.top,c="4px"===g.width,d.removeChild(e)}a.getComputedStyle&&n.extend(k,{pixelPosition:function(){return g(),b},boxSizingReliable:function(){return null==c&&g(),c},reliableMarginRight:function(){var b,c=f.appendChild(l.createElement("div"));return c.style.cssText=f.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",f.style.width="1px",d.appendChild(e),b=!parseFloat(a.getComputedStyle(c,null).marginRight),d.removeChild(e),b}})}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var zb=/^(none|table(?!-c[ea]).+)/,Ab=new RegExp("^("+Q+")(.*)$","i"),Bb=new RegExp("^([+-])=("+Q+")","i"),Cb={position:"absolute",visibility:"hidden",display:"block"},Db={letterSpacing:"0",fontWeight:"400"},Eb=["Webkit","O","Moz","ms"];function Fb(a,b){if(b in a)return b;var c=b[0].toUpperCase()+b.slice(1),d=b,e=Eb.length;while(e--)if(b=Eb[e]+c,b in a)return b;return d}function Gb(a,b,c){var d=Ab.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Hb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+R[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+R[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+R[f]+"Width",!0,e))):(g+=n.css(a,"padding"+R[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+R[f]+"Width",!0,e)));return g}function Ib(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=wb(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=xb(a,b,f),(0>e||null==e)&&(e=a.style[b]),vb.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Hb(a,b,c||(g?"border":"content"),d,f)+"px"}function Jb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=L.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&S(d)&&(f[g]=L.access(d,"olddisplay",tb(d.nodeName)))):(e=S(d),"none"===c&&e||L.set(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Fb(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Bb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||n.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Fb(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=xb(a,b,d)),"normal"===e&&b in Db&&(e=Db[b]),""===c||c?(f=parseFloat(e),c===!0||n.isNumeric(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?zb.test(n.css(a,"display"))&&0===a.offsetWidth?n.swap(a,Cb,function(){return Ib(a,b,d)}):Ib(a,b,d):void 0},set:function(a,c,d){var e=d&&wb(a);return Gb(a,c,d?Hb(a,b,d,"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),n.cssHooks.marginRight=yb(k.reliableMarginRight,function(a,b){return b?n.swap(a,{display:"inline-block"},xb,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+R[d]+b]=f[d]||f[d-2]||f[0];return e}},ub.test(a)||(n.cssHooks[a+b].set=Gb)}),n.fn.extend({css:function(a,b){return J(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=wb(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Jb(this,!0)},hide:function(){return Jb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){S(this)?n(this).show():n(this).hide()})}});function Kb(a,b,c,d,e){return new Kb.prototype.init(a,b,c,d,e)}n.Tween=Kb,Kb.prototype={constructor:Kb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Kb.propHooks[this.prop];return a&&a.get?a.get(this):Kb.propHooks._default.get(this)},run:function(a){var b,c=Kb.propHooks[this.prop];return this.pos=b=this.options.duration?n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Kb.propHooks._default.set(this),this}},Kb.prototype.init.prototype=Kb.prototype,Kb.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Kb.propHooks.scrollTop=Kb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},n.fx=Kb.prototype.init,n.fx.step={};var Lb,Mb,Nb=/^(?:toggle|show|hide)$/,Ob=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),Pb=/queueHooks$/,Qb=[Vb],Rb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=Ob.exec(b),f=e&&e[3]||(n.cssNumber[a]?"":"px"),g=(n.cssNumber[a]||"px"!==f&&+d)&&Ob.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,n.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function Sb(){return setTimeout(function(){Lb=void 0}),Lb=n.now()}function Tb(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=R[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ub(a,b,c){for(var d,e=(Rb[b]||[]).concat(Rb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Vb(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&S(a),q=L.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?L.get(a,"olddisplay")||tb(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Nb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))"inline"===("none"===j?tb(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=L.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;L.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ub(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function Wb(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function Xb(a,b,c){var d,e,f=0,g=Qb.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Lb||Sb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:Lb||Sb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(Wb(k,j.opts.specialEasing);g>f;f++)if(d=Qb[f].call(j,a,k,j.opts))return d;return n.map(k,Ub,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(Xb,{tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],Rb[c]=Rb[c]||[],Rb[c].unshift(b)},prefilter:function(a,b){b?Qb.unshift(a):Qb.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(S).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=Xb(this,n.extend({},a),f);(e||L.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=L.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Pb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=L.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Tb(b,!0),a,d,e)}}),n.each({slideDown:Tb("show"),slideUp:Tb("hide"),slideToggle:Tb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(Lb=n.now();b1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===U?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?Zb:Yb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void n.removeAttr(a,b))
+},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),Zb={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=$b[b]||n.find.attr;$b[b]=function(a,b,d){var e,f;return d||(f=$b[b],$b[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,$b[b]=f),e}});var _b=/^(?:input|select|textarea|button)$/i;n.fn.extend({prop:function(a,b){return J(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||_b.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),k.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var ac=/[\t\r\n\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=n.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||"string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?n.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=n(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===U||"boolean"===c)&&(this.className&&L.set(this,"__className__",this.className),this.className=this.className||a===!1?"":L.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ac," ").indexOf(b)>=0)return!0;return!1}});var bc=/\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(bc,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=n.inArray(d.value,f)>=0)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},k.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var cc=n.now(),dc=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.parseXML=function(a){var b,c;if(!a||"string"!=typeof a)return null;try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=void 0}return(!b||b.getElementsByTagName("parsererror").length)&&n.error("Invalid XML: "+a),b};var ec,fc,gc=/#.*$/,hc=/([?&])_=[^&]*/,ic=/^(.*?):[ \t]*([^\r\n]*)$/gm,jc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,kc=/^(?:GET|HEAD)$/,lc=/^\/\//,mc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,nc={},oc={},pc="*/".concat("*");try{fc=location.href}catch(qc){fc=l.createElement("a"),fc.href="",fc=fc.href}ec=mc.exec(fc.toLowerCase())||[];function rc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(n.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function sc(a,b,c,d){var e={},f=a===oc;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function tc(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function uc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function vc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fc,type:"GET",isLocal:jc.test(ec[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":pc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?tc(tc(a,n.ajaxSettings),b):tc(n.ajaxSettings,a)},ajaxPrefilter:rc(nc),ajaxTransport:rc(oc),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!f){f={};while(b=ic.exec(e))f[b[1].toLowerCase()]=b[2]}b=f[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return c&&c.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||fc)+"").replace(gc,"").replace(lc,ec[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(h=mc.exec(k.url.toLowerCase()),k.crossDomain=!(!h||h[1]===ec[1]&&h[2]===ec[2]&&(h[3]||("http:"===h[1]?"80":"443"))===(ec[3]||("http:"===ec[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),sc(nc,k,b,v),2===t)return v;i=k.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!kc.test(k.type),d=k.url,k.hasContent||(k.data&&(d=k.url+=(dc.test(d)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=hc.test(d)?d.replace(hc,"$1_="+cc++):d+(dc.test(d)?"&":"?")+"_="+cc++)),k.ifModified&&(n.lastModified[d]&&v.setRequestHeader("If-Modified-Since",n.lastModified[d]),n.etag[d]&&v.setRequestHeader("If-None-Match",n.etag[d])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+pc+"; q=0.01":""):k.accepts["*"]);for(j in k.headers)v.setRequestHeader(j,k.headers[j]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(j in{success:1,error:1,complete:1})v[j](k[j]);if(c=sc(oc,k,b,v)){v.readyState=1,i&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,c.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,f,h){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),c=void 0,e=h||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,f&&(u=uc(k,v,f)),u=vc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(n.lastModified[d]=w),w=v.getResponseHeader("etag"),w&&(n.etag[d]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,i&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),i&&(m.trigger("ajaxComplete",[v,k]),--n.active||n.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var wc=/%20/g,xc=/\[\]$/,yc=/\r?\n/g,zc=/^(?:submit|button|image|reset|file)$/i,Ac=/^(?:input|select|textarea|keygen)/i;function Bc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||xc.test(a)?d(a,e):Bc(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Bc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Bc(c,a[c],b,e);return d.join("&").replace(wc,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Ac.test(this.nodeName)&&!zc.test(a)&&(this.checked||!T.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(yc,"\r\n")}}):{name:b.name,value:c.replace(yc,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var Cc=0,Dc={},Ec={0:200,1223:204},Fc=n.ajaxSettings.xhr();a.ActiveXObject&&n(a).on("unload",function(){for(var a in Dc)Dc[a]()}),k.cors=!!Fc&&"withCredentials"in Fc,k.ajax=Fc=!!Fc,n.ajaxTransport(function(a){var b;return k.cors||Fc&&!a.crossDomain?{send:function(c,d){var e,f=a.xhr(),g=++Cc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)f.setRequestHeader(e,c[e]);b=function(a){return function(){b&&(delete Dc[g],b=f.onload=f.onerror=null,"abort"===a?f.abort():"error"===a?d(f.status,f.statusText):d(Ec[f.status]||f.status,f.statusText,"string"==typeof f.responseText?{text:f.responseText}:void 0,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b("error"),b=Dc[g]=b("abort");try{f.send(a.hasContent&&a.data||null)}catch(h){if(b)throw h}},abort:function(){b&&b()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=n("
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video
+
+
+
+
diff --git a/js/video-js/font/vjs.eot b/js/video-js/font/vjs.eot
new file mode 100644
index 0000000..a2c0f5f
Binary files /dev/null and b/js/video-js/font/vjs.eot differ
diff --git a/js/video-js/font/vjs.svg b/js/video-js/font/vjs.svg
new file mode 100644
index 0000000..fa6aa7b
--- /dev/null
+++ b/js/video-js/font/vjs.svg
@@ -0,0 +1,28 @@
+
+
+
+Generated by IcoMoon
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/js/video-js/font/vjs.ttf b/js/video-js/font/vjs.ttf
new file mode 100644
index 0000000..682a9b2
Binary files /dev/null and b/js/video-js/font/vjs.ttf differ
diff --git a/js/video-js/font/vjs.woff b/js/video-js/font/vjs.woff
new file mode 100644
index 0000000..a79d0fa
Binary files /dev/null and b/js/video-js/font/vjs.woff differ
diff --git a/js/video-js/lang/ar.js b/js/video-js/lang/ar.js
new file mode 100644
index 0000000..4c38b0d
--- /dev/null
+++ b/js/video-js/lang/ar.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("ar",{
+ "Play": "تشغيل",
+ "Pause": "ايقاف",
+ "Current Time": "الوقت الحالي",
+ "Duration Time": "Dauer",
+ "Remaining Time": "الوقت المتبقي",
+ "Stream Type": "نوع التيار",
+ "LIVE": "مباشر",
+ "Loaded": "تم التحميل",
+ "Progress": "التقدم",
+ "Fullscreen": "ملء الشاشة",
+ "Non-Fullscreen": "غير ملء الشاشة",
+ "Mute": "صامت",
+ "Unmuted": "غير الصامت",
+ "Playback Rate": "معدل التشغيل",
+ "Subtitles": "الترجمة",
+ "subtitles off": "ايقاف الترجمة",
+ "Captions": "التعليقات",
+ "captions off": "ايقاف التعليقات",
+ "Chapters": "فصول",
+ "You aborted the video playback": "لقد ألغيت تشغيل الفيديو",
+ "A network error caused the video download to fail part-way.": "تسبب خطأ في الشبكة بفشل تحميل الفيديو بالكامل.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "لا يمكن تحميل الفيديو بسبب فشل في الخادم أو الشبكة ، أو فشل بسبب عدم امكانية قراءة تنسيق الفيديو.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "تم ايقاف تشغيل الفيديو بسبب مشكلة فساد أو لأن الفيديو المستخدم يستخدم ميزات غير مدعومة من متصفحك.",
+ "No compatible source was found for this video.": "فشل العثور على أي مصدر متوافق مع هذا الفيديو."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/bg.js b/js/video-js/lang/bg.js
new file mode 100644
index 0000000..610b393
--- /dev/null
+++ b/js/video-js/lang/bg.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("bg",{
+ "Play": "Възпроизвеждане",
+ "Pause": "Пауза",
+ "Current Time": "Текущо време",
+ "Duration Time": "Продължителност",
+ "Remaining Time": "Оставащо време",
+ "Stream Type": "Тип на потока",
+ "LIVE": "НА ЖИВО",
+ "Loaded": "Заредено",
+ "Progress": "Прогрес",
+ "Fullscreen": "Цял екран",
+ "Non-Fullscreen": "Спиране на цял екран",
+ "Mute": "Без звук",
+ "Unmuted": "Със звук",
+ "Playback Rate": "Скорост на възпроизвеждане",
+ "Subtitles": "Субтитри",
+ "subtitles off": "Спряни субтитри",
+ "Captions": "Аудио надписи",
+ "captions off": "Спряни аудио надписи",
+ "Chapters": "Глави",
+ "You aborted the video playback": "Спряхте възпроизвеждането на видеото",
+ "A network error caused the video download to fail part-way.": "Грешка в мрежата провали изтеглянето на видеото.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Видеото не може да бъде заредено заради проблем със сървъра или мрежата или защото този формат не е поддържан.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Възпроизвеждането на видеото беше прекъснато заради проблем с файла или защото видеото използва опции които браузърът Ви не поддържа.",
+ "No compatible source was found for this video.": "Не беше намерен съвместим източник за това видео."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/ca.js b/js/video-js/lang/ca.js
new file mode 100644
index 0000000..6ebc379
--- /dev/null
+++ b/js/video-js/lang/ca.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("ca",{
+ "Play": "Reproducció",
+ "Pause": "Pausa",
+ "Current Time": "Temps reproduït",
+ "Duration Time": "Durada total",
+ "Remaining Time": "Temps restant",
+ "Stream Type": "Tipus de seqüència",
+ "LIVE": "EN DIRECTE",
+ "Loaded": "Carregat",
+ "Progress": "Progrés",
+ "Fullscreen": "Pantalla completa",
+ "Non-Fullscreen": "Pantalla no completa",
+ "Mute": "Silencia",
+ "Unmuted": "Amb so",
+ "Playback Rate": "Velocitat de reproducció",
+ "Subtitles": "Subtítols",
+ "subtitles off": "Subtítols desactivats",
+ "Captions": "Llegendes",
+ "captions off": "Llegendes desactivades",
+ "Chapters": "Capítols",
+ "You aborted the video playback": "Heu interromput la reproducció del vídeo.",
+ "A network error caused the video download to fail part-way.": "Un error de la xarxa ha interromput la baixada del vídeo.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "No s'ha pogut carregar el vídeo perquè el servidor o la xarxa han fallat, o bé perquè el seu format no és compatible.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La reproducció de vídeo s'ha interrumput per un problema de corrupció de dades o bé perquè el vídeo demanava funcions que el vostre navegador no ofereix.",
+ "No compatible source was found for this video.": "No s'ha trobat cap font compatible amb el vídeo."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/cs.js b/js/video-js/lang/cs.js
new file mode 100644
index 0000000..c2c8377
--- /dev/null
+++ b/js/video-js/lang/cs.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("cs",{
+ "Play": "Přehrát",
+ "Pause": "Pauza",
+ "Current Time": "Aktuální čas",
+ "Duration Time": "Doba trvání",
+ "Remaining Time": "Zbývající čas",
+ "Stream Type": "Stream Type",
+ "LIVE": "ŽIVĚ",
+ "Loaded": "Načteno",
+ "Progress": "Stav",
+ "Fullscreen": "Celá obrazovka",
+ "Non-Fullscreen": "Zmenšená obrazovka",
+ "Mute": "Ztlumit zvuk",
+ "Unmuted": "Přehrát zvuk",
+ "Playback Rate": "Rychlost přehrávání",
+ "Subtitles": "Titulky",
+ "subtitles off": "Titulky vypnuty",
+ "Captions": "Popisky",
+ "captions off": "Popisky vypnuty",
+ "Chapters": "Kapitoly",
+ "You aborted the video playback": "Přehrávání videa je přerušeno.",
+ "A network error caused the video download to fail part-way.": "Video nemohlo být načteno, kvůli chybě v síti.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Video nemohlo být načteno, buď kvůli chybě serveru nebo sítě nebo proto, že daný formát není podporován.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Váš prohlížeč nepodporuje formát videa.",
+ "No compatible source was found for this video.": "Špatně zadaný zdroj videa."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/de.js b/js/video-js/lang/de.js
new file mode 100644
index 0000000..88d6189
--- /dev/null
+++ b/js/video-js/lang/de.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("de",{
+ "Play": "Wiedergabe",
+ "Pause": "Pause",
+ "Current Time": "Aktueller Zeitpunkt",
+ "Duration Time": "Dauer",
+ "Remaining Time": "Verbleibende Zeit",
+ "Stream Type": "Streamtyp",
+ "LIVE": "LIVE",
+ "Loaded": "Geladen",
+ "Progress": "Status",
+ "Fullscreen": "Vollbild",
+ "Non-Fullscreen": "Kein Vollbild",
+ "Mute": "Ton aus",
+ "Unmuted": "Ton ein",
+ "Playback Rate": "Wiedergabegeschwindigkeit",
+ "Subtitles": "Untertitel",
+ "subtitles off": "Untertitel aus",
+ "Captions": "Untertitel",
+ "captions off": "Untertitel aus",
+ "Chapters": "Kapitel",
+ "You aborted the video playback": "Sie haben die Videowiedergabe abgebrochen.",
+ "A network error caused the video download to fail part-way.": "Der Videodownload ist aufgrund eines Netzwerkfehlers fehlgeschlagen.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Das Video konnte nicht geladen werden, da entweder ein Server- oder Netzwerkfehler auftrat oder das Format nicht unterstützt wird.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Die Videowiedergabe wurde entweder wegen eines Problems mit einem beschädigten Video oder wegen verwendeten Funktionen, die vom Browser nicht unterstützt werden, abgebrochen.",
+ "No compatible source was found for this video.": "Für dieses Video wurde keine kompatible Quelle gefunden."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/es.js b/js/video-js/lang/es.js
new file mode 100644
index 0000000..c81b6b7
--- /dev/null
+++ b/js/video-js/lang/es.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("es",{
+ "Play": "Reproducción",
+ "Pause": "Pausa",
+ "Current Time": "Tiempo reproducido",
+ "Duration Time": "Duración total",
+ "Remaining Time": "Tiempo restante",
+ "Stream Type": "Tipo de secuencia",
+ "LIVE": "DIRECTO",
+ "Loaded": "Cargado",
+ "Progress": "Progreso",
+ "Fullscreen": "Pantalla completa",
+ "Non-Fullscreen": "Pantalla no completa",
+ "Mute": "Silenciar",
+ "Unmuted": "No silenciado",
+ "Playback Rate": "Velocidad de reproducción",
+ "Subtitles": "Subtítulos",
+ "subtitles off": "Subtítulos desactivados",
+ "Captions": "Subtítulos especiales",
+ "captions off": "Subtítulos especiales desactivados",
+ "Chapters": "Capítulos",
+ "You aborted the video playback": "Ha interrumpido la reproducción del vídeo.",
+ "A network error caused the video download to fail part-way.": "Un error de red ha interrumpido la descarga del vídeo.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "No se ha podido cargar el vídeo debido a un fallo de red o del servidor o porque el formato es incompatible.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La reproducción de vídeo se ha interrumpido por un problema de corrupción de datos o porque el vídeo precisa funciones que su navegador no ofrece.",
+ "No compatible source was found for this video.": "No se ha encontrado ninguna fuente compatible con este vídeo."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/fr.js b/js/video-js/lang/fr.js
new file mode 100644
index 0000000..670c4a1
--- /dev/null
+++ b/js/video-js/lang/fr.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("fr",{
+ "Play": "Lecture",
+ "Pause": "Pause",
+ "Current Time": "Temps actuel",
+ "Duration Time": "Durée",
+ "Remaining Time": "Temps restant",
+ "Stream Type": "Type de flux",
+ "LIVE": "EN DIRECT",
+ "Loaded": "Chargé",
+ "Progress": "Progression",
+ "Fullscreen": "Plein écran",
+ "Non-Fullscreen": "Fenêtré",
+ "Mute": "Sourdine",
+ "Unmuted": "Son activé",
+ "Playback Rate": "Vitesse de lecture",
+ "Subtitles": "Sous-titres",
+ "subtitles off": "Sous-titres désactivés",
+ "Captions": "Sous-titres",
+ "captions off": "Sous-titres désactivés",
+ "Chapters": "Chapitres",
+ "You aborted the video playback": "Vous avez interrompu la lecture de la vidéo.",
+ "A network error caused the video download to fail part-way.": "Une erreur de réseau a interrompu le téléchargement de la vidéo.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Cette vidéo n'a pas pu être chargée, soit parce que le serveur ou le réseau a échoué ou parce que le format n'est pas reconnu.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La lecture de la vidéo a été interrompue à cause d'un problème de corruption ou parce que la vidéo utilise des fonctionnalités non prises en charge par votre navigateur.",
+ "No compatible source was found for this video.": "Aucune source compatible n'a été trouvée pour cette vidéo."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/hu.js b/js/video-js/lang/hu.js
new file mode 100644
index 0000000..cf685ee
--- /dev/null
+++ b/js/video-js/lang/hu.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("hu",{
+ "Play": "Lejátszás",
+ "Pause": "Szünet",
+ "Current Time": "Aktuális időpont",
+ "Duration Time": "Hossz",
+ "Remaining Time": "Hátralévő idő",
+ "Stream Type": "Adatfolyam típusa",
+ "LIVE": "ÉLŐ",
+ "Loaded": "Betöltve",
+ "Progress": "Állapot",
+ "Fullscreen": "Teljes képernyő",
+ "Non-Fullscreen": "Normál méret",
+ "Mute": "Némítás",
+ "Unmuted": "Némítás kikapcsolva",
+ "Playback Rate": "Lejátszási sebesség",
+ "Subtitles": "Feliratok",
+ "subtitles off": "Feliratok kikapcsolva",
+ "Captions": "Magyarázó szöveg",
+ "captions off": "Magyarázó szöveg kikapcsolva",
+ "Chapters": "Fejezetek",
+ "You aborted the video playback": "Leállította a lejátszást",
+ "A network error caused the video download to fail part-way.": "Hálózati hiba miatt a videó részlegesen töltődött le.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "A videó nem tölthető be hálózati vagy kiszolgálói hiba miatt, vagy a formátuma nem támogatott.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "A lejátszás adatsérülés miatt leállt, vagy a videó egyes tulajdonságait a böngészője nem támogatja.",
+ "No compatible source was found for this video.": "Nincs kompatibilis forrás ehhez a videóhoz."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/it.js b/js/video-js/lang/it.js
new file mode 100644
index 0000000..1f64030
--- /dev/null
+++ b/js/video-js/lang/it.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("it",{
+ "Play": "Play",
+ "Pause": "Pausa",
+ "Current Time": "Orario attuale",
+ "Duration Time": "Durata",
+ "Remaining Time": "Tempo rimanente",
+ "Stream Type": "Tipo del Streaming",
+ "LIVE": "LIVE",
+ "Loaded": "Caricato",
+ "Progress": "Stato",
+ "Fullscreen": "Schermo intero",
+ "Non-Fullscreen": "Chiudi schermo intero",
+ "Mute": "Muto",
+ "Unmuted": "Audio",
+ "Playback Rate": "Tasso di riproduzione",
+ "Subtitles": "Sottotitoli",
+ "subtitles off": "Senza sottotitoli",
+ "Captions": "Sottotitoli non udenti",
+ "captions off": "Senza sottotitoli non udenti",
+ "Chapters": "Capitolo",
+ "You aborted the video playback": "La riproduzione del filmato è stata interrotta.",
+ "A network error caused the video download to fail part-way.": "Il download del filmato è stato interrotto a causa di un problema rete.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Il filmato non può essere caricato a causa di un errore nel server o nella rete o perché il formato non viene supportato.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La riproduzione del filmato è stata interrotta a causa di un file danneggiato o per l’utilizzo di impostazioni non supportate dal browser.",
+ "No compatible source was found for this video.": "Non ci sono fonti compatibili per questo filmato."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/ja.js b/js/video-js/lang/ja.js
new file mode 100644
index 0000000..578383b
--- /dev/null
+++ b/js/video-js/lang/ja.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("ja",{
+ "Play": "再生",
+ "Pause": "一時停止",
+ "Current Time": "現在の時間",
+ "Duration Time": "長さ",
+ "Remaining Time": "残りの時間",
+ "Stream Type": "ストリームの種類",
+ "LIVE": "ライブ",
+ "Loaded": "ロード済み",
+ "Progress": "進行状況",
+ "Fullscreen": "フルスクリーン",
+ "Non-Fullscreen": "フルスクリーン以外",
+ "Mute": "ミュート",
+ "Unmuted": "ミュート解除",
+ "Playback Rate": "再生レート",
+ "Subtitles": "サブタイトル",
+ "subtitles off": "サブタイトル オフ",
+ "Captions": "キャプション",
+ "captions off": "キャプション オフ",
+ "Chapters": "チャプター",
+ "You aborted the video playback": "動画再生を中止しました",
+ "A network error caused the video download to fail part-way.": "ネットワーク エラーにより動画のダウンロードが途中で失敗しました",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "サーバーまたはネットワークのエラー、またはフォーマットがサポートされていないため、動画をロードできませんでした",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "破損の問題、またはお使いのブラウザがサポートしていない機能が動画に使用されていたため、動画の再生が中止されました",
+ "No compatible source was found for this video.": "この動画に対して互換性のあるソースが見つかりませんでした"
+});
\ No newline at end of file
diff --git a/js/video-js/lang/ko.js b/js/video-js/lang/ko.js
new file mode 100644
index 0000000..a794961
--- /dev/null
+++ b/js/video-js/lang/ko.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("ko",{
+ "Play": "재생",
+ "Pause": "일시중지",
+ "Current Time": "현재 시간",
+ "Duration Time": "지정 기간",
+ "Remaining Time": "남은 시간",
+ "Stream Type": "스트리밍 유형",
+ "LIVE": "라이브",
+ "Loaded": "로드됨",
+ "Progress": "진행",
+ "Fullscreen": "전체 화면",
+ "Non-Fullscreen": "전체 화면 해제",
+ "Mute": "음소거",
+ "Unmuted": "음소거 해제",
+ "Playback Rate": "재생 비율",
+ "Subtitles": "서브타이틀",
+ "subtitles off": "서브타이틀 끄기",
+ "Captions": "자막",
+ "captions off": "자막 끄기",
+ "Chapters": "챕터",
+ "You aborted the video playback": "비디오 재생을 취소했습니다.",
+ "A network error caused the video download to fail part-way.": "네트워크 오류로 인하여 비디오 일부를 다운로드하지 못 했습니다.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "비디오를 로드할 수 없습니다. 서버 혹은 네트워크 오류 때문이거나 지원되지 않는 형식 때문일 수 있습니다.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "비디오 재생이 취소됐습니다. 비디오가 손상되었거나 비디오가 사용하는 기능을 브라우저에서 지원하지 않는 것 같습니다.",
+ "No compatible source was found for this video.": "비디오에 호환되지 않는 소스가 있습니다."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/nl.js b/js/video-js/lang/nl.js
new file mode 100644
index 0000000..a849b77
--- /dev/null
+++ b/js/video-js/lang/nl.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("nl",{
+ "Play": "Afspelen",
+ "Pause": "Pauze",
+ "Current Time": "Huidige Tijd",
+ "Duration Time": "Looptijd",
+ "Remaining Time": "Resterende Tijd",
+ "Stream Type": "Stream Type",
+ "LIVE": "LIVE",
+ "Loaded": "Geladen",
+ "Progress": "Status",
+ "Fullscreen": "Volledig scherm",
+ "Non-Fullscreen": "Geen volledig scherm",
+ "Mute": "Geluid Uit",
+ "Unmuted": "Geluid Aan",
+ "Playback Rate": "Weergave Rate",
+ "Subtitles": "Ondertiteling",
+ "subtitles off": "Ondertiteling uit",
+ "Captions": "Onderschriften",
+ "captions off": "Onderschriften uit",
+ "Chapters": "Hoofdstukken",
+ "You aborted the video playback": "Je hebt de video weergave afgebroken.",
+ "A network error caused the video download to fail part-way.": "De video download is mislukt door een netwerkfout.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "De video kon niet worden geladen, veroorzaakt door een server of netwerkfout of het formaat word niet ondersteund.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "De video weergave is afgebroken omdat deze beschadigd is of de video gebruikt functionaliteit die niet door je browser word ondersteund.",
+ "No compatible source was found for this video.": "Voor deze video is geen ondersteunde bron gevonden."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/pt-BR.js b/js/video-js/lang/pt-BR.js
new file mode 100644
index 0000000..d1e2052
--- /dev/null
+++ b/js/video-js/lang/pt-BR.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("pt-BR",{
+ "Play": "Tocar",
+ "Pause": "Pause",
+ "Current Time": "Tempo",
+ "Duration Time": "Duração",
+ "Remaining Time": "Tempo Restante",
+ "Stream Type": "Tipo de Stream",
+ "LIVE": "AO VIVO",
+ "Loaded": "Carregado",
+ "Progress": "Progressão",
+ "Fullscreen": "Tela Cheia",
+ "Non-Fullscreen": "Tela Normal",
+ "Mute": "Mudo",
+ "Unmuted": "Habilitar Som",
+ "Playback Rate": "Velocidade",
+ "Subtitles": "Legendas",
+ "subtitles off": "Sem Legendas",
+ "Captions": "Anotações",
+ "captions off": "Sem Anotações",
+ "Chapters": "Capítulos",
+ "You aborted the video playback": "Você parou a execução de vídeo.",
+ "A network error caused the video download to fail part-way.": "Um erro na rede fez o vídeo parar parcialmente.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "O vídeo não pode ser carregado, ou porque houve um problema com sua rede ou pelo formato do vídeo não ser suportado.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "A Execução foi interrompida por um problema com o vídeo ou por seu navegador não dar suporte ao seu formato.",
+ "No compatible source was found for this video.": "Não foi encontrada fonte de vídeo compatível."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/ru.js b/js/video-js/lang/ru.js
new file mode 100644
index 0000000..a0f3255
--- /dev/null
+++ b/js/video-js/lang/ru.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("ru",{
+ "Play": "Воспроизвести",
+ "Pause": "Приостановить",
+ "Current Time": "Текущее время",
+ "Duration Time": "Продолжительность",
+ "Remaining Time": "Оставшееся время",
+ "Stream Type": "Тип потока",
+ "LIVE": "ОНЛАЙН",
+ "Loaded": "Загрузка",
+ "Progress": "Прогресс",
+ "Fullscreen": "Полноэкранный режим",
+ "Non-Fullscreen": "Неполноэкранный режим",
+ "Mute": "Без звука",
+ "Unmuted": "Со звуком",
+ "Playback Rate": "Скорость воспроизведения",
+ "Subtitles": "Субтитры",
+ "subtitles off": "Субтитры выкл.",
+ "Captions": "Подписи",
+ "captions off": "Подписи выкл.",
+ "Chapters": "Главы",
+ "You aborted the video playback": "Вы прервали воспроизведение видео",
+ "A network error caused the video download to fail part-way.": "Ошибка сети вызвала сбой во время загрузки видео.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Невозможно загрузить видео из-за сетевого или серверного сбоя либо формат не поддерживается.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Воспроизведение видео было приостановлено из-за повреждения либо в связи с тем, что видео использует функции, неподдерживаемые вашим браузером.",
+ "No compatible source was found for this video.": "Совместимые источники для этого видео отсутствуют."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/tr.js b/js/video-js/lang/tr.js
new file mode 100644
index 0000000..d370fc1
--- /dev/null
+++ b/js/video-js/lang/tr.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("tr",{
+ "Play": "Oynat",
+ "Pause": "Duraklat",
+ "Current Time": "Süre",
+ "Duration Time": "Toplam Süre",
+ "Remaining Time": "Kalan Süre",
+ "Stream Type": "Yayın Tipi",
+ "LIVE": "CANLI",
+ "Loaded": "Yüklendi",
+ "Progress": "Yükleniyor",
+ "Fullscreen": "Tam Ekran",
+ "Non-Fullscreen": "Küçük Ekran",
+ "Mute": "Ses Kapa",
+ "Unmuted": "Ses Aç",
+ "Playback Rate": "Oynatma Hızı",
+ "Subtitles": "Altyazı",
+ "subtitles off": "Altyazı Kapat",
+ "Captions": "Ek Açıklamalar",
+ "captions off": "Ek Açıklamalar Kapalı",
+ "Chapters": "Bölümler",
+ "You aborted the video playback": "Video oynatmayı iptal ettiniz",
+ "A network error caused the video download to fail part-way.": "Video indirilirken bağlantı sorunu oluştu.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Video oynatılamadı, Ağ yada sunucu hattası veya belirtilen format desteklenmiyor.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Tarayıcınız desteklemediği için videoda hata oluştu.",
+ "No compatible source was found for this video.": "Video için kaynak bulunamadı."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/uk.js b/js/video-js/lang/uk.js
new file mode 100644
index 0000000..96c4226
--- /dev/null
+++ b/js/video-js/lang/uk.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("uk",{
+ "Play": "Відтворити",
+ "Pause": "Призупинити",
+ "Current Time": "Поточний час",
+ "Duration Time": "Тривалість",
+ "Remaining Time": "Час, що залишився",
+ "Stream Type": "Тип потоку",
+ "LIVE": "НАЖИВО",
+ "Loaded": "Завантаження",
+ "Progress": "Прогрес",
+ "Fullscreen": "Повноекранний режим",
+ "Non-Fullscreen": "Неповноекранний режим",
+ "Mute": "Без звуку",
+ "Unmuted": "Зі звуком",
+ "Playback Rate": "Швидкість відтворення",
+ "Subtitles": "Субтитри",
+ "subtitles off": "Без субтитрів",
+ "Captions": "Підписи",
+ "captions off": "Без підписів",
+ "Chapters": "Розділи",
+ "You aborted the video playback": "Ви припинили відтворення відео",
+ "A network error caused the video download to fail part-way.": "Помилка мережі викликала збій під час завантаження відео.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Неможливо завантажити відео через мережевий чи серверний збій або формат не підтримується.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Відтворення відео було припинено через пошкодження або у зв'язку з тим, що відео використовує функції, які не підтримуються вашим браузером.",
+ "No compatible source was found for this video.": "Сумісні джерела для цього відео відсутні."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/vi.js b/js/video-js/lang/vi.js
new file mode 100644
index 0000000..6e126d7
--- /dev/null
+++ b/js/video-js/lang/vi.js
@@ -0,0 +1,26 @@
+videojs.addLanguage("vi",{
+ "Play": "Phát",
+ "Pause": "Tạm dừng",
+ "Current Time": "Thời gian hiện tại",
+ "Duration Time": "Độ dài",
+ "Remaining Time": "Thời gian còn lại",
+ "Stream Type": "Kiểu Stream",
+ "LIVE": "TRỰC TIẾP",
+ "Loaded": "Đã tải",
+ "Progress": "Tiến trình",
+ "Fullscreen": "Toàn màn hình",
+ "Non-Fullscreen": "Thoát toàn màn hình",
+ "Mute": "Tắt tiếng",
+ "Unmuted": "Bật âm thanh",
+ "Playback Rate": "Tốc độ phát",
+ "Subtitles": "Phụ đề",
+ "subtitles off": "Tắt phụ đề",
+ "Captions": "Chú thích",
+ "captions off": "Tắt chú thích",
+ "Chapters": "Chương",
+ "You aborted the video playback": "Bạn đã hủy việc phát video.",
+ "A network error caused the video download to fail part-way.": "Một lỗi mạng dẫn đến việc tải video bị lỗi.",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Video không tải được, mạng hay server có lỗi hoặc định dạng không được hỗ trợ.",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Phát video đã bị hủy do một sai lỗi hoặc video sử dụng những tính năng trình duyệt không hỗ trợ.",
+ "No compatible source was found for this video.": "Không có nguồn tương thích cho video này."
+});
\ No newline at end of file
diff --git a/js/video-js/lang/zh-CN.js b/js/video-js/lang/zh-CN.js
new file mode 100644
index 0000000..fc8b72c
--- /dev/null
+++ b/js/video-js/lang/zh-CN.js
@@ -0,0 +1,27 @@
+videojs.addLanguage("zh-CN",{
+ "Play": "播放",
+ "Pause": "暂停",
+ "Current Time": "当前时间",
+ "Duration Time": "时长",
+ "Remaining Time": "剩余时间",
+ "Stream Type": "媒体流类型",
+ "LIVE": "直播",
+ "Loaded": "加载完毕",
+ "Progress": "进度",
+ "Fullscreen": "全屏",
+ "Non-Fullscreen": "退出全屏",
+ "Mute": "静音",
+ "Unmuted": "取消静音",
+ "Playback Rate": "播放码率",
+ "Subtitles": "字幕",
+ "subtitles off": "字幕关闭",
+ "Captions": "内嵌字幕",
+ "captions off": "内嵌字幕关闭",
+ "Chapters": "节目段落",
+ "You aborted the video playback": "视频播放被终止",
+ "A network error caused the video download to fail part-way.": "网络错误导致视频下载中途失败。",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "视频因格式不支持或者服务器或网络的问题无法加载。",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "由于视频文件损坏或是该视频使用了你的浏览器不支持的功能,播放终止。",
+ "No compatible source was found for this video.": "无法找到此视频兼容的源。",
+ "The video is encrypted and we do not have the keys to decrypt it.": "视频已加密,无法解密。"
+});
\ No newline at end of file
diff --git a/js/video-js/lang/zh-TW.js b/js/video-js/lang/zh-TW.js
new file mode 100644
index 0000000..6e3736d
--- /dev/null
+++ b/js/video-js/lang/zh-TW.js
@@ -0,0 +1,27 @@
+videojs.addLanguage("zh-TW",{
+ "Play": "播放",
+ "Pause": "暫停",
+ "Current Time": "目前時間",
+ "Duration Time": "總共時間",
+ "Remaining Time": "剩餘時間",
+ "Stream Type": "串流類型",
+ "LIVE": "直播",
+ "Loaded": "載入完畢",
+ "Progress": "進度",
+ "Fullscreen": "全螢幕",
+ "Non-Fullscreen": "退出全螢幕",
+ "Mute": "靜音",
+ "Unmuted": "取消靜音",
+ "Playback Rate": " 播放速率",
+ "Subtitles": "字幕",
+ "subtitles off": "關閉字幕",
+ "Captions": "內嵌字幕",
+ "captions off": "關閉內嵌字幕",
+ "Chapters": "章節",
+ "You aborted the video playback": "影片播放已終止",
+ "A network error caused the video download to fail part-way.": "網路錯誤導致影片下載失敗。",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "影片因格式不支援或者伺服器或網路的問題無法載入。",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "由於影片檔案損毀或是該影片使用了您的瀏覽器不支援的功能,播放終止。",
+ "No compatible source was found for this video.": "無法找到相容此影片的來源。",
+ "The video is encrypted and we do not have the keys to decrypt it.": "影片已加密,無法解密。"
+});
\ No newline at end of file
diff --git a/js/video-js/lang/zh.js b/js/video-js/lang/zh.js
new file mode 100644
index 0000000..604cf9e
--- /dev/null
+++ b/js/video-js/lang/zh.js
@@ -0,0 +1,27 @@
+videojs.addLanguage("zh",{
+ "Play": "播放",
+ "Pause": "暂停",
+ "Current Time": "当前时间",
+ "Duration Time": "时长",
+ "Remaining Time": "剩余时间",
+ "Stream Type": "媒体流类型",
+ "LIVE": "直播",
+ "Loaded": "加载完毕",
+ "Progress": "进度",
+ "Fullscreen": "全屏",
+ "Non-Fullscreen": "退出全屏",
+ "Mute": "静音",
+ "Unmuted": "取消静音",
+ "Playback Rate": "播放码率",
+ "Subtitles": "字幕",
+ "subtitles off": "字幕关闭",
+ "Captions": "内嵌字幕",
+ "captions off": "内嵌字幕关闭",
+ "Chapters": "节目段落",
+ "You aborted the video playback": "视频播放被终止",
+ "A network error caused the video download to fail part-way.": "网络错误导致视频下载中途失败。",
+ "The video could not be loaded, either because the server or network failed or because the format is not supported.": "视频因格式不支持或者服务器或网络的问题无法加载。",
+ "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "由于视频文件损坏或是该视频使用了你的浏览器不支持的功能,播放终止。",
+ "No compatible source was found for this video.": "无法找到此视频兼容的源。",
+ "The video is encrypted and we do not have the keys to decrypt it.": "视频已加密,无法解密。"
+});
\ No newline at end of file
diff --git a/js/video-js/video-js.css b/js/video-js/video-js.css
new file mode 100644
index 0000000..24dbd73
--- /dev/null
+++ b/js/video-js/video-js.css
@@ -0,0 +1,1010 @@
+/*!
+Video.js Default Styles (http://videojs.com)
+Version 4.12.1
+Create your own skin at http://designer.videojs.com
+*/
+/* SKIN
+================================================================================
+The main class name for all skin-specific styles. To make your own skin,
+replace all occurrences of 'vjs-default-skin' with a new name. Then add your new
+skin name to your video tag instead of the default skin.
+e.g.
+*/
+.vjs-default-skin {
+ color: #cccccc;
+}
+/* Custom Icon Font
+--------------------------------------------------------------------------------
+The control icons are from a custom font. Each icon corresponds to a character
+(e.g. "\e001"). Font icons allow for easy scaling and coloring of icons.
+*/
+@font-face {
+ font-family: 'VideoJS';
+ src: url('font/vjs.eot');
+ src: url('font/vjs.eot?#iefix') format('embedded-opentype'), url('font/vjs.woff') format('woff'), url('font/vjs.ttf') format('truetype'), url('font/vjs.svg#icomoon') format('svg');
+ font-weight: normal;
+ font-style: normal;
+}
+/* Base UI Component Classes
+--------------------------------------------------------------------------------
+*/
+/* Slider - used for Volume bar and Seek bar */
+.vjs-default-skin .vjs-slider {
+ /* Replace browser focus highlight with handle highlight */
+ outline: 0;
+ position: relative;
+ cursor: pointer;
+ padding: 0;
+ /* background-color-with-alpha */
+ background-color: #333333;
+ background-color: rgba(51, 51, 51, 0.9);
+}
+.vjs-default-skin .vjs-slider:focus {
+ /* box-shadow */
+ -webkit-box-shadow: 0 0 2em #ffffff;
+ -moz-box-shadow: 0 0 2em #ffffff;
+ box-shadow: 0 0 2em #ffffff;
+}
+.vjs-default-skin .vjs-slider-handle {
+ position: absolute;
+ /* Needed for IE6 */
+ left: 0;
+ top: 0;
+}
+.vjs-default-skin .vjs-slider-handle:before {
+ content: "\e009";
+ font-family: VideoJS;
+ font-size: 1em;
+ line-height: 1;
+ text-align: center;
+ text-shadow: 0em 0em 1em #fff;
+ position: absolute;
+ top: 0;
+ left: 0;
+ /* Rotate the square icon to make a diamond */
+ /* transform */
+ -webkit-transform: rotate(-45deg);
+ -moz-transform: rotate(-45deg);
+ -ms-transform: rotate(-45deg);
+ -o-transform: rotate(-45deg);
+ transform: rotate(-45deg);
+}
+/* Control Bar
+--------------------------------------------------------------------------------
+The default control bar that is a container for most of the controls.
+*/
+.vjs-default-skin .vjs-control-bar {
+ /* Start hidden */
+ display: none;
+ position: absolute;
+ /* Place control bar at the bottom of the player box/video.
+ If you want more margin below the control bar, add more height. */
+ bottom: 0;
+ /* Use left/right to stretch to 100% width of player div */
+ left: 0;
+ right: 0;
+ /* Height includes any margin you want above or below control items */
+ height: 3.0em;
+ /* background-color-with-alpha */
+ background-color: #07141e;
+ background-color: rgba(7, 20, 30, 0.7);
+}
+/* Show the control bar only once the video has started playing */
+.vjs-default-skin.vjs-has-started .vjs-control-bar {
+ display: block;
+ /* Visibility needed to make sure things hide in older browsers too. */
+
+ visibility: visible;
+ opacity: 1;
+ /* transition */
+ -webkit-transition: visibility 0.1s, opacity 0.1s;
+ -moz-transition: visibility 0.1s, opacity 0.1s;
+ -o-transition: visibility 0.1s, opacity 0.1s;
+ transition: visibility 0.1s, opacity 0.1s;
+}
+/* Hide the control bar when the video is playing and the user is inactive */
+.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
+ display: block;
+ visibility: hidden;
+ opacity: 0;
+ /* transition */
+ -webkit-transition: visibility 1s, opacity 1s;
+ -moz-transition: visibility 1s, opacity 1s;
+ -o-transition: visibility 1s, opacity 1s;
+ transition: visibility 1s, opacity 1s;
+}
+.vjs-default-skin.vjs-controls-disabled .vjs-control-bar {
+ display: none;
+}
+.vjs-default-skin.vjs-using-native-controls .vjs-control-bar {
+ display: none;
+}
+/* The control bar shouldn't show after an error */
+.vjs-default-skin.vjs-error .vjs-control-bar {
+ display: none;
+}
+/* Don't hide the control bar if it's audio */
+.vjs-audio.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
+ opacity: 1;
+ visibility: visible;
+}
+/* IE8 is flakey with fonts, and you have to change the actual content to force
+fonts to show/hide properly.
+ - "\9" IE8 hack didn't work for this
+ - Found in XP IE8 from http://modern.ie. Does not show up in "IE8 mode" in IE9
+*/
+@media \0screen {
+ .vjs-default-skin.vjs-user-inactive.vjs-playing .vjs-control-bar :before {
+ content: "";
+ }
+}
+/* General styles for individual controls. */
+.vjs-default-skin .vjs-control {
+ outline: none;
+ position: relative;
+ float: left;
+ text-align: center;
+ margin: 0;
+ padding: 0;
+ height: 3.0em;
+ width: 4em;
+}
+/* Font button icons */
+.vjs-default-skin .vjs-control:before {
+ font-family: VideoJS;
+ font-size: 1.5em;
+ line-height: 2;
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ text-align: center;
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
+}
+/* Replacement for focus outline */
+.vjs-default-skin .vjs-control:focus:before,
+.vjs-default-skin .vjs-control:hover:before {
+ text-shadow: 0em 0em 1em #ffffff;
+}
+.vjs-default-skin .vjs-control:focus {
+ /* outline: 0; */
+ /* keyboard-only users cannot see the focus on several of the UI elements when
+ this is set to 0 */
+
+}
+/* Hide control text visually, but have it available for screenreaders */
+.vjs-default-skin .vjs-control-text {
+ /* hide-visually */
+ border: 0;
+ clip: rect(0 0 0 0);
+ height: 1px;
+ margin: -1px;
+ overflow: hidden;
+ padding: 0;
+ position: absolute;
+ width: 1px;
+}
+/* Play/Pause
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-play-control {
+ width: 5em;
+ cursor: pointer;
+}
+.vjs-default-skin .vjs-play-control:before {
+ content: "\e001";
+}
+.vjs-default-skin.vjs-playing .vjs-play-control:before {
+ content: "\e002";
+}
+/* Playback toggle
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-playback-rate .vjs-playback-rate-value {
+ font-size: 1.5em;
+ line-height: 2;
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ text-align: center;
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
+}
+.vjs-default-skin .vjs-playback-rate.vjs-menu-button .vjs-menu .vjs-menu-content {
+ width: 4em;
+ left: -2em;
+ list-style: none;
+}
+/* Volume/Mute
+-------------------------------------------------------------------------------- */
+.vjs-default-skin .vjs-mute-control,
+.vjs-default-skin .vjs-volume-menu-button {
+ cursor: pointer;
+ float: right;
+}
+.vjs-default-skin .vjs-mute-control:before,
+.vjs-default-skin .vjs-volume-menu-button:before {
+ content: "\e006";
+}
+.vjs-default-skin .vjs-mute-control.vjs-vol-0:before,
+.vjs-default-skin .vjs-volume-menu-button.vjs-vol-0:before {
+ content: "\e003";
+}
+.vjs-default-skin .vjs-mute-control.vjs-vol-1:before,
+.vjs-default-skin .vjs-volume-menu-button.vjs-vol-1:before {
+ content: "\e004";
+}
+.vjs-default-skin .vjs-mute-control.vjs-vol-2:before,
+.vjs-default-skin .vjs-volume-menu-button.vjs-vol-2:before {
+ content: "\e005";
+}
+.vjs-default-skin .vjs-volume-control {
+ width: 5em;
+ float: right;
+}
+.vjs-default-skin .vjs-volume-bar {
+ width: 5em;
+ height: 0.6em;
+ margin: 1.1em auto 0;
+}
+.vjs-default-skin .vjs-volume-level {
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 0.5em;
+ /* assuming volume starts at 1.0 */
+
+ width: 100%;
+ background: #66a8cc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat;
+}
+.vjs-default-skin .vjs-volume-bar .vjs-volume-handle {
+ width: 0.5em;
+ height: 0.5em;
+ /* Assumes volume starts at 1.0. If you change the size of the
+ handle relative to the volume bar, you'll need to update this value
+ too. */
+
+ left: 4.5em;
+}
+.vjs-default-skin .vjs-volume-handle:before {
+ font-size: 0.9em;
+ top: -0.2em;
+ left: -0.2em;
+ width: 1em;
+ height: 1em;
+}
+/* The volume menu button is like menu buttons (captions/subtitles) but works
+ a little differently. It needs to be possible to tab to the volume slider
+ without hitting space bar on the menu button. To do this we're not using
+ display:none to hide the slider menu by default, and instead setting the
+ width and height to zero. */
+.vjs-default-skin .vjs-volume-menu-button .vjs-menu {
+ display: block;
+ width: 0;
+ height: 0;
+ border-top-color: transparent;
+}
+.vjs-default-skin .vjs-volume-menu-button .vjs-menu .vjs-menu-content {
+ height: 0;
+ width: 0;
+}
+.vjs-default-skin .vjs-volume-menu-button:hover .vjs-menu,
+.vjs-default-skin .vjs-volume-menu-button .vjs-menu.vjs-lock-showing {
+ border-top-color: rgba(7, 40, 50, 0.5);
+ /* Same as ul background */
+
+}
+.vjs-default-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-menu-content,
+.vjs-default-skin .vjs-volume-menu-button .vjs-menu.vjs-lock-showing .vjs-menu-content {
+ height: 2.9em;
+ width: 10em;
+}
+/* Progress
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-progress-control {
+ position: absolute;
+ left: 0;
+ right: 0;
+ width: auto;
+ font-size: 0.3em;
+ height: 1em;
+ /* Set above the rest of the controls. */
+ top: -1em;
+ /* Shrink the bar slower than it grows. */
+ /* transition */
+ -webkit-transition: all 0.4s;
+ -moz-transition: all 0.4s;
+ -o-transition: all 0.4s;
+ transition: all 0.4s;
+}
+/* On hover, make the progress bar grow to something that's more clickable.
+ This simply changes the overall font for the progress bar, and this
+ updates both the em-based widths and heights, as wells as the icon font */
+.vjs-default-skin:hover .vjs-progress-control {
+ font-size: .9em;
+ /* Even though we're not changing the top/height, we need to include them in
+ the transition so they're handled correctly. */
+
+ /* transition */
+ -webkit-transition: all 0.2s;
+ -moz-transition: all 0.2s;
+ -o-transition: all 0.2s;
+ transition: all 0.2s;
+}
+/* Box containing play and load progresses. Also acts as seek scrubber. */
+.vjs-default-skin .vjs-progress-holder {
+ height: 100%;
+}
+/* Progress Bars */
+.vjs-default-skin .vjs-progress-holder .vjs-play-progress,
+.vjs-default-skin .vjs-progress-holder .vjs-load-progress,
+.vjs-default-skin .vjs-progress-holder .vjs-load-progress div {
+ position: absolute;
+ display: block;
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ /* updated by javascript during playback */
+
+ width: 0;
+ /* Needed for IE6 */
+ left: 0;
+ top: 0;
+}
+.vjs-default-skin .vjs-play-progress {
+ /*
+ Using a data URI to create the white diagonal lines with a transparent
+ background. Surprisingly works in IE8.
+ Created using http://www.patternify.com
+ Changing the first color value will change the bar color.
+ Also using a paralax effect to make the lines move backwards.
+ The -50% left position makes that happen.
+ */
+
+ background: #66a8cc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat;
+}
+.vjs-default-skin .vjs-load-progress {
+ background: #646464 /* IE8- Fallback */;
+ background: rgba(255, 255, 255, 0.2);
+}
+/* there are child elements of the load progress bar that represent the
+ specific time ranges that have been buffered */
+.vjs-default-skin .vjs-load-progress div {
+ background: #787878 /* IE8- Fallback */;
+ background: rgba(255, 255, 255, 0.1);
+}
+.vjs-default-skin .vjs-seek-handle {
+ width: 1.5em;
+ height: 100%;
+}
+.vjs-default-skin .vjs-seek-handle:before {
+ padding-top: 0.1em /* Minor adjustment */;
+}
+/* Live Mode
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin.vjs-live .vjs-time-controls,
+.vjs-default-skin.vjs-live .vjs-time-divider,
+.vjs-default-skin.vjs-live .vjs-progress-control {
+ display: none;
+}
+.vjs-default-skin.vjs-live .vjs-live-display {
+ display: block;
+}
+/* Live Display
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-live-display {
+ display: none;
+ font-size: 1em;
+ line-height: 3em;
+}
+/* Time Display
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-time-controls {
+ font-size: 1em;
+ /* Align vertically by making the line height the same as the control bar */
+ line-height: 3em;
+}
+.vjs-default-skin .vjs-current-time {
+ float: left;
+}
+.vjs-default-skin .vjs-duration {
+ float: left;
+}
+/* Remaining time is in the HTML, but not included in default design */
+.vjs-default-skin .vjs-remaining-time {
+ display: none;
+ float: left;
+}
+.vjs-time-divider {
+ float: left;
+ line-height: 3em;
+}
+/* Fullscreen
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-fullscreen-control {
+ width: 3.8em;
+ cursor: pointer;
+ float: right;
+}
+.vjs-default-skin .vjs-fullscreen-control:before {
+ content: "\e000";
+}
+/* Switch to the exit icon when the player is in fullscreen */
+.vjs-default-skin.vjs-fullscreen .vjs-fullscreen-control:before {
+ content: "\e00b";
+}
+/* Big Play Button (play button at start)
+--------------------------------------------------------------------------------
+Positioning of the play button in the center or other corners can be done more
+easily in the skin designer. http://designer.videojs.com/
+*/
+.vjs-default-skin .vjs-big-play-button {
+ left: 0.5em;
+ top: 0.5em;
+ font-size: 3em;
+ display: block;
+ z-index: 2;
+ position: absolute;
+ width: 4em;
+ height: 2.6em;
+ text-align: center;
+ vertical-align: middle;
+ cursor: pointer;
+ opacity: 1;
+ /* Need a slightly gray bg so it can be seen on black backgrounds */
+ /* background-color-with-alpha */
+ background-color: #07141e;
+ background-color: rgba(7, 20, 30, 0.7);
+ border: 0.1em solid #3b4249;
+ /* border-radius */
+ -webkit-border-radius: 0.8em;
+ -moz-border-radius: 0.8em;
+ border-radius: 0.8em;
+ /* box-shadow */
+ -webkit-box-shadow: 0px 0px 1em rgba(255, 255, 255, 0.25);
+ -moz-box-shadow: 0px 0px 1em rgba(255, 255, 255, 0.25);
+ box-shadow: 0px 0px 1em rgba(255, 255, 255, 0.25);
+ /* transition */
+ -webkit-transition: all 0.4s;
+ -moz-transition: all 0.4s;
+ -o-transition: all 0.4s;
+ transition: all 0.4s;
+}
+/* Optionally center */
+.vjs-default-skin.vjs-big-play-centered .vjs-big-play-button {
+ /* Center it horizontally */
+ left: 50%;
+ margin-left: -2.1em;
+ /* Center it vertically */
+ top: 50%;
+ margin-top: -1.4000000000000001em;
+}
+/* Hide if controls are disabled */
+.vjs-default-skin.vjs-controls-disabled .vjs-big-play-button {
+ display: none;
+}
+/* Hide when video starts playing */
+.vjs-default-skin.vjs-has-started .vjs-big-play-button {
+ display: none;
+}
+/* Hide on mobile devices. Remove when we stop using native controls
+ by default on mobile */
+.vjs-default-skin.vjs-using-native-controls .vjs-big-play-button {
+ display: none;
+}
+.vjs-default-skin:hover .vjs-big-play-button,
+.vjs-default-skin .vjs-big-play-button:focus {
+ outline: 0;
+ border-color: #fff;
+ /* IE8 needs a non-glow hover state */
+ background-color: #505050;
+ background-color: rgba(50, 50, 50, 0.75);
+ /* box-shadow */
+ -webkit-box-shadow: 0 0 3em #ffffff;
+ -moz-box-shadow: 0 0 3em #ffffff;
+ box-shadow: 0 0 3em #ffffff;
+ /* transition */
+ -webkit-transition: all 0s;
+ -moz-transition: all 0s;
+ -o-transition: all 0s;
+ transition: all 0s;
+}
+.vjs-default-skin .vjs-big-play-button:before {
+ content: "\e001";
+ font-family: VideoJS;
+ /* In order to center the play icon vertically we need to set the line height
+ to the same as the button height */
+
+ line-height: 2.6em;
+ text-shadow: 0.05em 0.05em 0.1em #000;
+ text-align: center /* Needed for IE8 */;
+ position: absolute;
+ left: 0;
+ width: 100%;
+ height: 100%;
+}
+.vjs-error .vjs-big-play-button {
+ display: none;
+}
+/* Error Display
+--------------------------------------------------------------------------------
+*/
+.vjs-error-display {
+ display: none;
+}
+.vjs-error .vjs-error-display {
+ display: block;
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+}
+.vjs-error .vjs-error-display:before {
+ content: 'X';
+ font-family: Arial;
+ font-size: 4em;
+ color: #666666;
+ /* In order to center the play icon vertically we need to set the line height
+ to the same as the button height */
+
+ line-height: 1;
+ text-shadow: 0.05em 0.05em 0.1em #000;
+ text-align: center /* Needed for IE8 */;
+ vertical-align: middle;
+ position: absolute;
+ left: 0;
+ top: 50%;
+ margin-top: -0.5em;
+ width: 100%;
+}
+.vjs-error-display div {
+ position: absolute;
+ bottom: 1em;
+ right: 0;
+ left: 0;
+ font-size: 1.4em;
+ text-align: center;
+ padding: 3px;
+ background: #000000;
+ background: rgba(0, 0, 0, 0.5);
+}
+.vjs-error-display a,
+.vjs-error-display a:visited {
+ color: #F4A460;
+}
+/* Loading Spinner
+--------------------------------------------------------------------------------
+*/
+.vjs-loading-spinner {
+ /* Should be hidden by default */
+ display: none;
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ font-size: 4em;
+ line-height: 1;
+ width: 1em;
+ height: 1em;
+ margin-left: -0.5em;
+ margin-top: -0.5em;
+ opacity: 0.75;
+}
+/* Show the spinner when waiting for data and seeking to a new time */
+.vjs-waiting .vjs-loading-spinner,
+.vjs-seeking .vjs-loading-spinner {
+ display: block;
+ /* only animate when showing because it can be processor heavy */
+ /* animation */
+ -webkit-animation: spin 1.5s infinite linear;
+ -moz-animation: spin 1.5s infinite linear;
+ -o-animation: spin 1.5s infinite linear;
+ animation: spin 1.5s infinite linear;
+}
+/* Errors are unrecoverable without user interaction so hide the spinner */
+.vjs-error .vjs-loading-spinner {
+ display: none;
+ /* ensure animation doesn't continue while hidden */
+ /* animation */
+ -webkit-animation: none;
+ -moz-animation: none;
+ -o-animation: none;
+ animation: none;
+}
+.vjs-default-skin .vjs-loading-spinner:before {
+ content: "\e01e";
+ font-family: VideoJS;
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 1em;
+ height: 1em;
+ text-align: center;
+ text-shadow: 0em 0em 0.1em #000;
+}
+@-moz-keyframes spin {
+ 0% {
+ -moz-transform: rotate(0deg);
+ }
+ 100% {
+ -moz-transform: rotate(359deg);
+ }
+}
+@-webkit-keyframes spin {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(359deg);
+ }
+}
+@-o-keyframes spin {
+ 0% {
+ -o-transform: rotate(0deg);
+ }
+ 100% {
+ -o-transform: rotate(359deg);
+ }
+}
+@keyframes spin {
+ 0% {
+ transform: rotate(0deg);
+ }
+ 100% {
+ transform: rotate(359deg);
+ }
+}
+/* Menu Buttons (Captions/Subtitles/etc.)
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-menu-button {
+ float: right;
+ cursor: pointer;
+}
+.vjs-default-skin .vjs-menu {
+ display: none;
+ position: absolute;
+ bottom: 0;
+ left: 0em;
+ /* (Width of vjs-menu - width of button) / 2 */
+
+ width: 0em;
+ height: 0em;
+ margin-bottom: 3em;
+ border-left: 2em solid transparent;
+ border-right: 2em solid transparent;
+ border-top: 1.55em solid #000000;
+ /* Same width top as ul bottom */
+
+ border-top-color: rgba(7, 40, 50, 0.5);
+ /* Same as ul background */
+
+}
+/* Button Pop-up Menu */
+.vjs-default-skin .vjs-menu-button .vjs-menu .vjs-menu-content {
+ display: block;
+ padding: 0;
+ margin: 0;
+ position: absolute;
+ width: 10em;
+ bottom: 1.5em;
+ /* Same bottom as vjs-menu border-top */
+
+ max-height: 15em;
+ overflow: auto;
+ left: -5em;
+ /* Width of menu - width of button / 2 */
+
+ /* background-color-with-alpha */
+ background-color: #07141e;
+ background-color: rgba(7, 20, 30, 0.7);
+ /* box-shadow */
+ -webkit-box-shadow: -0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2);
+ -moz-box-shadow: -0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2);
+ box-shadow: -0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2);
+}
+.vjs-default-skin .vjs-menu-button:hover .vjs-control-content .vjs-menu,
+.vjs-default-skin .vjs-control-content .vjs-menu.vjs-lock-showing {
+ display: block;
+}
+/* prevent menus from opening while scrubbing (FF, IE) */
+.vjs-default-skin.vjs-scrubbing .vjs-menu-button:hover .vjs-control-content .vjs-menu {
+ display: none;
+}
+.vjs-default-skin .vjs-menu-button ul li {
+ list-style: none;
+ margin: 0;
+ padding: 0.3em 0 0.3em 0;
+ line-height: 1.4em;
+ font-size: 1.2em;
+ text-align: center;
+ text-transform: lowercase;
+}
+.vjs-default-skin .vjs-menu-button ul li.vjs-selected {
+ background-color: #000;
+}
+.vjs-default-skin .vjs-menu-button ul li:focus,
+.vjs-default-skin .vjs-menu-button ul li:hover,
+.vjs-default-skin .vjs-menu-button ul li.vjs-selected:focus,
+.vjs-default-skin .vjs-menu-button ul li.vjs-selected:hover {
+ outline: 0;
+ color: #111;
+ /* background-color-with-alpha */
+ background-color: #ffffff;
+ background-color: rgba(255, 255, 255, 0.75);
+ /* box-shadow */
+ -webkit-box-shadow: 0 0 1em #ffffff;
+ -moz-box-shadow: 0 0 1em #ffffff;
+ box-shadow: 0 0 1em #ffffff;
+}
+.vjs-default-skin .vjs-menu-button ul li.vjs-menu-title {
+ text-align: center;
+ text-transform: uppercase;
+ font-size: 1em;
+ line-height: 2em;
+ padding: 0;
+ margin: 0 0 0.3em 0;
+ font-weight: bold;
+ cursor: default;
+}
+/* Subtitles Button */
+.vjs-default-skin .vjs-subtitles-button:before {
+ content: "\e00c";
+}
+/* Captions Button */
+.vjs-default-skin .vjs-captions-button:before {
+ content: "\e008";
+}
+/* Chapters Button */
+.vjs-default-skin .vjs-chapters-button:before {
+ content: "\e00c";
+}
+.vjs-default-skin .vjs-chapters-button.vjs-menu-button .vjs-menu .vjs-menu-content {
+ width: 24em;
+ left: -12em;
+}
+/* Replacement for focus outline */
+.vjs-default-skin .vjs-captions-button:focus .vjs-control-content:before,
+.vjs-default-skin .vjs-captions-button:hover .vjs-control-content:before {
+ /* box-shadow */
+ -webkit-box-shadow: 0 0 1em #ffffff;
+ -moz-box-shadow: 0 0 1em #ffffff;
+ box-shadow: 0 0 1em #ffffff;
+}
+/*
+REQUIRED STYLES (be careful overriding)
+================================================================================
+When loading the player, the video tag is replaced with a DIV,
+that will hold the video tag or object tag for other playback methods.
+The div contains the video playback element (Flash or HTML5) and controls,
+and sets the width and height of the video.
+
+** If you want to add some kind of border/padding (e.g. a frame), or special
+positioning, use another containing element. Otherwise you risk messing up
+control positioning and full window mode. **
+*/
+.video-js {
+ background-color: #000;
+ position: relative;
+ padding: 0;
+ /* Start with 10px for base font size so other dimensions can be em based and
+ easily calculable. */
+
+ font-size: 10px;
+ /* Allow poster to be vertically aligned. */
+
+ vertical-align: middle;
+ /* display: table-cell; */
+ /*This works in Safari but not Firefox.*/
+
+ /* Provide some basic defaults for fonts */
+
+ font-weight: normal;
+ font-style: normal;
+ /* Avoiding helvetica: issue #376 */
+
+ font-family: Arial, sans-serif;
+ /* Turn off user selection (text highlighting) by default.
+ The majority of player components will not be text blocks.
+ Text areas will need to turn user selection back on. */
+
+ /* user-select */
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+/* Playback technology elements expand to the width/height of the containing div
+ or */
+.video-js .vjs-tech {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+}
+/* Fix for Firefox 9 fullscreen (only if it is enabled). Not needed when
+ checking fullScreenEnabled. */
+.video-js:-moz-full-screen {
+ position: absolute;
+}
+/* Fullscreen Styles */
+body.vjs-full-window {
+ padding: 0;
+ margin: 0;
+ height: 100%;
+ /* Fix for IE6 full-window. http://www.cssplay.co.uk/layouts/fixed.html */
+ overflow-y: auto;
+}
+.video-js.vjs-fullscreen {
+ position: fixed;
+ overflow: hidden;
+ z-index: 1000;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ right: 0;
+ width: 100% !important;
+ height: 100% !important;
+ /* IE6 full-window (underscore hack) */
+ _position: absolute;
+}
+.video-js:-webkit-full-screen {
+ width: 100% !important;
+ height: 100% !important;
+}
+.video-js.vjs-fullscreen.vjs-user-inactive {
+ cursor: none;
+}
+/* Poster Styles */
+.vjs-poster {
+ background-repeat: no-repeat;
+ background-position: 50% 50%;
+ background-size: contain;
+ cursor: pointer;
+ margin: 0;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+}
+.vjs-poster img {
+ display: block;
+ margin: 0 auto;
+ max-height: 100%;
+ padding: 0;
+ width: 100%;
+}
+/* Hide the poster after the video has started playing */
+.video-js.vjs-has-started .vjs-poster {
+ display: none;
+}
+/* Don't hide the poster if we're playing audio */
+.video-js.vjs-audio.vjs-has-started .vjs-poster {
+ display: block;
+}
+/* Hide the poster when controls are disabled because it's clickable
+ and the native poster can take over */
+.video-js.vjs-controls-disabled .vjs-poster {
+ display: none;
+}
+/* Hide the poster when native controls are used otherwise it covers them */
+.video-js.vjs-using-native-controls .vjs-poster {
+ display: none;
+}
+/* Text Track Styles */
+/* Overall track holder for both captions and subtitles */
+.video-js .vjs-text-track-display {
+ position: absolute;
+ top: 0;
+ left: 0;
+ bottom: 3em;
+ right: 0;
+ pointer-events: none;
+}
+/* Captions Settings Dialog */
+.vjs-caption-settings {
+ position: relative;
+ top: 1em;
+ background-color: #000;
+ opacity: 0.75;
+ color: #FFF;
+ margin: 0 auto;
+ padding: 0.5em;
+ height: 15em;
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ width: 40em;
+}
+.vjs-caption-settings .vjs-tracksettings {
+ top: 0;
+ bottom: 2em;
+ left: 0;
+ right: 0;
+ position: absolute;
+ overflow: auto;
+}
+.vjs-caption-settings .vjs-tracksettings-colors,
+.vjs-caption-settings .vjs-tracksettings-font {
+ float: left;
+}
+.vjs-caption-settings .vjs-tracksettings-colors:after,
+.vjs-caption-settings .vjs-tracksettings-font:after,
+.vjs-caption-settings .vjs-tracksettings-controls:after {
+ clear: both;
+}
+.vjs-caption-settings .vjs-tracksettings-controls {
+ position: absolute;
+ bottom: 1em;
+ right: 1em;
+}
+.vjs-caption-settings .vjs-tracksetting {
+ margin: 5px;
+ padding: 3px;
+ min-height: 40px;
+}
+.vjs-caption-settings .vjs-tracksetting label {
+ display: block;
+ width: 100px;
+ margin-bottom: 5px;
+}
+.vjs-caption-settings .vjs-tracksetting span {
+ display: inline;
+ margin-left: 5px;
+}
+.vjs-caption-settings .vjs-tracksetting > div {
+ margin-bottom: 5px;
+ min-height: 20px;
+}
+.vjs-caption-settings .vjs-tracksetting > div:last-child {
+ margin-bottom: 0;
+ padding-bottom: 0;
+ min-height: 0;
+}
+.vjs-caption-settings label > input {
+ margin-right: 10px;
+}
+.vjs-caption-settings input[type="button"] {
+ width: 40px;
+ height: 40px;
+}
+/* Hide disabled or unsupported controls */
+.vjs-hidden {
+ display: none !important;
+}
+.vjs-lock-showing {
+ display: block !important;
+ opacity: 1;
+ visibility: visible;
+}
+/* In IE8 w/ no JavaScript (no HTML5 shim), the video tag doesn't register.
+ The .video-js classname on the video tag also isn't considered.
+ This optional paragraph inside the video tag can provide a message to users
+ about what's required to play video. */
+.vjs-no-js {
+ padding: 2em;
+ color: #ccc;
+ background-color: #333;
+ font-size: 1.8em;
+ font-family: Arial, sans-serif;
+ text-align: center;
+ width: 30em;
+ height: 15em;
+ margin: 0 auto;
+}
+.vjs-no-js a,
+.vjs-no-js a:visited {
+ color: #F4A460;
+}
+/* -----------------------------------------------------------------------------
+The original source of this file lives at
+https://github.com/videojs/video.js/blob/master/src/css/video-js.less */
diff --git a/js/video-js/video-js.less b/js/video-js/video-js.less
new file mode 100644
index 0000000..fc43aee
--- /dev/null
+++ b/js/video-js/video-js.less
@@ -0,0 +1,1237 @@
+ /*!
+Video.js Default Styles (http://videojs.com)
+Version GENERATED_AT_BUILD
+Create your own skin at http://designer.videojs.com
+*/
+
+// To customize the player skin, change the values of the variables or edit the
+// CSS below.
+// (This file uses LESS. Learn more at http://lesscss.org/)
+
+// The base font size controls the size of everything, not just text. All
+// dimensions use em-based sizes so that the scale along with the font size.
+// Try increasing it to 20px and see what happens.
+@base-font-size: 10px;
+@touch-device-font-size: 15px;
+
+// The main font color controls the color of the text and the icons (font icons)
+@main-font-color: #CCCCCC; // e.g. rgb(255, 255, 255) or #ffffff
+
+// The default color of control backgrounds is mostly black but with a little
+// bit of blue so it can still be seen on all black video frames, which are
+// common.
+@control-bg-color: #07141E; // e.g. rgb(255, 255, 255) or #ffffff
+@control-bg-alpha: 0.7; // 1.0 = 100% opacity, 0.0 = 0% opacity
+
+// The slider bar color is used for the progress bar and the volume bar
+@slider-bar-color: #66A8CC; // e.g. rgb(255, 255, 255) or #ffffff
+// The background of the progress bar and volume bar have a lined pattern that
+// is created from a base64 encoded image. You can generate your own pattern at
+// http://www.patternify.com/ then replace the value in the quotes with your own
+@slider-bar-pattern: ~'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC';
+// The color of the slider background
+@slider-background-color: #333333;
+@slider-background-alpha: 0.9; // 1.0 = 100% opacity, 0.0 = 0% opacity
+
+// The "Big Play Button" is the play button that shows before the video plays.
+// To center it set the align values to center and middle. The typical location
+// of the button is the center, but there is trend towards moving it to a corner
+// where it gets out of the way of valuable content in the poster image.
+@big-play-align: left; // left, center, or right
+@big-play-vertical-align: top; // top, middle, or bottom
+// The button colors match the control colors by default but you can customize
+// them by replace the variables (@control-bg-color) with your own color values.
+@big-play-bg-color: @control-bg-color;
+@big-play-bg-alpha: @control-bg-alpha;
+// The font size is what makes the big play button, big. All width/height values
+// use ems, which are a multiple of the font size.
+// If the @base-font-size is 10px, then 3em equals 30px.
+@big-play-font-size: 3em;
+// Now that font size is set, the following em values will be a multiple of the
+// new font size. If @big-play-font-size is 3em (30px), then setting the any of
+// the following values to 2em would equal 60px. 2 * font-size
+@big-play-margin: 0.5em;
+@big-play-width: 4em;
+@big-play-height: 2.6em;
+@big-play-border-radius: 0.8em;
+@big-play-border-width: 0.1em;
+@big-play-border-color: #3b4249;
+
+/* SKIN
+================================================================================
+The main class name for all skin-specific styles. To make your own skin,
+replace all occurrences of 'vjs-default-skin' with a new name. Then add your new
+skin name to your video tag instead of the default skin.
+e.g.
+*/
+.vjs-default-skin {
+ color: @main-font-color;
+}
+
+/* Custom Icon Font
+--------------------------------------------------------------------------------
+The control icons are from a custom font. Each icon corresponds to a character
+(e.g. "\e001"). Font icons allow for easy scaling and coloring of icons.
+*/
+@vjs-font-path: 'font';
+@font-face{
+ font-family: 'VideoJS';
+ src: url('@{vjs-font-path}/vjs.eot');
+ src: url('@{vjs-font-path}/vjs.eot?#iefix') format('embedded-opentype'),
+ url('@{vjs-font-path}/vjs.woff') format('woff'),
+ url('@{vjs-font-path}/vjs.ttf') format('truetype'),
+ url('@{vjs-font-path}/vjs.svg#icomoon') format('svg');
+
+ font-weight: normal;
+ font-style: normal;
+}
+
+// Icon font character values
+@play-icon: "\e001";
+@pause-icon: "\e002";
+@volume-muted-icon: "\e003";
+@volume-low-icon: "\e004";
+@volume-mid-icon: "\e005";
+@volume-high-icon: "\e006";
+@fullscreen-enter-icon: "\e000";
+@fullscreen-exit-icon: "\e00b";
+@square-icon: "\e009";
+@spinner-icon: "\e00a";
+@spinner2-icon: "\e00d";
+@spinner3-icon: "\e01e";
+@spinner4-icon: "\e01f";
+@subtitles-icon: "\e00c";
+@captions-icon: "\e008";
+@chapters-icon: "\e00c";
+@share-icon: "\e00e";
+@cog-icon: "\e600";
+
+/* Base UI Component Classes
+--------------------------------------------------------------------------------
+*/
+
+/* Slider - used for Volume bar and Seek bar */
+.vjs-default-skin .vjs-slider {
+ /* Replace browser focus highlight with handle highlight *///
+ outline: 0;
+ position: relative;
+ cursor: pointer;
+ padding: 0;
+
+ .background-color-with-alpha(@slider-background-color, @slider-background-alpha);
+}
+
+.vjs-default-skin .vjs-slider:focus {
+ .box-shadow(0 0 2em #fff);
+}
+
+.vjs-default-skin .vjs-slider-handle {
+ position: absolute;
+ /* Needed for IE6 *///
+ left: 0;
+ top: 0;
+}
+
+.vjs-default-skin .vjs-slider-handle:before {
+ content: @square-icon;
+ font-family: VideoJS;
+ font-size: 1em;
+ line-height: 1;
+ text-align: center;
+ text-shadow: 0em 0em 1em #fff;
+
+ position: absolute;
+ top: 0;
+ left: 0;
+
+ /* Rotate the square icon to make a diamond *///
+ .transform(rotate(-45deg));
+}
+
+/* Control Bar
+--------------------------------------------------------------------------------
+The default control bar that is a container for most of the controls.
+*/
+.vjs-default-skin .vjs-control-bar {
+ /* Start hidden *///
+ display: none;
+ position: absolute;
+ /* Place control bar at the bottom of the player box/video.
+ If you want more margin below the control bar, add more height. *///
+ bottom: 0;
+ /* Use left/right to stretch to 100% width of player div *///
+ left: 0;
+ right: 0;
+ /* Height includes any margin you want above or below control items *///
+ height: 3.0em;
+
+ .background-color-with-alpha(@control-bg-color, @control-bg-alpha);
+}
+
+/* Show the control bar only once the video has started playing */
+.vjs-default-skin.vjs-has-started .vjs-control-bar {
+ display: block;
+ /* Visibility needed to make sure things hide in older browsers too. */
+ visibility: visible;
+ opacity: 1;
+
+ @trans: visibility 0.1s, opacity 0.1s; // Var needed because of comma
+ .transition(@trans);
+}
+
+/* Hide the control bar when the video is playing and the user is inactive */
+.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
+ display: block;
+ visibility: hidden;
+ opacity: 0;
+
+ @trans: visibility 1.0s, opacity 1.0s;
+ .transition(@trans);
+}
+
+.vjs-default-skin.vjs-controls-disabled .vjs-control-bar {
+ display: none;
+}
+
+.vjs-default-skin.vjs-using-native-controls .vjs-control-bar {
+ display: none;
+}
+
+/* The control bar shouldn't show after an error */
+.vjs-default-skin.vjs-error .vjs-control-bar {
+ display: none;
+}
+
+/* Don't hide the control bar if it's audio */
+.vjs-audio.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
+ opacity: 1;
+ visibility: visible;
+}
+
+/* IE8 is flakey with fonts, and you have to change the actual content to force
+fonts to show/hide properly.
+ - "\9" IE8 hack didn't work for this
+ - Found in XP IE8 from http://modern.ie. Does not show up in "IE8 mode" in IE9
+*/
+@ie8screen: ~"\0screen";
+.vjs-default-skin.vjs-user-inactive.vjs-playing .vjs-control-bar :before {
+ @media @ie8screen { content: ""; }
+}
+
+/* General styles for individual controls. */
+.vjs-default-skin .vjs-control {
+ outline: none;
+ position: relative;
+ float: left;
+ text-align: center;
+ margin: 0;
+ padding: 0;
+ height: 3.0em;
+ width: 4em;
+}
+
+/* Font button icons */
+.vjs-default-skin .vjs-control:before {
+ font-family: VideoJS;
+ font-size: 1.5em;
+ line-height: 2;
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ text-align: center;
+ text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
+}
+
+/* Replacement for focus outline */
+.vjs-default-skin .vjs-control:focus:before,
+.vjs-default-skin .vjs-control:hover:before {
+ text-shadow: 0em 0em 1em rgba(255, 255, 255, 1);
+}
+
+.vjs-default-skin .vjs-control:focus {
+ /* outline: 0; *///
+ /* keyboard-only users cannot see the focus on several of the UI elements when
+ this is set to 0 */
+}
+
+/* Hide control text visually, but have it available for screenreaders */
+.vjs-default-skin .vjs-control-text {
+ .hide-visually;
+}
+
+/* Play/Pause
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-play-control {
+ width: 5em;
+ cursor: pointer;
+}
+.vjs-default-skin .vjs-play-control:before {
+ content: @play-icon;
+}
+.vjs-default-skin.vjs-playing .vjs-play-control:before {
+ content: @pause-icon;
+}
+
+/* Playback toggle
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-playback-rate .vjs-playback-rate-value {
+ font-size: 1.5em;
+ line-height: 2;
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ text-align: center;
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
+}
+
+.vjs-default-skin .vjs-playback-rate.vjs-menu-button .vjs-menu .vjs-menu-content {
+ width: 4em;
+ left: -2em;
+ list-style: none;
+}
+
+/* Volume/Mute
+-------------------------------------------------------------------------------- */
+.vjs-default-skin .vjs-mute-control,
+.vjs-default-skin .vjs-volume-menu-button {
+ cursor: pointer;
+ float: right;
+}
+.vjs-default-skin .vjs-mute-control:before,
+.vjs-default-skin .vjs-volume-menu-button:before {
+ content: @volume-high-icon;
+}
+.vjs-default-skin .vjs-mute-control.vjs-vol-0:before,
+.vjs-default-skin .vjs-volume-menu-button.vjs-vol-0:before {
+ content: @volume-muted-icon;
+}
+.vjs-default-skin .vjs-mute-control.vjs-vol-1:before,
+.vjs-default-skin .vjs-volume-menu-button.vjs-vol-1:before {
+ content: @volume-low-icon;
+}
+.vjs-default-skin .vjs-mute-control.vjs-vol-2:before,
+.vjs-default-skin .vjs-volume-menu-button.vjs-vol-2:before {
+ content: @volume-mid-icon;
+}
+
+.vjs-default-skin .vjs-volume-control {
+ width: 5em;
+ float: right;
+}
+.vjs-default-skin .vjs-volume-bar {
+ width: 5em;
+ height: 0.6em;
+ margin: 1.1em auto 0;
+}
+
+.vjs-default-skin .vjs-volume-level {
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 0.5em;
+ /* assuming volume starts at 1.0 */
+ width: 100%;
+
+ background: @slider-bar-color
+ url(@slider-bar-pattern)
+ -50% 0 repeat;
+}
+.vjs-default-skin .vjs-volume-bar .vjs-volume-handle {
+ width: 0.5em;
+ height: 0.5em;
+ /* Assumes volume starts at 1.0. If you change the size of the
+ handle relative to the volume bar, you'll need to update this value
+ too. */
+ left: 4.5em;
+}
+
+.vjs-default-skin .vjs-volume-handle:before {
+ font-size: 0.9em;
+ top: -0.2em;
+ left: -0.2em;
+
+ width: 1em;
+ height: 1em;
+}
+
+/* The volume menu button is like menu buttons (captions/subtitles) but works
+ a little differently. It needs to be possible to tab to the volume slider
+ without hitting space bar on the menu button. To do this we're not using
+ display:none to hide the slider menu by default, and instead setting the
+ width and height to zero. */
+.vjs-default-skin .vjs-volume-menu-button .vjs-menu {
+ display: block;
+ width: 0;
+ height: 0;
+ border-top-color: transparent;
+}
+
+.vjs-default-skin .vjs-volume-menu-button .vjs-menu .vjs-menu-content {
+ height: 0;
+ width: 0;
+}
+
+.vjs-default-skin .vjs-volume-menu-button:hover .vjs-menu,
+.vjs-default-skin .vjs-volume-menu-button .vjs-menu.vjs-lock-showing {
+ border-top-color: rgba(7, 40, 50, 0.5); /* Same as ul background */
+}
+
+.vjs-default-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-menu-content,
+.vjs-default-skin .vjs-volume-menu-button .vjs-menu.vjs-lock-showing .vjs-menu-content {
+ height: 2.9em;
+ width: 10em;
+}
+
+/* Progress
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-progress-control {
+ position: absolute;
+ left: 0;
+ right: 0;
+ width: auto;
+ font-size: 0.3em;
+ height: 1em;
+ /* Set above the rest of the controls. *///
+ top: -1em;
+
+ /* Shrink the bar slower than it grows. *///
+ .transition(all 0.4s);
+}
+
+/* On hover, make the progress bar grow to something that's more clickable.
+ This simply changes the overall font for the progress bar, and this
+ updates both the em-based widths and heights, as wells as the icon font */
+.vjs-default-skin:hover .vjs-progress-control {
+ font-size: .9em;
+
+ /* Even though we're not changing the top/height, we need to include them in
+ the transition so they're handled correctly. */
+ .transition(all 0.2s);
+}
+
+/* Box containing play and load progresses. Also acts as seek scrubber. */
+.vjs-default-skin .vjs-progress-holder {
+ height: 100%;
+}
+
+/* Progress Bars */
+.vjs-default-skin .vjs-progress-holder .vjs-play-progress,
+.vjs-default-skin .vjs-progress-holder .vjs-load-progress,
+.vjs-default-skin .vjs-progress-holder .vjs-load-progress div {
+ position: absolute;
+ display: block;
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ /* updated by javascript during playback */
+ width: 0;
+ /* Needed for IE6 *///
+ left: 0;
+ top: 0;
+}
+
+.vjs-default-skin .vjs-play-progress {
+ /*
+ Using a data URI to create the white diagonal lines with a transparent
+ background. Surprisingly works in IE8.
+ Created using http://www.patternify.com
+ Changing the first color value will change the bar color.
+ Also using a paralax effect to make the lines move backwards.
+ The -50% left position makes that happen.
+ */
+ background: @slider-bar-color
+ url(@slider-bar-pattern)
+ -50% 0 repeat;
+}
+.vjs-default-skin .vjs-load-progress {
+ background: rgb(100, 100, 100) /* IE8- Fallback */;
+ background: rgba(255, 255, 255, 0.2);
+}
+
+/* there are child elements of the load progress bar that represent the
+ specific time ranges that have been buffered */
+.vjs-default-skin .vjs-load-progress div {
+ background: rgb(120, 120, 120) /* IE8- Fallback */;
+ background: rgba(255, 255, 255, 0.1);
+}
+
+.vjs-default-skin .vjs-seek-handle {
+ width: 1.5em;
+ height: 100%;
+}
+
+.vjs-default-skin .vjs-seek-handle:before {
+ padding-top: 0.1em /* Minor adjustment */;
+}
+
+/* Live Mode
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin.vjs-live .vjs-time-controls,
+.vjs-default-skin.vjs-live .vjs-time-divider,
+.vjs-default-skin.vjs-live .vjs-progress-control {
+ display: none;
+}
+.vjs-default-skin.vjs-live .vjs-live-display {
+ display: block;
+}
+
+/* Live Display
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-live-display {
+ display: none;
+ font-size: 1em;
+ line-height: 3em;
+}
+
+/* Time Display
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-time-controls {
+ font-size: 1em;
+ /* Align vertically by making the line height the same as the control bar *///
+ line-height: 3em;
+}
+.vjs-default-skin .vjs-current-time { float: left; }
+.vjs-default-skin .vjs-duration { float: left; }
+/* Remaining time is in the HTML, but not included in default design */
+.vjs-default-skin .vjs-remaining-time { display: none; float: left; }
+.vjs-time-divider { float: left; line-height: 3em; }
+
+/* Fullscreen
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-fullscreen-control {
+ width: 3.8em;
+ cursor: pointer;
+ float: right;
+}
+.vjs-default-skin .vjs-fullscreen-control:before {
+ content: @fullscreen-enter-icon;
+}
+/* Switch to the exit icon when the player is in fullscreen */
+.vjs-default-skin.vjs-fullscreen .vjs-fullscreen-control:before {
+ content: @fullscreen-exit-icon;
+}
+
+/* Big Play Button (play button at start)
+--------------------------------------------------------------------------------
+Positioning of the play button in the center or other corners can be done more
+easily in the skin designer. http://designer.videojs.com/
+*/
+.vjs-default-skin .vjs-big-play-button {
+ // Calculate total width/height so we're able to center the button
+ @total-width: (@big-play-width + (@big-play-border-width * 2));
+ @total-height: (@big-play-height + (@big-play-border-width * 2));
+ // Position the button using the absolute-align mixin (bottom of page)
+ .absolute-align(@big-play-align, @big-play-margin, @total-width);
+ .absolute-align(@big-play-vertical-align, @big-play-margin, @total-height);
+
+ font-size: @big-play-font-size;
+ display: block;
+ z-index: 2;
+ position: absolute;
+ width: @big-play-width;
+ height: @big-play-height;
+ text-align: center;
+ vertical-align: middle;
+ cursor: pointer;
+ opacity: 1;
+
+ /* Need a slightly gray bg so it can be seen on black backgrounds *///
+ .background-color-with-alpha(@big-play-bg-color, @big-play-bg-alpha);
+
+ border: @big-play-border-width solid @big-play-border-color;
+
+ .border-radius(@big-play-border-radius);
+ .box-shadow(0px 0px 1em rgba(255, 255, 255, 0.25));
+ .transition(all 0.4s);
+}
+
+/* Optionally center */
+.vjs-default-skin.vjs-big-play-centered .vjs-big-play-button {
+ @total-width: (@big-play-width + (@big-play-border-width * 2));
+ @total-height: (@big-play-height + (@big-play-border-width * 2));
+
+ .absolute-align(center, @big-play-margin, @total-width);
+ .absolute-align(middle, @big-play-margin, @total-height);
+}
+
+/* Hide if controls are disabled */
+.vjs-default-skin.vjs-controls-disabled .vjs-big-play-button {
+ display: none;
+}
+/* Hide when video starts playing */
+.vjs-default-skin.vjs-has-started .vjs-big-play-button {
+ display: none;
+}
+/* Hide on mobile devices. Remove when we stop using native controls
+ by default on mobile */
+.vjs-default-skin.vjs-using-native-controls .vjs-big-play-button {
+ display: none;
+}
+
+.vjs-default-skin:hover .vjs-big-play-button,
+.vjs-default-skin .vjs-big-play-button:focus {
+ outline: 0;
+ border-color: #fff;
+ /* IE8 needs a non-glow hover state *///
+ background-color: rgb(80, 80, 80);
+ background-color: rgba(50, 50, 50, 0.75);
+
+ .box-shadow(0 0 3em #fff);
+ .transition(all 0s);
+}
+
+.vjs-default-skin .vjs-big-play-button:before {
+ content: @play-icon;
+ font-family: VideoJS;
+ /* In order to center the play icon vertically we need to set the line height
+ to the same as the button height */
+ line-height: @big-play-height;
+ text-shadow: 0.05em 0.05em 0.1em #000;
+ text-align: center /* Needed for IE8 */;
+
+ position: absolute;
+ left: 0;
+ width: 100%;
+ height: 100%;
+}
+
+.vjs-error .vjs-big-play-button {
+ display: none;
+}
+
+/* Error Display
+--------------------------------------------------------------------------------
+*/
+
+.vjs-error-display {
+ display: none;
+}
+
+.vjs-error .vjs-error-display {
+ display: block;
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+}
+
+.vjs-error .vjs-error-display:before {
+ content: 'X';
+ font-family: Arial;
+ font-size: 4em;
+ color: #666666;
+ /* In order to center the play icon vertically we need to set the line height
+ to the same as the button height */
+ line-height: 1;
+ text-shadow: 0.05em 0.05em 0.1em #000;
+ text-align: center /* Needed for IE8 */;
+ vertical-align: middle;
+
+ position: absolute;
+ left: 0;
+ top: 50%;
+ margin-top: -0.5em;
+ width: 100%;
+}
+
+.vjs-error-display div {
+ position: absolute;
+ bottom: 1em;
+ right: 0;
+ left: 0;
+
+ font-size: 1.4em;
+ text-align: center;
+ padding: 3px;
+ background: rgb(0, 0, 0); // fallback to just black
+ background: rgba(0,0,0,0.5); // Normally show black at 50% opacity
+}
+
+.vjs-error-display a, .vjs-error-display a:visited {
+ color: #F4A460;
+}
+
+/* Loading Spinner
+--------------------------------------------------------------------------------
+*/
+
+.vjs-loading-spinner {
+ /* Should be hidden by default *///
+ display: none;
+
+ position: absolute;
+ top: 50%;
+ left: 50%;
+
+ font-size: 4em;
+ line-height: 1;
+
+ width: 1em;
+ height: 1em;
+
+ margin-left: -0.5em;
+ margin-top: -0.5em;
+
+ opacity: 0.75;
+}
+
+/* Show the spinner when waiting for data and seeking to a new time */
+.vjs-waiting .vjs-loading-spinner,
+.vjs-seeking .vjs-loading-spinner {
+ display: block;
+
+ /* only animate when showing because it can be processor heavy *///
+ .animation(spin 1.5s infinite linear);
+}
+
+/* Errors are unrecoverable without user interaction so hide the spinner */
+.vjs-error .vjs-loading-spinner {
+ display: none;
+
+ /* ensure animation doesn't continue while hidden *///
+ .animation(none);
+}
+
+.vjs-default-skin .vjs-loading-spinner:before {
+ content: @spinner3-icon;
+ font-family: VideoJS;
+
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 1em;
+ height: 1em;
+ text-align: center;
+ text-shadow: 0em 0em 0.1em #000;
+}
+
+@-moz-keyframes spin {
+ 0% { -moz-transform: rotate(0deg); }
+ 100% { -moz-transform: rotate(359deg); }
+}
+@-webkit-keyframes spin {
+ 0% { -webkit-transform: rotate(0deg); }
+ 100% { -webkit-transform: rotate(359deg); }
+}
+@-o-keyframes spin {
+ 0% { -o-transform: rotate(0deg); }
+ 100% { -o-transform: rotate(359deg); }
+}
+@keyframes spin {
+ 0% { transform: rotate(0deg); }
+ 100% { transform: rotate(359deg); }
+}
+
+/* Menu Buttons (Captions/Subtitles/etc.)
+--------------------------------------------------------------------------------
+*/
+.vjs-default-skin .vjs-menu-button {
+ float: right;
+ cursor: pointer;
+}
+
+.vjs-default-skin .vjs-menu {
+ display: none;
+ position: absolute;
+ bottom: 0;
+ left: 0em; /* (Width of vjs-menu - width of button) / 2 */
+ width: 0em;
+ height: 0em;
+ margin-bottom: 3em;
+
+ border-left: 2em solid transparent;
+ border-right: 2em solid transparent;
+
+ border-top: 1.55em solid rgb(0, 0, 0); /* Same width top as ul bottom */
+ border-top-color: rgba(7, 40, 50, 0.5); /* Same as ul background */
+}
+
+/* Button Pop-up Menu */
+.vjs-default-skin .vjs-menu-button .vjs-menu .vjs-menu-content {
+ display: block;
+ padding: 0; margin: 0;
+ position: absolute;
+ width: 10em;
+ bottom: 1.5em; /* Same bottom as vjs-menu border-top */
+ max-height: 15em;
+ overflow: auto;
+
+ left: -5em; /* Width of menu - width of button / 2 */
+
+ .background-color-with-alpha(@control-bg-color, @control-bg-alpha);
+ .box-shadow(-0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2));
+}
+
+.vjs-default-skin .vjs-menu-button:hover .vjs-control-content .vjs-menu,
+.vjs-default-skin .vjs-control-content .vjs-menu.vjs-lock-showing {
+ display: block;
+}
+/* prevent menus from opening while scrubbing (FF, IE) */
+.vjs-default-skin.vjs-scrubbing .vjs-menu-button:hover .vjs-control-content .vjs-menu {
+ display: none;
+}
+.vjs-default-skin .vjs-menu-button ul li {
+ list-style: none;
+ margin: 0;
+ padding: 0.3em 0 0.3em 0;
+ line-height: 1.4em;
+ font-size: 1.2em;
+ text-align: center;
+ text-transform: lowercase;
+}
+.vjs-default-skin .vjs-menu-button ul li.vjs-selected {
+ background-color: #000;
+}
+.vjs-default-skin .vjs-menu-button ul li:focus,
+.vjs-default-skin .vjs-menu-button ul li:hover,
+.vjs-default-skin .vjs-menu-button ul li.vjs-selected:focus,
+.vjs-default-skin .vjs-menu-button ul li.vjs-selected:hover {
+ outline: 0;
+ color: #111;
+
+ .background-color-with-alpha(rgb(255, 255, 255), 0.75);
+ .box-shadow(0 0 1em rgba(255, 255, 255, 1));
+}
+.vjs-default-skin .vjs-menu-button ul li.vjs-menu-title {
+ text-align: center;
+ text-transform: uppercase;
+ font-size: 1em;
+ line-height: 2em;
+ padding: 0;
+ margin: 0 0 0.3em 0;
+ font-weight: bold;
+ cursor: default;
+}
+
+/* Subtitles Button */
+.vjs-default-skin .vjs-subtitles-button:before {
+ content: @subtitles-icon;
+}
+
+/* Captions Button */
+.vjs-default-skin .vjs-captions-button:before {
+ content: @captions-icon;
+}
+
+/* Chapters Button */
+.vjs-default-skin .vjs-chapters-button:before {
+ content: @chapters-icon;
+}
+
+.vjs-default-skin .vjs-chapters-button.vjs-menu-button .vjs-menu .vjs-menu-content {
+ width: 24em;
+ left: -12em;
+}
+
+/* Replacement for focus outline */
+.vjs-default-skin .vjs-captions-button:focus .vjs-control-content:before,
+.vjs-default-skin .vjs-captions-button:hover .vjs-control-content:before {
+ .box-shadow(0 0 1em rgba(255, 255, 255, 1));
+}
+
+/*
+REQUIRED STYLES (be careful overriding)
+================================================================================
+When loading the player, the video tag is replaced with a DIV,
+that will hold the video tag or object tag for other playback methods.
+The div contains the video playback element (Flash or HTML5) and controls,
+and sets the width and height of the video.
+
+** If you want to add some kind of border/padding (e.g. a frame), or special
+positioning, use another containing element. Otherwise you risk messing up
+control positioning and full window mode. **
+*/
+.video-js {
+ background-color: #000;
+ position: relative;
+ padding: 0;
+ /* Start with 10px for base font size so other dimensions can be em based and
+ easily calculable. */
+ font-size: @base-font-size;
+ /* Allow poster to be vertically aligned. */
+ vertical-align: middle;
+ /* display: table-cell; */ /*This works in Safari but not Firefox.*/
+
+ /* Provide some basic defaults for fonts */
+ font-weight: normal;
+ font-style: normal;
+ /* Avoiding helvetica: issue #376 */
+ font-family: Arial, sans-serif;
+
+ /* Turn off user selection (text highlighting) by default.
+ The majority of player components will not be text blocks.
+ Text areas will need to turn user selection back on. */
+ .user-select(none);
+}
+
+/* Playback technology elements expand to the width/height of the containing div
+ or */
+.video-js .vjs-tech {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+}
+
+/* Fix for Firefox 9 fullscreen (only if it is enabled). Not needed when
+ checking fullScreenEnabled. */
+.video-js:-moz-full-screen { position: absolute; }
+
+/* Fullscreen Styles */
+body.vjs-full-window {
+ padding: 0;
+ margin: 0;
+ height: 100%;
+ /* Fix for IE6 full-window. http://www.cssplay.co.uk/layouts/fixed.html *///
+ overflow-y: auto;
+}
+.video-js.vjs-fullscreen {
+ position: fixed;
+ overflow: hidden;
+ z-index: 1000;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ right: 0;
+ width: 100% !important;
+ height: 100% !important;
+ /* IE6 full-window (underscore hack) *///
+ _position: absolute;
+}
+.video-js:-webkit-full-screen {
+ width: 100% !important;
+ height: 100% !important;
+}
+.video-js.vjs-fullscreen.vjs-user-inactive {
+ cursor: none;
+}
+
+/* Poster Styles */
+.vjs-poster {
+ background-repeat: no-repeat;
+ background-position: 50% 50%;
+ background-size: contain;
+ cursor: pointer;
+ margin: 0;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+}
+.vjs-poster img {
+ display: block;
+ margin: 0 auto;
+ max-height: 100%;
+ padding: 0;
+ width: 100%;
+}
+
+/* Hide the poster after the video has started playing */
+.video-js.vjs-has-started .vjs-poster {
+ display: none;
+}
+
+/* Don't hide the poster if we're playing audio */
+.video-js.vjs-audio.vjs-has-started .vjs-poster {
+ display: block;
+}
+
+/* Hide the poster when controls are disabled because it's clickable
+ and the native poster can take over */
+.video-js.vjs-controls-disabled .vjs-poster {
+ display: none;
+}
+
+/* Hide the poster when native controls are used otherwise it covers them */
+.video-js.vjs-using-native-controls .vjs-poster {
+ display: none;
+}
+
+/* Text Track Styles */
+/* Overall track holder for both captions and subtitles */
+.video-js .vjs-text-track-display {
+ position: absolute;
+ top: 0;
+ left: 0;
+ bottom: 3em;
+ right: 0;
+ pointer-events: none;
+}
+
+/* Captions Settings Dialog */
+.vjs-caption-settings {
+ position: relative;
+ top: 1em;
+ background-color: #000;
+ opacity: 0.75;
+ color: #FFF;
+ margin: 0 auto;
+ padding: 0.5em;
+ height: 15em;
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ width: 40em;
+}
+
+.vjs-caption-settings .vjs-tracksettings {
+ top: 0;
+ bottom: 2em;
+ left: 0;
+ right: 0;
+ position: absolute;
+ overflow: auto;
+}
+
+.vjs-caption-settings .vjs-tracksettings-colors,
+.vjs-caption-settings .vjs-tracksettings-font {
+ float: left;
+}
+.vjs-caption-settings .vjs-tracksettings-colors:after,
+.vjs-caption-settings .vjs-tracksettings-font:after,
+.vjs-caption-settings .vjs-tracksettings-controls:after {
+ clear: both;
+}
+
+.vjs-caption-settings .vjs-tracksettings-controls {
+ position: absolute;
+ bottom: 1em;
+ right: 1em;
+}
+
+.vjs-caption-settings .vjs-tracksetting {
+ margin: 5px;
+ padding: 3px;
+ min-height: 40px;
+}
+.vjs-caption-settings .vjs-tracksetting label {
+ display: block;
+ width: 100px;
+ margin-bottom: 5px;
+}
+
+.vjs-caption-settings .vjs-tracksetting span {
+ display: inline;
+ margin-left: 5px;
+}
+
+.vjs-caption-settings .vjs-tracksetting > div {
+ margin-bottom: 5px;
+ min-height: 20px;
+}
+
+.vjs-caption-settings .vjs-tracksetting > div:last-child {
+ margin-bottom: 0;
+ padding-bottom: 0;
+ min-height: 0;
+}
+
+.vjs-caption-settings label > input {
+ margin-right: 10px;
+}
+
+.vjs-caption-settings input[type="button"] {
+ width: 40px;
+ height: 40px;
+}
+
+/* Hide disabled or unsupported controls */
+.vjs-hidden { display: none !important; }
+
+.vjs-lock-showing {
+ display: block !important;
+ opacity: 1;
+ visibility: visible;
+}
+
+/* In IE8 w/ no JavaScript (no HTML5 shim), the video tag doesn't register.
+ The .video-js classname on the video tag also isn't considered.
+ This optional paragraph inside the video tag can provide a message to users
+ about what's required to play video. */
+.vjs-no-js {
+ padding: 2em;
+ color: #ccc;
+ background-color: #333;
+ font-size: 1.8em;
+ font-family: Arial, sans-serif;
+ text-align: center;
+ width: 30em;
+ height: 15em;
+ margin: 0 auto;
+}
+
+.vjs-no-js a, .vjs-no-js a:visited {
+ color: #F4A460;
+}
+
+// MIXINS
+// =============================================================================
+// Mixins are a LESS feature and are used to add vendor prefixes to CSS rules
+// when needed.
+
+// https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
+.box-shadow (@string: 0 0 1em rgba(0, 0, 0, 0.25)) {
+ /* box-shadow *///
+ -webkit-box-shadow: @string;
+ -moz-box-shadow: @string;
+ box-shadow: @string;
+}
+
+// https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius
+.border-radius (@string: 5px) {
+ /* border-radius *///
+ -webkit-border-radius: @string;
+ -moz-border-radius: @string;
+ border-radius: @string;
+}
+
+// https://developer.mozilla.org/en-US/docs/Web/CSS/transition
+.transition (@string: all 1s linear) {
+ /* transition *///
+ -webkit-transition: @string;
+ -moz-transition: @string;
+ -o-transition: @string;
+ transition: @string;
+}
+
+// https://developer.mozilla.org/en-US/docs/Web/CSS/transition
+.transition-delay (@string: 1s) {
+ /* transition-delay *///
+ -webkit-transition-delay: @string;
+ -moz-transition-delay: @string;
+ -o-transition-delay: @string;
+ transition-delay: @string;
+}
+
+// https://developer.mozilla.org/en-US/docs/Web/CSS/animation
+.animation (@string: spin 1s infinite linear) {
+ /* animation *///
+ -webkit-animation: @string;
+ -moz-animation: @string;
+ -o-animation: @string;
+ animation: @string;
+}
+
+// https://developer.mozilla.org/en-US/docs/Web/CSS/transform
+.transform (@string: rotate(-45deg)) {
+ /* transform *///
+ -webkit-transform: @string;
+ -moz-transform: @string;
+ -ms-transform: @string;
+ -o-transform: @string;
+ transform: @string;
+}
+
+// https://developer.mozilla.org/en-US/docs/Web/CSS/user-select
+.user-select (@string: none) {
+ /* user-select *///
+ -webkit-user-select: @string;
+ -moz-user-select: @string;
+ -ms-user-select: @string;
+ user-select: @string;
+}
+
+// Hide something visually but keep available for screen readers.
+// http://h5bp.com/v
+.hide-visually () {
+ /* hide-visually *///
+ border: 0;
+ clip: rect(0 0 0 0);
+ height: 1px;
+ margin: -1px;
+ overflow: hidden;
+ padding: 0;
+ position:
+ absolute;
+ width: 1px;
+}
+
+// Align an object with absolute positioning
+// Used to align the Big Play Button in the corners or center
+.absolute-align (@align, @margin, @length) when (@align = top) {
+ top: @margin;
+}
+.absolute-align (@align, @margin, @length) when (@align = bottom) {
+ bottom: @margin;
+}
+.absolute-align (@align, @margin, @length) when (@align = left) {
+ left: @margin;
+}
+.absolute-align (@align, @margin, @length) when (@align = right) {
+ right: @margin;
+}
+.absolute-align (@align, @margin, @length) when (@align = center) {
+ /* Center it horizontally *///
+ left: 50%;
+ margin-left: (-(@length/2));
+ // margin-left: ((@length*-1)/2);
+}
+.absolute-align (@align, @margin, @length) when (@align = middle) {
+ /* Center it vertically *///
+ top: 50%;
+ margin-top: (-(@length/2));
+ // margin-top: ((@length*-1)/2);
+}
+
+// http://stackoverflow.com/questions/637921/opacity-of-background-but-not-the-text
+.background-color-with-alpha (@color, @alpha) {
+ @rgba: rgba(red(@color), green(@color), blue(@color), @alpha);
+ /* background-color-with-alpha *///
+ background-color: @color;
+ background-color: @rgba;
+ // No longer using MS filters because they break border radius in IE9
+ // @argb: argb(@rgba);
+ // filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorstr=@{argb}, endColorstr=@{argb})";
+ // -ms-filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorstr=@{argb}, endColorstr=@{argb})";
+}
+
+.border-color-with-alpha (@color, @alpha) {
+ @rgba: rgba(red(@color), green(@color), blue(@color), @alpha);
+ /* border-color-with-alpha *///
+ border-color: @color;
+ border-color: @rgba;
+}
+
+// NOTES ON LESS (tracking learnings so we don't forget)
+// =============================================================================
+// * We want this file to continue to be accessible by people who don't know
+// LESS but know CSS. This means finding the balance between using the most
+// valuable LESS features (e.g. variables) and keeping it looking like CSS.
+// So it's best to avoid advanced LESS features like conditional statements.
+// (we're using one for the big play button position because that's a hot
+// topic)
+//
+// * We care about the readability of the CSS output of LESS, which means we
+// have to be careful about what features of LESS we use. (if you're building
+// your own skin this may not apply)
+// 1. Comments inside of rules (strangely) have an extra line added after
+// them in the CSS output. To avoid this we can add a LESS comment after
+// the CSS comment.
+// /* comment *///
+//
+// 2. In a rule with nested rules, any comments outside of a rule are moved
+// to the top of the parent rule. i.e. it might look like:
+// /* title of rule 1 */
+// /* title of rule 2 */
+// .rule1 {}
+// .rule2 {}
+// This is why we aren't using nested rules inside of the
+// vjs-default-skin class.
+
+/* -----------------------------------------------------------------------------
+The original source of this file lives at
+https://github.com/videojs/video.js/blob/master/src/css/video-js.less */
diff --git a/js/video-js/video-js.min.css b/js/video-js/video-js.min.css
new file mode 100644
index 0000000..2ac6949
--- /dev/null
+++ b/js/video-js/video-js.min.css
@@ -0,0 +1,5 @@
+/*!
+Video.js Default Styles (http://videojs.com)
+Version 4.12.1
+Create your own skin at http://designer.videojs.com
+*/.vjs-default-skin{color:#ccc}@font-face{font-family:VideoJS;src:url(font/vjs.eot);src:url(font/vjs.eot?#iefix) format('embedded-opentype'),url(font/vjs.woff) format('woff'),url(font/vjs.ttf) format('truetype'),url(font/vjs.svg#icomoon) format('svg');font-weight:400;font-style:normal}.vjs-default-skin .vjs-slider{outline:0;position:relative;cursor:pointer;padding:0;background-color:#333;background-color:rgba(51,51,51,.9)}.vjs-default-skin .vjs-slider:focus{-webkit-box-shadow:0 0 2em #fff;-moz-box-shadow:0 0 2em #fff;box-shadow:0 0 2em #fff}.vjs-default-skin .vjs-slider-handle{position:absolute;left:0;top:0}.vjs-default-skin .vjs-slider-handle:before{content:"\e009";font-family:VideoJS;font-size:1em;line-height:1;text-align:center;text-shadow:0 0 1em #fff;position:absolute;top:0;left:0;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg)}.vjs-default-skin .vjs-control-bar{display:none;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#07141e;background-color:rgba(7,20,30,.7)}.vjs-default-skin.vjs-has-started .vjs-control-bar{display:block;visibility:visible;opacity:1;-webkit-transition:visibility .1s,opacity .1s;-moz-transition:visibility .1s,opacity .1s;-o-transition:visibility .1s,opacity .1s;transition:visibility .1s,opacity .1s}.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{display:block;visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.vjs-default-skin.vjs-controls-disabled .vjs-control-bar{display:none}.vjs-default-skin.vjs-using-native-controls .vjs-control-bar{display:none}.vjs-default-skin.vjs-error .vjs-control-bar{display:none}.vjs-audio.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}@media \0screen{.vjs-default-skin.vjs-user-inactive.vjs-playing .vjs-control-bar :before{content:""}}.vjs-default-skin .vjs-control{outline:0;position:relative;float:left;text-align:center;margin:0;padding:0;height:3em;width:4em}.vjs-default-skin .vjs-control:before{font-family:VideoJS;font-size:1.5em;line-height:2;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;text-shadow:1px 1px 1px rgba(0,0,0,.5)}.vjs-default-skin .vjs-control:focus:before,.vjs-default-skin .vjs-control:hover:before{text-shadow:0 0 1em #fff}.vjs-default-skin .vjs-control:focus{}.vjs-default-skin .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-default-skin .vjs-play-control{width:5em;cursor:pointer}.vjs-default-skin .vjs-play-control:before{content:"\e001"}.vjs-default-skin.vjs-playing .vjs-play-control:before{content:"\e002"}.vjs-default-skin .vjs-playback-rate .vjs-playback-rate-value{font-size:1.5em;line-height:2;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;text-shadow:1px 1px 1px rgba(0,0,0,.5)}.vjs-default-skin .vjs-playback-rate.vjs-menu-button .vjs-menu .vjs-menu-content{width:4em;left:-2em;list-style:none}.vjs-default-skin .vjs-mute-control,.vjs-default-skin .vjs-volume-menu-button{cursor:pointer;float:right}.vjs-default-skin .vjs-mute-control:before,.vjs-default-skin .vjs-volume-menu-button:before{content:"\e006"}.vjs-default-skin .vjs-mute-control.vjs-vol-0:before,.vjs-default-skin .vjs-volume-menu-button.vjs-vol-0:before{content:"\e003"}.vjs-default-skin .vjs-mute-control.vjs-vol-1:before,.vjs-default-skin .vjs-volume-menu-button.vjs-vol-1:before{content:"\e004"}.vjs-default-skin .vjs-mute-control.vjs-vol-2:before,.vjs-default-skin .vjs-volume-menu-button.vjs-vol-2:before{content:"\e005"}.vjs-default-skin .vjs-volume-control{width:5em;float:right}.vjs-default-skin .vjs-volume-bar{width:5em;height:.6em;margin:1.1em auto 0}.vjs-default-skin .vjs-volume-level{position:absolute;top:0;left:0;height:.5em;width:100%;background:#66a8cc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat}.vjs-default-skin .vjs-volume-bar .vjs-volume-handle{width:.5em;height:.5em;left:4.5em}.vjs-default-skin .vjs-volume-handle:before{font-size:.9em;top:-.2em;left:-.2em;width:1em;height:1em}.vjs-default-skin .vjs-volume-menu-button .vjs-menu{display:block;width:0;height:0;border-top-color:transparent}.vjs-default-skin .vjs-volume-menu-button .vjs-menu .vjs-menu-content{height:0;width:0}.vjs-default-skin .vjs-volume-menu-button:hover .vjs-menu,.vjs-default-skin .vjs-volume-menu-button .vjs-menu.vjs-lock-showing{border-top-color:rgba(7,40,50,.5)}.vjs-default-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-menu-content,.vjs-default-skin .vjs-volume-menu-button .vjs-menu.vjs-lock-showing .vjs-menu-content{height:2.9em;width:10em}.vjs-default-skin .vjs-progress-control{position:absolute;left:0;right:0;width:auto;font-size:.3em;height:1em;top:-1em;-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-default-skin:hover .vjs-progress-control{font-size:.9em;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.vjs-default-skin .vjs-progress-holder{height:100%}.vjs-default-skin .vjs-progress-holder .vjs-play-progress,.vjs-default-skin .vjs-progress-holder .vjs-load-progress,.vjs-default-skin .vjs-progress-holder .vjs-load-progress div{position:absolute;display:block;height:100%;margin:0;padding:0;width:0;left:0;top:0}.vjs-default-skin .vjs-play-progress{background:#66a8cc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat}.vjs-default-skin .vjs-load-progress{background:#646464;background:rgba(255,255,255,.2)}.vjs-default-skin .vjs-load-progress div{background:#787878;background:rgba(255,255,255,.1)}.vjs-default-skin .vjs-seek-handle{width:1.5em;height:100%}.vjs-default-skin .vjs-seek-handle:before{padding-top:.1em}.vjs-default-skin.vjs-live .vjs-time-controls,.vjs-default-skin.vjs-live .vjs-time-divider,.vjs-default-skin.vjs-live .vjs-progress-control{display:none}.vjs-default-skin.vjs-live .vjs-live-display{display:block}.vjs-default-skin .vjs-live-display{display:none;font-size:1em;line-height:3em}.vjs-default-skin .vjs-time-controls{font-size:1em;line-height:3em}.vjs-default-skin .vjs-current-time{float:left}.vjs-default-skin .vjs-duration{float:left}.vjs-default-skin .vjs-remaining-time{display:none;float:left}.vjs-time-divider{float:left;line-height:3em}.vjs-default-skin .vjs-fullscreen-control{width:3.8em;cursor:pointer;float:right}.vjs-default-skin .vjs-fullscreen-control:before{content:"\e000"}.vjs-default-skin.vjs-fullscreen .vjs-fullscreen-control:before{content:"\e00b"}.vjs-default-skin .vjs-big-play-button{left:.5em;top:.5em;font-size:3em;display:block;z-index:2;position:absolute;width:4em;height:2.6em;text-align:center;vertical-align:middle;cursor:pointer;opacity:1;background-color:#07141e;background-color:rgba(7,20,30,.7);border:.1em solid #3b4249;-webkit-border-radius:.8em;-moz-border-radius:.8em;border-radius:.8em;-webkit-box-shadow:0 0 1em rgba(255,255,255,.25);-moz-box-shadow:0 0 1em rgba(255,255,255,.25);box-shadow:0 0 1em rgba(255,255,255,.25);-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-default-skin.vjs-big-play-centered .vjs-big-play-button{left:50%;margin-left:-2.1em;top:50%;margin-top:-1.4000000000000001em}.vjs-default-skin.vjs-controls-disabled .vjs-big-play-button{display:none}.vjs-default-skin.vjs-has-started .vjs-big-play-button{display:none}.vjs-default-skin.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-default-skin:hover .vjs-big-play-button,.vjs-default-skin .vjs-big-play-button:focus{outline:0;border-color:#fff;background-color:#505050;background-color:rgba(50,50,50,.75);-webkit-box-shadow:0 0 3em #fff;-moz-box-shadow:0 0 3em #fff;box-shadow:0 0 3em #fff;-webkit-transition:all 0s;-moz-transition:all 0s;-o-transition:all 0s;transition:all 0s}.vjs-default-skin .vjs-big-play-button:before{content:"\e001";font-family:VideoJS;line-height:2.6em;text-shadow:.05em .05em .1em #000;text-align:center;position:absolute;left:0;width:100%;height:100%}.vjs-error .vjs-big-play-button{display:none}.vjs-error-display{display:none}.vjs-error .vjs-error-display{display:block;position:absolute;left:0;top:0;width:100%;height:100%}.vjs-error .vjs-error-display:before{content:'X';font-family:Arial;font-size:4em;color:#666;line-height:1;text-shadow:.05em .05em .1em #000;text-align:center;vertical-align:middle;position:absolute;left:0;top:50%;margin-top:-.5em;width:100%}.vjs-error-display div{position:absolute;bottom:1em;right:0;left:0;font-size:1.4em;text-align:center;padding:3px;background:#000;background:rgba(0,0,0,.5)}.vjs-error-display a,.vjs-error-display a:visited{color:#F4A460}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;font-size:4em;line-height:1;width:1em;height:1em;margin-left:-.5em;margin-top:-.5em;opacity:.75}.vjs-waiting .vjs-loading-spinner,.vjs-seeking .vjs-loading-spinner{display:block;-webkit-animation:spin 1.5s infinite linear;-moz-animation:spin 1.5s infinite linear;-o-animation:spin 1.5s infinite linear;animation:spin 1.5s infinite linear}.vjs-error .vjs-loading-spinner{display:none;-webkit-animation:none;-moz-animation:none;-o-animation:none;animation:none}.vjs-default-skin .vjs-loading-spinner:before{content:"\e01e";font-family:VideoJS;position:absolute;top:0;left:0;width:1em;height:1em;text-align:center;text-shadow:0 0 .1em #000}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.vjs-default-skin .vjs-menu-button{float:right;cursor:pointer}.vjs-default-skin .vjs-menu{display:none;position:absolute;bottom:0;left:0;width:0;height:0;margin-bottom:3em;border-left:2em solid transparent;border-right:2em solid transparent;border-top:1.55em solid #000;border-top-color:rgba(7,40,50,.5)}.vjs-default-skin .vjs-menu-button .vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;position:absolute;width:10em;bottom:1.5em;max-height:15em;overflow:auto;left:-5em;background-color:#07141e;background-color:rgba(7,20,30,.7);-webkit-box-shadow:-.2em -.2em .3em rgba(255,255,255,.2);-moz-box-shadow:-.2em -.2em .3em rgba(255,255,255,.2);box-shadow:-.2em -.2em .3em rgba(255,255,255,.2)}.vjs-default-skin .vjs-menu-button:hover .vjs-control-content .vjs-menu,.vjs-default-skin .vjs-control-content .vjs-menu.vjs-lock-showing{display:block}.vjs-default-skin.vjs-scrubbing .vjs-menu-button:hover .vjs-control-content .vjs-menu{display:none}.vjs-default-skin .vjs-menu-button ul li{list-style:none;margin:0;padding:.3em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.vjs-default-skin .vjs-menu-button ul li.vjs-selected{background-color:#000}.vjs-default-skin .vjs-menu-button ul li:focus,.vjs-default-skin .vjs-menu-button ul li:hover,.vjs-default-skin .vjs-menu-button ul li.vjs-selected:focus,.vjs-default-skin .vjs-menu-button ul li.vjs-selected:hover{outline:0;color:#111;background-color:#fff;background-color:rgba(255,255,255,.75);-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.vjs-default-skin .vjs-menu-button ul li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:default}.vjs-default-skin .vjs-subtitles-button:before{content:"\e00c"}.vjs-default-skin .vjs-captions-button:before{content:"\e008"}.vjs-default-skin .vjs-chapters-button:before{content:"\e00c"}.vjs-default-skin .vjs-chapters-button.vjs-menu-button .vjs-menu .vjs-menu-content{width:24em;left:-12em}.vjs-default-skin .vjs-captions-button:focus .vjs-control-content:before,.vjs-default-skin .vjs-captions-button:hover .vjs-control-content:before{-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js{background-color:#000;position:relative;padding:0;font-size:10px;vertical-align:middle;font-weight:400;font-style:normal;font-family:Arial,sans-serif;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}.video-js:-moz-full-screen{position:absolute}body.vjs-full-window{padding:0;margin:0;height:100%;overflow-y:auto}.video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0;width:100%!important;height:100%!important;_position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-poster{background-repeat:no-repeat;background-position:50% 50%;background-size:contain;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0}.vjs-poster img{display:block;margin:0 auto;max-height:100%;padding:0;width:100%}.video-js.vjs-has-started .vjs-poster{display:none}.video-js.vjs-audio.vjs-has-started .vjs-poster{display:block}.video-js.vjs-controls-disabled .vjs-poster{display:none}.video-js.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-text-track-display{position:absolute;top:0;left:0;bottom:3em;right:0;pointer-events:none}.vjs-caption-settings{position:relative;top:1em;background-color:#000;opacity:.75;color:#FFF;margin:0 auto;padding:.5em;height:15em;font-family:Arial,Helvetica,sans-serif;font-size:12px;width:40em}.vjs-caption-settings .vjs-tracksettings{top:0;bottom:2em;left:0;right:0;position:absolute;overflow:auto}.vjs-caption-settings .vjs-tracksettings-colors,.vjs-caption-settings .vjs-tracksettings-font{float:left}.vjs-caption-settings .vjs-tracksettings-colors:after,.vjs-caption-settings .vjs-tracksettings-font:after,.vjs-caption-settings .vjs-tracksettings-controls:after{clear:both}.vjs-caption-settings .vjs-tracksettings-controls{position:absolute;bottom:1em;right:1em}.vjs-caption-settings .vjs-tracksetting{margin:5px;padding:3px;min-height:40px}.vjs-caption-settings .vjs-tracksetting label{display:block;width:100px;margin-bottom:5px}.vjs-caption-settings .vjs-tracksetting span{display:inline;margin-left:5px}.vjs-caption-settings .vjs-tracksetting>div{margin-bottom:5px;min-height:20px}.vjs-caption-settings .vjs-tracksetting>div:last-child{margin-bottom:0;padding-bottom:0;min-height:0}.vjs-caption-settings label>input{margin-right:10px}.vjs-caption-settings input[type=button]{width:40px;height:40px}.vjs-hidden{display:none!important}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:2em;color:#ccc;background-color:#333;font-size:1.8em;font-family:Arial,sans-serif;text-align:center;width:30em;height:15em;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#F4A460}
\ No newline at end of file
diff --git a/js/video-js/video-js.swf b/js/video-js/video-js.swf
new file mode 100644
index 0000000..155b499
Binary files /dev/null and b/js/video-js/video-js.swf differ
diff --git a/js/video-js/video.dev.js b/js/video-js/video.dev.js
new file mode 100644
index 0000000..f14d53d
--- /dev/null
+++ b/js/video-js/video.dev.js
@@ -0,0 +1,11797 @@
+/**
+ * @fileoverview Main function src.
+ */
+
+// HTML5 Shiv. Must be in to support older browsers.
+document.createElement('video');
+document.createElement('audio');
+document.createElement('track');
+
+/**
+ * Doubles as the main function for users to create a player instance and also
+ * the main library object.
+ *
+ * **ALIASES** videojs, _V_ (deprecated)
+ *
+ * The `vjs` function can be used to initialize or retrieve a player.
+ *
+ * var myPlayer = vjs('my_video_id');
+ *
+ * @param {String|Element} id Video element or video element ID
+ * @param {Object=} options Optional options object for config/settings
+ * @param {Function=} ready Optional ready callback
+ * @return {vjs.Player} A player instance
+ * @namespace
+ */
+var vjs = function(id, options, ready){
+ var tag; // Element of ID
+
+ // Allow for element or ID to be passed in
+ // String ID
+ if (typeof id === 'string') {
+
+ // Adjust for jQuery ID syntax
+ if (id.indexOf('#') === 0) {
+ id = id.slice(1);
+ }
+
+ // If a player instance has already been created for this ID return it.
+ if (vjs.players[id]) {
+
+ // If options or ready funtion are passed, warn
+ if (options) {
+ vjs.log.warn ('Player "' + id + '" is already initialised. Options will not be applied.');
+ }
+
+ if (ready) {
+ vjs.players[id].ready(ready);
+ }
+
+ return vjs.players[id];
+
+ // Otherwise get element for ID
+ } else {
+ tag = vjs.el(id);
+ }
+
+ // ID is a media element
+ } else {
+ tag = id;
+ }
+
+ // Check for a useable element
+ if (!tag || !tag.nodeName) { // re: nodeName, could be a box div also
+ throw new TypeError('The element or ID supplied is not valid. (videojs)'); // Returns
+ }
+
+ // Element may have a player attr referring to an already created player instance.
+ // If not, set up a new player and return the instance.
+ return tag['player'] || new vjs.Player(tag, options, ready);
+};
+
+// Extended name, also available externally, window.videojs
+var videojs = window['videojs'] = vjs;
+
+// CDN Version. Used to target right flash swf.
+vjs.CDN_VERSION = '4.12';
+vjs.ACCESS_PROTOCOL = ('https:' == document.location.protocol ? 'https://' : 'http://');
+
+/**
+* Full player version
+* @type {string}
+*/
+vjs['VERSION'] = '4.12.1';
+
+/**
+ * Global Player instance options, surfaced from vjs.Player.prototype.options_
+ * vjs.options = vjs.Player.prototype.options_
+ * All options should use string keys so they avoid
+ * renaming by closure compiler
+ * @type {Object}
+ */
+vjs.options = {
+ // Default order of fallback technology
+ 'techOrder': ['html5','flash'],
+ // techOrder: ['flash','html5'],
+
+ 'html5': {},
+ 'flash': {},
+
+ // Default of web browser is 300x150. Should rely on source width/height.
+ 'width': 300,
+ 'height': 150,
+ // defaultVolume: 0.85,
+ 'defaultVolume': 0.00, // The freakin seaguls are driving me crazy!
+
+ // default playback rates
+ 'playbackRates': [],
+ // Add playback rate selection by adding rates
+ // 'playbackRates': [0.5, 1, 1.5, 2],
+
+ // default inactivity timeout
+ 'inactivityTimeout': 2000,
+
+ // Included control sets
+ 'children': {
+ 'mediaLoader': {},
+ 'posterImage': {},
+ 'loadingSpinner': {},
+ 'textTrackDisplay': {},
+ 'bigPlayButton': {},
+ 'controlBar': {},
+ 'errorDisplay': {},
+ 'textTrackSettings': {}
+ },
+
+ 'language': document.getElementsByTagName('html')[0].getAttribute('lang') || navigator.languages && navigator.languages[0] || navigator.userLanguage || navigator.language || 'en',
+
+ // locales and their language translations
+ 'languages': {},
+
+ // Default message to show when a video cannot be played.
+ 'notSupportedMessage': 'No compatible source was found for this video.'
+};
+
+// Set CDN Version of swf
+// The added (+) blocks the replace from changing this 4.12 string
+if (vjs.CDN_VERSION !== 'GENERATED'+'_CDN_VSN') {
+ videojs.options['flash']['swf'] = vjs.ACCESS_PROTOCOL + 'vjs.zencdn.net/'+vjs.CDN_VERSION+'/video-js.swf';
+}
+
+/**
+ * Utility function for adding languages to the default options. Useful for
+ * amending multiple language support at runtime.
+ *
+ * Example: vjs.addLanguage('es', {'Hello':'Hola'});
+ *
+ * @param {String} code The language code or dictionary property
+ * @param {Object} data The data values to be translated
+ * @return {Object} The resulting global languages dictionary object
+ */
+vjs.addLanguage = function(code, data){
+ if(vjs.options['languages'][code] !== undefined) {
+ vjs.options['languages'][code] = vjs.util.mergeOptions(vjs.options['languages'][code], data);
+ } else {
+ vjs.options['languages'][code] = data;
+ }
+ return vjs.options['languages'];
+};
+
+/**
+ * Global player list
+ * @type {Object}
+ */
+vjs.players = {};
+
+/*!
+ * Custom Universal Module Definition (UMD)
+ *
+ * Video.js will never be a non-browser lib so we can simplify UMD a bunch and
+ * still support requirejs and browserify. This also needs to be closure
+ * compiler compatible, so string keys are used.
+ */
+if (typeof define === 'function' && define['amd']) {
+ define('videojs', [], function(){ return videojs; });
+
+// checking that module is an object too because of umdjs/umd#35
+} else if (typeof exports === 'object' && typeof module === 'object') {
+ module['exports'] = videojs;
+}
+/**
+ * Core Object/Class for objects that use inheritance + constructors
+ *
+ * To create a class that can be subclassed itself, extend the CoreObject class.
+ *
+ * var Animal = CoreObject.extend();
+ * var Horse = Animal.extend();
+ *
+ * The constructor can be defined through the init property of an object argument.
+ *
+ * var Animal = CoreObject.extend({
+ * init: function(name, sound){
+ * this.name = name;
+ * }
+ * });
+ *
+ * Other methods and properties can be added the same way, or directly to the
+ * prototype.
+ *
+ * var Animal = CoreObject.extend({
+ * init: function(name){
+ * this.name = name;
+ * },
+ * getName: function(){
+ * return this.name;
+ * },
+ * sound: '...'
+ * });
+ *
+ * Animal.prototype.makeSound = function(){
+ * alert(this.sound);
+ * };
+ *
+ * To create an instance of a class, use the create method.
+ *
+ * var fluffy = Animal.create('Fluffy');
+ * fluffy.getName(); // -> Fluffy
+ *
+ * Methods and properties can be overridden in subclasses.
+ *
+ * var Horse = Animal.extend({
+ * sound: 'Neighhhhh!'
+ * });
+ *
+ * var horsey = Horse.create('Horsey');
+ * horsey.getName(); // -> Horsey
+ * horsey.makeSound(); // -> Alert: Neighhhhh!
+ *
+ * @class
+ * @constructor
+ */
+vjs.CoreObject = vjs['CoreObject'] = function(){};
+// Manually exporting vjs['CoreObject'] here for Closure Compiler
+// because of the use of the extend/create class methods
+// If we didn't do this, those functions would get flattened to something like
+// `a = ...` and `this.prototype` would refer to the global object instead of
+// CoreObject
+
+/**
+ * Create a new object that inherits from this Object
+ *
+ * var Animal = CoreObject.extend();
+ * var Horse = Animal.extend();
+ *
+ * @param {Object} props Functions and properties to be applied to the
+ * new object's prototype
+ * @return {vjs.CoreObject} An object that inherits from CoreObject
+ * @this {*}
+ */
+vjs.CoreObject.extend = function(props){
+ var init, subObj;
+
+ props = props || {};
+ // Set up the constructor using the supplied init method
+ // or using the init of the parent object
+ // Make sure to check the unobfuscated version for external libs
+ init = props['init'] || props.init || this.prototype['init'] || this.prototype.init || function(){};
+ // In Resig's simple class inheritance (previously used) the constructor
+ // is a function that calls `this.init.apply(arguments)`
+ // However that would prevent us from using `ParentObject.call(this);`
+ // in a Child constructor because the `this` in `this.init`
+ // would still refer to the Child and cause an infinite loop.
+ // We would instead have to do
+ // `ParentObject.prototype.init.apply(this, arguments);`
+ // Bleh. We're not creating a _super() function, so it's good to keep
+ // the parent constructor reference simple.
+ subObj = function(){
+ init.apply(this, arguments);
+ };
+
+ // Inherit from this object's prototype
+ subObj.prototype = vjs.obj.create(this.prototype);
+ // Reset the constructor property for subObj otherwise
+ // instances of subObj would have the constructor of the parent Object
+ subObj.prototype.constructor = subObj;
+
+ // Make the class extendable
+ subObj.extend = vjs.CoreObject.extend;
+ // Make a function for creating instances
+ subObj.create = vjs.CoreObject.create;
+
+ // Extend subObj's prototype with functions and other properties from props
+ for (var name in props) {
+ if (props.hasOwnProperty(name)) {
+ subObj.prototype[name] = props[name];
+ }
+ }
+
+ return subObj;
+};
+
+/**
+ * Create a new instance of this Object class
+ *
+ * var myAnimal = Animal.create();
+ *
+ * @return {vjs.CoreObject} An instance of a CoreObject subclass
+ * @this {*}
+ */
+vjs.CoreObject.create = function(){
+ // Create a new object that inherits from this object's prototype
+ var inst = vjs.obj.create(this.prototype);
+
+ // Apply this constructor function to the new object
+ this.apply(inst, arguments);
+
+ // Return the new object
+ return inst;
+};
+/**
+ * @fileoverview Event System (John Resig - Secrets of a JS Ninja http://jsninja.com/)
+ * (Original book version wasn't completely usable, so fixed some things and made Closure Compiler compatible)
+ * This should work very similarly to jQuery's events, however it's based off the book version which isn't as
+ * robust as jquery's, so there's probably some differences.
+ */
+
+/**
+ * Add an event listener to element
+ * It stores the handler function in a separate cache object
+ * and adds a generic handler to the element's event,
+ * along with a unique id (guid) to the element.
+ * @param {Element|Object} elem Element or object to bind listeners to
+ * @param {String|Array} type Type of event to bind to.
+ * @param {Function} fn Event listener.
+ * @private
+ */
+vjs.on = function(elem, type, fn){
+ if (vjs.obj.isArray(type)) {
+ return _handleMultipleEvents(vjs.on, elem, type, fn);
+ }
+
+ var data = vjs.getData(elem);
+
+ // We need a place to store all our handler data
+ if (!data.handlers) data.handlers = {};
+
+ if (!data.handlers[type]) data.handlers[type] = [];
+
+ if (!fn.guid) fn.guid = vjs.guid++;
+
+ data.handlers[type].push(fn);
+
+ if (!data.dispatcher) {
+ data.disabled = false;
+
+ data.dispatcher = function (event){
+
+ if (data.disabled) return;
+ event = vjs.fixEvent(event);
+
+ var handlers = data.handlers[event.type];
+
+ if (handlers) {
+ // Copy handlers so if handlers are added/removed during the process it doesn't throw everything off.
+ var handlersCopy = handlers.slice(0);
+
+ for (var m = 0, n = handlersCopy.length; m < n; m++) {
+ if (event.isImmediatePropagationStopped()) {
+ break;
+ } else {
+ handlersCopy[m].call(elem, event);
+ }
+ }
+ }
+ };
+ }
+
+ if (data.handlers[type].length == 1) {
+ if (elem.addEventListener) {
+ elem.addEventListener(type, data.dispatcher, false);
+ } else if (elem.attachEvent) {
+ elem.attachEvent('on' + type, data.dispatcher);
+ }
+ }
+};
+
+/**
+ * Removes event listeners from an element
+ * @param {Element|Object} elem Object to remove listeners from
+ * @param {String|Array=} type Type of listener to remove. Don't include to remove all events from element.
+ * @param {Function} fn Specific listener to remove. Don't include to remove listeners for an event type.
+ * @private
+ */
+vjs.off = function(elem, type, fn) {
+ // Don't want to add a cache object through getData if not needed
+ if (!vjs.hasData(elem)) return;
+
+ var data = vjs.getData(elem);
+
+ // If no events exist, nothing to unbind
+ if (!data.handlers) { return; }
+
+ if (vjs.obj.isArray(type)) {
+ return _handleMultipleEvents(vjs.off, elem, type, fn);
+ }
+
+ // Utility function
+ var removeType = function(t){
+ data.handlers[t] = [];
+ vjs.cleanUpEvents(elem,t);
+ };
+
+ // Are we removing all bound events?
+ if (!type) {
+ for (var t in data.handlers) removeType(t);
+ return;
+ }
+
+ var handlers = data.handlers[type];
+
+ // If no handlers exist, nothing to unbind
+ if (!handlers) return;
+
+ // If no listener was provided, remove all listeners for type
+ if (!fn) {
+ removeType(type);
+ return;
+ }
+
+ // We're only removing a single handler
+ if (fn.guid) {
+ for (var n = 0; n < handlers.length; n++) {
+ if (handlers[n].guid === fn.guid) {
+ handlers.splice(n--, 1);
+ }
+ }
+ }
+
+ vjs.cleanUpEvents(elem, type);
+};
+
+/**
+ * Clean up the listener cache and dispatchers
+ * @param {Element|Object} elem Element to clean up
+ * @param {String} type Type of event to clean up
+ * @private
+ */
+vjs.cleanUpEvents = function(elem, type) {
+ var data = vjs.getData(elem);
+
+ // Remove the events of a particular type if there are none left
+ if (data.handlers[type].length === 0) {
+ delete data.handlers[type];
+ // data.handlers[type] = null;
+ // Setting to null was causing an error with data.handlers
+
+ // Remove the meta-handler from the element
+ if (elem.removeEventListener) {
+ elem.removeEventListener(type, data.dispatcher, false);
+ } else if (elem.detachEvent) {
+ elem.detachEvent('on' + type, data.dispatcher);
+ }
+ }
+
+ // Remove the events object if there are no types left
+ if (vjs.isEmpty(data.handlers)) {
+ delete data.handlers;
+ delete data.dispatcher;
+ delete data.disabled;
+
+ // data.handlers = null;
+ // data.dispatcher = null;
+ // data.disabled = null;
+ }
+
+ // Finally remove the expando if there is no data left
+ if (vjs.isEmpty(data)) {
+ vjs.removeData(elem);
+ }
+};
+
+/**
+ * Fix a native event to have standard property values
+ * @param {Object} event Event object to fix
+ * @return {Object}
+ * @private
+ */
+vjs.fixEvent = function(event) {
+
+ function returnTrue() { return true; }
+ function returnFalse() { return false; }
+
+ // Test if fixing up is needed
+ // Used to check if !event.stopPropagation instead of isPropagationStopped
+ // But native events return true for stopPropagation, but don't have
+ // other expected methods like isPropagationStopped. Seems to be a problem
+ // with the Javascript Ninja code. So we're just overriding all events now.
+ if (!event || !event.isPropagationStopped) {
+ var old = event || window.event;
+
+ event = {};
+ // Clone the old object so that we can modify the values event = {};
+ // IE8 Doesn't like when you mess with native event properties
+ // Firefox returns false for event.hasOwnProperty('type') and other props
+ // which makes copying more difficult.
+ // TODO: Probably best to create a whitelist of event props
+ for (var key in old) {
+ // Safari 6.0.3 warns you if you try to copy deprecated layerX/Y
+ // Chrome warns you if you try to copy deprecated keyboardEvent.keyLocation
+ if (key !== 'layerX' && key !== 'layerY' && key !== 'keyLocation') {
+ // Chrome 32+ warns if you try to copy deprecated returnValue, but
+ // we still want to if preventDefault isn't supported (IE8).
+ if (!(key == 'returnValue' && old.preventDefault)) {
+ event[key] = old[key];
+ }
+ }
+ }
+
+ // The event occurred on this element
+ if (!event.target) {
+ event.target = event.srcElement || document;
+ }
+
+ // Handle which other element the event is related to
+ event.relatedTarget = event.fromElement === event.target ?
+ event.toElement :
+ event.fromElement;
+
+ // Stop the default browser action
+ event.preventDefault = function () {
+ if (old.preventDefault) {
+ old.preventDefault();
+ }
+ event.returnValue = false;
+ event.isDefaultPrevented = returnTrue;
+ event.defaultPrevented = true;
+ };
+
+ event.isDefaultPrevented = returnFalse;
+ event.defaultPrevented = false;
+
+ // Stop the event from bubbling
+ event.stopPropagation = function () {
+ if (old.stopPropagation) {
+ old.stopPropagation();
+ }
+ event.cancelBubble = true;
+ event.isPropagationStopped = returnTrue;
+ };
+
+ event.isPropagationStopped = returnFalse;
+
+ // Stop the event from bubbling and executing other handlers
+ event.stopImmediatePropagation = function () {
+ if (old.stopImmediatePropagation) {
+ old.stopImmediatePropagation();
+ }
+ event.isImmediatePropagationStopped = returnTrue;
+ event.stopPropagation();
+ };
+
+ event.isImmediatePropagationStopped = returnFalse;
+
+ // Handle mouse position
+ if (event.clientX != null) {
+ var doc = document.documentElement, body = document.body;
+
+ event.pageX = event.clientX +
+ (doc && doc.scrollLeft || body && body.scrollLeft || 0) -
+ (doc && doc.clientLeft || body && body.clientLeft || 0);
+ event.pageY = event.clientY +
+ (doc && doc.scrollTop || body && body.scrollTop || 0) -
+ (doc && doc.clientTop || body && body.clientTop || 0);
+ }
+
+ // Handle key presses
+ event.which = event.charCode || event.keyCode;
+
+ // Fix button for mouse clicks:
+ // 0 == left; 1 == middle; 2 == right
+ if (event.button != null) {
+ event.button = (event.button & 1 ? 0 :
+ (event.button & 4 ? 1 :
+ (event.button & 2 ? 2 : 0)));
+ }
+ }
+
+ // Returns fixed-up instance
+ return event;
+};
+
+/**
+ * Trigger an event for an element
+ * @param {Element|Object} elem Element to trigger an event on
+ * @param {Event|Object|String} event A string (the type) or an event object with a type attribute
+ * @private
+ */
+vjs.trigger = function(elem, event) {
+ // Fetches element data and a reference to the parent (for bubbling).
+ // Don't want to add a data object to cache for every parent,
+ // so checking hasData first.
+ var elemData = (vjs.hasData(elem)) ? vjs.getData(elem) : {};
+ var parent = elem.parentNode || elem.ownerDocument;
+ // type = event.type || event,
+ // handler;
+
+ // If an event name was passed as a string, creates an event out of it
+ if (typeof event === 'string') {
+ event = { type:event, target:elem };
+ }
+ // Normalizes the event properties.
+ event = vjs.fixEvent(event);
+
+ // If the passed element has a dispatcher, executes the established handlers.
+ if (elemData.dispatcher) {
+ elemData.dispatcher.call(elem, event);
+ }
+
+ // Unless explicitly stopped or the event does not bubble (e.g. media events)
+ // recursively calls this function to bubble the event up the DOM.
+ if (parent && !event.isPropagationStopped() && event.bubbles !== false) {
+ vjs.trigger(parent, event);
+
+ // If at the top of the DOM, triggers the default action unless disabled.
+ } else if (!parent && !event.defaultPrevented) {
+ var targetData = vjs.getData(event.target);
+
+ // Checks if the target has a default action for this event.
+ if (event.target[event.type]) {
+ // Temporarily disables event dispatching on the target as we have already executed the handler.
+ targetData.disabled = true;
+ // Executes the default action.
+ if (typeof event.target[event.type] === 'function') {
+ event.target[event.type]();
+ }
+ // Re-enables event dispatching.
+ targetData.disabled = false;
+ }
+ }
+
+ // Inform the triggerer if the default was prevented by returning false
+ return !event.defaultPrevented;
+ /* Original version of js ninja events wasn't complete.
+ * We've since updated to the latest version, but keeping this around
+ * for now just in case.
+ */
+ // // Added in addition to book. Book code was broke.
+ // event = typeof event === 'object' ?
+ // event[vjs.expando] ?
+ // event :
+ // new vjs.Event(type, event) :
+ // new vjs.Event(type);
+
+ // event.type = type;
+ // if (handler) {
+ // handler.call(elem, event);
+ // }
+
+ // // Clean up the event in case it is being reused
+ // event.result = undefined;
+ // event.target = elem;
+};
+
+/**
+ * Trigger a listener only once for an event
+ * @param {Element|Object} elem Element or object to
+ * @param {String|Array} type
+ * @param {Function} fn
+ * @private
+ */
+vjs.one = function(elem, type, fn) {
+ if (vjs.obj.isArray(type)) {
+ return _handleMultipleEvents(vjs.one, elem, type, fn);
+ }
+ var func = function(){
+ vjs.off(elem, type, func);
+ fn.apply(this, arguments);
+ };
+ // copy the guid to the new function so it can removed using the original function's ID
+ func.guid = fn.guid = fn.guid || vjs.guid++;
+ vjs.on(elem, type, func);
+};
+
+/**
+ * Loops through an array of event types and calls the requested method for each type.
+ * @param {Function} fn The event method we want to use.
+ * @param {Element|Object} elem Element or object to bind listeners to
+ * @param {String} type Type of event to bind to.
+ * @param {Function} callback Event listener.
+ * @private
+ */
+function _handleMultipleEvents(fn, elem, type, callback) {
+ vjs.arr.forEach(type, function(type) {
+ fn(elem, type, callback); //Call the event method for each one of the types
+ });
+}
+var hasOwnProp = Object.prototype.hasOwnProperty;
+
+/**
+ * Creates an element and applies properties.
+ * @param {String=} tagName Name of tag to be created.
+ * @param {Object=} properties Element properties to be applied.
+ * @return {Element}
+ * @private
+ */
+vjs.createEl = function(tagName, properties){
+ var el;
+
+ tagName = tagName || 'div';
+ properties = properties || {};
+
+ el = document.createElement(tagName);
+
+ vjs.obj.each(properties, function(propName, val){
+ // Not remembering why we were checking for dash
+ // but using setAttribute means you have to use getAttribute
+
+ // The check for dash checks for the aria-* attributes, like aria-label, aria-valuemin.
+ // The additional check for "role" is because the default method for adding attributes does not
+ // add the attribute "role". My guess is because it's not a valid attribute in some namespaces, although
+ // browsers handle the attribute just fine. The W3C allows for aria-* attributes to be used in pre-HTML5 docs.
+ // http://www.w3.org/TR/wai-aria-primer/#ariahtml. Using setAttribute gets around this problem.
+ if (propName.indexOf('aria-') !== -1 || propName == 'role') {
+ el.setAttribute(propName, val);
+ } else {
+ el[propName] = val;
+ }
+ });
+
+ return el;
+};
+
+/**
+ * Uppercase the first letter of a string
+ * @param {String} string String to be uppercased
+ * @return {String}
+ * @private
+ */
+vjs.capitalize = function(string){
+ return string.charAt(0).toUpperCase() + string.slice(1);
+};
+
+/**
+ * Object functions container
+ * @type {Object}
+ * @private
+ */
+vjs.obj = {};
+
+/**
+ * Object.create shim for prototypal inheritance
+ *
+ * https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/create
+ *
+ * @function
+ * @param {Object} obj Object to use as prototype
+ * @private
+ */
+vjs.obj.create = Object.create || function(obj){
+ //Create a new function called 'F' which is just an empty object.
+ function F() {}
+
+ //the prototype of the 'F' function should point to the
+ //parameter of the anonymous function.
+ F.prototype = obj;
+
+ //create a new constructor function based off of the 'F' function.
+ return new F();
+};
+
+/**
+ * Loop through each property in an object and call a function
+ * whose arguments are (key,value)
+ * @param {Object} obj Object of properties
+ * @param {Function} fn Function to be called on each property.
+ * @this {*}
+ * @private
+ */
+vjs.obj.each = function(obj, fn, context){
+ for (var key in obj) {
+ if (hasOwnProp.call(obj, key)) {
+ fn.call(context || this, key, obj[key]);
+ }
+ }
+};
+
+/**
+ * Merge two objects together and return the original.
+ * @param {Object} obj1
+ * @param {Object} obj2
+ * @return {Object}
+ * @private
+ */
+vjs.obj.merge = function(obj1, obj2){
+ if (!obj2) { return obj1; }
+ for (var key in obj2){
+ if (hasOwnProp.call(obj2, key)) {
+ obj1[key] = obj2[key];
+ }
+ }
+ return obj1;
+};
+
+/**
+ * Merge two objects, and merge any properties that are objects
+ * instead of just overwriting one. Uses to merge options hashes
+ * where deeper default settings are important.
+ * @param {Object} obj1 Object to override
+ * @param {Object} obj2 Overriding object
+ * @return {Object} New object. Obj1 and Obj2 will be untouched.
+ * @private
+ */
+vjs.obj.deepMerge = function(obj1, obj2){
+ var key, val1, val2;
+
+ // make a copy of obj1 so we're not overwriting original values.
+ // like prototype.options_ and all sub options objects
+ obj1 = vjs.obj.copy(obj1);
+
+ for (key in obj2){
+ if (hasOwnProp.call(obj2, key)) {
+ val1 = obj1[key];
+ val2 = obj2[key];
+
+ // Check if both properties are pure objects and do a deep merge if so
+ if (vjs.obj.isPlain(val1) && vjs.obj.isPlain(val2)) {
+ obj1[key] = vjs.obj.deepMerge(val1, val2);
+ } else {
+ obj1[key] = obj2[key];
+ }
+ }
+ }
+ return obj1;
+};
+
+/**
+ * Make a copy of the supplied object
+ * @param {Object} obj Object to copy
+ * @return {Object} Copy of object
+ * @private
+ */
+vjs.obj.copy = function(obj){
+ return vjs.obj.merge({}, obj);
+};
+
+/**
+ * Check if an object is plain, and not a dom node or any object sub-instance
+ * @param {Object} obj Object to check
+ * @return {Boolean} True if plain, false otherwise
+ * @private
+ */
+vjs.obj.isPlain = function(obj){
+ return !!obj
+ && typeof obj === 'object'
+ && obj.toString() === '[object Object]'
+ && obj.constructor === Object;
+};
+
+/**
+ * Check if an object is Array
+* Since instanceof Array will not work on arrays created in another frame we need to use Array.isArray, but since IE8 does not support Array.isArray we need this shim
+ * @param {Object} obj Object to check
+ * @return {Boolean} True if plain, false otherwise
+ * @private
+ */
+vjs.obj.isArray = Array.isArray || function(arr) {
+ return Object.prototype.toString.call(arr) === '[object Array]';
+};
+
+/**
+ * Check to see whether the input is NaN or not.
+ * NaN is the only JavaScript construct that isn't equal to itself
+ * @param {Number} num Number to check
+ * @return {Boolean} True if NaN, false otherwise
+ * @private
+ */
+vjs.isNaN = function(num) {
+ return num !== num;
+};
+
+/**
+ * Bind (a.k.a proxy or Context). A simple method for changing the context of a function
+ It also stores a unique id on the function so it can be easily removed from events
+ * @param {*} context The object to bind as scope
+ * @param {Function} fn The function to be bound to a scope
+ * @param {Number=} uid An optional unique ID for the function to be set
+ * @return {Function}
+ * @private
+ */
+vjs.bind = function(context, fn, uid) {
+ // Make sure the function has a unique ID
+ if (!fn.guid) { fn.guid = vjs.guid++; }
+
+ // Create the new function that changes the context
+ var ret = function() {
+ return fn.apply(context, arguments);
+ };
+
+ // Allow for the ability to individualize this function
+ // Needed in the case where multiple objects might share the same prototype
+ // IF both items add an event listener with the same function, then you try to remove just one
+ // it will remove both because they both have the same guid.
+ // when using this, you need to use the bind method when you remove the listener as well.
+ // currently used in text tracks
+ ret.guid = (uid) ? uid + '_' + fn.guid : fn.guid;
+
+ return ret;
+};
+
+/**
+ * Element Data Store. Allows for binding data to an element without putting it directly on the element.
+ * Ex. Event listeners are stored here.
+ * (also from jsninja.com, slightly modified and updated for closure compiler)
+ * @type {Object}
+ * @private
+ */
+vjs.cache = {};
+
+/**
+ * Unique ID for an element or function
+ * @type {Number}
+ * @private
+ */
+vjs.guid = 1;
+
+/**
+ * Unique attribute name to store an element's guid in
+ * @type {String}
+ * @constant
+ * @private
+ */
+vjs.expando = 'vdata' + (new Date()).getTime();
+
+/**
+ * Returns the cache object where data for an element is stored
+ * @param {Element} el Element to store data for.
+ * @return {Object}
+ * @private
+ */
+vjs.getData = function(el){
+ var id = el[vjs.expando];
+ if (!id) {
+ id = el[vjs.expando] = vjs.guid++;
+ }
+ if (!vjs.cache[id]) {
+ vjs.cache[id] = {};
+ }
+ return vjs.cache[id];
+};
+
+/**
+ * Returns the cache object where data for an element is stored
+ * @param {Element} el Element to store data for.
+ * @return {Object}
+ * @private
+ */
+vjs.hasData = function(el){
+ var id = el[vjs.expando];
+ return !(!id || vjs.isEmpty(vjs.cache[id]));
+};
+
+/**
+ * Delete data for the element from the cache and the guid attr from getElementById
+ * @param {Element} el Remove data for an element
+ * @private
+ */
+vjs.removeData = function(el){
+ var id = el[vjs.expando];
+ if (!id) { return; }
+ // Remove all stored data
+ // Changed to = null
+ // http://coding.smashingmagazine.com/2012/11/05/writing-fast-memory-efficient-javascript/
+ // vjs.cache[id] = null;
+ delete vjs.cache[id];
+
+ // Remove the expando property from the DOM node
+ try {
+ delete el[vjs.expando];
+ } catch(e) {
+ if (el.removeAttribute) {
+ el.removeAttribute(vjs.expando);
+ } else {
+ // IE doesn't appear to support removeAttribute on the document element
+ el[vjs.expando] = null;
+ }
+ }
+};
+
+/**
+ * Check if an object is empty
+ * @param {Object} obj The object to check for emptiness
+ * @return {Boolean}
+ * @private
+ */
+vjs.isEmpty = function(obj) {
+ for (var prop in obj) {
+ // Inlude null properties as empty.
+ if (obj[prop] !== null) {
+ return false;
+ }
+ }
+ return true;
+};
+
+/**
+ * Check if an element has a CSS class
+ * @param {Element} element Element to check
+ * @param {String} classToCheck Classname to check
+ * @private
+ */
+vjs.hasClass = function(element, classToCheck){
+ return ((' ' + element.className + ' ').indexOf(' ' + classToCheck + ' ') !== -1);
+};
+
+
+/**
+ * Add a CSS class name to an element
+ * @param {Element} element Element to add class name to
+ * @param {String} classToAdd Classname to add
+ * @private
+ */
+vjs.addClass = function(element, classToAdd){
+ if (!vjs.hasClass(element, classToAdd)) {
+ element.className = element.className === '' ? classToAdd : element.className + ' ' + classToAdd;
+ }
+};
+
+/**
+ * Remove a CSS class name from an element
+ * @param {Element} element Element to remove from class name
+ * @param {String} classToAdd Classname to remove
+ * @private
+ */
+vjs.removeClass = function(element, classToRemove){
+ var classNames, i;
+
+ if (!vjs.hasClass(element, classToRemove)) {return;}
+
+ classNames = element.className.split(' ');
+
+ // no arr.indexOf in ie8, and we don't want to add a big shim
+ for (i = classNames.length - 1; i >= 0; i--) {
+ if (classNames[i] === classToRemove) {
+ classNames.splice(i,1);
+ }
+ }
+
+ element.className = classNames.join(' ');
+};
+
+/**
+ * Element for testing browser HTML5 video capabilities
+ * @type {Element}
+ * @constant
+ * @private
+ */
+vjs.TEST_VID = vjs.createEl('video');
+(function() {
+ var track = document.createElement('track');
+ track.kind = 'captions';
+ track.srclang = 'en';
+ track.label = 'English';
+ vjs.TEST_VID.appendChild(track);
+})();
+
+/**
+ * Useragent for browser testing.
+ * @type {String}
+ * @constant
+ * @private
+ */
+vjs.USER_AGENT = navigator.userAgent;
+
+/**
+ * Device is an iPhone
+ * @type {Boolean}
+ * @constant
+ * @private
+ */
+vjs.IS_IPHONE = (/iPhone/i).test(vjs.USER_AGENT);
+vjs.IS_IPAD = (/iPad/i).test(vjs.USER_AGENT);
+vjs.IS_IPOD = (/iPod/i).test(vjs.USER_AGENT);
+vjs.IS_IOS = vjs.IS_IPHONE || vjs.IS_IPAD || vjs.IS_IPOD;
+
+vjs.IOS_VERSION = (function(){
+ var match = vjs.USER_AGENT.match(/OS (\d+)_/i);
+ if (match && match[1]) { return match[1]; }
+})();
+
+vjs.IS_ANDROID = (/Android/i).test(vjs.USER_AGENT);
+vjs.ANDROID_VERSION = (function() {
+ // This matches Android Major.Minor.Patch versions
+ // ANDROID_VERSION is Major.Minor as a Number, if Minor isn't available, then only Major is returned
+ var match = vjs.USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),
+ major,
+ minor;
+
+ if (!match) {
+ return null;
+ }
+
+ major = match[1] && parseFloat(match[1]);
+ minor = match[2] && parseFloat(match[2]);
+
+ if (major && minor) {
+ return parseFloat(match[1] + '.' + match[2]);
+ } else if (major) {
+ return major;
+ } else {
+ return null;
+ }
+})();
+// Old Android is defined as Version older than 2.3, and requiring a webkit version of the android browser
+vjs.IS_OLD_ANDROID = vjs.IS_ANDROID && (/webkit/i).test(vjs.USER_AGENT) && vjs.ANDROID_VERSION < 2.3;
+
+vjs.IS_FIREFOX = (/Firefox/i).test(vjs.USER_AGENT);
+vjs.IS_CHROME = (/Chrome/i).test(vjs.USER_AGENT);
+vjs.IS_IE8 = (/MSIE\s8\.0/).test(vjs.USER_AGENT);
+
+vjs.TOUCH_ENABLED = !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof window.DocumentTouch);
+vjs.BACKGROUND_SIZE_SUPPORTED = 'backgroundSize' in vjs.TEST_VID.style;
+
+/**
+ * Apply attributes to an HTML element.
+ * @param {Element} el Target element.
+ * @param {Object=} attributes Element attributes to be applied.
+ * @private
+ */
+vjs.setElementAttributes = function(el, attributes){
+ vjs.obj.each(attributes, function(attrName, attrValue) {
+ if (attrValue === null || typeof attrValue === 'undefined' || attrValue === false) {
+ el.removeAttribute(attrName);
+ } else {
+ el.setAttribute(attrName, (attrValue === true ? '' : attrValue));
+ }
+ });
+};
+
+/**
+ * Get an element's attribute values, as defined on the HTML tag
+ * Attributes are not the same as properties. They're defined on the tag
+ * or with setAttribute (which shouldn't be used with HTML)
+ * This will return true or false for boolean attributes.
+ * @param {Element} tag Element from which to get tag attributes
+ * @return {Object}
+ * @private
+ */
+vjs.getElementAttributes = function(tag){
+ var obj, knownBooleans, attrs, attrName, attrVal;
+
+ obj = {};
+
+ // known boolean attributes
+ // we can check for matching boolean properties, but older browsers
+ // won't know about HTML5 boolean attributes that we still read from
+ knownBooleans = ','+'autoplay,controls,loop,muted,default'+',';
+
+ if (tag && tag.attributes && tag.attributes.length > 0) {
+ attrs = tag.attributes;
+
+ for (var i = attrs.length - 1; i >= 0; i--) {
+ attrName = attrs[i].name;
+ attrVal = attrs[i].value;
+
+ // check for known booleans
+ // the matching element property will return a value for typeof
+ if (typeof tag[attrName] === 'boolean' || knownBooleans.indexOf(','+attrName+',') !== -1) {
+ // the value of an included boolean attribute is typically an empty
+ // string ('') which would equal false if we just check for a false value.
+ // we also don't want support bad code like autoplay='false'
+ attrVal = (attrVal !== null) ? true : false;
+ }
+
+ obj[attrName] = attrVal;
+ }
+ }
+
+ return obj;
+};
+
+/**
+ * Get the computed style value for an element
+ * From http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/
+ * @param {Element} el Element to get style value for
+ * @param {String} strCssRule Style name
+ * @return {String} Style value
+ * @private
+ */
+vjs.getComputedDimension = function(el, strCssRule){
+ var strValue = '';
+ if(document.defaultView && document.defaultView.getComputedStyle){
+ strValue = document.defaultView.getComputedStyle(el, '').getPropertyValue(strCssRule);
+
+ } else if(el.currentStyle){
+ // IE8 Width/Height support
+ strValue = el['client'+strCssRule.substr(0,1).toUpperCase() + strCssRule.substr(1)] + 'px';
+ }
+ return strValue;
+};
+
+/**
+ * Insert an element as the first child node of another
+ * @param {Element} child Element to insert
+ * @param {[type]} parent Element to insert child into
+ * @private
+ */
+vjs.insertFirst = function(child, parent){
+ if (parent.firstChild) {
+ parent.insertBefore(child, parent.firstChild);
+ } else {
+ parent.appendChild(child);
+ }
+};
+
+/**
+ * Object to hold browser support information
+ * @type {Object}
+ * @private
+ */
+vjs.browser = {};
+
+/**
+ * Shorthand for document.getElementById()
+ * Also allows for CSS (jQuery) ID syntax. But nothing other than IDs.
+ * @param {String} id Element ID
+ * @return {Element} Element with supplied ID
+ * @private
+ */
+vjs.el = function(id){
+ if (id.indexOf('#') === 0) {
+ id = id.slice(1);
+ }
+
+ return document.getElementById(id);
+};
+
+/**
+ * Format seconds as a time string, H:MM:SS or M:SS
+ * Supplying a guide (in seconds) will force a number of leading zeros
+ * to cover the length of the guide
+ * @param {Number} seconds Number of seconds to be turned into a string
+ * @param {Number} guide Number (in seconds) to model the string after
+ * @return {String} Time formatted as H:MM:SS or M:SS
+ * @private
+ */
+vjs.formatTime = function(seconds, guide) {
+ // Default to using seconds as guide
+ guide = guide || seconds;
+ var s = Math.floor(seconds % 60),
+ m = Math.floor(seconds / 60 % 60),
+ h = Math.floor(seconds / 3600),
+ gm = Math.floor(guide / 60 % 60),
+ gh = Math.floor(guide / 3600);
+
+ // handle invalid times
+ if (isNaN(seconds) || seconds === Infinity) {
+ // '-' is false for all relational operators (e.g. <, >=) so this setting
+ // will add the minimum number of fields specified by the guide
+ h = m = s = '-';
+ }
+
+ // Check if we need to show hours
+ h = (h > 0 || gh > 0) ? h + ':' : '';
+
+ // If hours are showing, we may need to add a leading zero.
+ // Always show at least one digit of minutes.
+ m = (((h || gm >= 10) && m < 10) ? '0' + m : m) + ':';
+
+ // Check if leading zero is need for seconds
+ s = (s < 10) ? '0' + s : s;
+
+ return h + m + s;
+};
+
+// Attempt to block the ability to select text while dragging controls
+vjs.blockTextSelection = function(){
+ document.body.focus();
+ document.onselectstart = function () { return false; };
+};
+// Turn off text selection blocking
+vjs.unblockTextSelection = function(){ document.onselectstart = function () { return true; }; };
+
+/**
+ * Trim whitespace from the ends of a string.
+ * @param {String} string String to trim
+ * @return {String} Trimmed string
+ * @private
+ */
+vjs.trim = function(str){
+ return (str+'').replace(/^\s+|\s+$/g, '');
+};
+
+/**
+ * Should round off a number to a decimal place
+ * @param {Number} num Number to round
+ * @param {Number} dec Number of decimal places to round to
+ * @return {Number} Rounded number
+ * @private
+ */
+vjs.round = function(num, dec) {
+ if (!dec) { dec = 0; }
+ return Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
+};
+
+/**
+ * Should create a fake TimeRange object
+ * Mimics an HTML5 time range instance, which has functions that
+ * return the start and end times for a range
+ * TimeRanges are returned by the buffered() method
+ * @param {Number} start Start time in seconds
+ * @param {Number} end End time in seconds
+ * @return {Object} Fake TimeRange object
+ * @private
+ */
+vjs.createTimeRange = function(start, end){
+ return {
+ length: 1,
+ start: function() { return start; },
+ end: function() { return end; }
+ };
+};
+
+/**
+ * Add to local storage (may removable)
+ * @private
+ */
+vjs.setLocalStorage = function(key, value){
+ try {
+ // IE was throwing errors referencing the var anywhere without this
+ var localStorage = window.localStorage || false;
+ if (!localStorage) { return; }
+ localStorage[key] = value;
+ } catch(e) {
+ if (e.code == 22 || e.code == 1014) { // Webkit == 22 / Firefox == 1014
+ vjs.log('LocalStorage Full (VideoJS)', e);
+ } else {
+ if (e.code == 18) {
+ vjs.log('LocalStorage not allowed (VideoJS)', e);
+ } else {
+ vjs.log('LocalStorage Error (VideoJS)', e);
+ }
+ }
+ }
+};
+
+/**
+ * Get absolute version of relative URL. Used to tell flash correct URL.
+ * http://stackoverflow.com/questions/470832/getting-an-absolute-url-from-a-relative-one-ie6-issue
+ * @param {String} url URL to make absolute
+ * @return {String} Absolute URL
+ * @private
+ */
+vjs.getAbsoluteURL = function(url){
+
+ // Check if absolute URL
+ if (!url.match(/^https?:\/\//)) {
+ // Convert to absolute URL. Flash hosted off-site needs an absolute URL.
+ url = vjs.createEl('div', {
+ innerHTML: 'x '
+ }).firstChild.href;
+ }
+
+ return url;
+};
+
+
+/**
+ * Resolve and parse the elements of a URL
+ * @param {String} url The url to parse
+ * @return {Object} An object of url details
+ */
+vjs.parseUrl = function(url) {
+ var div, a, addToBody, props, details;
+
+ props = ['protocol', 'hostname', 'port', 'pathname', 'search', 'hash', 'host'];
+
+ // add the url to an anchor and let the browser parse the URL
+ a = vjs.createEl('a', { href: url });
+
+ // IE8 (and 9?) Fix
+ // ie8 doesn't parse the URL correctly until the anchor is actually
+ // added to the body, and an innerHTML is needed to trigger the parsing
+ addToBody = (a.host === '' && a.protocol !== 'file:');
+ if (addToBody) {
+ div = vjs.createEl('div');
+ div.innerHTML = ' ';
+ a = div.firstChild;
+ // prevent the div from affecting layout
+ div.setAttribute('style', 'display:none; position:absolute;');
+ document.body.appendChild(div);
+ }
+
+ // Copy the specific URL properties to a new object
+ // This is also needed for IE8 because the anchor loses its
+ // properties when it's removed from the dom
+ details = {};
+ for (var i = 0; i < props.length; i++) {
+ details[props[i]] = a[props[i]];
+ }
+
+ // IE9 adds the port to the host property unlike everyone else. If
+ // a port identifier is added for standard ports, strip it.
+ if (details.protocol === 'http:') {
+ details.host = details.host.replace(/:80$/, '');
+ }
+ if (details.protocol === 'https:') {
+ details.host = details.host.replace(/:443$/, '');
+ }
+
+ if (addToBody) {
+ document.body.removeChild(div);
+ }
+
+ return details;
+};
+
+/**
+ * Log messages to the console and history based on the type of message
+ *
+ * @param {String} type The type of message, or `null` for `log`
+ * @param {[type]} args The args to be passed to the log
+ * @private
+ */
+function _logType(type, args){
+ var argsArray, noop, console;
+
+ // convert args to an array to get array functions
+ argsArray = Array.prototype.slice.call(args);
+ // if there's no console then don't try to output messages
+ // they will still be stored in vjs.log.history
+ // Was setting these once outside of this function, but containing them
+ // in the function makes it easier to test cases where console doesn't exist
+ noop = function(){};
+ console = window['console'] || {
+ 'log': noop,
+ 'warn': noop,
+ 'error': noop
+ };
+
+ if (type) {
+ // add the type to the front of the message
+ argsArray.unshift(type.toUpperCase()+':');
+ } else {
+ // default to log with no prefix
+ type = 'log';
+ }
+
+ // add to history
+ vjs.log.history.push(argsArray);
+
+ // add console prefix after adding to history
+ argsArray.unshift('VIDEOJS:');
+
+ // call appropriate log function
+ if (console[type].apply) {
+ console[type].apply(console, argsArray);
+ } else {
+ // ie8 doesn't allow error.apply, but it will just join() the array anyway
+ console[type](argsArray.join(' '));
+ }
+}
+
+/**
+ * Log plain debug messages
+ */
+vjs.log = function(){
+ _logType(null, arguments);
+};
+
+/**
+ * Keep a history of log messages
+ * @type {Array}
+ */
+vjs.log.history = [];
+
+/**
+ * Log error messages
+ */
+vjs.log.error = function(){
+ _logType('error', arguments);
+};
+
+/**
+ * Log warning messages
+ */
+vjs.log.warn = function(){
+ _logType('warn', arguments);
+};
+
+// Offset Left
+// getBoundingClientRect technique from John Resig http://ejohn.org/blog/getboundingclientrect-is-awesome/
+vjs.findPosition = function(el) {
+ var box, docEl, body, clientLeft, scrollLeft, left, clientTop, scrollTop, top;
+
+ if (el.getBoundingClientRect && el.parentNode) {
+ box = el.getBoundingClientRect();
+ }
+
+ if (!box) {
+ return {
+ left: 0,
+ top: 0
+ };
+ }
+
+ docEl = document.documentElement;
+ body = document.body;
+
+ clientLeft = docEl.clientLeft || body.clientLeft || 0;
+ scrollLeft = window.pageXOffset || body.scrollLeft;
+ left = box.left + scrollLeft - clientLeft;
+
+ clientTop = docEl.clientTop || body.clientTop || 0;
+ scrollTop = window.pageYOffset || body.scrollTop;
+ top = box.top + scrollTop - clientTop;
+
+ // Android sometimes returns slightly off decimal values, so need to round
+ return {
+ left: vjs.round(left),
+ top: vjs.round(top)
+ };
+};
+
+/**
+ * Array functions container
+ * @type {Object}
+ * @private
+ */
+vjs.arr = {};
+
+/*
+ * Loops through an array and runs a function for each item inside it.
+ * @param {Array} array The array
+ * @param {Function} callback The function to be run for each item
+ * @param {*} thisArg The `this` binding of callback
+ * @returns {Array} The array
+ * @private
+ */
+vjs.arr.forEach = function(array, callback, thisArg) {
+ if (vjs.obj.isArray(array) && callback instanceof Function) {
+ for (var i = 0, len = array.length; i < len; ++i) {
+ callback.call(thisArg || vjs, array[i], i, array);
+ }
+ }
+
+ return array;
+};
+/**
+ * Simple http request for retrieving external files (e.g. text tracks)
+ *
+ * ##### Example
+ *
+ * // using url string
+ * videojs.xhr('http://example.com/myfile.vtt', function(error, response, responseBody){});
+ *
+ * // or options block
+ * videojs.xhr({
+ * uri: 'http://example.com/myfile.vtt',
+ * method: 'GET',
+ * responseType: 'text'
+ * }, function(error, response, responseBody){
+ * if (error) {
+ * // log the error
+ * } else {
+ * // successful, do something with the response
+ * }
+ * });
+ *
+ *
+ * API is modeled after the Raynos/xhr, which we hope to use after
+ * getting browserify implemented.
+ * https://github.com/Raynos/xhr/blob/master/index.js
+ *
+ * @param {Object|String} options Options block or URL string
+ * @param {Function} callback The callback function
+ * @returns {Object} The request
+ */
+vjs.xhr = function(options, callback){
+ var XHR, request, urlInfo, winLoc, fileUrl, crossOrigin, abortTimeout, successHandler, errorHandler;
+
+ // If options is a string it's the url
+ if (typeof options === 'string') {
+ options = {
+ uri: options
+ };
+ }
+
+ // Merge with default options
+ videojs.util.mergeOptions({
+ method: 'GET',
+ timeout: 45 * 1000
+ }, options);
+
+ callback = callback || function(){};
+
+ successHandler = function(){
+ window.clearTimeout(abortTimeout);
+ callback(null, request, request.response || request.responseText);
+ };
+
+ errorHandler = function(err){
+ window.clearTimeout(abortTimeout);
+
+ if (!err || typeof err === 'string') {
+ err = new Error(err);
+ }
+
+ callback(err, request);
+ };
+
+ XHR = window.XMLHttpRequest;
+
+ if (typeof XHR === 'undefined') {
+ // Shim XMLHttpRequest for older IEs
+ XHR = function () {
+ try { return new window.ActiveXObject('Msxml2.XMLHTTP.6.0'); } catch (e) {}
+ try { return new window.ActiveXObject('Msxml2.XMLHTTP.3.0'); } catch (f) {}
+ try { return new window.ActiveXObject('Msxml2.XMLHTTP'); } catch (g) {}
+ throw new Error('This browser does not support XMLHttpRequest.');
+ };
+ }
+
+ request = new XHR();
+ // Store a reference to the url on the request instance
+ request.uri = options.uri;
+
+ urlInfo = vjs.parseUrl(options.uri);
+ winLoc = window.location;
+ // Check if url is for another domain/origin
+ // IE8 doesn't know location.origin, so we won't rely on it here
+ crossOrigin = (urlInfo.protocol + urlInfo.host) !== (winLoc.protocol + winLoc.host);
+
+ // XDomainRequest -- Use for IE if XMLHTTPRequest2 isn't available
+ // 'withCredentials' is only available in XMLHTTPRequest2
+ // Also XDomainRequest has a lot of gotchas, so only use if cross domain
+ if (crossOrigin && window.XDomainRequest && !('withCredentials' in request)) {
+ request = new window.XDomainRequest();
+ request.onload = successHandler;
+ request.onerror = errorHandler;
+ // These blank handlers need to be set to fix ie9
+ // http://cypressnorth.com/programming/internet-explorer-aborting-ajax-requests-fixed/
+ request.onprogress = function(){};
+ request.ontimeout = function(){};
+
+ // XMLHTTPRequest
+ } else {
+ fileUrl = (urlInfo.protocol == 'file:' || winLoc.protocol == 'file:');
+
+ request.onreadystatechange = function() {
+ if (request.readyState === 4) {
+ if (request.timedout) {
+ return errorHandler('timeout');
+ }
+
+ if (request.status === 200 || fileUrl && request.status === 0) {
+ successHandler();
+ } else {
+ errorHandler();
+ }
+ }
+ };
+
+ if (options.timeout) {
+ abortTimeout = window.setTimeout(function() {
+ if (request.readyState !== 4) {
+ request.timedout = true;
+ request.abort();
+ }
+ }, options.timeout);
+ }
+ }
+
+ // open the connection
+ try {
+ // Third arg is async, or ignored by XDomainRequest
+ request.open(options.method || 'GET', options.uri, true);
+ } catch(err) {
+ return errorHandler(err);
+ }
+
+ // withCredentials only supported by XMLHttpRequest2
+ if(options.withCredentials) {
+ request.withCredentials = true;
+ }
+
+ if (options.responseType) {
+ request.responseType = options.responseType;
+ }
+
+ // send the request
+ try {
+ request.send();
+ } catch(err) {
+ return errorHandler(err);
+ }
+
+ return request;
+};
+/**
+ * Utility functions namespace
+ * @namespace
+ * @type {Object}
+ */
+vjs.util = {};
+
+/**
+ * Merge two options objects, recursively merging any plain object properties as
+ * well. Previously `deepMerge`
+ *
+ * @param {Object} obj1 Object to override values in
+ * @param {Object} obj2 Overriding object
+ * @return {Object} New object -- obj1 and obj2 will be untouched
+ */
+vjs.util.mergeOptions = function(obj1, obj2){
+ var key, val1, val2;
+
+ // make a copy of obj1 so we're not overwriting original values.
+ // like prototype.options_ and all sub options objects
+ obj1 = vjs.obj.copy(obj1);
+
+ for (key in obj2){
+ if (obj2.hasOwnProperty(key)) {
+ val1 = obj1[key];
+ val2 = obj2[key];
+
+ // Check if both properties are pure objects and do a deep merge if so
+ if (vjs.obj.isPlain(val1) && vjs.obj.isPlain(val2)) {
+ obj1[key] = vjs.util.mergeOptions(val1, val2);
+ } else {
+ obj1[key] = obj2[key];
+ }
+ }
+ }
+ return obj1;
+};vjs.EventEmitter = function() {
+};
+
+vjs.EventEmitter.prototype.allowedEvents_ = {
+};
+
+vjs.EventEmitter.prototype.on = function(type, fn) {
+ // Remove the addEventListener alias before calling vjs.on
+ // so we don't get into an infinite type loop
+ var ael = this.addEventListener;
+ this.addEventListener = Function.prototype;
+ vjs.on(this, type, fn);
+ this.addEventListener = ael;
+};
+vjs.EventEmitter.prototype.addEventListener = vjs.EventEmitter.prototype.on;
+
+vjs.EventEmitter.prototype.off = function(type, fn) {
+ vjs.off(this, type, fn);
+};
+vjs.EventEmitter.prototype.removeEventListener = vjs.EventEmitter.prototype.off;
+
+vjs.EventEmitter.prototype.one = function(type, fn) {
+ vjs.one(this, type, fn);
+};
+
+vjs.EventEmitter.prototype.trigger = function(event) {
+ var type = event.type || event;
+
+ if (typeof event === 'string') {
+ event = {
+ type: type
+ };
+ }
+ event = vjs.fixEvent(event);
+
+ if (this.allowedEvents_[type] && this['on' + type]) {
+ this['on' + type](event);
+ }
+
+ vjs.trigger(this, event);
+};
+// The standard DOM EventTarget.dispatchEvent() is aliased to trigger()
+vjs.EventEmitter.prototype.dispatchEvent = vjs.EventEmitter.prototype.trigger;
+/**
+ * @fileoverview Player Component - Base class for all UI objects
+ *
+ */
+
+/**
+ * Base UI Component class
+ *
+ * Components are embeddable UI objects that are represented by both a
+ * javascript object and an element in the DOM. They can be children of other
+ * components, and can have many children themselves.
+ *
+ * // adding a button to the player
+ * var button = player.addChild('button');
+ * button.el(); // -> button element
+ *
+ *
+ *
+ * Components are also event emitters.
+ *
+ * button.on('click', function(){
+ * console.log('Button Clicked!');
+ * });
+ *
+ * button.trigger('customevent');
+ *
+ * @param {Object} player Main Player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ * @extends vjs.CoreObject
+ */
+vjs.Component = vjs.CoreObject.extend({
+ /**
+ * the constructor function for the class
+ *
+ * @constructor
+ */
+ init: function(player, options, ready){
+ this.player_ = player;
+
+ // Make a copy of prototype.options_ to protect against overriding global defaults
+ this.options_ = vjs.obj.copy(this.options_);
+
+ // Updated options with supplied options
+ options = this.options(options);
+
+ // Get ID from options or options element if one is supplied
+ this.id_ = options['id'] || (options['el'] && options['el']['id']);
+
+ // If there was no ID from the options, generate one
+ if (!this.id_) {
+ // Don't require the player ID function in the case of mock players
+ this.id_ = ((player.id && player.id()) || 'no_player') + '_component_' + vjs.guid++;
+ }
+
+ this.name_ = options['name'] || null;
+
+ // Create element if one wasn't provided in options
+ this.el_ = options['el'] || this.createEl();
+
+ this.children_ = [];
+ this.childIndex_ = {};
+ this.childNameIndex_ = {};
+
+ // Add any child components in options
+ this.initChildren();
+
+ this.ready(ready);
+ // Don't want to trigger ready here or it will before init is actually
+ // finished for all children that run this constructor
+
+ if (options.reportTouchActivity !== false) {
+ this.enableTouchActivity();
+ }
+ }
+});
+
+/**
+ * Dispose of the component and all child components
+ */
+vjs.Component.prototype.dispose = function(){
+ this.trigger({ type: 'dispose', 'bubbles': false });
+
+ // Dispose all children.
+ if (this.children_) {
+ for (var i = this.children_.length - 1; i >= 0; i--) {
+ if (this.children_[i].dispose) {
+ this.children_[i].dispose();
+ }
+ }
+ }
+
+ // Delete child references
+ this.children_ = null;
+ this.childIndex_ = null;
+ this.childNameIndex_ = null;
+
+ // Remove all event listeners.
+ this.off();
+
+ // Remove element from DOM
+ if (this.el_.parentNode) {
+ this.el_.parentNode.removeChild(this.el_);
+ }
+
+ vjs.removeData(this.el_);
+ this.el_ = null;
+};
+
+/**
+ * Reference to main player instance
+ *
+ * @type {vjs.Player}
+ * @private
+ */
+vjs.Component.prototype.player_ = true;
+
+/**
+ * Return the component's player
+ *
+ * @return {vjs.Player}
+ */
+vjs.Component.prototype.player = function(){
+ return this.player_;
+};
+
+/**
+ * The component's options object
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Component.prototype.options_;
+
+/**
+ * Deep merge of options objects
+ *
+ * Whenever a property is an object on both options objects
+ * the two properties will be merged using vjs.obj.deepMerge.
+ *
+ * This is used for merging options for child components. We
+ * want it to be easy to override individual options on a child
+ * component without having to rewrite all the other default options.
+ *
+ * Parent.prototype.options_ = {
+ * children: {
+ * 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+ * 'childTwo': {},
+ * 'childThree': {}
+ * }
+ * }
+ * newOptions = {
+ * children: {
+ * 'childOne': { 'foo': 'baz', 'abc': '123' }
+ * 'childTwo': null,
+ * 'childFour': {}
+ * }
+ * }
+ *
+ * this.options(newOptions);
+ *
+ * RESULT
+ *
+ * {
+ * children: {
+ * 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+ * 'childTwo': null, // Disabled. Won't be initialized.
+ * 'childThree': {},
+ * 'childFour': {}
+ * }
+ * }
+ *
+ * @param {Object} obj Object of new option values
+ * @return {Object} A NEW object of this.options_ and obj merged
+ */
+vjs.Component.prototype.options = function(obj){
+ if (obj === undefined) return this.options_;
+
+ return this.options_ = vjs.util.mergeOptions(this.options_, obj);
+};
+
+/**
+ * The DOM element for the component
+ *
+ * @type {Element}
+ * @private
+ */
+vjs.Component.prototype.el_;
+
+/**
+ * Create the component's DOM element
+ *
+ * @param {String=} tagName Element's node type. e.g. 'div'
+ * @param {Object=} attributes An object of element attributes that should be set on the element
+ * @return {Element}
+ */
+vjs.Component.prototype.createEl = function(tagName, attributes){
+ return vjs.createEl(tagName, attributes);
+};
+
+vjs.Component.prototype.localize = function(string){
+ var lang = this.player_.language(),
+ languages = this.player_.languages();
+ if (languages && languages[lang] && languages[lang][string]) {
+ return languages[lang][string];
+ }
+ return string;
+};
+
+/**
+ * Get the component's DOM element
+ *
+ * var domEl = myComponent.el();
+ *
+ * @return {Element}
+ */
+vjs.Component.prototype.el = function(){
+ return this.el_;
+};
+
+/**
+ * An optional element where, if defined, children will be inserted instead of
+ * directly in `el_`
+ *
+ * @type {Element}
+ * @private
+ */
+vjs.Component.prototype.contentEl_;
+
+/**
+ * Return the component's DOM element for embedding content.
+ * Will either be el_ or a new element defined in createEl.
+ *
+ * @return {Element}
+ */
+vjs.Component.prototype.contentEl = function(){
+ return this.contentEl_ || this.el_;
+};
+
+/**
+ * The ID for the component
+ *
+ * @type {String}
+ * @private
+ */
+vjs.Component.prototype.id_;
+
+/**
+ * Get the component's ID
+ *
+ * var id = myComponent.id();
+ *
+ * @return {String}
+ */
+vjs.Component.prototype.id = function(){
+ return this.id_;
+};
+
+/**
+ * The name for the component. Often used to reference the component.
+ *
+ * @type {String}
+ * @private
+ */
+vjs.Component.prototype.name_;
+
+/**
+ * Get the component's name. The name is often used to reference the component.
+ *
+ * var name = myComponent.name();
+ *
+ * @return {String}
+ */
+vjs.Component.prototype.name = function(){
+ return this.name_;
+};
+
+/**
+ * Array of child components
+ *
+ * @type {Array}
+ * @private
+ */
+vjs.Component.prototype.children_;
+
+/**
+ * Get an array of all child components
+ *
+ * var kids = myComponent.children();
+ *
+ * @return {Array} The children
+ */
+vjs.Component.prototype.children = function(){
+ return this.children_;
+};
+
+/**
+ * Object of child components by ID
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Component.prototype.childIndex_;
+
+/**
+ * Returns a child component with the provided ID
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.getChildById = function(id){
+ return this.childIndex_[id];
+};
+
+/**
+ * Object of child components by name
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Component.prototype.childNameIndex_;
+
+/**
+ * Returns a child component with the provided name
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.getChild = function(name){
+ return this.childNameIndex_[name];
+};
+
+/**
+ * Adds a child component inside this component
+ *
+ * myComponent.el();
+ * // ->
+ * myComonent.children();
+ * // [empty array]
+ *
+ * var myButton = myComponent.addChild('MyButton');
+ * // -> myButton
+ * // -> myButton === myComonent.children()[0];
+ *
+ * Pass in options for child constructors and options for children of the child
+ *
+ * var myButton = myComponent.addChild('MyButton', {
+ * text: 'Press Me',
+ * children: {
+ * buttonChildExample: {
+ * buttonChildOption: true
+ * }
+ * }
+ * });
+ *
+ * @param {String|vjs.Component} child The class name or instance of a child to add
+ * @param {Object=} options Options, including options to be passed to children of the child.
+ * @return {vjs.Component} The child component (created by this process if a string was used)
+ * @suppress {accessControls|checkRegExp|checkTypes|checkVars|const|constantProperty|deprecated|duplicate|es5Strict|fileoverviewTags|globalThis|invalidCasts|missingProperties|nonStandardJsDocs|strictModuleDepCheck|undefinedNames|undefinedVars|unknownDefines|uselessCode|visibility}
+ */
+vjs.Component.prototype.addChild = function(child, options){
+ var component, componentClass, componentName;
+
+ // If child is a string, create new component with options
+ if (typeof child === 'string') {
+ componentName = child;
+
+ // Make sure options is at least an empty object to protect against errors
+ options = options || {};
+
+ // If no componentClass in options, assume componentClass is the name lowercased
+ // (e.g. playButton)
+ componentClass = options['componentClass'] || vjs.capitalize(componentName);
+
+ // Set name through options
+ options['name'] = componentName;
+
+ // Create a new object & element for this controls set
+ // If there's no .player_, this is a player
+ // Closure Compiler throws an 'incomplete alias' warning if we use the vjs variable directly.
+ // Every class should be exported, so this should never be a problem here.
+ component = new window['videojs'][componentClass](this.player_ || this, options);
+
+ // child is a component instance
+ } else {
+ component = child;
+ }
+
+ this.children_.push(component);
+
+ if (typeof component.id === 'function') {
+ this.childIndex_[component.id()] = component;
+ }
+
+ // If a name wasn't used to create the component, check if we can use the
+ // name function of the component
+ componentName = componentName || (component.name && component.name());
+
+ if (componentName) {
+ this.childNameIndex_[componentName] = component;
+ }
+
+ // Add the UI object's element to the container div (box)
+ // Having an element is not required
+ if (typeof component['el'] === 'function' && component['el']()) {
+ this.contentEl().appendChild(component['el']());
+ }
+
+ // Return so it can stored on parent object if desired.
+ return component;
+};
+
+/**
+ * Remove a child component from this component's list of children, and the
+ * child component's element from this component's element
+ *
+ * @param {vjs.Component} component Component to remove
+ */
+vjs.Component.prototype.removeChild = function(component){
+ if (typeof component === 'string') {
+ component = this.getChild(component);
+ }
+
+ if (!component || !this.children_) return;
+
+ var childFound = false;
+ for (var i = this.children_.length - 1; i >= 0; i--) {
+ if (this.children_[i] === component) {
+ childFound = true;
+ this.children_.splice(i,1);
+ break;
+ }
+ }
+
+ if (!childFound) return;
+
+ this.childIndex_[component.id()] = null;
+ this.childNameIndex_[component.name()] = null;
+
+ var compEl = component.el();
+ if (compEl && compEl.parentNode === this.contentEl()) {
+ this.contentEl().removeChild(component.el());
+ }
+};
+
+/**
+ * Add and initialize default child components from options
+ *
+ * // when an instance of MyComponent is created, all children in options
+ * // will be added to the instance by their name strings and options
+ * MyComponent.prototype.options_.children = {
+ * myChildComponent: {
+ * myChildOption: true
+ * }
+ * }
+ *
+ * // Or when creating the component
+ * var myComp = new MyComponent(player, {
+ * children: {
+ * myChildComponent: {
+ * myChildOption: true
+ * }
+ * }
+ * });
+ *
+ * The children option can also be an Array of child names or
+ * child options objects (that also include a 'name' key).
+ *
+ * var myComp = new MyComponent(player, {
+ * children: [
+ * 'button',
+ * {
+ * name: 'button',
+ * someOtherOption: true
+ * }
+ * ]
+ * });
+ *
+ */
+vjs.Component.prototype.initChildren = function(){
+ var parent, parentOptions, children, child, name, opts, handleAdd;
+
+ parent = this;
+ parentOptions = parent.options();
+ children = parentOptions['children'];
+
+ if (children) {
+ handleAdd = function(name, opts){
+ // Allow options for children to be set at the parent options
+ // e.g. videojs(id, { controlBar: false });
+ // instead of videojs(id, { children: { controlBar: false });
+ if (parentOptions[name] !== undefined) {
+ opts = parentOptions[name];
+ }
+
+ // Allow for disabling default components
+ // e.g. vjs.options['children']['posterImage'] = false
+ if (opts === false) return;
+
+ // Create and add the child component.
+ // Add a direct reference to the child by name on the parent instance.
+ // If two of the same component are used, different names should be supplied
+ // for each
+ parent[name] = parent.addChild(name, opts);
+ };
+
+ // Allow for an array of children details to passed in the options
+ if (vjs.obj.isArray(children)) {
+ for (var i = 0; i < children.length; i++) {
+ child = children[i];
+
+ if (typeof child == 'string') {
+ // ['myComponent']
+ name = child;
+ opts = {};
+ } else {
+ // [{ name: 'myComponent', otherOption: true }]
+ name = child.name;
+ opts = child;
+ }
+
+ handleAdd(name, opts);
+ }
+ } else {
+ vjs.obj.each(children, handleAdd);
+ }
+ }
+};
+
+/**
+ * Allows sub components to stack CSS class names
+ *
+ * @return {String} The constructed class name
+ */
+vjs.Component.prototype.buildCSSClass = function(){
+ // Child classes can include a function that does:
+ // return 'CLASS NAME' + this._super();
+ return '';
+};
+
+/* Events
+============================================================================= */
+
+/**
+ * Add an event listener to this component's element
+ *
+ * var myFunc = function(){
+ * var myComponent = this;
+ * // Do something when the event is fired
+ * };
+ *
+ * myComponent.on('eventType', myFunc);
+ *
+ * The context of myFunc will be myComponent unless previously bound.
+ *
+ * Alternatively, you can add a listener to another element or component.
+ *
+ * myComponent.on(otherElement, 'eventName', myFunc);
+ * myComponent.on(otherComponent, 'eventName', myFunc);
+ *
+ * The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+ * and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+ * will be automatically cleaned up when either component is disposed.
+ * It will also bind myComponent as the context of myFunc.
+ *
+ * **NOTE**: When using this on elements in the page other than window
+ * and document (both permanent), if you remove the element from the DOM
+ * you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+ * references to it and allow the browser to garbage collect it.
+ *
+ * @param {String|vjs.Component} first The event type or other component
+ * @param {Function|String} second The event handler or event type
+ * @param {Function} third The event handler
+ * @return {vjs.Component} self
+ */
+vjs.Component.prototype.on = function(first, second, third){
+ var target, type, fn, removeOnDispose, cleanRemover, thisComponent;
+
+ if (typeof first === 'string' || vjs.obj.isArray(first)) {
+ vjs.on(this.el_, first, vjs.bind(this, second));
+
+ // Targeting another component or element
+ } else {
+ target = first;
+ type = second;
+ fn = vjs.bind(this, third);
+ thisComponent = this;
+
+ // When this component is disposed, remove the listener from the other component
+ removeOnDispose = function(){
+ thisComponent.off(target, type, fn);
+ };
+ // Use the same function ID so we can remove it later it using the ID
+ // of the original listener
+ removeOnDispose.guid = fn.guid;
+ this.on('dispose', removeOnDispose);
+
+ // If the other component is disposed first we need to clean the reference
+ // to the other component in this component's removeOnDispose listener
+ // Otherwise we create a memory leak.
+ cleanRemover = function(){
+ thisComponent.off('dispose', removeOnDispose);
+ };
+ // Add the same function ID so we can easily remove it later
+ cleanRemover.guid = fn.guid;
+
+ // Check if this is a DOM node
+ if (first.nodeName) {
+ // Add the listener to the other element
+ vjs.on(target, type, fn);
+ vjs.on(target, 'dispose', cleanRemover);
+
+ // Should be a component
+ // Not using `instanceof vjs.Component` because it makes mock players difficult
+ } else if (typeof first.on === 'function') {
+ // Add the listener to the other component
+ target.on(type, fn);
+ target.on('dispose', cleanRemover);
+ }
+ }
+
+ return this;
+};
+
+/**
+ * Remove an event listener from this component's element
+ *
+ * myComponent.off('eventType', myFunc);
+ *
+ * If myFunc is excluded, ALL listeners for the event type will be removed.
+ * If eventType is excluded, ALL listeners will be removed from the component.
+ *
+ * Alternatively you can use `off` to remove listeners that were added to other
+ * elements or components using `myComponent.on(otherComponent...`.
+ * In this case both the event type and listener function are REQUIRED.
+ *
+ * myComponent.off(otherElement, 'eventType', myFunc);
+ * myComponent.off(otherComponent, 'eventType', myFunc);
+ *
+ * @param {String=|vjs.Component} first The event type or other component
+ * @param {Function=|String} second The listener function or event type
+ * @param {Function=} third The listener for other component
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.off = function(first, second, third){
+ var target, otherComponent, type, fn, otherEl;
+
+ if (!first || typeof first === 'string' || vjs.obj.isArray(first)) {
+ vjs.off(this.el_, first, second);
+ } else {
+ target = first;
+ type = second;
+ // Ensure there's at least a guid, even if the function hasn't been used
+ fn = vjs.bind(this, third);
+
+ // Remove the dispose listener on this component,
+ // which was given the same guid as the event listener
+ this.off('dispose', fn);
+
+ if (first.nodeName) {
+ // Remove the listener
+ vjs.off(target, type, fn);
+ // Remove the listener for cleaning the dispose listener
+ vjs.off(target, 'dispose', fn);
+ } else {
+ target.off(type, fn);
+ target.off('dispose', fn);
+ }
+ }
+
+ return this;
+};
+
+/**
+ * Add an event listener to be triggered only once and then removed
+ *
+ * myComponent.one('eventName', myFunc);
+ *
+ * Alternatively you can add a listener to another element or component
+ * that will be triggered only once.
+ *
+ * myComponent.one(otherElement, 'eventName', myFunc);
+ * myComponent.one(otherComponent, 'eventName', myFunc);
+ *
+ * @param {String|vjs.Component} first The event type or other component
+ * @param {Function|String} second The listener function or event type
+ * @param {Function=} third The listener function for other component
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.one = function(first, second, third) {
+ var target, type, fn, thisComponent, newFunc;
+
+ if (typeof first === 'string' || vjs.obj.isArray(first)) {
+ vjs.one(this.el_, first, vjs.bind(this, second));
+ } else {
+ target = first;
+ type = second;
+ fn = vjs.bind(this, third);
+ thisComponent = this;
+
+ newFunc = function(){
+ thisComponent.off(target, type, newFunc);
+ fn.apply(this, arguments);
+ };
+ // Keep the same function ID so we can remove it later
+ newFunc.guid = fn.guid;
+
+ this.on(target, type, newFunc);
+ }
+
+ return this;
+};
+
+/**
+ * Trigger an event on an element
+ *
+ * myComponent.trigger('eventName');
+ * myComponent.trigger({'type':'eventName'});
+ *
+ * @param {Event|Object|String} event A string (the type) or an event object with a type attribute
+ * @return {vjs.Component} self
+ */
+vjs.Component.prototype.trigger = function(event){
+ vjs.trigger(this.el_, event);
+ return this;
+};
+
+/* Ready
+================================================================================ */
+/**
+ * Is the component loaded
+ * This can mean different things depending on the component.
+ *
+ * @private
+ * @type {Boolean}
+ */
+vjs.Component.prototype.isReady_;
+
+/**
+ * Trigger ready as soon as initialization is finished
+ *
+ * Allows for delaying ready. Override on a sub class prototype.
+ * If you set this.isReadyOnInitFinish_ it will affect all components.
+ * Specially used when waiting for the Flash player to asynchronously load.
+ *
+ * @type {Boolean}
+ * @private
+ */
+vjs.Component.prototype.isReadyOnInitFinish_ = true;
+
+/**
+ * List of ready listeners
+ *
+ * @type {Array}
+ * @private
+ */
+vjs.Component.prototype.readyQueue_;
+
+/**
+ * Bind a listener to the component's ready state
+ *
+ * Different from event listeners in that if the ready event has already happened
+ * it will trigger the function immediately.
+ *
+ * @param {Function} fn Ready listener
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.ready = function(fn){
+ if (fn) {
+ if (this.isReady_) {
+ fn.call(this);
+ } else {
+ if (this.readyQueue_ === undefined) {
+ this.readyQueue_ = [];
+ }
+ this.readyQueue_.push(fn);
+ }
+ }
+ return this;
+};
+
+/**
+ * Trigger the ready listeners
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.triggerReady = function(){
+ this.isReady_ = true;
+
+ var readyQueue = this.readyQueue_;
+
+ if (readyQueue && readyQueue.length > 0) {
+
+ for (var i = 0, j = readyQueue.length; i < j; i++) {
+ readyQueue[i].call(this);
+ }
+
+ // Reset Ready Queue
+ this.readyQueue_ = [];
+
+ // Allow for using event listeners also, in case you want to do something everytime a source is ready.
+ this.trigger('ready');
+ }
+};
+
+/* Display
+============================================================================= */
+
+/**
+ * Check if a component's element has a CSS class name
+ *
+ * @param {String} classToCheck Classname to check
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.hasClass = function(classToCheck){
+ return vjs.hasClass(this.el_, classToCheck);
+};
+
+/**
+ * Add a CSS class name to the component's element
+ *
+ * @param {String} classToAdd Classname to add
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.addClass = function(classToAdd){
+ vjs.addClass(this.el_, classToAdd);
+ return this;
+};
+
+/**
+ * Remove a CSS class name from the component's element
+ *
+ * @param {String} classToRemove Classname to remove
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.removeClass = function(classToRemove){
+ vjs.removeClass(this.el_, classToRemove);
+ return this;
+};
+
+/**
+ * Show the component element if hidden
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.show = function(){
+ this.removeClass('vjs-hidden');
+ return this;
+};
+
+/**
+ * Hide the component element if currently showing
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.hide = function(){
+ this.addClass('vjs-hidden');
+ return this;
+};
+
+/**
+ * Lock an item in its visible state
+ * To be used with fadeIn/fadeOut.
+ *
+ * @return {vjs.Component}
+ * @private
+ */
+vjs.Component.prototype.lockShowing = function(){
+ this.addClass('vjs-lock-showing');
+ return this;
+};
+
+/**
+ * Unlock an item to be hidden
+ * To be used with fadeIn/fadeOut.
+ *
+ * @return {vjs.Component}
+ * @private
+ */
+vjs.Component.prototype.unlockShowing = function(){
+ this.removeClass('vjs-lock-showing');
+ return this;
+};
+
+/**
+ * Disable component by making it unshowable
+ *
+ * Currently private because we're moving towards more css-based states.
+ * @private
+ */
+vjs.Component.prototype.disable = function(){
+ this.hide();
+ this.show = function(){};
+};
+
+/**
+ * Set or get the width of the component (CSS values)
+ *
+ * Setting the video tag dimension values only works with values in pixels.
+ * Percent values will not work.
+ * Some percents can be used, but width()/height() will return the number + %,
+ * not the actual computed width/height.
+ *
+ * @param {Number|String=} num Optional width number
+ * @param {Boolean} skipListeners Skip the 'resize' event trigger
+ * @return {vjs.Component} This component, when setting the width
+ * @return {Number|String} The width, when getting
+ */
+vjs.Component.prototype.width = function(num, skipListeners){
+ return this.dimension('width', num, skipListeners);
+};
+
+/**
+ * Get or set the height of the component (CSS values)
+ *
+ * Setting the video tag dimension values only works with values in pixels.
+ * Percent values will not work.
+ * Some percents can be used, but width()/height() will return the number + %,
+ * not the actual computed width/height.
+ *
+ * @param {Number|String=} num New component height
+ * @param {Boolean=} skipListeners Skip the resize event trigger
+ * @return {vjs.Component} This component, when setting the height
+ * @return {Number|String} The height, when getting
+ */
+vjs.Component.prototype.height = function(num, skipListeners){
+ return this.dimension('height', num, skipListeners);
+};
+
+/**
+ * Set both width and height at the same time
+ *
+ * @param {Number|String} width
+ * @param {Number|String} height
+ * @return {vjs.Component} The component
+ */
+vjs.Component.prototype.dimensions = function(width, height){
+ // Skip resize listeners on width for optimization
+ return this.width(width, true).height(height);
+};
+
+/**
+ * Get or set width or height
+ *
+ * This is the shared code for the width() and height() methods.
+ * All for an integer, integer + 'px' or integer + '%';
+ *
+ * Known issue: Hidden elements officially have a width of 0. We're defaulting
+ * to the style.width value and falling back to computedStyle which has the
+ * hidden element issue. Info, but probably not an efficient fix:
+ * http://www.foliotek.com/devblog/getting-the-width-of-a-hidden-element-with-jquery-using-width/
+ *
+ * @param {String} widthOrHeight 'width' or 'height'
+ * @param {Number|String=} num New dimension
+ * @param {Boolean=} skipListeners Skip resize event trigger
+ * @return {vjs.Component} The component if a dimension was set
+ * @return {Number|String} The dimension if nothing was set
+ * @private
+ */
+vjs.Component.prototype.dimension = function(widthOrHeight, num, skipListeners){
+ if (num !== undefined) {
+ if (num === null || vjs.isNaN(num)) {
+ num = 0;
+ }
+
+ // Check if using css width/height (% or px) and adjust
+ if ((''+num).indexOf('%') !== -1 || (''+num).indexOf('px') !== -1) {
+ this.el_.style[widthOrHeight] = num;
+ } else if (num === 'auto') {
+ this.el_.style[widthOrHeight] = '';
+ } else {
+ this.el_.style[widthOrHeight] = num+'px';
+ }
+
+ // skipListeners allows us to avoid triggering the resize event when setting both width and height
+ if (!skipListeners) { this.trigger('resize'); }
+
+ // Return component
+ return this;
+ }
+
+ // Not setting a value, so getting it
+ // Make sure element exists
+ if (!this.el_) return 0;
+
+ // Get dimension value from style
+ var val = this.el_.style[widthOrHeight];
+ var pxIndex = val.indexOf('px');
+ if (pxIndex !== -1) {
+ // Return the pixel value with no 'px'
+ return parseInt(val.slice(0,pxIndex), 10);
+
+ // No px so using % or no style was set, so falling back to offsetWidth/height
+ // If component has display:none, offset will return 0
+ // TODO: handle display:none and no dimension style using px
+ } else {
+
+ return parseInt(this.el_['offset'+vjs.capitalize(widthOrHeight)], 10);
+
+ // ComputedStyle version.
+ // Only difference is if the element is hidden it will return
+ // the percent value (e.g. '100%'')
+ // instead of zero like offsetWidth returns.
+ // var val = vjs.getComputedStyleValue(this.el_, widthOrHeight);
+ // var pxIndex = val.indexOf('px');
+
+ // if (pxIndex !== -1) {
+ // return val.slice(0, pxIndex);
+ // } else {
+ // return val;
+ // }
+ }
+};
+
+/**
+ * Fired when the width and/or height of the component changes
+ * @event resize
+ */
+vjs.Component.prototype.onResize;
+
+/**
+ * Emit 'tap' events when touch events are supported
+ *
+ * This is used to support toggling the controls through a tap on the video.
+ *
+ * We're requiring them to be enabled because otherwise every component would
+ * have this extra overhead unnecessarily, on mobile devices where extra
+ * overhead is especially bad.
+ * @private
+ */
+vjs.Component.prototype.emitTapEvents = function(){
+ var touchStart, firstTouch, touchTime, couldBeTap, noTap,
+ xdiff, ydiff, touchDistance, tapMovementThreshold, touchTimeThreshold;
+
+ // Track the start time so we can determine how long the touch lasted
+ touchStart = 0;
+ firstTouch = null;
+
+ // Maximum movement allowed during a touch event to still be considered a tap
+ // Other popular libs use anywhere from 2 (hammer.js) to 15, so 10 seems like a nice, round number.
+ tapMovementThreshold = 10;
+
+ // The maximum length a touch can be while still being considered a tap
+ touchTimeThreshold = 200;
+
+ this.on('touchstart', function(event) {
+ // If more than one finger, don't consider treating this as a click
+ if (event.touches.length === 1) {
+ firstTouch = vjs.obj.copy(event.touches[0]);
+ // Record start time so we can detect a tap vs. "touch and hold"
+ touchStart = new Date().getTime();
+ // Reset couldBeTap tracking
+ couldBeTap = true;
+ }
+ });
+
+ this.on('touchmove', function(event) {
+ // If more than one finger, don't consider treating this as a click
+ if (event.touches.length > 1) {
+ couldBeTap = false;
+ } else if (firstTouch) {
+ // Some devices will throw touchmoves for all but the slightest of taps.
+ // So, if we moved only a small distance, this could still be a tap
+ xdiff = event.touches[0].pageX - firstTouch.pageX;
+ ydiff = event.touches[0].pageY - firstTouch.pageY;
+ touchDistance = Math.sqrt(xdiff * xdiff + ydiff * ydiff);
+ if (touchDistance > tapMovementThreshold) {
+ couldBeTap = false;
+ }
+ }
+ });
+
+ noTap = function(){
+ couldBeTap = false;
+ };
+ // TODO: Listen to the original target. http://youtu.be/DujfpXOKUp8?t=13m8s
+ this.on('touchleave', noTap);
+ this.on('touchcancel', noTap);
+
+ // When the touch ends, measure how long it took and trigger the appropriate
+ // event
+ this.on('touchend', function(event) {
+ firstTouch = null;
+ // Proceed only if the touchmove/leave/cancel event didn't happen
+ if (couldBeTap === true) {
+ // Measure how long the touch lasted
+ touchTime = new Date().getTime() - touchStart;
+ // Make sure the touch was less than the threshold to be considered a tap
+ if (touchTime < touchTimeThreshold) {
+ event.preventDefault(); // Don't let browser turn this into a click
+ this.trigger('tap');
+ // It may be good to copy the touchend event object and change the
+ // type to tap, if the other event properties aren't exact after
+ // vjs.fixEvent runs (e.g. event.target)
+ }
+ }
+ });
+};
+
+/**
+ * Report user touch activity when touch events occur
+ *
+ * User activity is used to determine when controls should show/hide. It's
+ * relatively simple when it comes to mouse events, because any mouse event
+ * should show the controls. So we capture mouse events that bubble up to the
+ * player and report activity when that happens.
+ *
+ * With touch events it isn't as easy. We can't rely on touch events at the
+ * player level, because a tap (touchstart + touchend) on the video itself on
+ * mobile devices is meant to turn controls off (and on). User activity is
+ * checked asynchronously, so what could happen is a tap event on the video
+ * turns the controls off, then the touchend event bubbles up to the player,
+ * which if it reported user activity, would turn the controls right back on.
+ * (We also don't want to completely block touch events from bubbling up)
+ *
+ * Also a touchmove, touch+hold, and anything other than a tap is not supposed
+ * to turn the controls back on on a mobile device.
+ *
+ * Here we're setting the default component behavior to report user activity
+ * whenever touch events happen, and this can be turned off by components that
+ * want touch events to act differently.
+ */
+vjs.Component.prototype.enableTouchActivity = function() {
+ var report, touchHolding, touchEnd;
+
+ // Don't continue if the root player doesn't support reporting user activity
+ if (!this.player().reportUserActivity) {
+ return;
+ }
+
+ // listener for reporting that the user is active
+ report = vjs.bind(this.player(), this.player().reportUserActivity);
+
+ this.on('touchstart', function() {
+ report();
+ // For as long as the they are touching the device or have their mouse down,
+ // we consider them active even if they're not moving their finger or mouse.
+ // So we want to continue to update that they are active
+ this.clearInterval(touchHolding);
+ // report at the same interval as activityCheck
+ touchHolding = this.setInterval(report, 250);
+ });
+
+ touchEnd = function(event) {
+ report();
+ // stop the interval that maintains activity if the touch is holding
+ this.clearInterval(touchHolding);
+ };
+
+ this.on('touchmove', report);
+ this.on('touchend', touchEnd);
+ this.on('touchcancel', touchEnd);
+};
+
+/**
+ * Creates timeout and sets up disposal automatically.
+ * @param {Function} fn The function to run after the timeout.
+ * @param {Number} timeout Number of ms to delay before executing specified function.
+ * @return {Number} Returns the timeout ID
+ */
+vjs.Component.prototype.setTimeout = function(fn, timeout) {
+ fn = vjs.bind(this, fn);
+
+ // window.setTimeout would be preferable here, but due to some bizarre issue with Sinon and/or Phantomjs, we can't.
+ var timeoutId = setTimeout(fn, timeout);
+
+ var disposeFn = function() {
+ this.clearTimeout(timeoutId);
+ };
+
+ disposeFn.guid = 'vjs-timeout-'+ timeoutId;
+
+ this.on('dispose', disposeFn);
+
+ return timeoutId;
+};
+
+
+/**
+ * Clears a timeout and removes the associated dispose listener
+ * @param {Number} timeoutId The id of the timeout to clear
+ * @return {Number} Returns the timeout ID
+ */
+vjs.Component.prototype.clearTimeout = function(timeoutId) {
+ clearTimeout(timeoutId);
+
+ var disposeFn = function(){};
+ disposeFn.guid = 'vjs-timeout-'+ timeoutId;
+
+ this.off('dispose', disposeFn);
+
+ return timeoutId;
+};
+
+/**
+ * Creates an interval and sets up disposal automatically.
+ * @param {Function} fn The function to run every N seconds.
+ * @param {Number} interval Number of ms to delay before executing specified function.
+ * @return {Number} Returns the interval ID
+ */
+vjs.Component.prototype.setInterval = function(fn, interval) {
+ fn = vjs.bind(this, fn);
+
+ var intervalId = setInterval(fn, interval);
+
+ var disposeFn = function() {
+ this.clearInterval(intervalId);
+ };
+
+ disposeFn.guid = 'vjs-interval-'+ intervalId;
+
+ this.on('dispose', disposeFn);
+
+ return intervalId;
+};
+
+/**
+ * Clears an interval and removes the associated dispose listener
+ * @param {Number} intervalId The id of the interval to clear
+ * @return {Number} Returns the interval ID
+ */
+vjs.Component.prototype.clearInterval = function(intervalId) {
+ clearInterval(intervalId);
+
+ var disposeFn = function(){};
+ disposeFn.guid = 'vjs-interval-'+ intervalId;
+
+ this.off('dispose', disposeFn);
+
+ return intervalId;
+};
+/* Button - Base class for all buttons
+================================================================================ */
+/**
+ * Base class for all buttons
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.Button = vjs.Component.extend({
+ /**
+ * @constructor
+ * @inheritDoc
+ */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.emitTapEvents();
+
+ this.on('tap', this.onClick);
+ this.on('click', this.onClick);
+ this.on('focus', this.onFocus);
+ this.on('blur', this.onBlur);
+ }
+});
+
+vjs.Button.prototype.createEl = function(type, props){
+ var el;
+
+ // Add standard Aria and Tabindex info
+ props = vjs.obj.merge({
+ className: this.buildCSSClass(),
+ 'role': 'button',
+ 'aria-live': 'polite', // let the screen reader user know that the text of the button may change
+ tabIndex: 0
+ }, props);
+
+ el = vjs.Component.prototype.createEl.call(this, type, props);
+
+ // if innerHTML hasn't been overridden (bigPlayButton), add content elements
+ if (!props.innerHTML) {
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-control-content'
+ });
+
+ this.controlText_ = vjs.createEl('span', {
+ className: 'vjs-control-text',
+ innerHTML: this.localize(this.buttonText) || 'Need Text'
+ });
+
+ this.contentEl_.appendChild(this.controlText_);
+ el.appendChild(this.contentEl_);
+ }
+
+ return el;
+};
+
+vjs.Button.prototype.buildCSSClass = function(){
+ // TODO: Change vjs-control to vjs-button?
+ return 'vjs-control ' + vjs.Component.prototype.buildCSSClass.call(this);
+};
+
+ // Click - Override with specific functionality for button
+vjs.Button.prototype.onClick = function(){};
+
+ // Focus - Add keyboard functionality to element
+vjs.Button.prototype.onFocus = function(){
+ vjs.on(document, 'keydown', vjs.bind(this, this.onKeyPress));
+};
+
+ // KeyPress (document level) - Trigger click when keys are pressed
+vjs.Button.prototype.onKeyPress = function(event){
+ // Check for space bar (32) or enter (13) keys
+ if (event.which == 32 || event.which == 13) {
+ event.preventDefault();
+ this.onClick();
+ }
+};
+
+// Blur - Remove keyboard triggers
+vjs.Button.prototype.onBlur = function(){
+ vjs.off(document, 'keydown', vjs.bind(this, this.onKeyPress));
+};
+/* Slider
+================================================================================ */
+/**
+ * The base functionality for sliders like the volume bar and seek bar
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.Slider = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ // Set property names to bar and handle to match with the child Slider class is looking for
+ this.bar = this.getChild(this.options_['barName']);
+ this.handle = this.getChild(this.options_['handleName']);
+
+ this.on('mousedown', this.onMouseDown);
+ this.on('touchstart', this.onMouseDown);
+ this.on('focus', this.onFocus);
+ this.on('blur', this.onBlur);
+ this.on('click', this.onClick);
+
+ this.on(player, 'controlsvisible', this.update);
+ this.on(player, this.playerEvent, this.update);
+ }
+});
+
+vjs.Slider.prototype.createEl = function(type, props) {
+ props = props || {};
+ // Add the slider element class to all sub classes
+ props.className = props.className + ' vjs-slider';
+ props = vjs.obj.merge({
+ 'role': 'slider',
+ 'aria-valuenow': 0,
+ 'aria-valuemin': 0,
+ 'aria-valuemax': 100,
+ tabIndex: 0
+ }, props);
+
+ return vjs.Component.prototype.createEl.call(this, type, props);
+};
+
+vjs.Slider.prototype.onMouseDown = function(event){
+ event.preventDefault();
+ vjs.blockTextSelection();
+ this.addClass('vjs-sliding');
+
+ this.on(document, 'mousemove', this.onMouseMove);
+ this.on(document, 'mouseup', this.onMouseUp);
+ this.on(document, 'touchmove', this.onMouseMove);
+ this.on(document, 'touchend', this.onMouseUp);
+
+ this.onMouseMove(event);
+};
+
+// To be overridden by a subclass
+vjs.Slider.prototype.onMouseMove = function(){};
+
+vjs.Slider.prototype.onMouseUp = function() {
+ vjs.unblockTextSelection();
+ this.removeClass('vjs-sliding');
+
+ this.off(document, 'mousemove', this.onMouseMove);
+ this.off(document, 'mouseup', this.onMouseUp);
+ this.off(document, 'touchmove', this.onMouseMove);
+ this.off(document, 'touchend', this.onMouseUp);
+
+ this.update();
+};
+
+vjs.Slider.prototype.update = function(){
+ // In VolumeBar init we have a setTimeout for update that pops and update to the end of the
+ // execution stack. The player is destroyed before then update will cause an error
+ if (!this.el_) return;
+
+ // If scrubbing, we could use a cached value to make the handle keep up with the user's mouse.
+ // On HTML5 browsers scrubbing is really smooth, but some flash players are slow, so we might want to utilize this later.
+ // var progress = (this.player_.scrubbing) ? this.player_.getCache().currentTime / this.player_.duration() : this.player_.currentTime() / this.player_.duration();
+
+ var barProgress,
+ progress = this.getPercent(),
+ handle = this.handle,
+ bar = this.bar;
+
+ // Protect against no duration and other division issues
+ if (typeof progress !== 'number' ||
+ progress !== progress ||
+ progress < 0 ||
+ progress === Infinity) {
+ progress = 0;
+ }
+
+ barProgress = progress;
+
+ // If there is a handle, we need to account for the handle in our calculation for progress bar
+ // so that it doesn't fall short of or extend past the handle.
+ if (handle) {
+
+ var box = this.el_,
+ boxWidth = box.offsetWidth,
+
+ handleWidth = handle.el().offsetWidth,
+
+ // The width of the handle in percent of the containing box
+ // In IE, widths may not be ready yet causing NaN
+ handlePercent = (handleWidth) ? handleWidth / boxWidth : 0,
+
+ // Get the adjusted size of the box, considering that the handle's center never touches the left or right side.
+ // There is a margin of half the handle's width on both sides.
+ boxAdjustedPercent = 1 - handlePercent,
+
+ // Adjust the progress that we'll use to set widths to the new adjusted box width
+ adjustedProgress = progress * boxAdjustedPercent;
+
+ // The bar does reach the left side, so we need to account for this in the bar's width
+ barProgress = adjustedProgress + (handlePercent / 2);
+
+ // Move the handle from the left based on the adjected progress
+ handle.el().style.left = vjs.round(adjustedProgress * 100, 2) + '%';
+ }
+
+ // Set the new bar width
+ if (bar) {
+ bar.el().style.width = vjs.round(barProgress * 100, 2) + '%';
+ }
+};
+
+vjs.Slider.prototype.calculateDistance = function(event){
+ var el, box, boxX, boxY, boxW, boxH, handle, pageX, pageY;
+
+ el = this.el_;
+ box = vjs.findPosition(el);
+ boxW = boxH = el.offsetWidth;
+ handle = this.handle;
+
+ if (this.options()['vertical']) {
+ boxY = box.top;
+
+ if (event.changedTouches) {
+ pageY = event.changedTouches[0].pageY;
+ } else {
+ pageY = event.pageY;
+ }
+
+ if (handle) {
+ var handleH = handle.el().offsetHeight;
+ // Adjusted X and Width, so handle doesn't go outside the bar
+ boxY = boxY + (handleH / 2);
+ boxH = boxH - handleH;
+ }
+
+ // Percent that the click is through the adjusted area
+ return Math.max(0, Math.min(1, ((boxY - pageY) + boxH) / boxH));
+
+ } else {
+ boxX = box.left;
+
+ if (event.changedTouches) {
+ pageX = event.changedTouches[0].pageX;
+ } else {
+ pageX = event.pageX;
+ }
+
+ if (handle) {
+ var handleW = handle.el().offsetWidth;
+
+ // Adjusted X and Width, so handle doesn't go outside the bar
+ boxX = boxX + (handleW / 2);
+ boxW = boxW - handleW;
+ }
+
+ // Percent that the click is through the adjusted area
+ return Math.max(0, Math.min(1, (pageX - boxX) / boxW));
+ }
+};
+
+vjs.Slider.prototype.onFocus = function(){
+ this.on(document, 'keydown', this.onKeyPress);
+};
+
+vjs.Slider.prototype.onKeyPress = function(event){
+ if (event.which == 37 || event.which == 40) { // Left and Down Arrows
+ event.preventDefault();
+ this.stepBack();
+ } else if (event.which == 38 || event.which == 39) { // Up and Right Arrows
+ event.preventDefault();
+ this.stepForward();
+ }
+};
+
+vjs.Slider.prototype.onBlur = function(){
+ this.off(document, 'keydown', this.onKeyPress);
+};
+
+/**
+ * Listener for click events on slider, used to prevent clicks
+ * from bubbling up to parent elements like button menus.
+ * @param {Object} event Event object
+ */
+vjs.Slider.prototype.onClick = function(event){
+ event.stopImmediatePropagation();
+ event.preventDefault();
+};
+
+/**
+ * SeekBar Behavior includes play progress bar, and seek handle
+ * Needed so it can determine seek position based on handle position/size
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.SliderHandle = vjs.Component.extend();
+
+/**
+ * Default value of the slider
+ *
+ * @type {Number}
+ * @private
+ */
+vjs.SliderHandle.prototype.defaultValue = 0;
+
+/** @inheritDoc */
+vjs.SliderHandle.prototype.createEl = function(type, props) {
+ props = props || {};
+ // Add the slider element class to all sub classes
+ props.className = props.className + ' vjs-slider-handle';
+ props = vjs.obj.merge({
+ innerHTML: '
'+this.defaultValue+' '
+ }, props);
+
+ return vjs.Component.prototype.createEl.call(this, 'div', props);
+};
+/* Menu
+================================================================================ */
+/**
+ * The Menu component is used to build pop up menus, including subtitle and
+ * captions selection menus.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.Menu = vjs.Component.extend();
+
+/**
+ * Add a menu item to the menu
+ * @param {Object|String} component Component or component type to add
+ */
+vjs.Menu.prototype.addItem = function(component){
+ this.addChild(component);
+ component.on('click', vjs.bind(this, function(){
+ this.unlockShowing();
+ }));
+};
+
+/** @inheritDoc */
+vjs.Menu.prototype.createEl = function(){
+ var contentElType = this.options().contentElType || 'ul';
+ this.contentEl_ = vjs.createEl(contentElType, {
+ className: 'vjs-menu-content'
+ });
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ append: this.contentEl_,
+ className: 'vjs-menu'
+ });
+ el.appendChild(this.contentEl_);
+
+ // Prevent clicks from bubbling up. Needed for Menu Buttons,
+ // where a click on the parent is significant
+ vjs.on(el, 'click', function(event){
+ event.preventDefault();
+ event.stopImmediatePropagation();
+ });
+
+ return el;
+};
+
+/**
+ * The component for a menu item. `
`
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.MenuItem = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+ this.selected(options['selected']);
+ }
+});
+
+/** @inheritDoc */
+vjs.MenuItem.prototype.createEl = function(type, props){
+ return vjs.Button.prototype.createEl.call(this, 'li', vjs.obj.merge({
+ className: 'vjs-menu-item',
+ innerHTML: this.localize(this.options_['label'])
+ }, props));
+};
+
+/**
+ * Handle a click on the menu item, and set it to selected
+ */
+vjs.MenuItem.prototype.onClick = function(){
+ this.selected(true);
+};
+
+/**
+ * Set this menu item as selected or not
+ * @param {Boolean} selected
+ */
+vjs.MenuItem.prototype.selected = function(selected){
+ if (selected) {
+ this.addClass('vjs-selected');
+ this.el_.setAttribute('aria-selected',true);
+ } else {
+ this.removeClass('vjs-selected');
+ this.el_.setAttribute('aria-selected',false);
+ }
+};
+
+
+/**
+ * A button class with a popup menu
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.MenuButton = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.update();
+
+ this.on('keydown', this.onKeyPress);
+ this.el_.setAttribute('aria-haspopup', true);
+ this.el_.setAttribute('role', 'button');
+ }
+});
+
+vjs.MenuButton.prototype.update = function() {
+ var menu = this.createMenu();
+
+ if (this.menu) {
+ this.removeChild(this.menu);
+ }
+
+ this.menu = menu;
+ this.addChild(menu);
+
+ if (this.items && this.items.length === 0) {
+ this.hide();
+ } else if (this.items && this.items.length > 1) {
+ this.show();
+ }
+};
+
+/**
+ * Track the state of the menu button
+ * @type {Boolean}
+ * @private
+ */
+vjs.MenuButton.prototype.buttonPressed_ = false;
+
+vjs.MenuButton.prototype.createMenu = function(){
+ var menu = new vjs.Menu(this.player_);
+
+ // Add a title list item to the top
+ if (this.options().title) {
+ menu.contentEl().appendChild(vjs.createEl('li', {
+ className: 'vjs-menu-title',
+ innerHTML: vjs.capitalize(this.options().title),
+ tabindex: -1
+ }));
+ }
+
+ this.items = this['createItems']();
+
+ if (this.items) {
+ // Add menu items to the menu
+ for (var i = 0; i < this.items.length; i++) {
+ menu.addItem(this.items[i]);
+ }
+ }
+
+ return menu;
+};
+
+/**
+ * Create the list of menu items. Specific to each subclass.
+ */
+vjs.MenuButton.prototype.createItems = function(){};
+
+/** @inheritDoc */
+vjs.MenuButton.prototype.buildCSSClass = function(){
+ return this.className + ' vjs-menu-button ' + vjs.Button.prototype.buildCSSClass.call(this);
+};
+
+// Focus - Add keyboard functionality to element
+// This function is not needed anymore. Instead, the keyboard functionality is handled by
+// treating the button as triggering a submenu. When the button is pressed, the submenu
+// appears. Pressing the button again makes the submenu disappear.
+vjs.MenuButton.prototype.onFocus = function(){};
+// Can't turn off list display that we turned on with focus, because list would go away.
+vjs.MenuButton.prototype.onBlur = function(){};
+
+vjs.MenuButton.prototype.onClick = function(){
+ // When you click the button it adds focus, which will show the menu indefinitely.
+ // So we'll remove focus when the mouse leaves the button.
+ // Focus is needed for tab navigation.
+ this.one('mouseout', vjs.bind(this, function(){
+ this.menu.unlockShowing();
+ this.el_.blur();
+ }));
+ if (this.buttonPressed_){
+ this.unpressButton();
+ } else {
+ this.pressButton();
+ }
+};
+
+vjs.MenuButton.prototype.onKeyPress = function(event){
+
+ // Check for space bar (32) or enter (13) keys
+ if (event.which == 32 || event.which == 13) {
+ if (this.buttonPressed_){
+ this.unpressButton();
+ } else {
+ this.pressButton();
+ }
+ event.preventDefault();
+ // Check for escape (27) key
+ } else if (event.which == 27){
+ if (this.buttonPressed_){
+ this.unpressButton();
+ }
+ event.preventDefault();
+ }
+};
+
+vjs.MenuButton.prototype.pressButton = function(){
+ this.buttonPressed_ = true;
+ this.menu.lockShowing();
+ this.el_.setAttribute('aria-pressed', true);
+ if (this.items && this.items.length > 0) {
+ this.items[0].el().focus(); // set the focus to the title of the submenu
+ }
+};
+
+vjs.MenuButton.prototype.unpressButton = function(){
+ this.buttonPressed_ = false;
+ this.menu.unlockShowing();
+ this.el_.setAttribute('aria-pressed', false);
+};
+/**
+ * Custom MediaError to mimic the HTML5 MediaError
+ * @param {Number} code The media error code
+ */
+vjs.MediaError = function(code){
+ if (typeof code === 'number') {
+ this.code = code;
+ } else if (typeof code === 'string') {
+ // default code is zero, so this is a custom error
+ this.message = code;
+ } else if (typeof code === 'object') { // object
+ vjs.obj.merge(this, code);
+ }
+
+ if (!this.message) {
+ this.message = vjs.MediaError.defaultMessages[this.code] || '';
+ }
+};
+
+/**
+ * The error code that refers two one of the defined
+ * MediaError types
+ * @type {Number}
+ */
+vjs.MediaError.prototype.code = 0;
+
+/**
+ * An optional message to be shown with the error.
+ * Message is not part of the HTML5 video spec
+ * but allows for more informative custom errors.
+ * @type {String}
+ */
+vjs.MediaError.prototype.message = '';
+
+/**
+ * An optional status code that can be set by plugins
+ * to allow even more detail about the error.
+ * For example the HLS plugin might provide the specific
+ * HTTP status code that was returned when the error
+ * occurred, then allowing a custom error overlay
+ * to display more information.
+ * @type {[type]}
+ */
+vjs.MediaError.prototype.status = null;
+
+vjs.MediaError.errorTypes = [
+ 'MEDIA_ERR_CUSTOM', // = 0
+ 'MEDIA_ERR_ABORTED', // = 1
+ 'MEDIA_ERR_NETWORK', // = 2
+ 'MEDIA_ERR_DECODE', // = 3
+ 'MEDIA_ERR_SRC_NOT_SUPPORTED', // = 4
+ 'MEDIA_ERR_ENCRYPTED' // = 5
+];
+
+vjs.MediaError.defaultMessages = {
+ 1: 'You aborted the video playback',
+ 2: 'A network error caused the video download to fail part-way.',
+ 3: 'The video playback was aborted due to a corruption problem or because the video used features your browser did not support.',
+ 4: 'The video could not be loaded, either because the server or network failed or because the format is not supported.',
+ 5: 'The video is encrypted and we do not have the keys to decrypt it.'
+};
+
+// Add types as properties on MediaError
+// e.g. MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
+for (var errNum = 0; errNum < vjs.MediaError.errorTypes.length; errNum++) {
+ vjs.MediaError[vjs.MediaError.errorTypes[errNum]] = errNum;
+ // values should be accessible on both the class and instance
+ vjs.MediaError.prototype[vjs.MediaError.errorTypes[errNum]] = errNum;
+}
+(function(){
+ var apiMap, specApi, browserApi, i;
+
+ /**
+ * Store the browser-specific methods for the fullscreen API
+ * @type {Object|undefined}
+ * @private
+ */
+ vjs.browser.fullscreenAPI;
+
+ // browser API methods
+ // map approach from Screenful.js - https://github.com/sindresorhus/screenfull.js
+ apiMap = [
+ // Spec: https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html
+ [
+ 'requestFullscreen',
+ 'exitFullscreen',
+ 'fullscreenElement',
+ 'fullscreenEnabled',
+ 'fullscreenchange',
+ 'fullscreenerror'
+ ],
+ // WebKit
+ [
+ 'webkitRequestFullscreen',
+ 'webkitExitFullscreen',
+ 'webkitFullscreenElement',
+ 'webkitFullscreenEnabled',
+ 'webkitfullscreenchange',
+ 'webkitfullscreenerror'
+ ],
+ // Old WebKit (Safari 5.1)
+ [
+ 'webkitRequestFullScreen',
+ 'webkitCancelFullScreen',
+ 'webkitCurrentFullScreenElement',
+ 'webkitCancelFullScreen',
+ 'webkitfullscreenchange',
+ 'webkitfullscreenerror'
+ ],
+ // Mozilla
+ [
+ 'mozRequestFullScreen',
+ 'mozCancelFullScreen',
+ 'mozFullScreenElement',
+ 'mozFullScreenEnabled',
+ 'mozfullscreenchange',
+ 'mozfullscreenerror'
+ ],
+ // Microsoft
+ [
+ 'msRequestFullscreen',
+ 'msExitFullscreen',
+ 'msFullscreenElement',
+ 'msFullscreenEnabled',
+ 'MSFullscreenChange',
+ 'MSFullscreenError'
+ ]
+ ];
+
+ specApi = apiMap[0];
+
+ // determine the supported set of functions
+ for (i=0; i
+ *
+ *
+ * ```
+ *
+ * After an instance has been created it can be accessed globally using `Video('example_video_1')`.
+ *
+ * @class
+ * @extends vjs.Component
+ */
+vjs.Player = vjs.Component.extend({
+
+ /**
+ * player's constructor function
+ *
+ * @constructs
+ * @method init
+ * @param {Element} tag The original video tag used for configuring options
+ * @param {Object=} options Player options
+ * @param {Function=} ready Ready callback function
+ */
+ init: function(tag, options, ready){
+ this.tag = tag; // Store the original tag used to set options
+
+ // Make sure tag ID exists
+ tag.id = tag.id || 'vjs_video_' + vjs.guid++;
+
+ // Store the tag attributes used to restore html5 element
+ this.tagAttributes = tag && vjs.getElementAttributes(tag);
+
+ // Set Options
+ // The options argument overrides options set in the video tag
+ // which overrides globally set options.
+ // This latter part coincides with the load order
+ // (tag must exist before Player)
+ options = vjs.obj.merge(this.getTagSettings(tag), options);
+
+ // Update Current Language
+ this.language_ = options['language'] || vjs.options['language'];
+
+ // Update Supported Languages
+ this.languages_ = options['languages'] || vjs.options['languages'];
+
+ // Cache for video property values.
+ this.cache_ = {};
+
+ // Set poster
+ this.poster_ = options['poster'] || '';
+
+ // Set controls
+ this.controls_ = !!options['controls'];
+ // Original tag settings stored in options
+ // now remove immediately so native controls don't flash.
+ // May be turned back on by HTML5 tech if nativeControlsForTouch is true
+ tag.controls = false;
+
+ // we don't want the player to report touch activity on itself
+ // see enableTouchActivity in Component
+ options.reportTouchActivity = false;
+
+ // Set isAudio based on whether or not an audio tag was used
+ this.isAudio(this.tag.nodeName.toLowerCase() === 'audio');
+
+ // Run base component initializing with new options.
+ // Builds the element through createEl()
+ // Inits and embeds any child components in opts
+ vjs.Component.call(this, this, options, ready);
+
+ // Update controls className. Can't do this when the controls are initially
+ // set because the element doesn't exist yet.
+ if (this.controls()) {
+ this.addClass('vjs-controls-enabled');
+ } else {
+ this.addClass('vjs-controls-disabled');
+ }
+
+ if (this.isAudio()) {
+ this.addClass('vjs-audio');
+ }
+
+ // TODO: Make this smarter. Toggle user state between touching/mousing
+ // using events, since devices can have both touch and mouse events.
+ // if (vjs.TOUCH_ENABLED) {
+ // this.addClass('vjs-touch-enabled');
+ // }
+
+ // Make player easily findable by ID
+ vjs.players[this.id_] = this;
+
+ if (options['plugins']) {
+ vjs.obj.each(options['plugins'], function(key, val){
+ this[key](val);
+ }, this);
+ }
+
+ this.listenForUserActivity();
+ }
+});
+
+/**
+ * The player's stored language code
+ *
+ * @type {String}
+ * @private
+ */
+vjs.Player.prototype.language_;
+
+/**
+ * The player's language code
+ * @param {String} languageCode The locale string
+ * @return {String} The locale string when getting
+ * @return {vjs.Player} self, when setting
+ */
+vjs.Player.prototype.language = function (languageCode) {
+ if (languageCode === undefined) {
+ return this.language_;
+ }
+
+ this.language_ = languageCode;
+ return this;
+};
+
+/**
+ * The player's stored language dictionary
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Player.prototype.languages_;
+
+vjs.Player.prototype.languages = function(){
+ return this.languages_;
+};
+
+/**
+ * Player instance options, surfaced using vjs.options
+ * vjs.options = vjs.Player.prototype.options_
+ * Make changes in vjs.options, not here.
+ * All options should use string keys so they avoid
+ * renaming by closure compiler
+ * @type {Object}
+ * @private
+ */
+vjs.Player.prototype.options_ = vjs.options;
+
+/**
+ * Destroys the video player and does any necessary cleanup
+ *
+ * myPlayer.dispose();
+ *
+ * This is especially helpful if you are dynamically adding and removing videos
+ * to/from the DOM.
+ */
+vjs.Player.prototype.dispose = function(){
+ this.trigger('dispose');
+ // prevent dispose from being called twice
+ this.off('dispose');
+
+ // Kill reference to this player
+ vjs.players[this.id_] = null;
+ if (this.tag && this.tag['player']) { this.tag['player'] = null; }
+ if (this.el_ && this.el_['player']) { this.el_['player'] = null; }
+
+ if (this.tech) { this.tech.dispose(); }
+
+ // Component dispose
+ vjs.Component.prototype.dispose.call(this);
+};
+
+vjs.Player.prototype.getTagSettings = function(tag){
+ var tagOptions,
+ dataSetup,
+ options = {
+ 'sources': [],
+ 'tracks': []
+ };
+
+ tagOptions = vjs.getElementAttributes(tag);
+ dataSetup = tagOptions['data-setup'];
+
+ // Check if data-setup attr exists.
+ if (dataSetup !== null){
+ // Parse options JSON
+ // If empty string, make it a parsable json object.
+ vjs.obj.merge(tagOptions, vjs.JSON.parse(dataSetup || '{}'));
+ }
+
+ vjs.obj.merge(options, tagOptions);
+
+ // Get tag children settings
+ if (tag.hasChildNodes()) {
+ var children, child, childName, i, j;
+
+ children = tag.childNodes;
+
+ for (i=0,j=children.length; i 0) {
+ techOptions['startTime'] = this.cache_.currentTime;
+ }
+
+ this.cache_.src = source.src;
+ }
+
+ // Initialize tech instance
+ this.tech = new window['videojs'][techName](this, techOptions);
+
+ this.tech.ready(techReady);
+};
+
+vjs.Player.prototype.unloadTech = function(){
+ this.isReady_ = false;
+
+ this.tech.dispose();
+
+ this.tech = false;
+};
+
+// There's many issues around changing the size of a Flash (or other plugin) object.
+// First is a plugin reload issue in Firefox that has been around for 11 years: https://bugzilla.mozilla.org/show_bug.cgi?id=90268
+// Then with the new fullscreen API, Mozilla and webkit browsers will reload the flash object after going to fullscreen.
+// To get around this, we're unloading the tech, caching source and currentTime values, and reloading the tech once the plugin is resized.
+// reloadTech: function(betweenFn){
+// vjs.log('unloadingTech')
+// this.unloadTech();
+// vjs.log('unloadedTech')
+// if (betweenFn) { betweenFn.call(); }
+// vjs.log('LoadingTech')
+// this.loadTech(this.techName, { src: this.cache_.src })
+// vjs.log('loadedTech')
+// },
+
+// /* Player event handlers (how the player reacts to certain events)
+// ================================================================================ */
+
+/**
+ * Fired when the user agent begins looking for media data
+ * @event loadstart
+ */
+vjs.Player.prototype.onLoadStart = function() {
+ // TODO: Update to use `emptied` event instead. See #1277.
+
+ this.removeClass('vjs-ended');
+
+ // reset the error state
+ this.error(null);
+
+ // If it's already playing we want to trigger a firstplay event now.
+ // The firstplay event relies on both the play and loadstart events
+ // which can happen in any order for a new source
+ if (!this.paused()) {
+ this.trigger('firstplay');
+ } else {
+ // reset the hasStarted state
+ this.hasStarted(false);
+ }
+};
+
+vjs.Player.prototype.hasStarted_ = false;
+
+vjs.Player.prototype.hasStarted = function(hasStarted){
+ if (hasStarted !== undefined) {
+ // only update if this is a new value
+ if (this.hasStarted_ !== hasStarted) {
+ this.hasStarted_ = hasStarted;
+ if (hasStarted) {
+ this.addClass('vjs-has-started');
+ // trigger the firstplay event if this newly has played
+ this.trigger('firstplay');
+ } else {
+ this.removeClass('vjs-has-started');
+ }
+ }
+ return this;
+ }
+ return this.hasStarted_;
+};
+
+/**
+ * Fired when the player has initial duration and dimension information
+ * @event loadedmetadata
+ */
+vjs.Player.prototype.onLoadedMetaData;
+
+/**
+ * Fired when the player has downloaded data at the current playback position
+ * @event loadeddata
+ */
+vjs.Player.prototype.onLoadedData;
+
+/**
+ * Fired when the player has finished downloading the source data
+ * @event loadedalldata
+ */
+vjs.Player.prototype.onLoadedAllData;
+
+/**
+ * Fired whenever the media begins or resumes playback
+ * @event play
+ */
+vjs.Player.prototype.onPlay = function(){
+ this.removeClass('vjs-ended');
+ this.removeClass('vjs-paused');
+ this.addClass('vjs-playing');
+
+ // hide the poster when the user hits play
+ // https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-play
+ this.hasStarted(true);
+};
+
+/**
+ * Fired whenever the media begins waiting
+ * @event waiting
+ */
+vjs.Player.prototype.onWaiting = function(){
+ this.addClass('vjs-waiting');
+};
+
+/**
+ * A handler for events that signal that waiting has ended
+ * which is not consistent between browsers. See #1351
+ * @private
+ */
+vjs.Player.prototype.onWaitEnd = function(){
+ this.removeClass('vjs-waiting');
+};
+
+/**
+ * Fired whenever the player is jumping to a new time
+ * @event seeking
+ */
+vjs.Player.prototype.onSeeking = function(){
+ this.addClass('vjs-seeking');
+};
+
+/**
+ * Fired when the player has finished jumping to a new time
+ * @event seeked
+ */
+vjs.Player.prototype.onSeeked = function(){
+ this.removeClass('vjs-seeking');
+};
+
+/**
+ * Fired the first time a video is played
+ *
+ * Not part of the HLS spec, and we're not sure if this is the best
+ * implementation yet, so use sparingly. If you don't have a reason to
+ * prevent playback, use `myPlayer.one('play');` instead.
+ *
+ * @event firstplay
+ */
+vjs.Player.prototype.onFirstPlay = function(){
+ //If the first starttime attribute is specified
+ //then we will start at the given offset in seconds
+ if(this.options_['starttime']){
+ this.currentTime(this.options_['starttime']);
+ }
+
+ this.addClass('vjs-has-started');
+};
+
+/**
+ * Fired whenever the media has been paused
+ * @event pause
+ */
+vjs.Player.prototype.onPause = function(){
+ this.removeClass('vjs-playing');
+ this.addClass('vjs-paused');
+};
+
+/**
+ * Fired when the current playback position has changed
+ *
+ * During playback this is fired every 15-250 milliseconds, depending on the
+ * playback technology in use.
+ * @event timeupdate
+ */
+vjs.Player.prototype.onTimeUpdate;
+
+/**
+ * Fired while the user agent is downloading media data
+ * @event progress
+ */
+vjs.Player.prototype.onProgress = function(){
+ // Add custom event for when source is finished downloading.
+ if (this.bufferedPercent() == 1) {
+ this.trigger('loadedalldata');
+ }
+};
+
+/**
+ * Fired when the end of the media resource is reached (currentTime == duration)
+ * @event ended
+ */
+vjs.Player.prototype.onEnded = function(){
+ this.addClass('vjs-ended');
+ if (this.options_['loop']) {
+ this.currentTime(0);
+ this.play();
+ } else if (!this.paused()) {
+ this.pause();
+ }
+};
+
+/**
+ * Fired when the duration of the media resource is first known or changed
+ * @event durationchange
+ */
+vjs.Player.prototype.onDurationChange = function(){
+ // Allows for caching value instead of asking player each time.
+ // We need to get the techGet response and check for a value so we don't
+ // accidentally cause the stack to blow up.
+ var duration = this.techGet('duration');
+ if (duration) {
+ if (duration < 0) {
+ duration = Infinity;
+ }
+ this.duration(duration);
+ // Determine if the stream is live and propagate styles down to UI.
+ if (duration === Infinity) {
+ this.addClass('vjs-live');
+ } else {
+ this.removeClass('vjs-live');
+ }
+ }
+};
+
+/**
+ * Fired when the volume changes
+ * @event volumechange
+ */
+vjs.Player.prototype.onVolumeChange;
+
+/**
+ * Fired when the player switches in or out of fullscreen mode
+ * @event fullscreenchange
+ */
+vjs.Player.prototype.onFullscreenChange = function() {
+ if (this.isFullscreen()) {
+ this.addClass('vjs-fullscreen');
+ } else {
+ this.removeClass('vjs-fullscreen');
+ }
+};
+
+/**
+ * Fired when an error occurs
+ * @event error
+ */
+vjs.Player.prototype.onError;
+
+// /* Player API
+// ================================================================================ */
+
+/**
+ * Object for cached values.
+ * @private
+ */
+vjs.Player.prototype.cache_;
+
+vjs.Player.prototype.getCache = function(){
+ return this.cache_;
+};
+
+// Pass values to the playback tech
+vjs.Player.prototype.techCall = function(method, arg){
+ // If it's not ready yet, call method when it is
+ if (this.tech && !this.tech.isReady_) {
+ this.tech.ready(function(){
+ this[method](arg);
+ });
+
+ // Otherwise call method now
+ } else {
+ try {
+ this.tech[method](arg);
+ } catch(e) {
+ vjs.log(e);
+ throw e;
+ }
+ }
+};
+
+// Get calls can't wait for the tech, and sometimes don't need to.
+vjs.Player.prototype.techGet = function(method){
+ if (this.tech && this.tech.isReady_) {
+
+ // Flash likes to die and reload when you hide or reposition it.
+ // In these cases the object methods go away and we get errors.
+ // When that happens we'll catch the errors and inform tech that it's not ready any more.
+ try {
+ return this.tech[method]();
+ } catch(e) {
+ // When building additional tech libs, an expected method may not be defined yet
+ if (this.tech[method] === undefined) {
+ vjs.log('Video.js: ' + method + ' method not defined for '+this.techName+' playback technology.', e);
+ } else {
+ // When a method isn't available on the object it throws a TypeError
+ if (e.name == 'TypeError') {
+ vjs.log('Video.js: ' + method + ' unavailable on '+this.techName+' playback technology element.', e);
+ this.tech.isReady_ = false;
+ } else {
+ vjs.log(e);
+ }
+ }
+ throw e;
+ }
+ }
+
+ return;
+};
+
+/**
+ * start media playback
+ *
+ * myPlayer.play();
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.play = function(){
+ this.techCall('play');
+ return this;
+};
+
+/**
+ * Pause the video playback
+ *
+ * myPlayer.pause();
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.pause = function(){
+ this.techCall('pause');
+ return this;
+};
+
+/**
+ * Check if the player is paused
+ *
+ * var isPaused = myPlayer.paused();
+ * var isPlaying = !myPlayer.paused();
+ *
+ * @return {Boolean} false if the media is currently playing, or true otherwise
+ */
+vjs.Player.prototype.paused = function(){
+ // The initial state of paused should be true (in Safari it's actually false)
+ return (this.techGet('paused') === false) ? false : true;
+};
+
+/**
+ * Get or set the current time (in seconds)
+ *
+ * // get
+ * var whereYouAt = myPlayer.currentTime();
+ *
+ * // set
+ * myPlayer.currentTime(120); // 2 minutes into the video
+ *
+ * @param {Number|String=} seconds The time to seek to
+ * @return {Number} The time in seconds, when not setting
+ * @return {vjs.Player} self, when the current time is set
+ */
+vjs.Player.prototype.currentTime = function(seconds){
+ if (seconds !== undefined) {
+
+ this.techCall('setCurrentTime', seconds);
+
+ return this;
+ }
+
+ // cache last currentTime and return. default to 0 seconds
+ //
+ // Caching the currentTime is meant to prevent a massive amount of reads on the tech's
+ // currentTime when scrubbing, but may not provide much performance benefit afterall.
+ // Should be tested. Also something has to read the actual current time or the cache will
+ // never get updated.
+ return this.cache_.currentTime = (this.techGet('currentTime') || 0);
+};
+
+/**
+ * Get the length in time of the video in seconds
+ *
+ * var lengthOfVideo = myPlayer.duration();
+ *
+ * **NOTE**: The video must have started loading before the duration can be
+ * known, and in the case of Flash, may not be known until the video starts
+ * playing.
+ *
+ * @return {Number} The duration of the video in seconds
+ */
+vjs.Player.prototype.duration = function(seconds){
+ if (seconds !== undefined) {
+
+ // cache the last set value for optimized scrubbing (esp. Flash)
+ this.cache_.duration = parseFloat(seconds);
+
+ return this;
+ }
+
+ if (this.cache_.duration === undefined) {
+ this.onDurationChange();
+ }
+
+ return this.cache_.duration || 0;
+};
+
+/**
+ * Calculates how much time is left.
+ *
+ * var timeLeft = myPlayer.remainingTime();
+ *
+ * Not a native video element function, but useful
+ * @return {Number} The time remaining in seconds
+ */
+vjs.Player.prototype.remainingTime = function(){
+ return this.duration() - this.currentTime();
+};
+
+// http://dev.w3.org/html5/spec/video.html#dom-media-buffered
+// Buffered returns a timerange object.
+// Kind of like an array of portions of the video that have been downloaded.
+
+/**
+ * Get a TimeRange object with the times of the video that have been downloaded
+ *
+ * If you just want the percent of the video that's been downloaded,
+ * use bufferedPercent.
+ *
+ * // Number of different ranges of time have been buffered. Usually 1.
+ * numberOfRanges = bufferedTimeRange.length,
+ *
+ * // Time in seconds when the first range starts. Usually 0.
+ * firstRangeStart = bufferedTimeRange.start(0),
+ *
+ * // Time in seconds when the first range ends
+ * firstRangeEnd = bufferedTimeRange.end(0),
+ *
+ * // Length in seconds of the first time range
+ * firstRangeLength = firstRangeEnd - firstRangeStart;
+ *
+ * @return {Object} A mock TimeRange object (following HTML spec)
+ */
+vjs.Player.prototype.buffered = function(){
+ var buffered = this.techGet('buffered');
+
+ if (!buffered || !buffered.length) {
+ buffered = vjs.createTimeRange(0,0);
+ }
+
+ return buffered;
+};
+
+/**
+ * Get the percent (as a decimal) of the video that's been downloaded
+ *
+ * var howMuchIsDownloaded = myPlayer.bufferedPercent();
+ *
+ * 0 means none, 1 means all.
+ * (This method isn't in the HTML5 spec, but it's very convenient)
+ *
+ * @return {Number} A decimal between 0 and 1 representing the percent
+ */
+vjs.Player.prototype.bufferedPercent = function(){
+ var duration = this.duration(),
+ buffered = this.buffered(),
+ bufferedDuration = 0,
+ start, end;
+
+ if (!duration) {
+ return 0;
+ }
+
+ for (var i=0; i duration) {
+ end = duration;
+ }
+
+ bufferedDuration += end - start;
+ }
+
+ return bufferedDuration / duration;
+};
+
+/**
+ * Get the ending time of the last buffered time range
+ *
+ * This is used in the progress bar to encapsulate all time ranges.
+ * @return {Number} The end of the last buffered time range
+ */
+vjs.Player.prototype.bufferedEnd = function(){
+ var buffered = this.buffered(),
+ duration = this.duration(),
+ end = buffered.end(buffered.length-1);
+
+ if (end > duration) {
+ end = duration;
+ }
+
+ return end;
+};
+
+/**
+ * Get or set the current volume of the media
+ *
+ * // get
+ * var howLoudIsIt = myPlayer.volume();
+ *
+ * // set
+ * myPlayer.volume(0.5); // Set volume to half
+ *
+ * 0 is off (muted), 1.0 is all the way up, 0.5 is half way.
+ *
+ * @param {Number} percentAsDecimal The new volume as a decimal percent
+ * @return {Number} The current volume, when getting
+ * @return {vjs.Player} self, when setting
+ */
+vjs.Player.prototype.volume = function(percentAsDecimal){
+ var vol;
+
+ if (percentAsDecimal !== undefined) {
+ vol = Math.max(0, Math.min(1, parseFloat(percentAsDecimal))); // Force value to between 0 and 1
+ this.cache_.volume = vol;
+ this.techCall('setVolume', vol);
+ vjs.setLocalStorage('volume', vol);
+ return this;
+ }
+
+ // Default to 1 when returning current volume.
+ vol = parseFloat(this.techGet('volume'));
+ return (isNaN(vol)) ? 1 : vol;
+};
+
+
+/**
+ * Get the current muted state, or turn mute on or off
+ *
+ * // get
+ * var isVolumeMuted = myPlayer.muted();
+ *
+ * // set
+ * myPlayer.muted(true); // mute the volume
+ *
+ * @param {Boolean=} muted True to mute, false to unmute
+ * @return {Boolean} True if mute is on, false if not, when getting
+ * @return {vjs.Player} self, when setting mute
+ */
+vjs.Player.prototype.muted = function(muted){
+ if (muted !== undefined) {
+ this.techCall('setMuted', muted);
+ return this;
+ }
+ return this.techGet('muted') || false; // Default to false
+};
+
+// Check if current tech can support native fullscreen
+// (e.g. with built in controls like iOS, so not our flash swf)
+vjs.Player.prototype.supportsFullScreen = function(){
+ return this.techGet('supportsFullScreen') || false;
+};
+
+/**
+ * is the player in fullscreen
+ * @type {Boolean}
+ * @private
+ */
+vjs.Player.prototype.isFullscreen_ = false;
+
+/**
+ * Check if the player is in fullscreen mode
+ *
+ * // get
+ * var fullscreenOrNot = myPlayer.isFullscreen();
+ *
+ * // set
+ * myPlayer.isFullscreen(true); // tell the player it's in fullscreen
+ *
+ * NOTE: As of the latest HTML5 spec, isFullscreen is no longer an official
+ * property and instead document.fullscreenElement is used. But isFullscreen is
+ * still a valuable property for internal player workings.
+ *
+ * @param {Boolean=} isFS Update the player's fullscreen state
+ * @return {Boolean} true if fullscreen, false if not
+ * @return {vjs.Player} self, when setting
+ */
+vjs.Player.prototype.isFullscreen = function(isFS){
+ if (isFS !== undefined) {
+ this.isFullscreen_ = !!isFS;
+ return this;
+ }
+ return this.isFullscreen_;
+};
+
+/**
+ * Old naming for isFullscreen()
+ * @deprecated for lowercase 's' version
+ */
+vjs.Player.prototype.isFullScreen = function(isFS){
+ vjs.log.warn('player.isFullScreen() has been deprecated, use player.isFullscreen() with a lowercase "s")');
+ return this.isFullscreen(isFS);
+};
+
+/**
+ * Increase the size of the video to full screen
+ *
+ * myPlayer.requestFullscreen();
+ *
+ * In some browsers, full screen is not supported natively, so it enters
+ * "full window mode", where the video fills the browser window.
+ * In browsers and devices that support native full screen, sometimes the
+ * browser's default controls will be shown, and not the Video.js custom skin.
+ * This includes most mobile devices (iOS, Android) and older versions of
+ * Safari.
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.requestFullscreen = function(){
+ var fsApi = vjs.browser.fullscreenAPI;
+
+ this.isFullscreen(true);
+
+ if (fsApi) {
+ // the browser supports going fullscreen at the element level so we can
+ // take the controls fullscreen as well as the video
+
+ // Trigger fullscreenchange event after change
+ // We have to specifically add this each time, and remove
+ // when canceling fullscreen. Otherwise if there's multiple
+ // players on a page, they would all be reacting to the same fullscreen
+ // events
+ vjs.on(document, fsApi['fullscreenchange'], vjs.bind(this, function(e){
+ this.isFullscreen(document[fsApi.fullscreenElement]);
+
+ // If cancelling fullscreen, remove event listener.
+ if (this.isFullscreen() === false) {
+ vjs.off(document, fsApi['fullscreenchange'], arguments.callee);
+ }
+
+ this.trigger('fullscreenchange');
+ }));
+
+ this.el_[fsApi.requestFullscreen]();
+
+ } else if (this.tech.supportsFullScreen()) {
+ // we can't take the video.js controls fullscreen but we can go fullscreen
+ // with native controls
+ this.techCall('enterFullScreen');
+ } else {
+ // fullscreen isn't supported so we'll just stretch the video element to
+ // fill the viewport
+ this.enterFullWindow();
+ this.trigger('fullscreenchange');
+ }
+
+ return this;
+};
+
+/**
+ * Old naming for requestFullscreen
+ * @deprecated for lower case 's' version
+ */
+vjs.Player.prototype.requestFullScreen = function(){
+ vjs.log.warn('player.requestFullScreen() has been deprecated, use player.requestFullscreen() with a lowercase "s")');
+ return this.requestFullscreen();
+};
+
+
+/**
+ * Return the video to its normal size after having been in full screen mode
+ *
+ * myPlayer.exitFullscreen();
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.exitFullscreen = function(){
+ var fsApi = vjs.browser.fullscreenAPI;
+ this.isFullscreen(false);
+
+ // Check for browser element fullscreen support
+ if (fsApi) {
+ document[fsApi.exitFullscreen]();
+ } else if (this.tech.supportsFullScreen()) {
+ this.techCall('exitFullScreen');
+ } else {
+ this.exitFullWindow();
+ this.trigger('fullscreenchange');
+ }
+
+ return this;
+};
+
+/**
+ * Old naming for exitFullscreen
+ * @deprecated for exitFullscreen
+ */
+vjs.Player.prototype.cancelFullScreen = function(){
+ vjs.log.warn('player.cancelFullScreen() has been deprecated, use player.exitFullscreen()');
+ return this.exitFullscreen();
+};
+
+// When fullscreen isn't supported we can stretch the video container to as wide as the browser will let us.
+vjs.Player.prototype.enterFullWindow = function(){
+ this.isFullWindow = true;
+
+ // Storing original doc overflow value to return to when fullscreen is off
+ this.docOrigOverflow = document.documentElement.style.overflow;
+
+ // Add listener for esc key to exit fullscreen
+ vjs.on(document, 'keydown', vjs.bind(this, this.fullWindowOnEscKey));
+
+ // Hide any scroll bars
+ document.documentElement.style.overflow = 'hidden';
+
+ // Apply fullscreen styles
+ vjs.addClass(document.body, 'vjs-full-window');
+
+ this.trigger('enterFullWindow');
+};
+vjs.Player.prototype.fullWindowOnEscKey = function(event){
+ if (event.keyCode === 27) {
+ if (this.isFullscreen() === true) {
+ this.exitFullscreen();
+ } else {
+ this.exitFullWindow();
+ }
+ }
+};
+
+vjs.Player.prototype.exitFullWindow = function(){
+ this.isFullWindow = false;
+ vjs.off(document, 'keydown', this.fullWindowOnEscKey);
+
+ // Unhide scroll bars.
+ document.documentElement.style.overflow = this.docOrigOverflow;
+
+ // Remove fullscreen styles
+ vjs.removeClass(document.body, 'vjs-full-window');
+
+ // Resize the box, controller, and poster to original sizes
+ // this.positionAll();
+ this.trigger('exitFullWindow');
+};
+
+vjs.Player.prototype.selectSource = function(sources){
+ // Loop through each playback technology in the options order
+ for (var i=0,j=this.options_['techOrder'];i 0) {
+ // In milliseconds, if no more activity has occurred the
+ // user will be considered inactive
+ inactivityTimeout = this.setTimeout(function () {
+ // Protect against the case where the inactivityTimeout can trigger just
+ // before the next user activity is picked up by the activityCheck loop
+ // causing a flicker
+ if (!this.userActivity_) {
+ this.userActive(false);
+ }
+ }, timeout);
+ }
+ }
+ }, 250);
+};
+
+/**
+ * Gets or sets the current playback rate.
+ * @param {Boolean} rate New playback rate to set.
+ * @return {Number} Returns the new playback rate when setting
+ * @return {Number} Returns the current playback rate when getting
+ */
+vjs.Player.prototype.playbackRate = function(rate) {
+ if (rate !== undefined) {
+ this.techCall('setPlaybackRate', rate);
+ return this;
+ }
+
+ if (this.tech && this.tech['featuresPlaybackRate']) {
+ return this.techGet('playbackRate');
+ } else {
+ return 1.0;
+ }
+
+};
+
+/**
+ * Store the current audio state
+ * @type {Boolean}
+ * @private
+ */
+vjs.Player.prototype.isAudio_ = false;
+
+/**
+ * Gets or sets the audio flag
+ *
+ * @param {Boolean} bool True signals that this is an audio player.
+ * @return {Boolean} Returns true if player is audio, false if not when getting
+ * @return {vjs.Player} Returns the player if setting
+ * @private
+ */
+vjs.Player.prototype.isAudio = function(bool) {
+ if (bool !== undefined) {
+ this.isAudio_ = !!bool;
+ return this;
+ }
+
+ return this.isAudio_;
+};
+
+/**
+ * Returns the current state of network activity for the element, from
+ * the codes in the list below.
+ * - NETWORK_EMPTY (numeric value 0)
+ * The element has not yet been initialised. All attributes are in
+ * their initial states.
+ * - NETWORK_IDLE (numeric value 1)
+ * The element's resource selection algorithm is active and has
+ * selected a resource, but it is not actually using the network at
+ * this time.
+ * - NETWORK_LOADING (numeric value 2)
+ * The user agent is actively trying to download data.
+ * - NETWORK_NO_SOURCE (numeric value 3)
+ * The element's resource selection algorithm is active, but it has
+ * not yet found a resource to use.
+ * @return {Number} the current network activity state
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#network-states
+ */
+vjs.Player.prototype.networkState = function(){
+ return this.techGet('networkState');
+};
+
+/**
+ * Returns a value that expresses the current state of the element
+ * with respect to rendering the current playback position, from the
+ * codes in the list below.
+ * - HAVE_NOTHING (numeric value 0)
+ * No information regarding the media resource is available.
+ * - HAVE_METADATA (numeric value 1)
+ * Enough of the resource has been obtained that the duration of the
+ * resource is available.
+ * - HAVE_CURRENT_DATA (numeric value 2)
+ * Data for the immediate current playback position is available.
+ * - HAVE_FUTURE_DATA (numeric value 3)
+ * Data for the immediate current playback position is available, as
+ * well as enough data for the user agent to advance the current
+ * playback position in the direction of playback.
+ * - HAVE_ENOUGH_DATA (numeric value 4)
+ * The user agent estimates that enough data is available for
+ * playback to proceed uninterrupted.
+ * @return {Number} the current playback rendering state
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-readystate
+ */
+vjs.Player.prototype.readyState = function(){
+ return this.techGet('readyState');
+};
+
+/**
+ * Text tracks are tracks of timed text events.
+ * Captions - text displayed over the video for the hearing impaired
+ * Subtitles - text displayed over the video for those who don't understand language in the video
+ * Chapters - text displayed in a menu allowing the user to jump to particular points (chapters) in the video
+ * Descriptions (not supported yet) - audio descriptions that are read back to the user by a screen reading device
+ */
+
+/**
+ * Get an array of associated text tracks. captions, subtitles, chapters, descriptions
+ * http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-texttracks
+ * @return {Array} Array of track objects
+ */
+vjs.Player.prototype.textTracks = function(){
+ // cannot use techGet directly because it checks to see whether the tech is ready.
+ // Flash is unlikely to be ready in time but textTracks should still work.
+ return this.tech && this.tech['textTracks']();
+};
+
+vjs.Player.prototype.remoteTextTracks = function() {
+ return this.tech && this.tech['remoteTextTracks']();
+};
+
+/**
+ * Add a text track
+ * In addition to the W3C settings we allow adding additional info through options.
+ * http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-addtexttrack
+ * @param {String} kind Captions, subtitles, chapters, descriptions, or metadata
+ * @param {String=} label Optional label
+ * @param {String=} language Optional language
+ */
+vjs.Player.prototype.addTextTrack = function(kind, label, language) {
+ return this.tech && this.tech['addTextTrack'](kind, label, language);
+};
+
+vjs.Player.prototype.addRemoteTextTrack = function(options) {
+ return this.tech && this.tech['addRemoteTextTrack'](options);
+};
+
+vjs.Player.prototype.removeRemoteTextTrack = function(track) {
+ this.tech && this.tech['removeRemoteTextTrack'](track);
+};
+
+// Methods to add support for
+// initialTime: function(){ return this.techCall('initialTime'); },
+// startOffsetTime: function(){ return this.techCall('startOffsetTime'); },
+// played: function(){ return this.techCall('played'); },
+// seekable: function(){ return this.techCall('seekable'); },
+// videoTracks: function(){ return this.techCall('videoTracks'); },
+// audioTracks: function(){ return this.techCall('audioTracks'); },
+// videoWidth: function(){ return this.techCall('videoWidth'); },
+// videoHeight: function(){ return this.techCall('videoHeight'); },
+// defaultPlaybackRate: function(){ return this.techCall('defaultPlaybackRate'); },
+// mediaGroup: function(){ return this.techCall('mediaGroup'); },
+// controller: function(){ return this.techCall('controller'); },
+// defaultMuted: function(){ return this.techCall('defaultMuted'); }
+
+// TODO
+// currentSrcList: the array of sources including other formats and bitrates
+// playList: array of source lists in order of playback
+/**
+ * Container of main controls
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ * @extends vjs.Component
+ */
+vjs.ControlBar = vjs.Component.extend();
+
+vjs.ControlBar.prototype.options_ = {
+ loadEvent: 'play',
+ children: {
+ 'playToggle': {},
+ 'currentTimeDisplay': {},
+ 'timeDivider': {},
+ 'durationDisplay': {},
+ 'remainingTimeDisplay': {},
+ 'liveDisplay': {},
+ 'progressControl': {},
+ 'fullscreenToggle': {},
+ 'volumeControl': {},
+ 'muteToggle': {},
+ // 'volumeMenuButton': {},
+ 'playbackRateMenuButton': {},
+ 'subtitlesButton': {},
+ 'captionsButton': {},
+ 'chaptersButton': {}
+ }
+};
+
+vjs.ControlBar.prototype.createEl = function(){
+ return vjs.createEl('div', {
+ className: 'vjs-control-bar'
+ });
+};
+/**
+ * Displays the live indicator
+ * TODO - Future make it click to snap to live
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.LiveDisplay = vjs.Component.extend({
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.LiveDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-live-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-live-display',
+ innerHTML: '' + this.localize('Stream Type') + ' ' + this.localize('LIVE'),
+ 'aria-live': 'off'
+ });
+
+ el.appendChild(this.contentEl_);
+
+ return el;
+};
+/**
+ * Button to toggle between play and pause
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.PlayToggle = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.on(player, 'play', this.onPlay);
+ this.on(player, 'pause', this.onPause);
+ }
+});
+
+vjs.PlayToggle.prototype.buttonText = 'Play';
+
+vjs.PlayToggle.prototype.buildCSSClass = function(){
+ return 'vjs-play-control ' + vjs.Button.prototype.buildCSSClass.call(this);
+};
+
+// OnClick - Toggle between play and pause
+vjs.PlayToggle.prototype.onClick = function(){
+ if (this.player_.paused()) {
+ this.player_.play();
+ } else {
+ this.player_.pause();
+ }
+};
+
+ // OnPlay - Add the vjs-playing class to the element so it can change appearance
+vjs.PlayToggle.prototype.onPlay = function(){
+ this.removeClass('vjs-paused');
+ this.addClass('vjs-playing');
+ this.el_.children[0].children[0].innerHTML = this.localize('Pause'); // change the button text to "Pause"
+};
+
+ // OnPause - Add the vjs-paused class to the element so it can change appearance
+vjs.PlayToggle.prototype.onPause = function(){
+ this.removeClass('vjs-playing');
+ this.addClass('vjs-paused');
+ this.el_.children[0].children[0].innerHTML = this.localize('Play'); // change the button text to "Play"
+};
+/**
+ * Displays the current time
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.CurrentTimeDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+vjs.CurrentTimeDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-current-time vjs-time-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-current-time-display',
+ innerHTML: 'Current Time ' + '0:00', // label the current time for screen reader users
+ 'aria-live': 'off' // tell screen readers not to automatically read the time as it changes
+ });
+
+ el.appendChild(this.contentEl_);
+ return el;
+};
+
+vjs.CurrentTimeDisplay.prototype.updateContent = function(){
+ // Allows for smooth scrubbing, when player can't keep up.
+ var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ this.contentEl_.innerHTML = '' + this.localize('Current Time') + ' ' + vjs.formatTime(time, this.player_.duration());
+};
+
+/**
+ * Displays the duration
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.DurationDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ // this might need to be changed to 'durationchange' instead of 'timeupdate' eventually,
+ // however the durationchange event fires before this.player_.duration() is set,
+ // so the value cannot be written out using this method.
+ // Once the order of durationchange and this.player_.duration() being set is figured out,
+ // this can be updated.
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+vjs.DurationDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-duration vjs-time-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-duration-display',
+ innerHTML: '' + this.localize('Duration Time') + ' ' + '0:00', // label the duration time for screen reader users
+ 'aria-live': 'off' // tell screen readers not to automatically read the time as it changes
+ });
+
+ el.appendChild(this.contentEl_);
+ return el;
+};
+
+vjs.DurationDisplay.prototype.updateContent = function(){
+ var duration = this.player_.duration();
+ if (duration) {
+ this.contentEl_.innerHTML = '' + this.localize('Duration Time') + ' ' + vjs.formatTime(duration); // label the duration time for screen reader users
+ }
+};
+
+/**
+ * The separator between the current time and duration
+ *
+ * Can be hidden if it's not needed in the design.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.TimeDivider = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.TimeDivider.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-time-divider',
+ innerHTML: '/
'
+ });
+};
+
+/**
+ * Displays the time left in the video
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.RemainingTimeDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+vjs.RemainingTimeDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-remaining-time vjs-time-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-remaining-time-display',
+ innerHTML: '' + this.localize('Remaining Time') + ' ' + '-0:00', // label the remaining time for screen reader users
+ 'aria-live': 'off' // tell screen readers not to automatically read the time as it changes
+ });
+
+ el.appendChild(this.contentEl_);
+ return el;
+};
+
+vjs.RemainingTimeDisplay.prototype.updateContent = function(){
+ if (this.player_.duration()) {
+ this.contentEl_.innerHTML = '' + this.localize('Remaining Time') + ' ' + '-'+ vjs.formatTime(this.player_.remainingTime());
+ }
+
+ // Allows for smooth scrubbing, when player can't keep up.
+ // var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ // this.contentEl_.innerHTML = vjs.formatTime(time, this.player_.duration());
+};
+/**
+ * Toggle fullscreen video
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @extends vjs.Button
+ */
+vjs.FullscreenToggle = vjs.Button.extend({
+ /**
+ * @constructor
+ * @memberof vjs.FullscreenToggle
+ * @instance
+ */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+ }
+});
+
+vjs.FullscreenToggle.prototype.buttonText = 'Fullscreen';
+
+vjs.FullscreenToggle.prototype.buildCSSClass = function(){
+ return 'vjs-fullscreen-control ' + vjs.Button.prototype.buildCSSClass.call(this);
+};
+
+vjs.FullscreenToggle.prototype.onClick = function(){
+ if (!this.player_.isFullscreen()) {
+ this.player_.requestFullscreen();
+ this.controlText_.innerHTML = this.localize('Non-Fullscreen');
+ } else {
+ this.player_.exitFullscreen();
+ this.controlText_.innerHTML = this.localize('Fullscreen');
+ }
+};
+/**
+ * The Progress Control component contains the seek bar, load progress,
+ * and play progress
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.ProgressControl = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.ProgressControl.prototype.options_ = {
+ children: {
+ 'seekBar': {}
+ }
+};
+
+vjs.ProgressControl.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-progress-control vjs-control'
+ });
+};
+
+/**
+ * Seek Bar and holder for the progress bars
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.SeekBar = vjs.Slider.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Slider.call(this, player, options);
+ this.on(player, 'timeupdate', this.updateARIAAttributes);
+ player.ready(vjs.bind(this, this.updateARIAAttributes));
+ }
+});
+
+vjs.SeekBar.prototype.options_ = {
+ children: {
+ 'loadProgressBar': {},
+ 'playProgressBar': {},
+ 'seekHandle': {}
+ },
+ 'barName': 'playProgressBar',
+ 'handleName': 'seekHandle'
+};
+
+vjs.SeekBar.prototype.playerEvent = 'timeupdate';
+
+vjs.SeekBar.prototype.createEl = function(){
+ return vjs.Slider.prototype.createEl.call(this, 'div', {
+ className: 'vjs-progress-holder',
+ 'aria-label': 'video progress bar'
+ });
+};
+
+vjs.SeekBar.prototype.updateARIAAttributes = function(){
+ // Allows for smooth scrubbing, when player can't keep up.
+ var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ this.el_.setAttribute('aria-valuenow',vjs.round(this.getPercent()*100, 2)); // machine readable value of progress bar (percentage complete)
+ this.el_.setAttribute('aria-valuetext',vjs.formatTime(time, this.player_.duration())); // human readable value of progress bar (time complete)
+};
+
+vjs.SeekBar.prototype.getPercent = function(){
+ return this.player_.currentTime() / this.player_.duration();
+};
+
+vjs.SeekBar.prototype.onMouseDown = function(event){
+ vjs.Slider.prototype.onMouseDown.call(this, event);
+
+ this.player_.scrubbing = true;
+ this.player_.addClass('vjs-scrubbing');
+
+ this.videoWasPlaying = !this.player_.paused();
+ this.player_.pause();
+};
+
+vjs.SeekBar.prototype.onMouseMove = function(event){
+ var newTime = this.calculateDistance(event) * this.player_.duration();
+
+ // Don't let video end while scrubbing.
+ if (newTime == this.player_.duration()) { newTime = newTime - 0.1; }
+
+ // Set new time (tell player to seek to new time)
+ this.player_.currentTime(newTime);
+};
+
+vjs.SeekBar.prototype.onMouseUp = function(event){
+ vjs.Slider.prototype.onMouseUp.call(this, event);
+
+ this.player_.scrubbing = false;
+ this.player_.removeClass('vjs-scrubbing');
+ if (this.videoWasPlaying) {
+ this.player_.play();
+ }
+};
+
+vjs.SeekBar.prototype.stepForward = function(){
+ this.player_.currentTime(this.player_.currentTime() + 5); // more quickly fast forward for keyboard-only users
+};
+
+vjs.SeekBar.prototype.stepBack = function(){
+ this.player_.currentTime(this.player_.currentTime() - 5); // more quickly rewind for keyboard-only users
+};
+
+/**
+ * Shows load progress
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.LoadProgressBar = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ this.on(player, 'progress', this.update);
+ }
+});
+
+vjs.LoadProgressBar.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-load-progress',
+ innerHTML: '' + this.localize('Loaded') + ' : 0% '
+ });
+};
+
+vjs.LoadProgressBar.prototype.update = function(){
+ var i, start, end, part,
+ buffered = this.player_.buffered(),
+ duration = this.player_.duration(),
+ bufferedEnd = this.player_.bufferedEnd(),
+ children = this.el_.children,
+ // get the percent width of a time compared to the total end
+ percentify = function (time, end){
+ var percent = (time / end) || 0; // no NaN
+ return (percent * 100) + '%';
+ };
+
+ // update the width of the progress bar
+ this.el_.style.width = percentify(bufferedEnd, duration);
+
+ // add child elements to represent the individual buffered time ranges
+ for (i = 0; i < buffered.length; i++) {
+ start = buffered.start(i),
+ end = buffered.end(i),
+ part = children[i];
+
+ if (!part) {
+ part = this.el_.appendChild(vjs.createEl());
+ }
+
+ // set the percent based on the width of the progress bar (bufferedEnd)
+ part.style.left = percentify(start, bufferedEnd);
+ part.style.width = percentify(end - start, bufferedEnd);
+ }
+
+ // remove unused buffered range elements
+ for (i = children.length; i > buffered.length; i--) {
+ this.el_.removeChild(children[i-1]);
+ }
+};
+
+/**
+ * Shows play progress
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.PlayProgressBar = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.PlayProgressBar.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-play-progress',
+ innerHTML: '' + this.localize('Progress') + ' : 0% '
+ });
+};
+
+/**
+ * The Seek Handle shows the current position of the playhead during playback,
+ * and can be dragged to adjust the playhead.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.SeekHandle = vjs.SliderHandle.extend({
+ init: function(player, options) {
+ vjs.SliderHandle.call(this, player, options);
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+/**
+ * The default value for the handle content, which may be read by screen readers
+ *
+ * @type {String}
+ * @private
+ */
+vjs.SeekHandle.prototype.defaultValue = '00:00';
+
+/** @inheritDoc */
+vjs.SeekHandle.prototype.createEl = function() {
+ return vjs.SliderHandle.prototype.createEl.call(this, 'div', {
+ className: 'vjs-seek-handle',
+ 'aria-live': 'off'
+ });
+};
+
+vjs.SeekHandle.prototype.updateContent = function() {
+ var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ this.el_.innerHTML = '' + vjs.formatTime(time, this.player_.duration()) + ' ';
+};
+/**
+ * The component for controlling the volume level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.VolumeControl = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ // hide volume controls when they're not supported by the current tech
+ if (player.tech && player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ }
+ this.on(player, 'loadstart', function(){
+ if (player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ } else {
+ this.removeClass('vjs-hidden');
+ }
+ });
+ }
+});
+
+vjs.VolumeControl.prototype.options_ = {
+ children: {
+ 'volumeBar': {}
+ }
+};
+
+vjs.VolumeControl.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-control vjs-control'
+ });
+};
+
+/**
+ * The bar that contains the volume level and can be clicked on to adjust the level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.VolumeBar = vjs.Slider.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Slider.call(this, player, options);
+ this.on(player, 'volumechange', this.updateARIAAttributes);
+ player.ready(vjs.bind(this, this.updateARIAAttributes));
+ }
+});
+
+vjs.VolumeBar.prototype.updateARIAAttributes = function(){
+ // Current value of volume bar as a percentage
+ this.el_.setAttribute('aria-valuenow',vjs.round(this.player_.volume()*100, 2));
+ this.el_.setAttribute('aria-valuetext',vjs.round(this.player_.volume()*100, 2)+'%');
+};
+
+vjs.VolumeBar.prototype.options_ = {
+ children: {
+ 'volumeLevel': {},
+ 'volumeHandle': {}
+ },
+ 'barName': 'volumeLevel',
+ 'handleName': 'volumeHandle'
+};
+
+vjs.VolumeBar.prototype.playerEvent = 'volumechange';
+
+vjs.VolumeBar.prototype.createEl = function(){
+ return vjs.Slider.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-bar',
+ 'aria-label': 'volume level'
+ });
+};
+
+vjs.VolumeBar.prototype.onMouseMove = function(event) {
+ if (this.player_.muted()) {
+ this.player_.muted(false);
+ }
+
+ this.player_.volume(this.calculateDistance(event));
+};
+
+vjs.VolumeBar.prototype.getPercent = function(){
+ if (this.player_.muted()) {
+ return 0;
+ } else {
+ return this.player_.volume();
+ }
+};
+
+vjs.VolumeBar.prototype.stepForward = function(){
+ this.player_.volume(this.player_.volume() + 0.1);
+};
+
+vjs.VolumeBar.prototype.stepBack = function(){
+ this.player_.volume(this.player_.volume() - 0.1);
+};
+
+/**
+ * Shows volume level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.VolumeLevel = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.VolumeLevel.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-level',
+ innerHTML: ' '
+ });
+};
+
+/**
+ * The volume handle can be dragged to adjust the volume level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+ vjs.VolumeHandle = vjs.SliderHandle.extend();
+
+ vjs.VolumeHandle.prototype.defaultValue = '00:00';
+
+ /** @inheritDoc */
+ vjs.VolumeHandle.prototype.createEl = function(){
+ return vjs.SliderHandle.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-handle'
+ });
+ };
+/**
+ * A button component for muting the audio
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.MuteToggle = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.on(player, 'volumechange', this.update);
+
+ // hide mute toggle if the current tech doesn't support volume control
+ if (player.tech && player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ }
+
+ this.on(player, 'loadstart', function(){
+ if (player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ } else {
+ this.removeClass('vjs-hidden');
+ }
+ });
+ }
+});
+
+vjs.MuteToggle.prototype.createEl = function(){
+ return vjs.Button.prototype.createEl.call(this, 'div', {
+ className: 'vjs-mute-control vjs-control',
+ innerHTML: '' + this.localize('Mute') + '
'
+ });
+};
+
+vjs.MuteToggle.prototype.onClick = function(){
+ this.player_.muted( this.player_.muted() ? false : true );
+};
+
+vjs.MuteToggle.prototype.update = function(){
+ var vol = this.player_.volume(),
+ level = 3;
+
+ if (vol === 0 || this.player_.muted()) {
+ level = 0;
+ } else if (vol < 0.33) {
+ level = 1;
+ } else if (vol < 0.67) {
+ level = 2;
+ }
+
+ // Don't rewrite the button text if the actual text doesn't change.
+ // This causes unnecessary and confusing information for screen reader users.
+ // This check is needed because this function gets called every time the volume level is changed.
+ if(this.player_.muted()){
+ if(this.el_.children[0].children[0].innerHTML!=this.localize('Unmute')){
+ this.el_.children[0].children[0].innerHTML = this.localize('Unmute'); // change the button text to "Unmute"
+ }
+ } else {
+ if(this.el_.children[0].children[0].innerHTML!=this.localize('Mute')){
+ this.el_.children[0].children[0].innerHTML = this.localize('Mute'); // change the button text to "Mute"
+ }
+ }
+
+ /* TODO improve muted icon classes */
+ for (var i = 0; i < 4; i++) {
+ vjs.removeClass(this.el_, 'vjs-vol-'+i);
+ }
+ vjs.addClass(this.el_, 'vjs-vol-'+level);
+};
+/**
+ * Menu button with a popup for showing the volume slider.
+ * @constructor
+ */
+vjs.VolumeMenuButton = vjs.MenuButton.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.MenuButton.call(this, player, options);
+
+ // Same listeners as MuteToggle
+ this.on(player, 'volumechange', this.volumeUpdate);
+
+ // hide mute toggle if the current tech doesn't support volume control
+ if (player.tech && player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ }
+ this.on(player, 'loadstart', function(){
+ if (player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ } else {
+ this.removeClass('vjs-hidden');
+ }
+ });
+ this.addClass('vjs-menu-button');
+ }
+});
+
+vjs.VolumeMenuButton.prototype.createMenu = function(){
+ var menu = new vjs.Menu(this.player_, {
+ contentElType: 'div'
+ });
+ var vc = new vjs.VolumeBar(this.player_, this.options_['volumeBar']);
+ vc.on('focus', function() {
+ menu.lockShowing();
+ });
+ vc.on('blur', function() {
+ menu.unlockShowing();
+ });
+ menu.addChild(vc);
+ return menu;
+};
+
+vjs.VolumeMenuButton.prototype.onClick = function(){
+ vjs.MuteToggle.prototype.onClick.call(this);
+ vjs.MenuButton.prototype.onClick.call(this);
+};
+
+vjs.VolumeMenuButton.prototype.createEl = function(){
+ return vjs.Button.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-menu-button vjs-menu-button vjs-control',
+ innerHTML: '' + this.localize('Mute') + '
'
+ });
+};
+vjs.VolumeMenuButton.prototype.volumeUpdate = vjs.MuteToggle.prototype.update;
+/**
+ * The component for controlling the playback rate
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.PlaybackRateMenuButton = vjs.MenuButton.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.MenuButton.call(this, player, options);
+
+ this.updateVisibility();
+ this.updateLabel();
+
+ this.on(player, 'loadstart', this.updateVisibility);
+ this.on(player, 'ratechange', this.updateLabel);
+ }
+});
+
+vjs.PlaybackRateMenuButton.prototype.buttonText = 'Playback Rate';
+vjs.PlaybackRateMenuButton.prototype.className = 'vjs-playback-rate';
+
+vjs.PlaybackRateMenuButton.prototype.createEl = function(){
+ var el = vjs.MenuButton.prototype.createEl.call(this);
+
+ this.labelEl_ = vjs.createEl('div', {
+ className: 'vjs-playback-rate-value',
+ innerHTML: 1.0
+ });
+
+ el.appendChild(this.labelEl_);
+
+ return el;
+};
+
+// Menu creation
+vjs.PlaybackRateMenuButton.prototype.createMenu = function(){
+ var menu = new vjs.Menu(this.player());
+ var rates = this.player().options()['playbackRates'];
+
+ if (rates) {
+ for (var i = rates.length - 1; i >= 0; i--) {
+ menu.addChild(
+ new vjs.PlaybackRateMenuItem(this.player(), { 'rate': rates[i] + 'x'})
+ );
+ }
+ }
+
+ return menu;
+};
+
+vjs.PlaybackRateMenuButton.prototype.updateARIAAttributes = function(){
+ // Current playback rate
+ this.el().setAttribute('aria-valuenow', this.player().playbackRate());
+};
+
+vjs.PlaybackRateMenuButton.prototype.onClick = function(){
+ // select next rate option
+ var currentRate = this.player().playbackRate();
+ var rates = this.player().options()['playbackRates'];
+ // this will select first one if the last one currently selected
+ var newRate = rates[0];
+ for (var i = 0; i currentRate) {
+ newRate = rates[i];
+ break;
+ }
+ }
+ this.player().playbackRate(newRate);
+};
+
+vjs.PlaybackRateMenuButton.prototype.playbackRateSupported = function(){
+ return this.player().tech
+ && this.player().tech['featuresPlaybackRate']
+ && this.player().options()['playbackRates']
+ && this.player().options()['playbackRates'].length > 0
+ ;
+};
+
+/**
+ * Hide playback rate controls when they're no playback rate options to select
+ */
+vjs.PlaybackRateMenuButton.prototype.updateVisibility = function(){
+ if (this.playbackRateSupported()) {
+ this.removeClass('vjs-hidden');
+ } else {
+ this.addClass('vjs-hidden');
+ }
+};
+
+/**
+ * Update button label when rate changed
+ */
+vjs.PlaybackRateMenuButton.prototype.updateLabel = function(){
+ if (this.playbackRateSupported()) {
+ this.labelEl_.innerHTML = this.player().playbackRate() + 'x';
+ }
+};
+
+/**
+ * The specific menu item type for selecting a playback rate
+ *
+ * @constructor
+ */
+vjs.PlaybackRateMenuItem = vjs.MenuItem.extend({
+ contentElType: 'button',
+ /** @constructor */
+ init: function(player, options){
+ var label = this.label = options['rate'];
+ var rate = this.rate = parseFloat(label, 10);
+
+ // Modify options for parent MenuItem class's init.
+ options['label'] = label;
+ options['selected'] = rate === 1;
+ vjs.MenuItem.call(this, player, options);
+
+ this.on(player, 'ratechange', this.update);
+ }
+});
+
+vjs.PlaybackRateMenuItem.prototype.onClick = function(){
+ vjs.MenuItem.prototype.onClick.call(this);
+ this.player().playbackRate(this.rate);
+};
+
+vjs.PlaybackRateMenuItem.prototype.update = function(){
+ this.selected(this.player().playbackRate() == this.rate);
+};
+/* Poster Image
+================================================================================ */
+/**
+ * The component that handles showing the poster image.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.PosterImage = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.update();
+ player.on('posterchange', vjs.bind(this, this.update));
+ }
+});
+
+/**
+ * Clean up the poster image
+ */
+vjs.PosterImage.prototype.dispose = function(){
+ this.player().off('posterchange', this.update);
+ vjs.Button.prototype.dispose.call(this);
+};
+
+/**
+ * Create the poster image element
+ * @return {Element}
+ */
+vjs.PosterImage.prototype.createEl = function(){
+ var el = vjs.createEl('div', {
+ className: 'vjs-poster',
+
+ // Don't want poster to be tabbable.
+ tabIndex: -1
+ });
+
+ // To ensure the poster image resizes while maintaining its original aspect
+ // ratio, use a div with `background-size` when available. For browsers that
+ // do not support `background-size` (e.g. IE8), fall back on using a regular
+ // img element.
+ if (!vjs.BACKGROUND_SIZE_SUPPORTED) {
+ this.fallbackImg_ = vjs.createEl('img');
+ el.appendChild(this.fallbackImg_);
+ }
+
+ return el;
+};
+
+/**
+ * Event handler for updates to the player's poster source
+ */
+vjs.PosterImage.prototype.update = function(){
+ var url = this.player().poster();
+
+ this.setSrc(url);
+
+ // If there's no poster source we should display:none on this component
+ // so it's not still clickable or right-clickable
+ if (url) {
+ this.show();
+ } else {
+ this.hide();
+ }
+};
+
+/**
+ * Set the poster source depending on the display method
+ */
+vjs.PosterImage.prototype.setSrc = function(url){
+ var backgroundImage;
+
+ if (this.fallbackImg_) {
+ this.fallbackImg_.src = url;
+ } else {
+ backgroundImage = '';
+ // Any falsey values should stay as an empty string, otherwise
+ // this will throw an extra error
+ if (url) {
+ backgroundImage = 'url("' + url + '")';
+ }
+
+ this.el_.style.backgroundImage = backgroundImage;
+ }
+};
+
+/**
+ * Event handler for clicks on the poster image
+ */
+vjs.PosterImage.prototype.onClick = function(){
+ // We don't want a click to trigger playback when controls are disabled
+ // but CSS should be hiding the poster to prevent that from happening
+ this.player_.play();
+};
+/* Loading Spinner
+================================================================================ */
+/**
+ * Loading spinner for waiting events
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.LoadingSpinner = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ // MOVING DISPLAY HANDLING TO CSS
+
+ // player.on('canplay', vjs.bind(this, this.hide));
+ // player.on('canplaythrough', vjs.bind(this, this.hide));
+ // player.on('playing', vjs.bind(this, this.hide));
+ // player.on('seeking', vjs.bind(this, this.show));
+
+ // in some browsers seeking does not trigger the 'playing' event,
+ // so we also need to trap 'seeked' if we are going to set a
+ // 'seeking' event
+ // player.on('seeked', vjs.bind(this, this.hide));
+
+ // player.on('ended', vjs.bind(this, this.hide));
+
+ // Not showing spinner on stalled any more. Browsers may stall and then not trigger any events that would remove the spinner.
+ // Checked in Chrome 16 and Safari 5.1.2. http://help.videojs.com/discussions/problems/883-why-is-the-download-progress-showing
+ // player.on('stalled', vjs.bind(this, this.show));
+
+ // player.on('waiting', vjs.bind(this, this.show));
+ }
+});
+
+vjs.LoadingSpinner.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-loading-spinner'
+ });
+};
+/* Big Play Button
+================================================================================ */
+/**
+ * Initial play button. Shows before the video has played. The hiding of the
+ * big play button is done via CSS and player states.
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.BigPlayButton = vjs.Button.extend();
+
+vjs.BigPlayButton.prototype.createEl = function(){
+ return vjs.Button.prototype.createEl.call(this, 'div', {
+ className: 'vjs-big-play-button',
+ innerHTML: ' ',
+ 'aria-label': 'play video'
+ });
+};
+
+vjs.BigPlayButton.prototype.onClick = function(){
+ this.player_.play();
+};
+/**
+ * Display that an error has occurred making the video unplayable
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.ErrorDisplay = vjs.Component.extend({
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.update();
+ this.on(player, 'error', this.update);
+ }
+});
+
+vjs.ErrorDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-error-display'
+ });
+
+ this.contentEl_ = vjs.createEl('div');
+ el.appendChild(this.contentEl_);
+
+ return el;
+};
+
+vjs.ErrorDisplay.prototype.update = function(){
+ if (this.player().error()) {
+ this.contentEl_.innerHTML = this.localize(this.player().error().message);
+ }
+};
+(function() {
+ var createTrackHelper;
+/**
+ * @fileoverview Media Technology Controller - Base class for media playback
+ * technology controllers like Flash and HTML5
+ */
+
+/**
+ * Base class for media (HTML5 Video, Flash) controllers
+ * @param {vjs.Player|Object} player Central player instance
+ * @param {Object=} options Options object
+ * @constructor
+ */
+vjs.MediaTechController = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ options = options || {};
+ // we don't want the tech to report user activity automatically.
+ // This is done manually in addControlsListeners
+ options.reportTouchActivity = false;
+ vjs.Component.call(this, player, options, ready);
+
+ // Manually track progress in cases where the browser/flash player doesn't report it.
+ if (!this['featuresProgressEvents']) {
+ this.manualProgressOn();
+ }
+
+ // Manually track timeupdates in cases where the browser/flash player doesn't report it.
+ if (!this['featuresTimeupdateEvents']) {
+ this.manualTimeUpdatesOn();
+ }
+
+ this.initControlsListeners();
+
+ if (!this['featuresNativeTextTracks']) {
+ this.emulateTextTracks();
+ }
+
+ this.initTextTrackListeners();
+ }
+});
+
+/**
+ * Set up click and touch listeners for the playback element
+ * On desktops, a click on the video itself will toggle playback,
+ * on a mobile device a click on the video toggles controls.
+ * (toggling controls is done by toggling the user state between active and
+ * inactive)
+ *
+ * A tap can signal that a user has become active, or has become inactive
+ * e.g. a quick tap on an iPhone movie should reveal the controls. Another
+ * quick tap should hide them again (signaling the user is in an inactive
+ * viewing state)
+ *
+ * In addition to this, we still want the user to be considered inactive after
+ * a few seconds of inactivity.
+ *
+ * Note: the only part of iOS interaction we can't mimic with this setup
+ * is a touch and hold on the video element counting as activity in order to
+ * keep the controls showing, but that shouldn't be an issue. A touch and hold on
+ * any controls will still keep the user active
+ */
+vjs.MediaTechController.prototype.initControlsListeners = function(){
+ var player, activateControls;
+
+ player = this.player();
+
+ activateControls = function(){
+ if (player.controls() && !player.usingNativeControls()) {
+ this.addControlsListeners();
+ }
+ };
+
+ // Set up event listeners once the tech is ready and has an element to apply
+ // listeners to
+ this.ready(activateControls);
+ this.on(player, 'controlsenabled', activateControls);
+ this.on(player, 'controlsdisabled', this.removeControlsListeners);
+
+ // if we're loading the playback object after it has started loading or playing the
+ // video (often with autoplay on) then the loadstart event has already fired and we
+ // need to fire it manually because many things rely on it.
+ // Long term we might consider how we would do this for other events like 'canplay'
+ // that may also have fired.
+ this.ready(function(){
+ if (this.networkState && this.networkState() > 0) {
+ this.player().trigger('loadstart');
+ }
+ });
+};
+
+vjs.MediaTechController.prototype.addControlsListeners = function(){
+ var userWasActive;
+
+ // Some browsers (Chrome & IE) don't trigger a click on a flash swf, but do
+ // trigger mousedown/up.
+ // http://stackoverflow.com/questions/1444562/javascript-onclick-event-over-flash-object
+ // Any touch events are set to block the mousedown event from happening
+ this.on('mousedown', this.onClick);
+
+ // If the controls were hidden we don't want that to change without a tap event
+ // so we'll check if the controls were already showing before reporting user
+ // activity
+ this.on('touchstart', function(event) {
+ userWasActive = this.player_.userActive();
+ });
+
+ this.on('touchmove', function(event) {
+ if (userWasActive){
+ this.player().reportUserActivity();
+ }
+ });
+
+ this.on('touchend', function(event) {
+ // Stop the mouse events from also happening
+ event.preventDefault();
+ });
+
+ // Turn on component tap events
+ this.emitTapEvents();
+
+ // The tap listener needs to come after the touchend listener because the tap
+ // listener cancels out any reportedUserActivity when setting userActive(false)
+ this.on('tap', this.onTap);
+};
+
+/**
+ * Remove the listeners used for click and tap controls. This is needed for
+ * toggling to controls disabled, where a tap/touch should do nothing.
+ */
+vjs.MediaTechController.prototype.removeControlsListeners = function(){
+ // We don't want to just use `this.off()` because there might be other needed
+ // listeners added by techs that extend this.
+ this.off('tap');
+ this.off('touchstart');
+ this.off('touchmove');
+ this.off('touchleave');
+ this.off('touchcancel');
+ this.off('touchend');
+ this.off('click');
+ this.off('mousedown');
+};
+
+/**
+ * Handle a click on the media element. By default will play/pause the media.
+ */
+vjs.MediaTechController.prototype.onClick = function(event){
+ // We're using mousedown to detect clicks thanks to Flash, but mousedown
+ // will also be triggered with right-clicks, so we need to prevent that
+ if (event.button !== 0) return;
+
+ // When controls are disabled a click should not toggle playback because
+ // the click is considered a control
+ if (this.player().controls()) {
+ if (this.player().paused()) {
+ this.player().play();
+ } else {
+ this.player().pause();
+ }
+ }
+};
+
+/**
+ * Handle a tap on the media element. By default it will toggle the user
+ * activity state, which hides and shows the controls.
+ */
+vjs.MediaTechController.prototype.onTap = function(){
+ this.player().userActive(!this.player().userActive());
+};
+
+/* Fallbacks for unsupported event types
+================================================================================ */
+// Manually trigger progress events based on changes to the buffered amount
+// Many flash players and older HTML5 browsers don't send progress or progress-like events
+vjs.MediaTechController.prototype.manualProgressOn = function(){
+ this.manualProgress = true;
+
+ // Trigger progress watching when a source begins loading
+ this.trackProgress();
+};
+
+vjs.MediaTechController.prototype.manualProgressOff = function(){
+ this.manualProgress = false;
+ this.stopTrackingProgress();
+};
+
+vjs.MediaTechController.prototype.trackProgress = function(){
+ this.progressInterval = this.setInterval(function(){
+ // Don't trigger unless buffered amount is greater than last time
+
+ var bufferedPercent = this.player().bufferedPercent();
+
+ if (this.bufferedPercent_ != bufferedPercent) {
+ this.player().trigger('progress');
+ }
+
+ this.bufferedPercent_ = bufferedPercent;
+
+ if (bufferedPercent === 1) {
+ this.stopTrackingProgress();
+ }
+ }, 500);
+};
+vjs.MediaTechController.prototype.stopTrackingProgress = function(){ this.clearInterval(this.progressInterval); };
+
+/*! Time Tracking -------------------------------------------------------------- */
+vjs.MediaTechController.prototype.manualTimeUpdatesOn = function(){
+ var player = this.player_;
+
+ this.manualTimeUpdates = true;
+
+ this.on(player, 'play', this.trackCurrentTime);
+ this.on(player, 'pause', this.stopTrackingCurrentTime);
+ // timeupdate is also called by .currentTime whenever current time is set
+
+ // Watch for native timeupdate event
+ this.one('timeupdate', function(){
+ // Update known progress support for this playback technology
+ this['featuresTimeupdateEvents'] = true;
+ // Turn off manual progress tracking
+ this.manualTimeUpdatesOff();
+ });
+};
+
+vjs.MediaTechController.prototype.manualTimeUpdatesOff = function(){
+ var player = this.player_;
+
+ this.manualTimeUpdates = false;
+ this.stopTrackingCurrentTime();
+ this.off(player, 'play', this.trackCurrentTime);
+ this.off(player, 'pause', this.stopTrackingCurrentTime);
+};
+
+vjs.MediaTechController.prototype.trackCurrentTime = function(){
+ if (this.currentTimeInterval) { this.stopTrackingCurrentTime(); }
+ this.currentTimeInterval = this.setInterval(function(){
+ this.player().trigger('timeupdate');
+ }, 250); // 42 = 24 fps // 250 is what Webkit uses // FF uses 15
+};
+
+// Turn off play progress tracking (when paused or dragging)
+vjs.MediaTechController.prototype.stopTrackingCurrentTime = function(){
+ this.clearInterval(this.currentTimeInterval);
+
+ // #1002 - if the video ends right before the next timeupdate would happen,
+ // the progress bar won't make it all the way to the end
+ this.player().trigger('timeupdate');
+};
+
+vjs.MediaTechController.prototype.dispose = function() {
+ // Turn off any manual progress or timeupdate tracking
+ if (this.manualProgress) { this.manualProgressOff(); }
+
+ if (this.manualTimeUpdates) { this.manualTimeUpdatesOff(); }
+
+ vjs.Component.prototype.dispose.call(this);
+};
+
+vjs.MediaTechController.prototype.setCurrentTime = function() {
+ // improve the accuracy of manual timeupdates
+ if (this.manualTimeUpdates) { this.player().trigger('timeupdate'); }
+};
+
+// TODO: Consider looking at moving this into the text track display directly
+// https://github.com/videojs/video.js/issues/1863
+vjs.MediaTechController.prototype.initTextTrackListeners = function() {
+ var player = this.player_,
+ tracks,
+ textTrackListChanges = function() {
+ var textTrackDisplay = player.getChild('textTrackDisplay'),
+ controlBar;
+
+ if (textTrackDisplay) {
+ textTrackDisplay.updateDisplay();
+ }
+ };
+
+ tracks = this.textTracks();
+
+ if (!tracks) {
+ return;
+ }
+
+ tracks.addEventListener('removetrack', textTrackListChanges);
+ tracks.addEventListener('addtrack', textTrackListChanges);
+
+ this.on('dispose', vjs.bind(this, function() {
+ tracks.removeEventListener('removetrack', textTrackListChanges);
+ tracks.removeEventListener('addtrack', textTrackListChanges);
+ }));
+};
+
+vjs.MediaTechController.prototype.emulateTextTracks = function() {
+ var player = this.player_,
+ textTracksChanges,
+ tracks,
+ script;
+
+ if (!window['WebVTT']) {
+ script = document.createElement('script');
+ script.src = player.options()['vtt.js'] || '../node_modules/vtt.js/dist/vtt.js';
+ player.el().appendChild(script);
+ window['WebVTT'] = true;
+ }
+
+ tracks = this.textTracks();
+ if (!tracks) {
+ return;
+ }
+
+ textTracksChanges = function() {
+ var i, track, textTrackDisplay;
+
+ textTrackDisplay = player.getChild('textTrackDisplay'),
+
+ textTrackDisplay.updateDisplay();
+
+ for (i = 0; i < this.length; i++) {
+ track = this[i];
+ track.removeEventListener('cuechange', vjs.bind(textTrackDisplay, textTrackDisplay.updateDisplay));
+ if (track.mode === 'showing') {
+ track.addEventListener('cuechange', vjs.bind(textTrackDisplay, textTrackDisplay.updateDisplay));
+ }
+ }
+ };
+
+ tracks.addEventListener('change', textTracksChanges);
+
+ this.on('dispose', vjs.bind(this, function() {
+ tracks.removeEventListener('change', textTracksChanges);
+ }));
+};
+
+/**
+ * Provide default methods for text tracks.
+ *
+ * Html5 tech overrides these.
+ */
+
+/**
+ * List of associated text tracks
+ * @type {Array}
+ * @private
+ */
+vjs.MediaTechController.prototype.textTracks_;
+
+vjs.MediaTechController.prototype.textTracks = function() {
+ this.player_.textTracks_ = this.player_.textTracks_ || new vjs.TextTrackList();
+ return this.player_.textTracks_;
+};
+
+vjs.MediaTechController.prototype.remoteTextTracks = function() {
+ this.player_.remoteTextTracks_ = this.player_.remoteTextTracks_ || new vjs.TextTrackList();
+ return this.player_.remoteTextTracks_;
+};
+
+createTrackHelper = function(self, kind, label, language, options) {
+ var tracks = self.textTracks(),
+ track;
+
+ options = options || {};
+
+ options['kind'] = kind;
+ if (label) {
+ options['label'] = label;
+ }
+ if (language) {
+ options['language'] = language;
+ }
+ options['player'] = self.player_;
+
+ track = new vjs.TextTrack(options);
+ tracks.addTrack_(track);
+
+ return track;
+};
+
+vjs.MediaTechController.prototype.addTextTrack = function(kind, label, language) {
+ if (!kind) {
+ throw new Error('TextTrack kind is required but was not provided');
+ }
+
+ return createTrackHelper(this, kind, label, language);
+};
+
+vjs.MediaTechController.prototype.addRemoteTextTrack = function(options) {
+ var track = createTrackHelper(this, options['kind'], options['label'], options['language'], options);
+ this.remoteTextTracks().addTrack_(track);
+ return {
+ track: track
+ };
+};
+
+vjs.MediaTechController.prototype.removeRemoteTextTrack = function(track) {
+ this.textTracks().removeTrack_(track);
+ this.remoteTextTracks().removeTrack_(track);
+};
+
+/**
+ * Provide a default setPoster method for techs
+ *
+ * Poster support for techs should be optional, so we don't want techs to
+ * break if they don't have a way to set a poster.
+ */
+vjs.MediaTechController.prototype.setPoster = function(){};
+
+vjs.MediaTechController.prototype['featuresVolumeControl'] = true;
+
+// Resizing plugins using request fullscreen reloads the plugin
+vjs.MediaTechController.prototype['featuresFullscreenResize'] = false;
+vjs.MediaTechController.prototype['featuresPlaybackRate'] = false;
+
+// Optional events that we can manually mimic with timers
+// currently not triggered by video-js-swf
+vjs.MediaTechController.prototype['featuresProgressEvents'] = false;
+vjs.MediaTechController.prototype['featuresTimeupdateEvents'] = false;
+
+vjs.MediaTechController.prototype['featuresNativeTextTracks'] = false;
+
+/**
+ * A functional mixin for techs that want to use the Source Handler pattern.
+ *
+ * ##### EXAMPLE:
+ *
+ * videojs.MediaTechController.withSourceHandlers.call(MyTech);
+ *
+ */
+vjs.MediaTechController.withSourceHandlers = function(Tech){
+ /**
+ * Register a source handler
+ * Source handlers are scripts for handling specific formats.
+ * The source handler pattern is used for adaptive formats (HLS, DASH) that
+ * manually load video data and feed it into a Source Buffer (Media Source Extensions)
+ * @param {Function} handler The source handler
+ * @param {Boolean} first Register it before any existing handlers
+ */
+ Tech.registerSourceHandler = function(handler, index){
+ var handlers = Tech.sourceHandlers;
+
+ if (!handlers) {
+ handlers = Tech.sourceHandlers = [];
+ }
+
+ if (index === undefined) {
+ // add to the end of the list
+ index = handlers.length;
+ }
+
+ handlers.splice(index, 0, handler);
+ };
+
+ /**
+ * Return the first source handler that supports the source
+ * TODO: Answer question: should 'probably' be prioritized over 'maybe'
+ * @param {Object} source The source object
+ * @returns {Object} The first source handler that supports the source
+ * @returns {null} Null if no source handler is found
+ */
+ Tech.selectSourceHandler = function(source){
+ var handlers = Tech.sourceHandlers || [],
+ can;
+
+ for (var i = 0; i < handlers.length; i++) {
+ can = handlers[i].canHandleSource(source);
+
+ if (can) {
+ return handlers[i];
+ }
+ }
+
+ return null;
+ };
+
+ /**
+ * Check if the tech can support the given source
+ * @param {Object} srcObj The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+ Tech.canPlaySource = function(srcObj){
+ var sh = Tech.selectSourceHandler(srcObj);
+
+ if (sh) {
+ return sh.canHandleSource(srcObj);
+ }
+
+ return '';
+ };
+
+ /**
+ * Create a function for setting the source using a source object
+ * and source handlers.
+ * Should never be called unless a source handler was found.
+ * @param {Object} source A source object with src and type keys
+ * @return {vjs.MediaTechController} self
+ */
+ Tech.prototype.setSource = function(source){
+ var sh = Tech.selectSourceHandler(source);
+
+ // Dispose any existing source handler
+ this.disposeSourceHandler();
+ this.off('dispose', this.disposeSourceHandler);
+
+ this.currentSource_ = source;
+ this.sourceHandler_ = sh.handleSource(source, this);
+ this.on('dispose', this.disposeSourceHandler);
+
+ return this;
+ };
+
+ /**
+ * Clean up any existing source handler
+ */
+ Tech.prototype.disposeSourceHandler = function(){
+ if (this.sourceHandler_ && this.sourceHandler_.dispose) {
+ this.sourceHandler_.dispose();
+ }
+ };
+
+};
+
+vjs.media = {};
+
+})();
+/**
+ * @fileoverview HTML5 Media Controller - Wrapper for HTML5 Media API
+ */
+
+/**
+ * HTML5 Media Controller - Wrapper for HTML5 Media API
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @param {Function=} ready
+ * @constructor
+ */
+vjs.Html5 = vjs.MediaTechController.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ var nodes, nodesLength, i, node, nodeName, removeNodes;
+
+ if (options['nativeCaptions'] === false || options['nativeTextTracks'] === false) {
+ this['featuresNativeTextTracks'] = false;
+ }
+
+ vjs.MediaTechController.call(this, player, options, ready);
+
+ this.setupTriggers();
+
+ var source = options['source'];
+
+ // Set the source if one is provided
+ // 1) Check if the source is new (if not, we want to keep the original so playback isn't interrupted)
+ // 2) Check to see if the network state of the tag was failed at init, and if so, reset the source
+ // anyway so the error gets fired.
+ if (source && (this.el_.currentSrc !== source.src || (player.tag && player.tag.initNetworkState_ === 3))) {
+ this.setSource(source);
+ }
+
+ if (this.el_.hasChildNodes()) {
+
+ nodes = this.el_.childNodes;
+ nodesLength = nodes.length;
+ removeNodes = [];
+
+ while (nodesLength--) {
+ node = nodes[nodesLength];
+ nodeName = node.nodeName.toLowerCase();
+ if (nodeName === 'track') {
+ if (!this['featuresNativeTextTracks']) {
+ // Empty video tag tracks so the built-in player doesn't use them also.
+ // This may not be fast enough to stop HTML5 browsers from reading the tags
+ // so we'll need to turn off any default tracks if we're manually doing
+ // captions and subtitles. videoElement.textTracks
+ removeNodes.push(node);
+ } else {
+ this.remoteTextTracks().addTrack_(node['track']);
+ }
+ }
+ }
+
+ for (i=0; i= 0; i--) {
+ var attr = settingsAttrs[i];
+ var overwriteAttrs = {};
+ if (typeof player.options_[attr] !== 'undefined') {
+ overwriteAttrs[attr] = player.options_[attr];
+ }
+ vjs.setElementAttributes(el, overwriteAttrs);
+ }
+
+ return el;
+ // jenniisawesome = true;
+};
+
+
+vjs.Html5.prototype.hideCaptions = function() {
+ var tracks = this.el_.textTracks,
+ track,
+ i = tracks.length,
+ kinds = {
+ 'captions': 1,
+ 'subtitles': 1
+ };
+
+ while (i--) {
+ track = tracks[i];
+ if (track && track['kind'] in kinds) {
+ track.mode = 'disabled';
+ }
+ }
+};
+
+// Make video events trigger player events
+// May seem verbose here, but makes other APIs possible.
+// Triggers removed using this.off when disposed
+vjs.Html5.prototype.setupTriggers = function(){
+ for (var i = vjs.Html5.Events.length - 1; i >= 0; i--) {
+ this.on(vjs.Html5.Events[i], this.eventHandler);
+ }
+};
+
+vjs.Html5.prototype.eventHandler = function(evt){
+ // In the case of an error on the video element, set the error prop
+ // on the player and let the player handle triggering the event. On
+ // some platforms, error events fire that do not cause the error
+ // property on the video element to be set. See #1465 for an example.
+ if (evt.type == 'error' && this.error()) {
+ this.player().error(this.error().code);
+
+ // in some cases we pass the event directly to the player
+ } else {
+ // No need for media events to bubble up.
+ evt.bubbles = false;
+
+ this.player().trigger(evt);
+ }
+};
+
+vjs.Html5.prototype.useNativeControls = function(){
+ var tech, player, controlsOn, controlsOff, cleanUp;
+
+ tech = this;
+ player = this.player();
+
+ // If the player controls are enabled turn on the native controls
+ tech.setControls(player.controls());
+
+ // Update the native controls when player controls state is updated
+ controlsOn = function(){
+ tech.setControls(true);
+ };
+ controlsOff = function(){
+ tech.setControls(false);
+ };
+ player.on('controlsenabled', controlsOn);
+ player.on('controlsdisabled', controlsOff);
+
+ // Clean up when not using native controls anymore
+ cleanUp = function(){
+ player.off('controlsenabled', controlsOn);
+ player.off('controlsdisabled', controlsOff);
+ };
+ tech.on('dispose', cleanUp);
+ player.on('usingcustomcontrols', cleanUp);
+
+ // Update the state of the player to using native controls
+ player.usingNativeControls(true);
+};
+
+
+vjs.Html5.prototype.play = function(){ this.el_.play(); };
+vjs.Html5.prototype.pause = function(){ this.el_.pause(); };
+vjs.Html5.prototype.paused = function(){ return this.el_.paused; };
+
+vjs.Html5.prototype.currentTime = function(){ return this.el_.currentTime; };
+vjs.Html5.prototype.setCurrentTime = function(seconds){
+ try {
+ this.el_.currentTime = seconds;
+ } catch(e) {
+ vjs.log(e, 'Video is not ready. (Video.js)');
+ // this.warning(VideoJS.warnings.videoNotReady);
+ }
+};
+
+vjs.Html5.prototype.duration = function(){ return this.el_.duration || 0; };
+vjs.Html5.prototype.buffered = function(){ return this.el_.buffered; };
+
+vjs.Html5.prototype.volume = function(){ return this.el_.volume; };
+vjs.Html5.prototype.setVolume = function(percentAsDecimal){ this.el_.volume = percentAsDecimal; };
+vjs.Html5.prototype.muted = function(){ return this.el_.muted; };
+vjs.Html5.prototype.setMuted = function(muted){ this.el_.muted = muted; };
+
+vjs.Html5.prototype.width = function(){ return this.el_.offsetWidth; };
+vjs.Html5.prototype.height = function(){ return this.el_.offsetHeight; };
+
+vjs.Html5.prototype.supportsFullScreen = function(){
+ if (typeof this.el_.webkitEnterFullScreen == 'function') {
+
+ // Seems to be broken in Chromium/Chrome && Safari in Leopard
+ if (/Android/.test(vjs.USER_AGENT) || !/Chrome|Mac OS X 10.5/.test(vjs.USER_AGENT)) {
+ return true;
+ }
+ }
+ return false;
+};
+
+vjs.Html5.prototype.enterFullScreen = function(){
+ var video = this.el_;
+
+ if ('webkitDisplayingFullscreen' in video) {
+ this.one('webkitbeginfullscreen', function() {
+ this.player_.isFullscreen(true);
+
+ this.one('webkitendfullscreen', function() {
+ this.player_.isFullscreen(false);
+ this.player_.trigger('fullscreenchange');
+ });
+
+ this.player_.trigger('fullscreenchange');
+ });
+ }
+
+ if (video.paused && video.networkState <= video.HAVE_METADATA) {
+ // attempt to prime the video element for programmatic access
+ // this isn't necessary on the desktop but shouldn't hurt
+ this.el_.play();
+
+ // playing and pausing synchronously during the transition to fullscreen
+ // can get iOS ~6.1 devices into a play/pause loop
+ this.setTimeout(function(){
+ video.pause();
+ video.webkitEnterFullScreen();
+ }, 0);
+ } else {
+ video.webkitEnterFullScreen();
+ }
+};
+
+vjs.Html5.prototype.exitFullScreen = function(){
+ this.el_.webkitExitFullScreen();
+};
+
+
+vjs.Html5.prototype.src = function(src) {
+ if (src === undefined) {
+ return this.el_.src;
+ } else {
+ // Setting src through `src` instead of `setSrc` will be deprecated
+ this.setSrc(src);
+ }
+};
+
+vjs.Html5.prototype.setSrc = function(src) {
+ this.el_.src = src;
+};
+
+vjs.Html5.prototype.load = function(){ this.el_.load(); };
+vjs.Html5.prototype.currentSrc = function(){ return this.el_.currentSrc; };
+
+vjs.Html5.prototype.poster = function(){ return this.el_.poster; };
+vjs.Html5.prototype.setPoster = function(val){ this.el_.poster = val; };
+
+vjs.Html5.prototype.preload = function(){ return this.el_.preload; };
+vjs.Html5.prototype.setPreload = function(val){ this.el_.preload = val; };
+
+vjs.Html5.prototype.autoplay = function(){ return this.el_.autoplay; };
+vjs.Html5.prototype.setAutoplay = function(val){ this.el_.autoplay = val; };
+
+vjs.Html5.prototype.controls = function(){ return this.el_.controls; };
+vjs.Html5.prototype.setControls = function(val){ this.el_.controls = !!val; };
+
+vjs.Html5.prototype.loop = function(){ return this.el_.loop; };
+vjs.Html5.prototype.setLoop = function(val){ this.el_.loop = val; };
+
+vjs.Html5.prototype.error = function(){ return this.el_.error; };
+vjs.Html5.prototype.seeking = function(){ return this.el_.seeking; };
+vjs.Html5.prototype.ended = function(){ return this.el_.ended; };
+vjs.Html5.prototype.defaultMuted = function(){ return this.el_.defaultMuted; };
+
+vjs.Html5.prototype.playbackRate = function(){ return this.el_.playbackRate; };
+vjs.Html5.prototype.setPlaybackRate = function(val){ this.el_.playbackRate = val; };
+
+vjs.Html5.prototype.networkState = function(){ return this.el_.networkState; };
+vjs.Html5.prototype.readyState = function(){ return this.el_.readyState; };
+
+vjs.Html5.prototype.textTracks = function() {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.textTracks.call(this);
+ }
+
+ return this.el_.textTracks;
+};
+vjs.Html5.prototype.addTextTrack = function(kind, label, language) {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.addTextTrack.call(this, kind, label, language);
+ }
+
+ return this.el_.addTextTrack(kind, label, language);
+};
+
+vjs.Html5.prototype.addRemoteTextTrack = function(options) {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.addRemoteTextTrack.call(this, options);
+ }
+
+ var track = document.createElement('track');
+ options = options || {};
+
+ if (options['kind']) {
+ track['kind'] = options['kind'];
+ }
+ if (options['label']) {
+ track['label'] = options['label'];
+ }
+ if (options['language'] || options['srclang']) {
+ track['srclang'] = options['language'] || options['srclang'];
+ }
+ if (options['default']) {
+ track['default'] = options['default'];
+ }
+ if (options['id']) {
+ track['id'] = options['id'];
+ }
+ if (options['src']) {
+ track['src'] = options['src'];
+ }
+
+ this.el().appendChild(track);
+
+ if (track.track['kind'] === 'metadata') {
+ track['track']['mode'] = 'hidden';
+ } else {
+ track['track']['mode'] = 'disabled';
+ }
+
+ track['onload'] = function() {
+ var tt = track['track'];
+ if (track.readyState >= 2) {
+ if (tt['kind'] === 'metadata' && tt['mode'] !== 'hidden') {
+ tt['mode'] = 'hidden';
+ } else if (tt['kind'] !== 'metadata' && tt['mode'] !== 'disabled') {
+ tt['mode'] = 'disabled';
+ }
+ track['onload'] = null;
+ }
+ };
+
+ this.remoteTextTracks().addTrack_(track.track);
+
+ return track;
+};
+
+vjs.Html5.prototype.removeRemoteTextTrack = function(track) {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.removeRemoteTextTrack.call(this, track);
+ }
+
+ var tracks, i;
+
+ this.remoteTextTracks().removeTrack_(track);
+
+ tracks = this.el()['querySelectorAll']('track');
+
+ for (i = 0; i < tracks.length; i++) {
+ if (tracks[i] === track || tracks[i]['track'] === track) {
+ tracks[i]['parentNode']['removeChild'](tracks[i]);
+ break;
+ }
+ }
+};
+
+/* HTML5 Support Testing ---------------------------------------------------- */
+
+/**
+ * Check if HTML5 video is supported by this browser/device
+ * @return {Boolean}
+ */
+vjs.Html5.isSupported = function(){
+ // IE9 with no Media Player is a LIAR! (#984)
+ try {
+ vjs.TEST_VID['volume'] = 0.5;
+ } catch (e) {
+ return false;
+ }
+
+ return !!vjs.TEST_VID.canPlayType;
+};
+
+// Add Source Handler pattern functions to this tech
+vjs.MediaTechController.withSourceHandlers(vjs.Html5);
+
+/**
+ * The default native source handler.
+ * This simply passes the source to the video element. Nothing fancy.
+ * @param {Object} source The source object
+ * @param {vjs.Html5} tech The instance of the HTML5 tech
+ */
+vjs.Html5.nativeSourceHandler = {};
+
+/**
+ * Check if the video element can handle the source natively
+ * @param {Object} source The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+vjs.Html5.nativeSourceHandler.canHandleSource = function(source){
+ var match, ext;
+
+ function canPlayType(type){
+ // IE9 on Windows 7 without MediaPlayer throws an error here
+ // https://github.com/videojs/video.js/issues/519
+ try {
+ return vjs.TEST_VID.canPlayType(type);
+ } catch(e) {
+ return '';
+ }
+ }
+
+ // If a type was provided we should rely on that
+ if (source.type) {
+ return canPlayType(source.type);
+ } else if (source.src) {
+ // If no type, fall back to checking 'video/[EXTENSION]'
+ match = source.src.match(/\.([^.\/\?]+)(\?[^\/]+)?$/i);
+ ext = match && match[1];
+
+ return canPlayType('video/'+ext);
+ }
+
+ return '';
+};
+
+/**
+ * Pass the source to the video element
+ * Adaptive source handlers will have more complicated workflows before passing
+ * video data to the video element
+ * @param {Object} source The source object
+ * @param {vjs.Html5} tech The instance of the Html5 tech
+ */
+vjs.Html5.nativeSourceHandler.handleSource = function(source, tech){
+ tech.setSrc(source.src);
+};
+
+/**
+ * Clean up the source handler when disposing the player or switching sources..
+ * (no cleanup is needed when supporting the format natively)
+ */
+vjs.Html5.nativeSourceHandler.dispose = function(){};
+
+// Register the native source handler
+vjs.Html5.registerSourceHandler(vjs.Html5.nativeSourceHandler);
+
+/**
+ * Check if the volume can be changed in this browser/device.
+ * Volume cannot be changed in a lot of mobile devices.
+ * Specifically, it can't be changed from 1 on iOS.
+ * @return {Boolean}
+ */
+vjs.Html5.canControlVolume = function(){
+ var volume = vjs.TEST_VID.volume;
+ vjs.TEST_VID.volume = (volume / 2) + 0.1;
+ return volume !== vjs.TEST_VID.volume;
+};
+
+/**
+ * Check if playbackRate is supported in this browser/device.
+ * @return {[type]} [description]
+ */
+vjs.Html5.canControlPlaybackRate = function(){
+ var playbackRate = vjs.TEST_VID.playbackRate;
+ vjs.TEST_VID.playbackRate = (playbackRate / 2) + 0.1;
+ return playbackRate !== vjs.TEST_VID.playbackRate;
+};
+
+/**
+ * Check to see if native text tracks are supported by this browser/device
+ * @return {Boolean}
+ */
+vjs.Html5.supportsNativeTextTracks = function() {
+ var supportsTextTracks;
+
+ // Figure out native text track support
+ // If mode is a number, we cannot change it because it'll disappear from view.
+ // Browsers with numeric modes include IE10 and older (<=2013) samsung android models.
+ // Firefox isn't playing nice either with modifying the mode
+ // TODO: Investigate firefox: https://github.com/videojs/video.js/issues/1862
+ supportsTextTracks = !!vjs.TEST_VID.textTracks;
+ if (supportsTextTracks && vjs.TEST_VID.textTracks.length > 0) {
+ supportsTextTracks = typeof vjs.TEST_VID.textTracks[0]['mode'] !== 'number';
+ }
+ if (supportsTextTracks && vjs.IS_FIREFOX) {
+ supportsTextTracks = false;
+ }
+
+ return supportsTextTracks;
+};
+
+/**
+ * Set the tech's volume control support status
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['featuresVolumeControl'] = vjs.Html5.canControlVolume();
+
+/**
+ * Set the tech's playbackRate support status
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['featuresPlaybackRate'] = vjs.Html5.canControlPlaybackRate();
+
+/**
+ * Set the tech's status on moving the video element.
+ * In iOS, if you move a video element in the DOM, it breaks video playback.
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['movingMediaElementInDOM'] = !vjs.IS_IOS;
+
+/**
+ * Set the the tech's fullscreen resize support status.
+ * HTML video is able to automatically resize when going to fullscreen.
+ * (No longer appears to be used. Can probably be removed.)
+ */
+vjs.Html5.prototype['featuresFullscreenResize'] = true;
+
+/**
+ * Set the tech's progress event support status
+ * (this disables the manual progress events of the MediaTechController)
+ */
+vjs.Html5.prototype['featuresProgressEvents'] = true;
+
+/**
+ * Sets the tech's status on native text track support
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['featuresNativeTextTracks'] = vjs.Html5.supportsNativeTextTracks();
+
+// HTML5 Feature detection and Device Fixes --------------------------------- //
+(function() {
+ var canPlayType,
+ mpegurlRE = /^application\/(?:x-|vnd\.apple\.)mpegurl/i,
+ mp4RE = /^video\/mp4/i;
+
+ vjs.Html5.patchCanPlayType = function() {
+ // Android 4.0 and above can play HLS to some extent but it reports being unable to do so
+ if (vjs.ANDROID_VERSION >= 4.0) {
+ if (!canPlayType) {
+ canPlayType = vjs.TEST_VID.constructor.prototype.canPlayType;
+ }
+
+ vjs.TEST_VID.constructor.prototype.canPlayType = function(type) {
+ if (type && mpegurlRE.test(type)) {
+ return 'maybe';
+ }
+ return canPlayType.call(this, type);
+ };
+ }
+
+ // Override Android 2.2 and less canPlayType method which is broken
+ if (vjs.IS_OLD_ANDROID) {
+ if (!canPlayType) {
+ canPlayType = vjs.TEST_VID.constructor.prototype.canPlayType;
+ }
+
+ vjs.TEST_VID.constructor.prototype.canPlayType = function(type){
+ if (type && mp4RE.test(type)) {
+ return 'maybe';
+ }
+ return canPlayType.call(this, type);
+ };
+ }
+ };
+
+ vjs.Html5.unpatchCanPlayType = function() {
+ var r = vjs.TEST_VID.constructor.prototype.canPlayType;
+ vjs.TEST_VID.constructor.prototype.canPlayType = canPlayType;
+ canPlayType = null;
+ return r;
+ };
+
+ // by default, patch the video element
+ vjs.Html5.patchCanPlayType();
+})();
+
+// List of all HTML5 events (various uses).
+vjs.Html5.Events = 'loadstart,suspend,abort,error,emptied,stalled,loadedmetadata,loadeddata,canplay,canplaythrough,playing,waiting,seeking,seeked,ended,durationchange,timeupdate,progress,play,pause,ratechange,volumechange'.split(',');
+
+vjs.Html5.disposeMediaElement = function(el){
+ if (!el) { return; }
+
+ el['player'] = null;
+
+ if (el.parentNode) {
+ el.parentNode.removeChild(el);
+ }
+
+ // remove any child track or source nodes to prevent their loading
+ while(el.hasChildNodes()) {
+ el.removeChild(el.firstChild);
+ }
+
+ // remove any src reference. not setting `src=''` because that causes a warning
+ // in firefox
+ el.removeAttribute('src');
+
+ // force the media element to update its loading state by calling load()
+ // however IE on Windows 7N has a bug that throws an error so need a try/catch (#793)
+ if (typeof el.load === 'function') {
+ // wrapping in an iife so it's not deoptimized (#1060#discussion_r10324473)
+ (function() {
+ try {
+ el.load();
+ } catch (e) {
+ // not supported
+ }
+ })();
+ }
+};
+/**
+ * @fileoverview VideoJS-SWF - Custom Flash Player with HTML5-ish API
+ * https://github.com/zencoder/video-js-swf
+ * Not using setupTriggers. Using global onEvent func to distribute events
+ */
+
+/**
+ * Flash Media Controller - Wrapper for fallback SWF API
+ *
+ * @param {vjs.Player} player
+ * @param {Object=} options
+ * @param {Function=} ready
+ * @constructor
+ */
+vjs.Flash = vjs.MediaTechController.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.MediaTechController.call(this, player, options, ready);
+
+ var source = options['source'],
+
+ // Which element to embed in
+ parentEl = options['parentEl'],
+
+ // Create a temporary element to be replaced by swf object
+ placeHolder = this.el_ = vjs.createEl('div', { id: player.id() + '_temp_flash' }),
+
+ // Generate ID for swf object
+ objId = player.id()+'_flash_api',
+
+ // Store player options in local var for optimization
+ // TODO: switch to using player methods instead of options
+ // e.g. player.autoplay();
+ playerOptions = player.options_,
+
+ // Merge default flashvars with ones passed in to init
+ flashVars = vjs.obj.merge({
+
+ // SWF Callback Functions
+ 'readyFunction': 'videojs.Flash.onReady',
+ 'eventProxyFunction': 'videojs.Flash.onEvent',
+ 'errorEventProxyFunction': 'videojs.Flash.onError',
+
+ // Player Settings
+ 'autoplay': playerOptions.autoplay,
+ 'preload': playerOptions.preload,
+ 'loop': playerOptions.loop,
+ 'muted': playerOptions.muted
+
+ }, options['flashVars']),
+
+ // Merge default parames with ones passed in
+ params = vjs.obj.merge({
+ 'wmode': 'opaque', // Opaque is needed to overlay controls, but can affect playback performance
+ 'bgcolor': '#000000' // Using bgcolor prevents a white flash when the object is loading
+ }, options['params']),
+
+ // Merge default attributes with ones passed in
+ attributes = vjs.obj.merge({
+ 'id': objId,
+ 'name': objId, // Both ID and Name needed or swf to identify itself
+ 'class': 'vjs-tech'
+ }, options['attributes'])
+ ;
+
+ // If source was supplied pass as a flash var.
+ if (source) {
+ this.ready(function(){
+ this.setSource(source);
+ });
+ }
+
+ // Add placeholder to player div
+ vjs.insertFirst(placeHolder, parentEl);
+
+ // Having issues with Flash reloading on certain page actions (hide/resize/fullscreen) in certain browsers
+ // This allows resetting the playhead when we catch the reload
+ if (options['startTime']) {
+ this.ready(function(){
+ this.load();
+ this.play();
+ this['currentTime'](options['startTime']);
+ });
+ }
+
+ // firefox doesn't bubble mousemove events to parent. videojs/video-js-swf#37
+ // bugzilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=836786
+ if (vjs.IS_FIREFOX) {
+ this.ready(function(){
+ this.on('mousemove', function(){
+ // since it's a custom event, don't bubble higher than the player
+ this.player().trigger({ 'type':'mousemove', 'bubbles': false });
+ });
+ });
+ }
+
+ // native click events on the SWF aren't triggered on IE11, Win8.1RT
+ // use stageclick events triggered from inside the SWF instead
+ player.on('stageclick', player.reportUserActivity);
+
+ this.el_ = vjs.Flash.embed(options['swf'], placeHolder, flashVars, params, attributes);
+ }
+});
+
+vjs.Flash.prototype.dispose = function(){
+ vjs.MediaTechController.prototype.dispose.call(this);
+};
+
+vjs.Flash.prototype.play = function(){
+ this.el_.vjs_play();
+};
+
+vjs.Flash.prototype.pause = function(){
+ this.el_.vjs_pause();
+};
+
+vjs.Flash.prototype.src = function(src){
+ if (src === undefined) {
+ return this['currentSrc']();
+ }
+
+ // Setting src through `src` not `setSrc` will be deprecated
+ return this.setSrc(src);
+};
+
+vjs.Flash.prototype.setSrc = function(src){
+ // Make sure source URL is absolute.
+ src = vjs.getAbsoluteURL(src);
+ this.el_.vjs_src(src);
+
+ // Currently the SWF doesn't autoplay if you load a source later.
+ // e.g. Load player w/ no source, wait 2s, set src.
+ if (this.player_.autoplay()) {
+ var tech = this;
+ this.setTimeout(function(){ tech.play(); }, 0);
+ }
+};
+
+vjs.Flash.prototype['setCurrentTime'] = function(time){
+ this.lastSeekTarget_ = time;
+ this.el_.vjs_setProperty('currentTime', time);
+ vjs.MediaTechController.prototype.setCurrentTime.call(this);
+};
+
+vjs.Flash.prototype['currentTime'] = function(time){
+ // when seeking make the reported time keep up with the requested time
+ // by reading the time we're seeking to
+ if (this.seeking()) {
+ return this.lastSeekTarget_ || 0;
+ }
+ return this.el_.vjs_getProperty('currentTime');
+};
+
+vjs.Flash.prototype['currentSrc'] = function(){
+ if (this.currentSource_) {
+ return this.currentSource_.src;
+ } else {
+ return this.el_.vjs_getProperty('currentSrc');
+ }
+};
+
+vjs.Flash.prototype.load = function(){
+ this.el_.vjs_load();
+};
+
+vjs.Flash.prototype.poster = function(){
+ this.el_.vjs_getProperty('poster');
+};
+vjs.Flash.prototype['setPoster'] = function(){
+ // poster images are not handled by the Flash tech so make this a no-op
+};
+
+vjs.Flash.prototype.buffered = function(){
+ return vjs.createTimeRange(0, this.el_.vjs_getProperty('buffered'));
+};
+
+vjs.Flash.prototype.supportsFullScreen = function(){
+ return false; // Flash does not allow fullscreen through javascript
+};
+
+vjs.Flash.prototype.enterFullScreen = function(){
+ return false;
+};
+
+(function(){
+ // Create setters and getters for attributes
+ var api = vjs.Flash.prototype,
+ readWrite = 'rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted'.split(','),
+ readOnly = 'error,networkState,readyState,seeking,initialTime,duration,startOffsetTime,paused,played,seekable,ended,videoTracks,audioTracks,videoWidth,videoHeight'.split(','),
+ // Overridden: buffered, currentTime, currentSrc
+ i;
+
+ function createSetter(attr){
+ var attrUpper = attr.charAt(0).toUpperCase() + attr.slice(1);
+ api['set'+attrUpper] = function(val){ return this.el_.vjs_setProperty(attr, val); };
+ }
+ function createGetter(attr) {
+ api[attr] = function(){ return this.el_.vjs_getProperty(attr); };
+ }
+
+ // Create getter and setters for all read/write attributes
+ for (i = 0; i < readWrite.length; i++) {
+ createGetter(readWrite[i]);
+ createSetter(readWrite[i]);
+ }
+
+ // Create getters for read-only attributes
+ for (i = 0; i < readOnly.length; i++) {
+ createGetter(readOnly[i]);
+ }
+})();
+
+/* Flash Support Testing -------------------------------------------------------- */
+
+vjs.Flash.isSupported = function(){
+ return vjs.Flash.version()[0] >= 10;
+ // return swfobject.hasFlashPlayerVersion('10');
+};
+
+// Add Source Handler pattern functions to this tech
+vjs.MediaTechController.withSourceHandlers(vjs.Flash);
+
+/**
+ * The default native source handler.
+ * This simply passes the source to the video element. Nothing fancy.
+ * @param {Object} source The source object
+ * @param {vjs.Flash} tech The instance of the Flash tech
+ */
+vjs.Flash.nativeSourceHandler = {};
+
+/**
+ * Check Flash can handle the source natively
+ * @param {Object} source The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+vjs.Flash.nativeSourceHandler.canHandleSource = function(source){
+ var type;
+
+ if (!source.type) {
+ return '';
+ }
+
+ // Strip code information from the type because we don't get that specific
+ type = source.type.replace(/;.*/,'').toLowerCase();
+
+ if (type in vjs.Flash.formats) {
+ return 'maybe';
+ }
+
+ return '';
+};
+
+/**
+ * Pass the source to the flash object
+ * Adaptive source handlers will have more complicated workflows before passing
+ * video data to the video element
+ * @param {Object} source The source object
+ * @param {vjs.Flash} tech The instance of the Flash tech
+ */
+vjs.Flash.nativeSourceHandler.handleSource = function(source, tech){
+ tech.setSrc(source.src);
+};
+
+/**
+ * Clean up the source handler when disposing the player or switching sources..
+ * (no cleanup is needed when supporting the format natively)
+ */
+vjs.Flash.nativeSourceHandler.dispose = function(){};
+
+// Register the native source handler
+vjs.Flash.registerSourceHandler(vjs.Flash.nativeSourceHandler);
+
+vjs.Flash.formats = {
+ 'video/flv': 'FLV',
+ 'video/x-flv': 'FLV',
+ 'video/mp4': 'MP4',
+ 'video/m4v': 'MP4'
+};
+
+vjs.Flash['onReady'] = function(currSwf){
+ var el, player;
+
+ el = vjs.el(currSwf);
+
+ // get player from the player div property
+ player = el && el.parentNode && el.parentNode['player'];
+
+ // if there is no el or player then the tech has been disposed
+ // and the tech element was removed from the player div
+ if (player) {
+ // reference player on tech element
+ el['player'] = player;
+ // check that the flash object is really ready
+ vjs.Flash['checkReady'](player.tech);
+ }
+};
+
+// The SWF isn't always ready when it says it is. Sometimes the API functions still need to be added to the object.
+// If it's not ready, we set a timeout to check again shortly.
+vjs.Flash['checkReady'] = function(tech){
+ // stop worrying if the tech has been disposed
+ if (!tech.el()) {
+ return;
+ }
+
+ // check if API property exists
+ if (tech.el().vjs_getProperty) {
+ // tell tech it's ready
+ tech.triggerReady();
+ } else {
+ // wait longer
+ this.setTimeout(function(){
+ vjs.Flash['checkReady'](tech);
+ }, 50);
+ }
+};
+
+// Trigger events from the swf on the player
+vjs.Flash['onEvent'] = function(swfID, eventName){
+ var player = vjs.el(swfID)['player'];
+ player.trigger(eventName);
+};
+
+// Log errors from the swf
+vjs.Flash['onError'] = function(swfID, err){
+ var player = vjs.el(swfID)['player'];
+ var msg = 'FLASH: '+err;
+
+ if (err == 'srcnotfound') {
+ player.error({ code: 4, message: msg });
+
+ // errors we haven't categorized into the media errors
+ } else {
+ player.error(msg);
+ }
+};
+
+// Flash Version Check
+vjs.Flash.version = function(){
+ var version = '0,0,0';
+
+ // IE
+ try {
+ version = new window.ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
+
+ // other browsers
+ } catch(e) {
+ try {
+ if (navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin){
+ version = (navigator.plugins['Shockwave Flash 2.0'] || navigator.plugins['Shockwave Flash']).description.replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
+ }
+ } catch(err) {}
+ }
+ return version.split(',');
+};
+
+// Flash embedding method. Only used in non-iframe mode
+vjs.Flash.embed = function(swf, placeHolder, flashVars, params, attributes){
+ var code = vjs.Flash.getEmbedCode(swf, flashVars, params, attributes),
+
+ // Get element by embedding code and retrieving created element
+ obj = vjs.createEl('div', { innerHTML: code }).childNodes[0],
+
+ par = placeHolder.parentNode
+ ;
+
+ placeHolder.parentNode.replaceChild(obj, placeHolder);
+
+ // IE6 seems to have an issue where it won't initialize the swf object after injecting it.
+ // This is a dumb fix
+ var newObj = par.childNodes[0];
+ setTimeout(function(){
+ newObj.style.display = 'block';
+ }, 1000);
+
+ return obj;
+
+};
+
+vjs.Flash.getEmbedCode = function(swf, flashVars, params, attributes){
+
+ var objTag = ' ';
+ });
+
+ attributes = vjs.obj.merge({
+ // Add swf to attributes (need both for IE and Others to work)
+ 'data': swf,
+
+ // Default to 100% width/height
+ 'width': '100%',
+ 'height': '100%'
+
+ }, attributes);
+
+ // Create Attributes string
+ vjs.obj.each(attributes, function(key, val){
+ attrsString += (key + '="' + val + '" ');
+ });
+
+ return objTag + attrsString + '>' + paramsString + '';
+};
+vjs.Flash.streamingFormats = {
+ 'rtmp/mp4': 'MP4',
+ 'rtmp/flv': 'FLV'
+};
+
+vjs.Flash.streamFromParts = function(connection, stream) {
+ return connection + '&' + stream;
+};
+
+vjs.Flash.streamToParts = function(src) {
+ var parts = {
+ connection: '',
+ stream: ''
+ };
+
+ if (! src) {
+ return parts;
+ }
+
+ // Look for the normal URL separator we expect, '&'.
+ // If found, we split the URL into two pieces around the
+ // first '&'.
+ var connEnd = src.indexOf('&');
+ var streamBegin;
+ if (connEnd !== -1) {
+ streamBegin = connEnd + 1;
+ }
+ else {
+ // If there's not a '&', we use the last '/' as the delimiter.
+ connEnd = streamBegin = src.lastIndexOf('/') + 1;
+ if (connEnd === 0) {
+ // really, there's not a '/'?
+ connEnd = streamBegin = src.length;
+ }
+ }
+ parts.connection = src.substring(0, connEnd);
+ parts.stream = src.substring(streamBegin, src.length);
+
+ return parts;
+};
+
+vjs.Flash.isStreamingType = function(srcType) {
+ return srcType in vjs.Flash.streamingFormats;
+};
+
+// RTMP has four variations, any string starting
+// with one of these protocols should be valid
+vjs.Flash.RTMP_RE = /^rtmp[set]?:\/\//i;
+
+vjs.Flash.isStreamingSrc = function(src) {
+ return vjs.Flash.RTMP_RE.test(src);
+};
+
+/**
+ * A source handler for RTMP urls
+ * @type {Object}
+ */
+vjs.Flash.rtmpSourceHandler = {};
+
+/**
+ * Check Flash can handle the source natively
+ * @param {Object} source The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+vjs.Flash.rtmpSourceHandler.canHandleSource = function(source){
+ if (vjs.Flash.isStreamingType(source.type) || vjs.Flash.isStreamingSrc(source.src)) {
+ return 'maybe';
+ }
+
+ return '';
+};
+
+/**
+ * Pass the source to the flash object
+ * Adaptive source handlers will have more complicated workflows before passing
+ * video data to the video element
+ * @param {Object} source The source object
+ * @param {vjs.Flash} tech The instance of the Flash tech
+ */
+vjs.Flash.rtmpSourceHandler.handleSource = function(source, tech){
+ var srcParts = vjs.Flash.streamToParts(source.src);
+
+ tech['setRtmpConnection'](srcParts.connection);
+ tech['setRtmpStream'](srcParts.stream);
+};
+
+// Register the native source handler
+vjs.Flash.registerSourceHandler(vjs.Flash.rtmpSourceHandler);
+/**
+ * The Media Loader is the component that decides which playback technology to load
+ * when the player is initialized.
+ *
+ * @constructor
+ */
+vjs.MediaLoader = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.Component.call(this, player, options, ready);
+
+ // If there are no sources when the player is initialized,
+ // load the first supported playback technology.
+ if (!player.options_['sources'] || player.options_['sources'].length === 0) {
+ for (var i=0,j=player.options_['techOrder']; i= ct) {
+ active.push(cue);
+ } else if (cue['startTime'] === cue['endTime'] && cue['startTime'] <= ct && cue['startTime'] + 0.5 >= ct) {
+ active.push(cue);
+ }
+ }
+
+ changed = false;
+
+ if (active.length !== this.activeCues_.length) {
+ changed = true;
+ } else {
+ for (i = 0; i < active.length; i++) {
+ if (indexOf.call(this.activeCues_, active[i]) === -1) {
+ changed = true;
+ }
+ }
+ }
+
+ this.activeCues_ = active;
+ activeCues.setCues_(this.activeCues_);
+
+ return activeCues;
+ },
+ set: Function.prototype
+ });
+
+ if (options.src) {
+ loadTrack(options.src, tt);
+ } else {
+ tt.loaded_ = true;
+ }
+
+ if (vjs.IS_IE8) {
+ return tt;
+ }
+};
+
+vjs.TextTrack.prototype = vjs.obj.create(vjs.EventEmitter.prototype);
+vjs.TextTrack.prototype.constructor = vjs.TextTrack;
+
+/*
+ * cuechange - One or more cues in the track have become active or stopped being active.
+ */
+vjs.TextTrack.prototype.allowedEvents_ = {
+ 'cuechange': 'cuechange'
+};
+
+vjs.TextTrack.prototype.addCue = function(cue) {
+ var tracks = this.player_.textTracks(),
+ i = 0;
+
+ if (tracks) {
+ for (; i < tracks.length; i++) {
+ if (tracks[i] !== this) {
+ tracks[i].removeCue(cue);
+ }
+ }
+ }
+
+ this.cues_.push(cue);
+ this['cues'].setCues_(this.cues_);
+};
+
+vjs.TextTrack.prototype.removeCue = function(removeCue) {
+ var i = 0,
+ l = this.cues_.length,
+ cue,
+ removed = false;
+
+ for (; i < l; i++) {
+ cue = this.cues_[i];
+ if (cue === removeCue) {
+ this.cues_.splice(i, 1);
+ removed = true;
+ }
+ }
+
+ if (removed) {
+ this.cues.setCues_(this.cues_);
+ }
+};
+
+/*
+ * Downloading stuff happens below this point
+ */
+var loadTrack, parseCues, indexOf;
+
+loadTrack = function(src, track) {
+ vjs.xhr(src, vjs.bind(this, function(err, response, responseBody){
+ if (err) {
+ return vjs.log.error(err);
+ }
+
+
+ track.loaded_ = true;
+ parseCues(responseBody, track);
+ }));
+};
+
+parseCues = function(srcContent, track) {
+ if (typeof window['WebVTT'] !== 'function') {
+ //try again a bit later
+ return window.setTimeout(function() {
+ parseCues(srcContent, track);
+ }, 25);
+ }
+
+ var parser = new window['WebVTT']['Parser'](window, window['vttjs'], window['WebVTT']['StringDecoder']());
+
+ parser['oncue'] = function(cue) {
+ track.addCue(cue);
+ };
+ parser['onparsingerror'] = function(error) {
+ vjs.log.error(error);
+ };
+
+ parser['parse'](srcContent);
+ parser['flush']();
+};
+
+indexOf = function(searchElement, fromIndex) {
+
+ var k;
+
+ if (this == null) {
+ throw new TypeError('"this" is null or not defined');
+ }
+
+ var O = Object(this);
+
+ var len = O.length >>> 0;
+
+ if (len === 0) {
+ return -1;
+ }
+
+ var n = +fromIndex || 0;
+
+ if (Math.abs(n) === Infinity) {
+ n = 0;
+ }
+
+ if (n >= len) {
+ return -1;
+ }
+
+ k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
+
+ while (k < len) {
+ if (k in O && O[k] === searchElement) {
+ return k;
+ }
+ k++;
+ }
+ return -1;
+};
+
+})();
+/*
+ * https://html.spec.whatwg.org/multipage/embedded-content.html#texttracklist
+ *
+ * interface TextTrackList : EventTarget {
+ * readonly attribute unsigned long length;
+ * getter TextTrack (unsigned long index);
+ * TextTrack? getTrackById(DOMString id);
+ *
+ * attribute EventHandler onchange;
+ * attribute EventHandler onaddtrack;
+ * attribute EventHandler onremovetrack;
+ * };
+ */
+vjs.TextTrackList = function(tracks) {
+ var list = this,
+ prop,
+ i = 0;
+
+ if (vjs.IS_IE8) {
+ list = document.createElement('custom');
+
+ for (prop in vjs.TextTrackList.prototype) {
+ list[prop] = vjs.TextTrackList.prototype[prop];
+ }
+ }
+
+ tracks = tracks || [];
+ list.tracks_ = [];
+
+ Object.defineProperty(list, 'length', {
+ get: function() {
+ return this.tracks_.length;
+ }
+ });
+
+ for (; i < tracks.length; i++) {
+ list.addTrack_(tracks[i]);
+ }
+
+ if (vjs.IS_IE8) {
+ return list;
+ }
+};
+
+vjs.TextTrackList.prototype = vjs.obj.create(vjs.EventEmitter.prototype);
+vjs.TextTrackList.prototype.constructor = vjs.TextTrackList;
+
+/*
+ * change - One or more tracks in the track list have been enabled or disabled.
+ * addtrack - A track has been added to the track list.
+ * removetrack - A track has been removed from the track list.
+*/
+vjs.TextTrackList.prototype.allowedEvents_ = {
+ 'change': 'change',
+ 'addtrack': 'addtrack',
+ 'removetrack': 'removetrack'
+};
+
+// emulate attribute EventHandler support to allow for feature detection
+(function() {
+ var event;
+
+ for (event in vjs.TextTrackList.prototype.allowedEvents_) {
+ vjs.TextTrackList.prototype['on' + event] = null;
+ }
+})();
+
+vjs.TextTrackList.prototype.addTrack_ = function(track) {
+ var index = this.tracks_.length;
+ if (!(''+index in this)) {
+ Object.defineProperty(this, index, {
+ get: function() {
+ return this.tracks_[index];
+ }
+ });
+ }
+
+ track.addEventListener('modechange', vjs.bind(this, function() {
+ this.trigger('change');
+ }));
+ this.tracks_.push(track);
+
+ this.trigger({
+ type: 'addtrack',
+ track: track
+ });
+};
+
+vjs.TextTrackList.prototype.removeTrack_ = function(rtrack) {
+ var i = 0,
+ l = this.length,
+ result = null,
+ track;
+
+ for (; i < l; i++) {
+ track = this[i];
+ if (track === rtrack) {
+ this.tracks_.splice(i, 1);
+ break;
+ }
+ }
+
+ this.trigger({
+ type: 'removetrack',
+ track: rtrack
+ });
+};
+
+vjs.TextTrackList.prototype.getTrackById = function(id) {
+ var i = 0,
+ l = this.length,
+ result = null,
+ track;
+
+ for (; i < l; i++) {
+ track = this[i];
+ if (track.id === id) {
+ result = track;
+ break;
+ }
+ }
+
+ return result;
+};
+/*
+ * https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackcuelist
+ *
+ * interface TextTrackCueList {
+ * readonly attribute unsigned long length;
+ * getter TextTrackCue (unsigned long index);
+ * TextTrackCue? getCueById(DOMString id);
+ * };
+ */
+
+vjs.TextTrackCueList = function(cues) {
+ var list = this,
+ prop;
+
+ if (vjs.IS_IE8) {
+ list = document.createElement('custom');
+
+ for (prop in vjs.TextTrackCueList.prototype) {
+ list[prop] = vjs.TextTrackCueList.prototype[prop];
+ }
+ }
+
+ vjs.TextTrackCueList.prototype.setCues_.call(list, cues);
+
+ Object.defineProperty(list, 'length', {
+ get: function() {
+ return this.length_;
+ }
+ });
+
+ if (vjs.IS_IE8) {
+ return list;
+ }
+};
+
+vjs.TextTrackCueList.prototype.setCues_ = function(cues) {
+ var oldLength = this.length || 0,
+ i = 0,
+ l = cues.length,
+ defineProp;
+
+ this.cues_ = cues;
+ this.length_ = cues.length;
+
+ defineProp = function(i) {
+ if (!(''+i in this)) {
+ Object.defineProperty(this, '' + i, {
+ get: function() {
+ return this.cues_[i];
+ }
+ });
+ }
+ };
+
+ if (oldLength < l) {
+ i = oldLength;
+ for(; i < l; i++) {
+ defineProp.call(this, i);
+ }
+ }
+};
+
+vjs.TextTrackCueList.prototype.getCueById = function(id) {
+ var i = 0,
+ l = this.length,
+ result = null,
+ cue;
+
+ for (; i < l; i++) {
+ cue = this[i];
+ if (cue.id === id) {
+ result = cue;
+ break;
+ }
+ }
+
+ return result;
+};
+(function() {
+'use strict';
+
+/* Text Track Display
+============================================================================= */
+// Global container for both subtitle and captions text. Simple div container.
+
+/**
+ * The component for displaying text track cues
+ *
+ * @constructor
+ */
+vjs.TextTrackDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.Component.call(this, player, options, ready);
+
+ player.on('loadstart', vjs.bind(this, this.toggleDisplay));
+
+ // This used to be called during player init, but was causing an error
+ // if a track should show by default and the display hadn't loaded yet.
+ // Should probably be moved to an external track loader when we support
+ // tracks that don't need a display.
+ player.ready(vjs.bind(this, function() {
+ if (player.tech && player.tech['featuresNativeTextTracks']) {
+ this.hide();
+ return;
+ }
+
+ var i, tracks, track;
+
+ player.on('fullscreenchange', vjs.bind(this, this.updateDisplay));
+
+ tracks = player.options_['tracks'] || [];
+ for (i = 0; i < tracks.length; i++) {
+ track = tracks[i];
+ this.player_.addRemoteTextTrack(track);
+ }
+ }));
+ }
+});
+
+vjs.TextTrackDisplay.prototype.toggleDisplay = function() {
+ if (this.player_.tech && this.player_.tech['featuresNativeTextTracks']) {
+ this.hide();
+ } else {
+ this.show();
+ }
+};
+
+vjs.TextTrackDisplay.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-text-track-display'
+ });
+};
+
+vjs.TextTrackDisplay.prototype.clearDisplay = function() {
+ if (typeof window['WebVTT'] === 'function') {
+ window['WebVTT']['processCues'](window, [], this.el_);
+ }
+};
+
+// Add cue HTML to display
+var constructColor = function(color, opacity) {
+ return 'rgba(' +
+ // color looks like "#f0e"
+ parseInt(color[1] + color[1], 16) + ',' +
+ parseInt(color[2] + color[2], 16) + ',' +
+ parseInt(color[3] + color[3], 16) + ',' +
+ opacity + ')';
+};
+var darkGray = '#222';
+var lightGray = '#ccc';
+var fontMap = {
+ monospace: 'monospace',
+ sansSerif: 'sans-serif',
+ serif: 'serif',
+ monospaceSansSerif: '"Andale Mono", "Lucida Console", monospace',
+ monospaceSerif: '"Courier New", monospace',
+ proportionalSansSerif: 'sans-serif',
+ proportionalSerif: 'serif',
+ casual: '"Comic Sans MS", Impact, fantasy',
+ script: '"Monotype Corsiva", cursive',
+ smallcaps: '"Andale Mono", "Lucida Console", monospace, sans-serif'
+};
+var tryUpdateStyle = function(el, style, rule) {
+ // some style changes will throw an error, particularly in IE8. Those should be noops.
+ try {
+ el.style[style] = rule;
+ } catch (e) {}
+};
+
+vjs.TextTrackDisplay.prototype.updateDisplay = function() {
+ var tracks = this.player_.textTracks(),
+ i = 0,
+ track;
+
+ this.clearDisplay();
+
+ if (!tracks) {
+ return;
+ }
+
+ for (; i < tracks.length; i++) {
+ track = tracks[i];
+ if (track['mode'] === 'showing') {
+ this.updateForTrack(track);
+ }
+ }
+};
+
+vjs.TextTrackDisplay.prototype.updateForTrack = function(track) {
+ if (typeof window['WebVTT'] !== 'function' || !track['activeCues']) {
+ return;
+ }
+
+ var i = 0,
+ property,
+ cueDiv,
+ overrides = this.player_['textTrackSettings'].getValues(),
+ fontSize,
+ cues = [];
+
+ for (; i < track['activeCues'].length; i++) {
+ cues.push(track['activeCues'][i]);
+ }
+
+ window['WebVTT']['processCues'](window, track['activeCues'], this.el_);
+
+ i = cues.length;
+ while (i--) {
+ cueDiv = cues[i].displayState;
+ if (overrides.color) {
+ cueDiv.firstChild.style.color = overrides.color;
+ }
+ if (overrides.textOpacity) {
+ tryUpdateStyle(cueDiv.firstChild,
+ 'color',
+ constructColor(overrides.color || '#fff',
+ overrides.textOpacity));
+ }
+ if (overrides.backgroundColor) {
+ cueDiv.firstChild.style.backgroundColor = overrides.backgroundColor;
+ }
+ if (overrides.backgroundOpacity) {
+ tryUpdateStyle(cueDiv.firstChild,
+ 'backgroundColor',
+ constructColor(overrides.backgroundColor || '#000',
+ overrides.backgroundOpacity));
+ }
+ if (overrides.windowColor) {
+ if (overrides.windowOpacity) {
+ tryUpdateStyle(cueDiv,
+ 'backgroundColor',
+ constructColor(overrides.windowColor, overrides.windowOpacity));
+ } else {
+ cueDiv.style.backgroundColor = overrides.windowColor;
+ }
+ }
+ if (overrides.edgeStyle) {
+ if (overrides.edgeStyle === 'dropshadow') {
+ cueDiv.firstChild.style.textShadow = '2px 2px 3px ' + darkGray + ', 2px 2px 4px ' + darkGray + ', 2px 2px 5px ' + darkGray;
+ } else if (overrides.edgeStyle === 'raised') {
+ cueDiv.firstChild.style.textShadow = '1px 1px ' + darkGray + ', 2px 2px ' + darkGray + ', 3px 3px ' + darkGray;
+ } else if (overrides.edgeStyle === 'depressed') {
+ cueDiv.firstChild.style.textShadow = '1px 1px ' + lightGray + ', 0 1px ' + lightGray + ', -1px -1px ' + darkGray + ', 0 -1px ' + darkGray;
+ } else if (overrides.edgeStyle === 'uniform') {
+ cueDiv.firstChild.style.textShadow = '0 0 4px ' + darkGray + ', 0 0 4px ' + darkGray + ', 0 0 4px ' + darkGray + ', 0 0 4px ' + darkGray;
+ }
+ }
+ if (overrides.fontPercent && overrides.fontPercent !== 1) {
+ fontSize = window.parseFloat(cueDiv.style.fontSize);
+ cueDiv.style.fontSize = (fontSize * overrides.fontPercent) + 'px';
+ cueDiv.style.height = 'auto';
+ cueDiv.style.top = 'auto';
+ cueDiv.style.bottom = '2px';
+ }
+ if (overrides.fontFamily && overrides.fontFamily !== 'default') {
+ if (overrides.fontFamily === 'small-caps') {
+ cueDiv.firstChild.style.fontVariant = 'small-caps';
+ } else {
+ cueDiv.firstChild.style.fontFamily = fontMap[overrides.fontFamily];
+ }
+ }
+ }
+};
+
+
+/**
+ * The specific menu item type for selecting a language within a text track kind
+ *
+ * @constructor
+ */
+vjs.TextTrackMenuItem = vjs.MenuItem.extend({
+ /** @constructor */
+ init: function(player, options){
+ var track = this.track = options['track'],
+ tracks = player.textTracks(),
+ changeHandler,
+ event;
+
+ if (tracks) {
+ changeHandler = vjs.bind(this, function() {
+ var selected = this.track['mode'] === 'showing',
+ track,
+ i,
+ l;
+
+ if (this instanceof vjs.OffTextTrackMenuItem) {
+ selected = true;
+
+ i = 0,
+ l = tracks.length;
+
+ for (; i < l; i++) {
+ track = tracks[i];
+ if (track['kind'] === this.track['kind'] && track['mode'] === 'showing') {
+ selected = false;
+ break;
+ }
+ }
+ }
+
+ this.selected(selected);
+ });
+ tracks.addEventListener('change', changeHandler);
+ player.on('dispose', function() {
+ tracks.removeEventListener('change', changeHandler);
+ });
+ }
+
+ // Modify options for parent MenuItem class's init.
+ options['label'] = track['label'] || track['language'] || 'Unknown';
+ options['selected'] = track['default'] || track['mode'] === 'showing';
+ vjs.MenuItem.call(this, player, options);
+
+ // iOS7 doesn't dispatch change events to TextTrackLists when an
+ // associated track's mode changes. Without something like
+ // Object.observe() (also not present on iOS7), it's not
+ // possible to detect changes to the mode attribute and polyfill
+ // the change event. As a poor substitute, we manually dispatch
+ // change events whenever the controls modify the mode.
+ if (tracks && tracks.onchange === undefined) {
+ this.on(['tap', 'click'], function() {
+ if (typeof window.Event !== 'object') {
+ // Android 2.3 throws an Illegal Constructor error for window.Event
+ try {
+ event = new window.Event('change');
+ } catch(err){}
+ }
+
+ if (!event) {
+ event = document.createEvent('Event');
+ event.initEvent('change', true, true);
+ }
+
+ tracks.dispatchEvent(event);
+ });
+ }
+ }
+});
+
+vjs.TextTrackMenuItem.prototype.onClick = function(){
+ var kind = this.track['kind'],
+ tracks = this.player_.textTracks(),
+ mode,
+ track,
+ i = 0;
+
+ vjs.MenuItem.prototype.onClick.call(this);
+
+ if (!tracks) {
+ return;
+ }
+
+ for (; i < tracks.length; i++) {
+ track = tracks[i];
+
+ if (track['kind'] !== kind) {
+ continue;
+ }
+
+ if (track === this.track) {
+ track['mode'] = 'showing';
+ } else {
+ track['mode'] = 'disabled';
+ }
+ }
+};
+
+/**
+ * A special menu item for turning of a specific type of text track
+ *
+ * @constructor
+ */
+vjs.OffTextTrackMenuItem = vjs.TextTrackMenuItem.extend({
+ /** @constructor */
+ init: function(player, options){
+ // Create pseudo track info
+ // Requires options['kind']
+ options['track'] = {
+ 'kind': options['kind'],
+ 'player': player,
+ 'label': options['kind'] + ' off',
+ 'default': false,
+ 'mode': 'disabled'
+ };
+ vjs.TextTrackMenuItem.call(this, player, options);
+ this.selected(true);
+ }
+});
+
+vjs.CaptionSettingsMenuItem = vjs.TextTrackMenuItem.extend({
+ init: function(player, options) {
+ options['track'] = {
+ 'kind': options['kind'],
+ 'player': player,
+ 'label': options['kind'] + ' settings',
+ 'default': false,
+ mode: 'disabled'
+ };
+
+ vjs.TextTrackMenuItem.call(this, player, options);
+ this.addClass('vjs-texttrack-settings');
+ }
+});
+
+vjs.CaptionSettingsMenuItem.prototype.onClick = function() {
+ this.player().getChild('textTrackSettings').show();
+};
+
+/**
+ * The base class for buttons that toggle specific text track types (e.g. subtitles)
+ *
+ * @constructor
+ */
+vjs.TextTrackButton = vjs.MenuButton.extend({
+ /** @constructor */
+ init: function(player, options){
+ var tracks, updateHandler;
+
+ vjs.MenuButton.call(this, player, options);
+
+ tracks = this.player_.textTracks();
+
+ if (this.items.length <= 1) {
+ this.hide();
+ }
+
+ if (!tracks) {
+ return;
+ }
+
+ updateHandler = vjs.bind(this, this.update);
+ tracks.addEventListener('removetrack', updateHandler);
+ tracks.addEventListener('addtrack', updateHandler);
+
+ this.player_.on('dispose', function() {
+ tracks.removeEventListener('removetrack', updateHandler);
+ tracks.removeEventListener('addtrack', updateHandler);
+ });
+ }
+});
+
+// Create a menu item for each text track
+vjs.TextTrackButton.prototype.createItems = function(){
+ var items = [], track, tracks;
+
+ if (this instanceof vjs.CaptionsButton && !(this.player().tech && this.player().tech['featuresNativeTextTracks'])) {
+ items.push(new vjs.CaptionSettingsMenuItem(this.player_, { 'kind': this.kind_ }));
+ }
+
+ // Add an OFF menu item to turn all tracks off
+ items.push(new vjs.OffTextTrackMenuItem(this.player_, { 'kind': this.kind_ }));
+
+ tracks = this.player_.textTracks();
+
+ if (!tracks) {
+ return items;
+ }
+
+ for (var i = 0; i < tracks.length; i++) {
+ track = tracks[i];
+
+ // only add tracks that are of the appropriate kind and have a label
+ if (track['kind'] === this.kind_) {
+ items.push(new vjs.TextTrackMenuItem(this.player_, {
+ 'track': track
+ }));
+ }
+ }
+
+ return items;
+};
+
+/**
+ * The button component for toggling and selecting captions
+ *
+ * @constructor
+ */
+vjs.CaptionsButton = vjs.TextTrackButton.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.TextTrackButton.call(this, player, options, ready);
+ this.el_.setAttribute('aria-label','Captions Menu');
+ }
+});
+vjs.CaptionsButton.prototype.kind_ = 'captions';
+vjs.CaptionsButton.prototype.buttonText = 'Captions';
+vjs.CaptionsButton.prototype.className = 'vjs-captions-button';
+
+vjs.CaptionsButton.prototype.update = function() {
+ var threshold = 2;
+ vjs.TextTrackButton.prototype.update.call(this);
+
+ // if native, then threshold is 1 because no settings button
+ if (this.player().tech && this.player().tech['featuresNativeTextTracks']) {
+ threshold = 1;
+ }
+
+ if (this.items && this.items.length > threshold) {
+ this.show();
+ } else {
+ this.hide();
+ }
+};
+
+/**
+ * The button component for toggling and selecting subtitles
+ *
+ * @constructor
+ */
+vjs.SubtitlesButton = vjs.TextTrackButton.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.TextTrackButton.call(this, player, options, ready);
+ this.el_.setAttribute('aria-label','Subtitles Menu');
+ }
+});
+vjs.SubtitlesButton.prototype.kind_ = 'subtitles';
+vjs.SubtitlesButton.prototype.buttonText = 'Subtitles';
+vjs.SubtitlesButton.prototype.className = 'vjs-subtitles-button';
+
+// Chapters act much differently than other text tracks
+// Cues are navigation vs. other tracks of alternative languages
+/**
+ * The button component for toggling and selecting chapters
+ *
+ * @constructor
+ */
+vjs.ChaptersButton = vjs.TextTrackButton.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.TextTrackButton.call(this, player, options, ready);
+ this.el_.setAttribute('aria-label','Chapters Menu');
+ }
+});
+vjs.ChaptersButton.prototype.kind_ = 'chapters';
+vjs.ChaptersButton.prototype.buttonText = 'Chapters';
+vjs.ChaptersButton.prototype.className = 'vjs-chapters-button';
+
+// Create a menu item for each text track
+vjs.ChaptersButton.prototype.createItems = function(){
+ var items = [], track, tracks;
+
+ tracks = this.player_.textTracks();
+
+ if (!tracks) {
+ return items;
+ }
+
+ for (var i = 0; i < tracks.length; i++) {
+ track = tracks[i];
+ if (track['kind'] === this.kind_) {
+ items.push(new vjs.TextTrackMenuItem(this.player_, {
+ 'track': track
+ }));
+ }
+ }
+
+ return items;
+};
+
+vjs.ChaptersButton.prototype.createMenu = function(){
+ var tracks = this.player_.textTracks() || [],
+ i = 0,
+ l = tracks.length,
+ track, chaptersTrack,
+ items = this.items = [];
+
+ for (; i < l; i++) {
+ track = tracks[i];
+ if (track['kind'] == this.kind_) {
+ if (!track.cues) {
+ track['mode'] = 'hidden';
+ /* jshint loopfunc:true */
+ // TODO see if we can figure out a better way of doing this https://github.com/videojs/video.js/issues/1864
+ window.setTimeout(vjs.bind(this, function() {
+ this.createMenu();
+ }), 100);
+ /* jshint loopfunc:false */
+ } else {
+ chaptersTrack = track;
+ break;
+ }
+ }
+ }
+
+ var menu = this.menu;
+ if (menu === undefined) {
+ menu = new vjs.Menu(this.player_);
+ menu.contentEl().appendChild(vjs.createEl('li', {
+ className: 'vjs-menu-title',
+ innerHTML: vjs.capitalize(this.kind_),
+ tabindex: -1
+ }));
+ }
+
+ if (chaptersTrack) {
+ var cues = chaptersTrack['cues'], cue, mi;
+ i = 0;
+ l = cues.length;
+
+ for (; i < l; i++) {
+ cue = cues[i];
+
+ mi = new vjs.ChaptersTrackMenuItem(this.player_, {
+ 'track': chaptersTrack,
+ 'cue': cue
+ });
+
+ items.push(mi);
+
+ menu.addChild(mi);
+ }
+ this.addChild(menu);
+ }
+
+ if (this.items.length > 0) {
+ this.show();
+ }
+
+ return menu;
+};
+
+
+/**
+ * @constructor
+ */
+vjs.ChaptersTrackMenuItem = vjs.MenuItem.extend({
+ /** @constructor */
+ init: function(player, options){
+ var track = this.track = options['track'],
+ cue = this.cue = options['cue'],
+ currentTime = player.currentTime();
+
+ // Modify options for parent MenuItem class's init.
+ options['label'] = cue.text;
+ options['selected'] = (cue['startTime'] <= currentTime && currentTime < cue['endTime']);
+ vjs.MenuItem.call(this, player, options);
+
+ track.addEventListener('cuechange', vjs.bind(this, this.update));
+ }
+});
+
+vjs.ChaptersTrackMenuItem.prototype.onClick = function(){
+ vjs.MenuItem.prototype.onClick.call(this);
+ this.player_.currentTime(this.cue.startTime);
+ this.update(this.cue.startTime);
+};
+
+vjs.ChaptersTrackMenuItem.prototype.update = function(){
+ var cue = this.cue,
+ currentTime = this.player_.currentTime();
+
+ // vjs.log(currentTime, cue.startTime);
+ this.selected(cue['startTime'] <= currentTime && currentTime < cue['endTime']);
+};
+})();
+(function() {
+ 'use strict';
+
+ vjs.TextTrackSettings = vjs.Component.extend({
+ init: function(player, options) {
+ vjs.Component.call(this, player, options);
+ this.hide();
+
+ vjs.on(this.el().querySelector('.vjs-done-button'), 'click', vjs.bind(this, function() {
+ this.saveSettings();
+ this.hide();
+ }));
+
+ vjs.on(this.el().querySelector('.vjs-default-button'), 'click', vjs.bind(this, function() {
+ this.el().querySelector('.vjs-fg-color > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-bg-color > select').selectedIndex = 0;
+ this.el().querySelector('.window-color > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-text-opacity > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-bg-opacity > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-window-opacity > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-edge-style select').selectedIndex = 0;
+ this.el().querySelector('.vjs-font-family select').selectedIndex = 0;
+ this.el().querySelector('.vjs-font-percent select').selectedIndex = 2;
+ this.updateDisplay();
+ }));
+
+ vjs.on(this.el().querySelector('.vjs-fg-color > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-bg-color > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.window-color > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-text-opacity > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-bg-opacity > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-window-opacity > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-font-percent select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-edge-style select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-font-family select'), 'change', vjs.bind(this, this.updateDisplay));
+
+ if (player.options()['persistTextTrackSettings']) {
+ this.restoreSettings();
+ }
+ }
+ });
+
+ vjs.TextTrackSettings.prototype.createEl = function() {
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-caption-settings vjs-modal-overlay',
+ innerHTML: captionOptionsMenuTemplate()
+ });
+ };
+
+ vjs.TextTrackSettings.prototype.getValues = function() {
+ var el, bgOpacity, textOpacity, windowOpacity, textEdge, fontFamily, fgColor, bgColor, windowColor, result, name, fontPercent;
+
+ el = this.el();
+
+ textEdge = getSelectedOptionValue(el.querySelector('.vjs-edge-style select'));
+ fontFamily = getSelectedOptionValue(el.querySelector('.vjs-font-family select'));
+ fgColor = getSelectedOptionValue(el.querySelector('.vjs-fg-color > select'));
+ textOpacity = getSelectedOptionValue(el.querySelector('.vjs-text-opacity > select'));
+ bgColor = getSelectedOptionValue(el.querySelector('.vjs-bg-color > select'));
+ bgOpacity = getSelectedOptionValue(el.querySelector('.vjs-bg-opacity > select'));
+ windowColor = getSelectedOptionValue(el.querySelector('.window-color > select'));
+ windowOpacity = getSelectedOptionValue(el.querySelector('.vjs-window-opacity > select'));
+ fontPercent = window['parseFloat'](getSelectedOptionValue(el.querySelector('.vjs-font-percent > select')));
+
+ result = {
+ 'backgroundOpacity': bgOpacity,
+ 'textOpacity': textOpacity,
+ 'windowOpacity': windowOpacity,
+ 'edgeStyle': textEdge,
+ 'fontFamily': fontFamily,
+ 'color': fgColor,
+ 'backgroundColor': bgColor,
+ 'windowColor': windowColor,
+ 'fontPercent': fontPercent
+ };
+ for (name in result) {
+ if (result[name] === '' || result[name] === 'none' || (name === 'fontPercent' && result[name] === 1.00)) {
+ delete result[name];
+ }
+ }
+ return result;
+ };
+
+ vjs.TextTrackSettings.prototype.setValues = function(values) {
+ var el = this.el(), fontPercent;
+
+ setSelectedOption(el.querySelector('.vjs-edge-style select'), values.edgeStyle);
+ setSelectedOption(el.querySelector('.vjs-font-family select'), values.fontFamily);
+ setSelectedOption(el.querySelector('.vjs-fg-color > select'), values.color);
+ setSelectedOption(el.querySelector('.vjs-text-opacity > select'), values.textOpacity);
+ setSelectedOption(el.querySelector('.vjs-bg-color > select'), values.backgroundColor);
+ setSelectedOption(el.querySelector('.vjs-bg-opacity > select'), values.backgroundOpacity);
+ setSelectedOption(el.querySelector('.window-color > select'), values.windowColor);
+ setSelectedOption(el.querySelector('.vjs-window-opacity > select'), values.windowOpacity);
+
+ fontPercent = values.fontPercent;
+
+ if (fontPercent) {
+ fontPercent = fontPercent.toFixed(2);
+ }
+
+ setSelectedOption(el.querySelector('.vjs-font-percent > select'), fontPercent);
+ };
+
+ vjs.TextTrackSettings.prototype.restoreSettings = function() {
+ var values;
+ try {
+ values = JSON.parse(window.localStorage.getItem('vjs-text-track-settings'));
+ } catch (e) {}
+
+ if (values) {
+ this.setValues(values);
+ }
+ };
+
+ vjs.TextTrackSettings.prototype.saveSettings = function() {
+ var values;
+
+ if (!this.player_.options()['persistTextTrackSettings']) {
+ return;
+ }
+
+ values = this.getValues();
+ try {
+ if (!vjs.isEmpty(values)) {
+ window.localStorage.setItem('vjs-text-track-settings', JSON.stringify(values));
+ } else {
+ window.localStorage.removeItem('vjs-text-track-settings');
+ }
+ } catch (e) {}
+ };
+
+ vjs.TextTrackSettings.prototype.updateDisplay = function() {
+ var ttDisplay = this.player_.getChild('textTrackDisplay');
+ if (ttDisplay) {
+ ttDisplay.updateDisplay();
+ }
+ };
+
+ function getSelectedOptionValue(target) {
+ var selectedOption;
+ // not all browsers support selectedOptions, so, fallback to options
+ if (target.selectedOptions) {
+ selectedOption = target.selectedOptions[0];
+ } else if (target.options) {
+ selectedOption = target.options[target.options.selectedIndex];
+ }
+
+ return selectedOption.value;
+ }
+
+ function setSelectedOption(target, value) {
+ var i, option;
+
+ if (!value) {
+ return;
+ }
+
+ for (i = 0; i < target.options.length; i++) {
+ option = target.options[i];
+ if (option.value === value) {
+ break;
+ }
+ }
+
+ target.selectedIndex = i;
+ }
+
+ function captionOptionsMenuTemplate() {
+ return '' +
+ '
' +
+ '
' +
+ 'Foreground ' +
+ '' +
+ '--- ' +
+ 'White ' +
+ 'Black ' +
+ 'Red ' +
+ 'Green ' +
+ 'Blue ' +
+ 'Yellow ' +
+ 'Magenta ' +
+ 'Cyan ' +
+ ' ' +
+ '' +
+ '' +
+ '--- ' +
+ 'Opaque ' +
+ 'Semi-Opaque ' +
+ ' ' +
+ ' ' +
+ '
' + // vjs-fg-color
+ '
' +
+ 'Background ' +
+ '' +
+ '--- ' +
+ 'White ' +
+ 'Black ' +
+ 'Red ' +
+ 'Green ' +
+ 'Blue ' +
+ 'Yellow ' +
+ 'Magenta ' +
+ 'Cyan ' +
+ ' ' +
+ '' +
+ '' +
+ '--- ' +
+ 'Opaque ' +
+ 'Semi-Transparent ' +
+ 'Transparent ' +
+ ' ' +
+ ' ' +
+ '
' + // vjs-bg-color
+ '
' +
+ 'Window ' +
+ '' +
+ '--- ' +
+ 'White ' +
+ 'Black ' +
+ 'Red ' +
+ 'Green ' +
+ 'Blue ' +
+ 'Yellow ' +
+ 'Magenta ' +
+ 'Cyan ' +
+ ' ' +
+ '' +
+ '' +
+ '--- ' +
+ 'Opaque ' +
+ 'Semi-Transparent ' +
+ 'Transparent ' +
+ ' ' +
+ ' ' +
+ '
' + // vjs-window-color
+ '
' + // vjs-tracksettings
+ '
' +
+ '
' +
+ 'Font Size ' +
+ '' +
+ '50% ' +
+ '75% ' +
+ '100% ' +
+ '125% ' +
+ '150% ' +
+ '175% ' +
+ '200% ' +
+ '300% ' +
+ '400% ' +
+ ' ' +
+ '
' + // vjs-font-percent
+ '
' +
+ 'Text Edge Style ' +
+ '' +
+ 'None ' +
+ 'Raised ' +
+ 'Depressed ' +
+ 'Uniform ' +
+ 'Dropshadow ' +
+ ' ' +
+ '
' + // vjs-edge-style
+ '
' +
+ 'Font Family ' +
+ '' +
+ 'Default ' +
+ 'Monospace Serif ' +
+ 'Proportional Serif ' +
+ 'Monospace Sans-Serif ' +
+ 'Proportional Sans-Serif ' +
+ 'Casual ' +
+ 'Script ' +
+ 'Small Caps ' +
+ ' ' +
+ '
' + // vjs-font-family
+ '
' +
+ '
' +
+ '' +
+ 'Defaults ' +
+ 'Done ' +
+ '
';
+ }
+
+})();
+/**
+ * @fileoverview Add JSON support
+ * @suppress {undefinedVars}
+ * (Compiler doesn't like JSON not being declared)
+ */
+
+/**
+ * Javascript JSON implementation
+ * (Parse Method Only)
+ * https://github.com/douglascrockford/JSON-js/blob/master/json2.js
+ * Only using for parse method when parsing data-setup attribute JSON.
+ * @suppress {undefinedVars}
+ * @namespace
+ * @private
+ */
+vjs.JSON;
+
+if (typeof window.JSON !== 'undefined' && typeof window.JSON.parse === 'function') {
+ vjs.JSON = window.JSON;
+
+} else {
+ vjs.JSON = {};
+
+ var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
+
+ /**
+ * parse the json
+ *
+ * @memberof vjs.JSON
+ * @param {String} text The JSON string to parse
+ * @param {Function=} [reviver] Optional function that can transform the results
+ * @return {Object|Array} The parsed JSON
+ */
+ vjs.JSON.parse = function (text, reviver) {
+ var j;
+
+ function walk(holder, key) {
+ var k, v, value = holder[key];
+ if (value && typeof value === 'object') {
+ for (k in value) {
+ if (Object.prototype.hasOwnProperty.call(value, k)) {
+ v = walk(value, k);
+ if (v !== undefined) {
+ value[k] = v;
+ } else {
+ delete value[k];
+ }
+ }
+ }
+ }
+ return reviver.call(holder, key, value);
+ }
+ text = String(text);
+ cx.lastIndex = 0;
+ if (cx.test(text)) {
+ text = text.replace(cx, function (a) {
+ return '\\u' +
+ ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
+ });
+ }
+
+ if (/^[\],:{}\s]*$/
+ .test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')
+ .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']')
+ .replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
+
+ j = eval('(' + text + ')');
+
+ return typeof reviver === 'function' ?
+ walk({'': j}, '') : j;
+ }
+
+ throw new SyntaxError('JSON.parse(): invalid or malformed JSON data');
+ };
+}
+/**
+ * @fileoverview Functions for automatically setting up a player
+ * based on the data-setup attribute of the video tag
+ */
+
+// Automatically set up any tags that have a data-setup attribute
+vjs.autoSetup = function(){
+ var options, mediaEl, player, i, e;
+
+ // One day, when we stop supporting IE8, go back to this, but in the meantime...*hack hack hack*
+ // var vids = Array.prototype.slice.call(document.getElementsByTagName('video'));
+ // var audios = Array.prototype.slice.call(document.getElementsByTagName('audio'));
+ // var mediaEls = vids.concat(audios);
+
+ // Because IE8 doesn't support calling slice on a node list, we need to loop through each list of elements
+ // to build up a new, combined list of elements.
+ var vids = document.getElementsByTagName('video');
+ var audios = document.getElementsByTagName('audio');
+ var mediaEls = [];
+ if (vids && vids.length > 0) {
+ for(i=0, e=vids.length; i 0) {
+ for(i=0, e=audios.length; i 0) {
+
+ for (i=0,e=mediaEls.length; i 100) {
+ throw new Error("Position must be between 0 and 100.");
+ }
+ _position = value;
+ this.hasBeenReset = true;
+ }
+ }));
+
+ Object.defineProperty(cue,
+ "positionAlign", extend({}, baseObj, {
+ get: function() {
+ return _positionAlign;
+ },
+ set: function(value) {
+ var setting = findAlignSetting(value);
+ if (!setting) {
+ throw new SyntaxError("An invalid or illegal string was specified.");
+ }
+ _positionAlign = setting;
+ this.hasBeenReset = true;
+ }
+ }));
+
+ Object.defineProperty(cue,
+ "size", extend({}, baseObj, {
+ get: function() {
+ return _size;
+ },
+ set: function(value) {
+ if (value < 0 || value > 100) {
+ throw new Error("Size must be between 0 and 100.");
+ }
+ _size = value;
+ this.hasBeenReset = true;
+ }
+ }));
+
+ Object.defineProperty(cue,
+ "align", extend({}, baseObj, {
+ get: function() {
+ return _align;
+ },
+ set: function(value) {
+ var setting = findAlignSetting(value);
+ if (!setting) {
+ throw new SyntaxError("An invalid or illegal string was specified.");
+ }
+ _align = setting;
+ this.hasBeenReset = true;
+ }
+ }));
+
+ /**
+ * Other spec defined properties
+ */
+
+ // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#text-track-cue-display-state
+ cue.displayState = undefined;
+
+ if (isIE8) {
+ return cue;
+ }
+ }
+
+ /**
+ * VTTCue methods
+ */
+
+ VTTCue.prototype.getCueAsHTML = function() {
+ // Assume WebVTT.convertCueToDOMTree is on the global.
+ return WebVTT.convertCueToDOMTree(window, this.text);
+ };
+
+ root.VTTCue = root.VTTCue || VTTCue;
+ vttjs.VTTCue = VTTCue;
+}(this, (this.vttjs || {})));
+
+/**
+ * Copyright 2013 vtt.js Contributors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, vttjs) {
+
+ var scrollSetting = {
+ "": true,
+ "up": true,
+ };
+
+ function findScrollSetting(value) {
+ if (typeof value !== "string") {
+ return false;
+ }
+ var scroll = scrollSetting[value.toLowerCase()];
+ return scroll ? value.toLowerCase() : false;
+ }
+
+ function isValidPercentValue(value) {
+ return typeof value === "number" && (value >= 0 && value <= 100);
+ }
+
+ // VTTRegion shim http://dev.w3.org/html5/webvtt/#vttregion-interface
+ function VTTRegion() {
+ var _width = 100;
+ var _lines = 3;
+ var _regionAnchorX = 0;
+ var _regionAnchorY = 100;
+ var _viewportAnchorX = 0;
+ var _viewportAnchorY = 100;
+ var _scroll = "";
+
+ Object.defineProperties(this, {
+ "width": {
+ enumerable: true,
+ get: function() {
+ return _width;
+ },
+ set: function(value) {
+ if (!isValidPercentValue(value)) {
+ throw new Error("Width must be between 0 and 100.");
+ }
+ _width = value;
+ }
+ },
+ "lines": {
+ enumerable: true,
+ get: function() {
+ return _lines;
+ },
+ set: function(value) {
+ if (typeof value !== "number") {
+ throw new TypeError("Lines must be set to a number.");
+ }
+ _lines = value;
+ }
+ },
+ "regionAnchorY": {
+ enumerable: true,
+ get: function() {
+ return _regionAnchorY;
+ },
+ set: function(value) {
+ if (!isValidPercentValue(value)) {
+ throw new Error("RegionAnchorX must be between 0 and 100.");
+ }
+ _regionAnchorY = value;
+ }
+ },
+ "regionAnchorX": {
+ enumerable: true,
+ get: function() {
+ return _regionAnchorX;
+ },
+ set: function(value) {
+ if(!isValidPercentValue(value)) {
+ throw new Error("RegionAnchorY must be between 0 and 100.");
+ }
+ _regionAnchorX = value;
+ }
+ },
+ "viewportAnchorY": {
+ enumerable: true,
+ get: function() {
+ return _viewportAnchorY;
+ },
+ set: function(value) {
+ if (!isValidPercentValue(value)) {
+ throw new Error("ViewportAnchorY must be between 0 and 100.");
+ }
+ _viewportAnchorY = value;
+ }
+ },
+ "viewportAnchorX": {
+ enumerable: true,
+ get: function() {
+ return _viewportAnchorX;
+ },
+ set: function(value) {
+ if (!isValidPercentValue(value)) {
+ throw new Error("ViewportAnchorX must be between 0 and 100.");
+ }
+ _viewportAnchorX = value;
+ }
+ },
+ "scroll": {
+ enumerable: true,
+ get: function() {
+ return _scroll;
+ },
+ set: function(value) {
+ var setting = findScrollSetting(value);
+ // Have to check for false as an empty string is a legal value.
+ if (setting === false) {
+ throw new SyntaxError("An invalid or illegal string was specified.");
+ }
+ _scroll = setting;
+ }
+ }
+ });
+ }
+
+ root.VTTRegion = root.VTTRegion || VTTRegion;
+ vttjs.VTTRegion = VTTRegion;
+}(this, (this.vttjs || {})));
+
+/**
+ * Copyright 2013 vtt.js Contributors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
+
+(function(global) {
+
+ var _objCreate = Object.create || (function() {
+ function F() {}
+ return function(o) {
+ if (arguments.length !== 1) {
+ throw new Error('Object.create shim only accepts one parameter.');
+ }
+ F.prototype = o;
+ return new F();
+ };
+ })();
+
+ // Creates a new ParserError object from an errorData object. The errorData
+ // object should have default code and message properties. The default message
+ // property can be overriden by passing in a message parameter.
+ // See ParsingError.Errors below for acceptable errors.
+ function ParsingError(errorData, message) {
+ this.name = "ParsingError";
+ this.code = errorData.code;
+ this.message = message || errorData.message;
+ }
+ ParsingError.prototype = _objCreate(Error.prototype);
+ ParsingError.prototype.constructor = ParsingError;
+
+ // ParsingError metadata for acceptable ParsingErrors.
+ ParsingError.Errors = {
+ BadSignature: {
+ code: 0,
+ message: "Malformed WebVTT signature."
+ },
+ BadTimeStamp: {
+ code: 1,
+ message: "Malformed time stamp."
+ }
+ };
+
+ // Try to parse input as a time stamp.
+ function parseTimeStamp(input) {
+
+ function computeSeconds(h, m, s, f) {
+ return (h | 0) * 3600 + (m | 0) * 60 + (s | 0) + (f | 0) / 1000;
+ }
+
+ var m = input.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);
+ if (!m) {
+ return null;
+ }
+
+ if (m[3]) {
+ // Timestamp takes the form of [hours]:[minutes]:[seconds].[milliseconds]
+ return computeSeconds(m[1], m[2], m[3].replace(":", ""), m[4]);
+ } else if (m[1] > 59) {
+ // Timestamp takes the form of [hours]:[minutes].[milliseconds]
+ // First position is hours as it's over 59.
+ return computeSeconds(m[1], m[2], 0, m[4]);
+ } else {
+ // Timestamp takes the form of [minutes]:[seconds].[milliseconds]
+ return computeSeconds(0, m[1], m[2], m[4]);
+ }
+ }
+
+ // A settings object holds key/value pairs and will ignore anything but the first
+ // assignment to a specific key.
+ function Settings() {
+ this.values = _objCreate(null);
+ }
+
+ Settings.prototype = {
+ // Only accept the first assignment to any key.
+ set: function(k, v) {
+ if (!this.get(k) && v !== "") {
+ this.values[k] = v;
+ }
+ },
+ // Return the value for a key, or a default value.
+ // If 'defaultKey' is passed then 'dflt' is assumed to be an object with
+ // a number of possible default values as properties where 'defaultKey' is
+ // the key of the property that will be chosen; otherwise it's assumed to be
+ // a single value.
+ get: function(k, dflt, defaultKey) {
+ if (defaultKey) {
+ return this.has(k) ? this.values[k] : dflt[defaultKey];
+ }
+ return this.has(k) ? this.values[k] : dflt;
+ },
+ // Check whether we have a value for a key.
+ has: function(k) {
+ return k in this.values;
+ },
+ // Accept a setting if its one of the given alternatives.
+ alt: function(k, v, a) {
+ for (var n = 0; n < a.length; ++n) {
+ if (v === a[n]) {
+ this.set(k, v);
+ break;
+ }
+ }
+ },
+ // Accept a setting if its a valid (signed) integer.
+ integer: function(k, v) {
+ if (/^-?\d+$/.test(v)) { // integer
+ this.set(k, parseInt(v, 10));
+ }
+ },
+ // Accept a setting if its a valid percentage.
+ percent: function(k, v) {
+ var m;
+ if ((m = v.match(/^([\d]{1,3})(\.[\d]*)?%$/))) {
+ v = parseFloat(v);
+ if (v >= 0 && v <= 100) {
+ this.set(k, v);
+ return true;
+ }
+ }
+ return false;
+ }
+ };
+
+ // Helper function to parse input into groups separated by 'groupDelim', and
+ // interprete each group as a key/value pair separated by 'keyValueDelim'.
+ function parseOptions(input, callback, keyValueDelim, groupDelim) {
+ var groups = groupDelim ? input.split(groupDelim) : [input];
+ for (var i in groups) {
+ if (typeof groups[i] !== "string") {
+ continue;
+ }
+ var kv = groups[i].split(keyValueDelim);
+ if (kv.length !== 2) {
+ continue;
+ }
+ var k = kv[0];
+ var v = kv[1];
+ callback(k, v);
+ }
+ }
+
+ function parseCue(input, cue, regionList) {
+ // Remember the original input if we need to throw an error.
+ var oInput = input;
+ // 4.1 WebVTT timestamp
+ function consumeTimeStamp() {
+ var ts = parseTimeStamp(input);
+ if (ts === null) {
+ throw new ParsingError(ParsingError.Errors.BadTimeStamp,
+ "Malformed timestamp: " + oInput);
+ }
+ // Remove time stamp from input.
+ input = input.replace(/^[^\sa-zA-Z-]+/, "");
+ return ts;
+ }
+
+ // 4.4.2 WebVTT cue settings
+ function consumeCueSettings(input, cue) {
+ var settings = new Settings();
+
+ parseOptions(input, function (k, v) {
+ switch (k) {
+ case "region":
+ // Find the last region we parsed with the same region id.
+ for (var i = regionList.length - 1; i >= 0; i--) {
+ if (regionList[i].id === v) {
+ settings.set(k, regionList[i].region);
+ break;
+ }
+ }
+ break;
+ case "vertical":
+ settings.alt(k, v, ["rl", "lr"]);
+ break;
+ case "line":
+ var vals = v.split(","),
+ vals0 = vals[0];
+ settings.integer(k, vals0);
+ settings.percent(k, vals0) ? settings.set("snapToLines", false) : null;
+ settings.alt(k, vals0, ["auto"]);
+ if (vals.length === 2) {
+ settings.alt("lineAlign", vals[1], ["start", "middle", "end"]);
+ }
+ break;
+ case "position":
+ vals = v.split(",");
+ settings.percent(k, vals[0]);
+ if (vals.length === 2) {
+ settings.alt("positionAlign", vals[1], ["start", "middle", "end"]);
+ }
+ break;
+ case "size":
+ settings.percent(k, v);
+ break;
+ case "align":
+ settings.alt(k, v, ["start", "middle", "end", "left", "right"]);
+ break;
+ }
+ }, /:/, /\s/);
+
+ // Apply default values for any missing fields.
+ cue.region = settings.get("region", null);
+ cue.vertical = settings.get("vertical", "");
+ cue.line = settings.get("line", "auto");
+ cue.lineAlign = settings.get("lineAlign", "start");
+ cue.snapToLines = settings.get("snapToLines", true);
+ cue.size = settings.get("size", 100);
+ cue.align = settings.get("align", "middle");
+ cue.position = settings.get("position", {
+ start: 0,
+ left: 0,
+ middle: 50,
+ end: 100,
+ right: 100
+ }, cue.align);
+ cue.positionAlign = settings.get("positionAlign", {
+ start: "start",
+ left: "start",
+ middle: "middle",
+ end: "end",
+ right: "end"
+ }, cue.align);
+ }
+
+ function skipWhitespace() {
+ input = input.replace(/^\s+/, "");
+ }
+
+ // 4.1 WebVTT cue timings.
+ skipWhitespace();
+ cue.startTime = consumeTimeStamp(); // (1) collect cue start time
+ skipWhitespace();
+ if (input.substr(0, 3) !== "-->") { // (3) next characters must match "-->"
+ throw new ParsingError(ParsingError.Errors.BadTimeStamp,
+ "Malformed time stamp (time stamps must be separated by '-->'): " +
+ oInput);
+ }
+ input = input.substr(3);
+ skipWhitespace();
+ cue.endTime = consumeTimeStamp(); // (5) collect cue end time
+
+ // 4.1 WebVTT cue settings list.
+ skipWhitespace();
+ consumeCueSettings(input, cue);
+ }
+
+ var ESCAPE = {
+ "&": "&",
+ "<": "<",
+ ">": ">",
+ "": "\u200e",
+ "": "\u200f",
+ " ": "\u00a0"
+ };
+
+ var TAG_NAME = {
+ c: "span",
+ i: "i",
+ b: "b",
+ u: "u",
+ ruby: "ruby",
+ rt: "rt",
+ v: "span",
+ lang: "span"
+ };
+
+ var TAG_ANNOTATION = {
+ v: "title",
+ lang: "lang"
+ };
+
+ var NEEDS_PARENT = {
+ rt: "ruby"
+ };
+
+ // Parse content into a document fragment.
+ function parseContent(window, input) {
+ function nextToken() {
+ // Check for end-of-string.
+ if (!input) {
+ return null;
+ }
+
+ // Consume 'n' characters from the input.
+ function consume(result) {
+ input = input.substr(result.length);
+ return result;
+ }
+
+ var m = input.match(/^([^<]*)(<[^>]+>?)?/);
+ // If there is some text before the next tag, return it, otherwise return
+ // the tag.
+ return consume(m[1] ? m[1] : m[2]);
+ }
+
+ // Unescape a string 's'.
+ function unescape1(e) {
+ return ESCAPE[e];
+ }
+ function unescape(s) {
+ while ((m = s.match(/&(amp|lt|gt|lrm|rlm|nbsp);/))) {
+ s = s.replace(m[0], unescape1);
+ }
+ return s;
+ }
+
+ function shouldAdd(current, element) {
+ return !NEEDS_PARENT[element.localName] ||
+ NEEDS_PARENT[element.localName] === current.localName;
+ }
+
+ // Create an element for this tag.
+ function createElement(type, annotation) {
+ var tagName = TAG_NAME[type];
+ if (!tagName) {
+ return null;
+ }
+ var element = window.document.createElement(tagName);
+ element.localName = tagName;
+ var name = TAG_ANNOTATION[type];
+ if (name && annotation) {
+ element[name] = annotation.trim();
+ }
+ return element;
+ }
+
+ var rootDiv = window.document.createElement("div"),
+ current = rootDiv,
+ t,
+ tagStack = [];
+
+ while ((t = nextToken()) !== null) {
+ if (t[0] === '<') {
+ if (t[1] === "/") {
+ // If the closing tag matches, move back up to the parent node.
+ if (tagStack.length &&
+ tagStack[tagStack.length - 1] === t.substr(2).replace(">", "")) {
+ tagStack.pop();
+ current = current.parentNode;
+ }
+ // Otherwise just ignore the end tag.
+ continue;
+ }
+ var ts = parseTimeStamp(t.substr(1, t.length - 2));
+ var node;
+ if (ts) {
+ // Timestamps are lead nodes as well.
+ node = window.document.createProcessingInstruction("timestamp", ts);
+ current.appendChild(node);
+ continue;
+ }
+ var m = t.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);
+ // If we can't parse the tag, skip to the next tag.
+ if (!m) {
+ continue;
+ }
+ // Try to construct an element, and ignore the tag if we couldn't.
+ node = createElement(m[1], m[3]);
+ if (!node) {
+ continue;
+ }
+ // Determine if the tag should be added based on the context of where it
+ // is placed in the cuetext.
+ if (!shouldAdd(current, node)) {
+ continue;
+ }
+ // Set the class list (as a list of classes, separated by space).
+ if (m[2]) {
+ node.className = m[2].substr(1).replace('.', ' ');
+ }
+ // Append the node to the current node, and enter the scope of the new
+ // node.
+ tagStack.push(m[1]);
+ current.appendChild(node);
+ current = node;
+ continue;
+ }
+
+ // Text nodes are leaf nodes.
+ current.appendChild(window.document.createTextNode(unescape(t)));
+ }
+
+ return rootDiv;
+ }
+
+ // This is a list of all the Unicode characters that have a strong
+ // right-to-left category. What this means is that these characters are
+ // written right-to-left for sure. It was generated by pulling all the strong
+ // right-to-left characters out of the Unicode data table. That table can
+ // found at: http://www.unicode.org/Public/UNIDATA/UnicodeData.txt
+ var strongRTLChars = [0x05BE, 0x05C0, 0x05C3, 0x05C6, 0x05D0, 0x05D1,
+ 0x05D2, 0x05D3, 0x05D4, 0x05D5, 0x05D6, 0x05D7, 0x05D8, 0x05D9, 0x05DA,
+ 0x05DB, 0x05DC, 0x05DD, 0x05DE, 0x05DF, 0x05E0, 0x05E1, 0x05E2, 0x05E3,
+ 0x05E4, 0x05E5, 0x05E6, 0x05E7, 0x05E8, 0x05E9, 0x05EA, 0x05F0, 0x05F1,
+ 0x05F2, 0x05F3, 0x05F4, 0x0608, 0x060B, 0x060D, 0x061B, 0x061E, 0x061F,
+ 0x0620, 0x0621, 0x0622, 0x0623, 0x0624, 0x0625, 0x0626, 0x0627, 0x0628,
+ 0x0629, 0x062A, 0x062B, 0x062C, 0x062D, 0x062E, 0x062F, 0x0630, 0x0631,
+ 0x0632, 0x0633, 0x0634, 0x0635, 0x0636, 0x0637, 0x0638, 0x0639, 0x063A,
+ 0x063B, 0x063C, 0x063D, 0x063E, 0x063F, 0x0640, 0x0641, 0x0642, 0x0643,
+ 0x0644, 0x0645, 0x0646, 0x0647, 0x0648, 0x0649, 0x064A, 0x066D, 0x066E,
+ 0x066F, 0x0671, 0x0672, 0x0673, 0x0674, 0x0675, 0x0676, 0x0677, 0x0678,
+ 0x0679, 0x067A, 0x067B, 0x067C, 0x067D, 0x067E, 0x067F, 0x0680, 0x0681,
+ 0x0682, 0x0683, 0x0684, 0x0685, 0x0686, 0x0687, 0x0688, 0x0689, 0x068A,
+ 0x068B, 0x068C, 0x068D, 0x068E, 0x068F, 0x0690, 0x0691, 0x0692, 0x0693,
+ 0x0694, 0x0695, 0x0696, 0x0697, 0x0698, 0x0699, 0x069A, 0x069B, 0x069C,
+ 0x069D, 0x069E, 0x069F, 0x06A0, 0x06A1, 0x06A2, 0x06A3, 0x06A4, 0x06A5,
+ 0x06A6, 0x06A7, 0x06A8, 0x06A9, 0x06AA, 0x06AB, 0x06AC, 0x06AD, 0x06AE,
+ 0x06AF, 0x06B0, 0x06B1, 0x06B2, 0x06B3, 0x06B4, 0x06B5, 0x06B6, 0x06B7,
+ 0x06B8, 0x06B9, 0x06BA, 0x06BB, 0x06BC, 0x06BD, 0x06BE, 0x06BF, 0x06C0,
+ 0x06C1, 0x06C2, 0x06C3, 0x06C4, 0x06C5, 0x06C6, 0x06C7, 0x06C8, 0x06C9,
+ 0x06CA, 0x06CB, 0x06CC, 0x06CD, 0x06CE, 0x06CF, 0x06D0, 0x06D1, 0x06D2,
+ 0x06D3, 0x06D4, 0x06D5, 0x06E5, 0x06E6, 0x06EE, 0x06EF, 0x06FA, 0x06FB,
+ 0x06FC, 0x06FD, 0x06FE, 0x06FF, 0x0700, 0x0701, 0x0702, 0x0703, 0x0704,
+ 0x0705, 0x0706, 0x0707, 0x0708, 0x0709, 0x070A, 0x070B, 0x070C, 0x070D,
+ 0x070F, 0x0710, 0x0712, 0x0713, 0x0714, 0x0715, 0x0716, 0x0717, 0x0718,
+ 0x0719, 0x071A, 0x071B, 0x071C, 0x071D, 0x071E, 0x071F, 0x0720, 0x0721,
+ 0x0722, 0x0723, 0x0724, 0x0725, 0x0726, 0x0727, 0x0728, 0x0729, 0x072A,
+ 0x072B, 0x072C, 0x072D, 0x072E, 0x072F, 0x074D, 0x074E, 0x074F, 0x0750,
+ 0x0751, 0x0752, 0x0753, 0x0754, 0x0755, 0x0756, 0x0757, 0x0758, 0x0759,
+ 0x075A, 0x075B, 0x075C, 0x075D, 0x075E, 0x075F, 0x0760, 0x0761, 0x0762,
+ 0x0763, 0x0764, 0x0765, 0x0766, 0x0767, 0x0768, 0x0769, 0x076A, 0x076B,
+ 0x076C, 0x076D, 0x076E, 0x076F, 0x0770, 0x0771, 0x0772, 0x0773, 0x0774,
+ 0x0775, 0x0776, 0x0777, 0x0778, 0x0779, 0x077A, 0x077B, 0x077C, 0x077D,
+ 0x077E, 0x077F, 0x0780, 0x0781, 0x0782, 0x0783, 0x0784, 0x0785, 0x0786,
+ 0x0787, 0x0788, 0x0789, 0x078A, 0x078B, 0x078C, 0x078D, 0x078E, 0x078F,
+ 0x0790, 0x0791, 0x0792, 0x0793, 0x0794, 0x0795, 0x0796, 0x0797, 0x0798,
+ 0x0799, 0x079A, 0x079B, 0x079C, 0x079D, 0x079E, 0x079F, 0x07A0, 0x07A1,
+ 0x07A2, 0x07A3, 0x07A4, 0x07A5, 0x07B1, 0x07C0, 0x07C1, 0x07C2, 0x07C3,
+ 0x07C4, 0x07C5, 0x07C6, 0x07C7, 0x07C8, 0x07C9, 0x07CA, 0x07CB, 0x07CC,
+ 0x07CD, 0x07CE, 0x07CF, 0x07D0, 0x07D1, 0x07D2, 0x07D3, 0x07D4, 0x07D5,
+ 0x07D6, 0x07D7, 0x07D8, 0x07D9, 0x07DA, 0x07DB, 0x07DC, 0x07DD, 0x07DE,
+ 0x07DF, 0x07E0, 0x07E1, 0x07E2, 0x07E3, 0x07E4, 0x07E5, 0x07E6, 0x07E7,
+ 0x07E8, 0x07E9, 0x07EA, 0x07F4, 0x07F5, 0x07FA, 0x0800, 0x0801, 0x0802,
+ 0x0803, 0x0804, 0x0805, 0x0806, 0x0807, 0x0808, 0x0809, 0x080A, 0x080B,
+ 0x080C, 0x080D, 0x080E, 0x080F, 0x0810, 0x0811, 0x0812, 0x0813, 0x0814,
+ 0x0815, 0x081A, 0x0824, 0x0828, 0x0830, 0x0831, 0x0832, 0x0833, 0x0834,
+ 0x0835, 0x0836, 0x0837, 0x0838, 0x0839, 0x083A, 0x083B, 0x083C, 0x083D,
+ 0x083E, 0x0840, 0x0841, 0x0842, 0x0843, 0x0844, 0x0845, 0x0846, 0x0847,
+ 0x0848, 0x0849, 0x084A, 0x084B, 0x084C, 0x084D, 0x084E, 0x084F, 0x0850,
+ 0x0851, 0x0852, 0x0853, 0x0854, 0x0855, 0x0856, 0x0857, 0x0858, 0x085E,
+ 0x08A0, 0x08A2, 0x08A3, 0x08A4, 0x08A5, 0x08A6, 0x08A7, 0x08A8, 0x08A9,
+ 0x08AA, 0x08AB, 0x08AC, 0x200F, 0xFB1D, 0xFB1F, 0xFB20, 0xFB21, 0xFB22,
+ 0xFB23, 0xFB24, 0xFB25, 0xFB26, 0xFB27, 0xFB28, 0xFB2A, 0xFB2B, 0xFB2C,
+ 0xFB2D, 0xFB2E, 0xFB2F, 0xFB30, 0xFB31, 0xFB32, 0xFB33, 0xFB34, 0xFB35,
+ 0xFB36, 0xFB38, 0xFB39, 0xFB3A, 0xFB3B, 0xFB3C, 0xFB3E, 0xFB40, 0xFB41,
+ 0xFB43, 0xFB44, 0xFB46, 0xFB47, 0xFB48, 0xFB49, 0xFB4A, 0xFB4B, 0xFB4C,
+ 0xFB4D, 0xFB4E, 0xFB4F, 0xFB50, 0xFB51, 0xFB52, 0xFB53, 0xFB54, 0xFB55,
+ 0xFB56, 0xFB57, 0xFB58, 0xFB59, 0xFB5A, 0xFB5B, 0xFB5C, 0xFB5D, 0xFB5E,
+ 0xFB5F, 0xFB60, 0xFB61, 0xFB62, 0xFB63, 0xFB64, 0xFB65, 0xFB66, 0xFB67,
+ 0xFB68, 0xFB69, 0xFB6A, 0xFB6B, 0xFB6C, 0xFB6D, 0xFB6E, 0xFB6F, 0xFB70,
+ 0xFB71, 0xFB72, 0xFB73, 0xFB74, 0xFB75, 0xFB76, 0xFB77, 0xFB78, 0xFB79,
+ 0xFB7A, 0xFB7B, 0xFB7C, 0xFB7D, 0xFB7E, 0xFB7F, 0xFB80, 0xFB81, 0xFB82,
+ 0xFB83, 0xFB84, 0xFB85, 0xFB86, 0xFB87, 0xFB88, 0xFB89, 0xFB8A, 0xFB8B,
+ 0xFB8C, 0xFB8D, 0xFB8E, 0xFB8F, 0xFB90, 0xFB91, 0xFB92, 0xFB93, 0xFB94,
+ 0xFB95, 0xFB96, 0xFB97, 0xFB98, 0xFB99, 0xFB9A, 0xFB9B, 0xFB9C, 0xFB9D,
+ 0xFB9E, 0xFB9F, 0xFBA0, 0xFBA1, 0xFBA2, 0xFBA3, 0xFBA4, 0xFBA5, 0xFBA6,
+ 0xFBA7, 0xFBA8, 0xFBA9, 0xFBAA, 0xFBAB, 0xFBAC, 0xFBAD, 0xFBAE, 0xFBAF,
+ 0xFBB0, 0xFBB1, 0xFBB2, 0xFBB3, 0xFBB4, 0xFBB5, 0xFBB6, 0xFBB7, 0xFBB8,
+ 0xFBB9, 0xFBBA, 0xFBBB, 0xFBBC, 0xFBBD, 0xFBBE, 0xFBBF, 0xFBC0, 0xFBC1,
+ 0xFBD3, 0xFBD4, 0xFBD5, 0xFBD6, 0xFBD7, 0xFBD8, 0xFBD9, 0xFBDA, 0xFBDB,
+ 0xFBDC, 0xFBDD, 0xFBDE, 0xFBDF, 0xFBE0, 0xFBE1, 0xFBE2, 0xFBE3, 0xFBE4,
+ 0xFBE5, 0xFBE6, 0xFBE7, 0xFBE8, 0xFBE9, 0xFBEA, 0xFBEB, 0xFBEC, 0xFBED,
+ 0xFBEE, 0xFBEF, 0xFBF0, 0xFBF1, 0xFBF2, 0xFBF3, 0xFBF4, 0xFBF5, 0xFBF6,
+ 0xFBF7, 0xFBF8, 0xFBF9, 0xFBFA, 0xFBFB, 0xFBFC, 0xFBFD, 0xFBFE, 0xFBFF,
+ 0xFC00, 0xFC01, 0xFC02, 0xFC03, 0xFC04, 0xFC05, 0xFC06, 0xFC07, 0xFC08,
+ 0xFC09, 0xFC0A, 0xFC0B, 0xFC0C, 0xFC0D, 0xFC0E, 0xFC0F, 0xFC10, 0xFC11,
+ 0xFC12, 0xFC13, 0xFC14, 0xFC15, 0xFC16, 0xFC17, 0xFC18, 0xFC19, 0xFC1A,
+ 0xFC1B, 0xFC1C, 0xFC1D, 0xFC1E, 0xFC1F, 0xFC20, 0xFC21, 0xFC22, 0xFC23,
+ 0xFC24, 0xFC25, 0xFC26, 0xFC27, 0xFC28, 0xFC29, 0xFC2A, 0xFC2B, 0xFC2C,
+ 0xFC2D, 0xFC2E, 0xFC2F, 0xFC30, 0xFC31, 0xFC32, 0xFC33, 0xFC34, 0xFC35,
+ 0xFC36, 0xFC37, 0xFC38, 0xFC39, 0xFC3A, 0xFC3B, 0xFC3C, 0xFC3D, 0xFC3E,
+ 0xFC3F, 0xFC40, 0xFC41, 0xFC42, 0xFC43, 0xFC44, 0xFC45, 0xFC46, 0xFC47,
+ 0xFC48, 0xFC49, 0xFC4A, 0xFC4B, 0xFC4C, 0xFC4D, 0xFC4E, 0xFC4F, 0xFC50,
+ 0xFC51, 0xFC52, 0xFC53, 0xFC54, 0xFC55, 0xFC56, 0xFC57, 0xFC58, 0xFC59,
+ 0xFC5A, 0xFC5B, 0xFC5C, 0xFC5D, 0xFC5E, 0xFC5F, 0xFC60, 0xFC61, 0xFC62,
+ 0xFC63, 0xFC64, 0xFC65, 0xFC66, 0xFC67, 0xFC68, 0xFC69, 0xFC6A, 0xFC6B,
+ 0xFC6C, 0xFC6D, 0xFC6E, 0xFC6F, 0xFC70, 0xFC71, 0xFC72, 0xFC73, 0xFC74,
+ 0xFC75, 0xFC76, 0xFC77, 0xFC78, 0xFC79, 0xFC7A, 0xFC7B, 0xFC7C, 0xFC7D,
+ 0xFC7E, 0xFC7F, 0xFC80, 0xFC81, 0xFC82, 0xFC83, 0xFC84, 0xFC85, 0xFC86,
+ 0xFC87, 0xFC88, 0xFC89, 0xFC8A, 0xFC8B, 0xFC8C, 0xFC8D, 0xFC8E, 0xFC8F,
+ 0xFC90, 0xFC91, 0xFC92, 0xFC93, 0xFC94, 0xFC95, 0xFC96, 0xFC97, 0xFC98,
+ 0xFC99, 0xFC9A, 0xFC9B, 0xFC9C, 0xFC9D, 0xFC9E, 0xFC9F, 0xFCA0, 0xFCA1,
+ 0xFCA2, 0xFCA3, 0xFCA4, 0xFCA5, 0xFCA6, 0xFCA7, 0xFCA8, 0xFCA9, 0xFCAA,
+ 0xFCAB, 0xFCAC, 0xFCAD, 0xFCAE, 0xFCAF, 0xFCB0, 0xFCB1, 0xFCB2, 0xFCB3,
+ 0xFCB4, 0xFCB5, 0xFCB6, 0xFCB7, 0xFCB8, 0xFCB9, 0xFCBA, 0xFCBB, 0xFCBC,
+ 0xFCBD, 0xFCBE, 0xFCBF, 0xFCC0, 0xFCC1, 0xFCC2, 0xFCC3, 0xFCC4, 0xFCC5,
+ 0xFCC6, 0xFCC7, 0xFCC8, 0xFCC9, 0xFCCA, 0xFCCB, 0xFCCC, 0xFCCD, 0xFCCE,
+ 0xFCCF, 0xFCD0, 0xFCD1, 0xFCD2, 0xFCD3, 0xFCD4, 0xFCD5, 0xFCD6, 0xFCD7,
+ 0xFCD8, 0xFCD9, 0xFCDA, 0xFCDB, 0xFCDC, 0xFCDD, 0xFCDE, 0xFCDF, 0xFCE0,
+ 0xFCE1, 0xFCE2, 0xFCE3, 0xFCE4, 0xFCE5, 0xFCE6, 0xFCE7, 0xFCE8, 0xFCE9,
+ 0xFCEA, 0xFCEB, 0xFCEC, 0xFCED, 0xFCEE, 0xFCEF, 0xFCF0, 0xFCF1, 0xFCF2,
+ 0xFCF3, 0xFCF4, 0xFCF5, 0xFCF6, 0xFCF7, 0xFCF8, 0xFCF9, 0xFCFA, 0xFCFB,
+ 0xFCFC, 0xFCFD, 0xFCFE, 0xFCFF, 0xFD00, 0xFD01, 0xFD02, 0xFD03, 0xFD04,
+ 0xFD05, 0xFD06, 0xFD07, 0xFD08, 0xFD09, 0xFD0A, 0xFD0B, 0xFD0C, 0xFD0D,
+ 0xFD0E, 0xFD0F, 0xFD10, 0xFD11, 0xFD12, 0xFD13, 0xFD14, 0xFD15, 0xFD16,
+ 0xFD17, 0xFD18, 0xFD19, 0xFD1A, 0xFD1B, 0xFD1C, 0xFD1D, 0xFD1E, 0xFD1F,
+ 0xFD20, 0xFD21, 0xFD22, 0xFD23, 0xFD24, 0xFD25, 0xFD26, 0xFD27, 0xFD28,
+ 0xFD29, 0xFD2A, 0xFD2B, 0xFD2C, 0xFD2D, 0xFD2E, 0xFD2F, 0xFD30, 0xFD31,
+ 0xFD32, 0xFD33, 0xFD34, 0xFD35, 0xFD36, 0xFD37, 0xFD38, 0xFD39, 0xFD3A,
+ 0xFD3B, 0xFD3C, 0xFD3D, 0xFD50, 0xFD51, 0xFD52, 0xFD53, 0xFD54, 0xFD55,
+ 0xFD56, 0xFD57, 0xFD58, 0xFD59, 0xFD5A, 0xFD5B, 0xFD5C, 0xFD5D, 0xFD5E,
+ 0xFD5F, 0xFD60, 0xFD61, 0xFD62, 0xFD63, 0xFD64, 0xFD65, 0xFD66, 0xFD67,
+ 0xFD68, 0xFD69, 0xFD6A, 0xFD6B, 0xFD6C, 0xFD6D, 0xFD6E, 0xFD6F, 0xFD70,
+ 0xFD71, 0xFD72, 0xFD73, 0xFD74, 0xFD75, 0xFD76, 0xFD77, 0xFD78, 0xFD79,
+ 0xFD7A, 0xFD7B, 0xFD7C, 0xFD7D, 0xFD7E, 0xFD7F, 0xFD80, 0xFD81, 0xFD82,
+ 0xFD83, 0xFD84, 0xFD85, 0xFD86, 0xFD87, 0xFD88, 0xFD89, 0xFD8A, 0xFD8B,
+ 0xFD8C, 0xFD8D, 0xFD8E, 0xFD8F, 0xFD92, 0xFD93, 0xFD94, 0xFD95, 0xFD96,
+ 0xFD97, 0xFD98, 0xFD99, 0xFD9A, 0xFD9B, 0xFD9C, 0xFD9D, 0xFD9E, 0xFD9F,
+ 0xFDA0, 0xFDA1, 0xFDA2, 0xFDA3, 0xFDA4, 0xFDA5, 0xFDA6, 0xFDA7, 0xFDA8,
+ 0xFDA9, 0xFDAA, 0xFDAB, 0xFDAC, 0xFDAD, 0xFDAE, 0xFDAF, 0xFDB0, 0xFDB1,
+ 0xFDB2, 0xFDB3, 0xFDB4, 0xFDB5, 0xFDB6, 0xFDB7, 0xFDB8, 0xFDB9, 0xFDBA,
+ 0xFDBB, 0xFDBC, 0xFDBD, 0xFDBE, 0xFDBF, 0xFDC0, 0xFDC1, 0xFDC2, 0xFDC3,
+ 0xFDC4, 0xFDC5, 0xFDC6, 0xFDC7, 0xFDF0, 0xFDF1, 0xFDF2, 0xFDF3, 0xFDF4,
+ 0xFDF5, 0xFDF6, 0xFDF7, 0xFDF8, 0xFDF9, 0xFDFA, 0xFDFB, 0xFDFC, 0xFE70,
+ 0xFE71, 0xFE72, 0xFE73, 0xFE74, 0xFE76, 0xFE77, 0xFE78, 0xFE79, 0xFE7A,
+ 0xFE7B, 0xFE7C, 0xFE7D, 0xFE7E, 0xFE7F, 0xFE80, 0xFE81, 0xFE82, 0xFE83,
+ 0xFE84, 0xFE85, 0xFE86, 0xFE87, 0xFE88, 0xFE89, 0xFE8A, 0xFE8B, 0xFE8C,
+ 0xFE8D, 0xFE8E, 0xFE8F, 0xFE90, 0xFE91, 0xFE92, 0xFE93, 0xFE94, 0xFE95,
+ 0xFE96, 0xFE97, 0xFE98, 0xFE99, 0xFE9A, 0xFE9B, 0xFE9C, 0xFE9D, 0xFE9E,
+ 0xFE9F, 0xFEA0, 0xFEA1, 0xFEA2, 0xFEA3, 0xFEA4, 0xFEA5, 0xFEA6, 0xFEA7,
+ 0xFEA8, 0xFEA9, 0xFEAA, 0xFEAB, 0xFEAC, 0xFEAD, 0xFEAE, 0xFEAF, 0xFEB0,
+ 0xFEB1, 0xFEB2, 0xFEB3, 0xFEB4, 0xFEB5, 0xFEB6, 0xFEB7, 0xFEB8, 0xFEB9,
+ 0xFEBA, 0xFEBB, 0xFEBC, 0xFEBD, 0xFEBE, 0xFEBF, 0xFEC0, 0xFEC1, 0xFEC2,
+ 0xFEC3, 0xFEC4, 0xFEC5, 0xFEC6, 0xFEC7, 0xFEC8, 0xFEC9, 0xFECA, 0xFECB,
+ 0xFECC, 0xFECD, 0xFECE, 0xFECF, 0xFED0, 0xFED1, 0xFED2, 0xFED3, 0xFED4,
+ 0xFED5, 0xFED6, 0xFED7, 0xFED8, 0xFED9, 0xFEDA, 0xFEDB, 0xFEDC, 0xFEDD,
+ 0xFEDE, 0xFEDF, 0xFEE0, 0xFEE1, 0xFEE2, 0xFEE3, 0xFEE4, 0xFEE5, 0xFEE6,
+ 0xFEE7, 0xFEE8, 0xFEE9, 0xFEEA, 0xFEEB, 0xFEEC, 0xFEED, 0xFEEE, 0xFEEF,
+ 0xFEF0, 0xFEF1, 0xFEF2, 0xFEF3, 0xFEF4, 0xFEF5, 0xFEF6, 0xFEF7, 0xFEF8,
+ 0xFEF9, 0xFEFA, 0xFEFB, 0xFEFC, 0x10800, 0x10801, 0x10802, 0x10803,
+ 0x10804, 0x10805, 0x10808, 0x1080A, 0x1080B, 0x1080C, 0x1080D, 0x1080E,
+ 0x1080F, 0x10810, 0x10811, 0x10812, 0x10813, 0x10814, 0x10815, 0x10816,
+ 0x10817, 0x10818, 0x10819, 0x1081A, 0x1081B, 0x1081C, 0x1081D, 0x1081E,
+ 0x1081F, 0x10820, 0x10821, 0x10822, 0x10823, 0x10824, 0x10825, 0x10826,
+ 0x10827, 0x10828, 0x10829, 0x1082A, 0x1082B, 0x1082C, 0x1082D, 0x1082E,
+ 0x1082F, 0x10830, 0x10831, 0x10832, 0x10833, 0x10834, 0x10835, 0x10837,
+ 0x10838, 0x1083C, 0x1083F, 0x10840, 0x10841, 0x10842, 0x10843, 0x10844,
+ 0x10845, 0x10846, 0x10847, 0x10848, 0x10849, 0x1084A, 0x1084B, 0x1084C,
+ 0x1084D, 0x1084E, 0x1084F, 0x10850, 0x10851, 0x10852, 0x10853, 0x10854,
+ 0x10855, 0x10857, 0x10858, 0x10859, 0x1085A, 0x1085B, 0x1085C, 0x1085D,
+ 0x1085E, 0x1085F, 0x10900, 0x10901, 0x10902, 0x10903, 0x10904, 0x10905,
+ 0x10906, 0x10907, 0x10908, 0x10909, 0x1090A, 0x1090B, 0x1090C, 0x1090D,
+ 0x1090E, 0x1090F, 0x10910, 0x10911, 0x10912, 0x10913, 0x10914, 0x10915,
+ 0x10916, 0x10917, 0x10918, 0x10919, 0x1091A, 0x1091B, 0x10920, 0x10921,
+ 0x10922, 0x10923, 0x10924, 0x10925, 0x10926, 0x10927, 0x10928, 0x10929,
+ 0x1092A, 0x1092B, 0x1092C, 0x1092D, 0x1092E, 0x1092F, 0x10930, 0x10931,
+ 0x10932, 0x10933, 0x10934, 0x10935, 0x10936, 0x10937, 0x10938, 0x10939,
+ 0x1093F, 0x10980, 0x10981, 0x10982, 0x10983, 0x10984, 0x10985, 0x10986,
+ 0x10987, 0x10988, 0x10989, 0x1098A, 0x1098B, 0x1098C, 0x1098D, 0x1098E,
+ 0x1098F, 0x10990, 0x10991, 0x10992, 0x10993, 0x10994, 0x10995, 0x10996,
+ 0x10997, 0x10998, 0x10999, 0x1099A, 0x1099B, 0x1099C, 0x1099D, 0x1099E,
+ 0x1099F, 0x109A0, 0x109A1, 0x109A2, 0x109A3, 0x109A4, 0x109A5, 0x109A6,
+ 0x109A7, 0x109A8, 0x109A9, 0x109AA, 0x109AB, 0x109AC, 0x109AD, 0x109AE,
+ 0x109AF, 0x109B0, 0x109B1, 0x109B2, 0x109B3, 0x109B4, 0x109B5, 0x109B6,
+ 0x109B7, 0x109BE, 0x109BF, 0x10A00, 0x10A10, 0x10A11, 0x10A12, 0x10A13,
+ 0x10A15, 0x10A16, 0x10A17, 0x10A19, 0x10A1A, 0x10A1B, 0x10A1C, 0x10A1D,
+ 0x10A1E, 0x10A1F, 0x10A20, 0x10A21, 0x10A22, 0x10A23, 0x10A24, 0x10A25,
+ 0x10A26, 0x10A27, 0x10A28, 0x10A29, 0x10A2A, 0x10A2B, 0x10A2C, 0x10A2D,
+ 0x10A2E, 0x10A2F, 0x10A30, 0x10A31, 0x10A32, 0x10A33, 0x10A40, 0x10A41,
+ 0x10A42, 0x10A43, 0x10A44, 0x10A45, 0x10A46, 0x10A47, 0x10A50, 0x10A51,
+ 0x10A52, 0x10A53, 0x10A54, 0x10A55, 0x10A56, 0x10A57, 0x10A58, 0x10A60,
+ 0x10A61, 0x10A62, 0x10A63, 0x10A64, 0x10A65, 0x10A66, 0x10A67, 0x10A68,
+ 0x10A69, 0x10A6A, 0x10A6B, 0x10A6C, 0x10A6D, 0x10A6E, 0x10A6F, 0x10A70,
+ 0x10A71, 0x10A72, 0x10A73, 0x10A74, 0x10A75, 0x10A76, 0x10A77, 0x10A78,
+ 0x10A79, 0x10A7A, 0x10A7B, 0x10A7C, 0x10A7D, 0x10A7E, 0x10A7F, 0x10B00,
+ 0x10B01, 0x10B02, 0x10B03, 0x10B04, 0x10B05, 0x10B06, 0x10B07, 0x10B08,
+ 0x10B09, 0x10B0A, 0x10B0B, 0x10B0C, 0x10B0D, 0x10B0E, 0x10B0F, 0x10B10,
+ 0x10B11, 0x10B12, 0x10B13, 0x10B14, 0x10B15, 0x10B16, 0x10B17, 0x10B18,
+ 0x10B19, 0x10B1A, 0x10B1B, 0x10B1C, 0x10B1D, 0x10B1E, 0x10B1F, 0x10B20,
+ 0x10B21, 0x10B22, 0x10B23, 0x10B24, 0x10B25, 0x10B26, 0x10B27, 0x10B28,
+ 0x10B29, 0x10B2A, 0x10B2B, 0x10B2C, 0x10B2D, 0x10B2E, 0x10B2F, 0x10B30,
+ 0x10B31, 0x10B32, 0x10B33, 0x10B34, 0x10B35, 0x10B40, 0x10B41, 0x10B42,
+ 0x10B43, 0x10B44, 0x10B45, 0x10B46, 0x10B47, 0x10B48, 0x10B49, 0x10B4A,
+ 0x10B4B, 0x10B4C, 0x10B4D, 0x10B4E, 0x10B4F, 0x10B50, 0x10B51, 0x10B52,
+ 0x10B53, 0x10B54, 0x10B55, 0x10B58, 0x10B59, 0x10B5A, 0x10B5B, 0x10B5C,
+ 0x10B5D, 0x10B5E, 0x10B5F, 0x10B60, 0x10B61, 0x10B62, 0x10B63, 0x10B64,
+ 0x10B65, 0x10B66, 0x10B67, 0x10B68, 0x10B69, 0x10B6A, 0x10B6B, 0x10B6C,
+ 0x10B6D, 0x10B6E, 0x10B6F, 0x10B70, 0x10B71, 0x10B72, 0x10B78, 0x10B79,
+ 0x10B7A, 0x10B7B, 0x10B7C, 0x10B7D, 0x10B7E, 0x10B7F, 0x10C00, 0x10C01,
+ 0x10C02, 0x10C03, 0x10C04, 0x10C05, 0x10C06, 0x10C07, 0x10C08, 0x10C09,
+ 0x10C0A, 0x10C0B, 0x10C0C, 0x10C0D, 0x10C0E, 0x10C0F, 0x10C10, 0x10C11,
+ 0x10C12, 0x10C13, 0x10C14, 0x10C15, 0x10C16, 0x10C17, 0x10C18, 0x10C19,
+ 0x10C1A, 0x10C1B, 0x10C1C, 0x10C1D, 0x10C1E, 0x10C1F, 0x10C20, 0x10C21,
+ 0x10C22, 0x10C23, 0x10C24, 0x10C25, 0x10C26, 0x10C27, 0x10C28, 0x10C29,
+ 0x10C2A, 0x10C2B, 0x10C2C, 0x10C2D, 0x10C2E, 0x10C2F, 0x10C30, 0x10C31,
+ 0x10C32, 0x10C33, 0x10C34, 0x10C35, 0x10C36, 0x10C37, 0x10C38, 0x10C39,
+ 0x10C3A, 0x10C3B, 0x10C3C, 0x10C3D, 0x10C3E, 0x10C3F, 0x10C40, 0x10C41,
+ 0x10C42, 0x10C43, 0x10C44, 0x10C45, 0x10C46, 0x10C47, 0x10C48, 0x1EE00,
+ 0x1EE01, 0x1EE02, 0x1EE03, 0x1EE05, 0x1EE06, 0x1EE07, 0x1EE08, 0x1EE09,
+ 0x1EE0A, 0x1EE0B, 0x1EE0C, 0x1EE0D, 0x1EE0E, 0x1EE0F, 0x1EE10, 0x1EE11,
+ 0x1EE12, 0x1EE13, 0x1EE14, 0x1EE15, 0x1EE16, 0x1EE17, 0x1EE18, 0x1EE19,
+ 0x1EE1A, 0x1EE1B, 0x1EE1C, 0x1EE1D, 0x1EE1E, 0x1EE1F, 0x1EE21, 0x1EE22,
+ 0x1EE24, 0x1EE27, 0x1EE29, 0x1EE2A, 0x1EE2B, 0x1EE2C, 0x1EE2D, 0x1EE2E,
+ 0x1EE2F, 0x1EE30, 0x1EE31, 0x1EE32, 0x1EE34, 0x1EE35, 0x1EE36, 0x1EE37,
+ 0x1EE39, 0x1EE3B, 0x1EE42, 0x1EE47, 0x1EE49, 0x1EE4B, 0x1EE4D, 0x1EE4E,
+ 0x1EE4F, 0x1EE51, 0x1EE52, 0x1EE54, 0x1EE57, 0x1EE59, 0x1EE5B, 0x1EE5D,
+ 0x1EE5F, 0x1EE61, 0x1EE62, 0x1EE64, 0x1EE67, 0x1EE68, 0x1EE69, 0x1EE6A,
+ 0x1EE6C, 0x1EE6D, 0x1EE6E, 0x1EE6F, 0x1EE70, 0x1EE71, 0x1EE72, 0x1EE74,
+ 0x1EE75, 0x1EE76, 0x1EE77, 0x1EE79, 0x1EE7A, 0x1EE7B, 0x1EE7C, 0x1EE7E,
+ 0x1EE80, 0x1EE81, 0x1EE82, 0x1EE83, 0x1EE84, 0x1EE85, 0x1EE86, 0x1EE87,
+ 0x1EE88, 0x1EE89, 0x1EE8B, 0x1EE8C, 0x1EE8D, 0x1EE8E, 0x1EE8F, 0x1EE90,
+ 0x1EE91, 0x1EE92, 0x1EE93, 0x1EE94, 0x1EE95, 0x1EE96, 0x1EE97, 0x1EE98,
+ 0x1EE99, 0x1EE9A, 0x1EE9B, 0x1EEA1, 0x1EEA2, 0x1EEA3, 0x1EEA5, 0x1EEA6,
+ 0x1EEA7, 0x1EEA8, 0x1EEA9, 0x1EEAB, 0x1EEAC, 0x1EEAD, 0x1EEAE, 0x1EEAF,
+ 0x1EEB0, 0x1EEB1, 0x1EEB2, 0x1EEB3, 0x1EEB4, 0x1EEB5, 0x1EEB6, 0x1EEB7,
+ 0x1EEB8, 0x1EEB9, 0x1EEBA, 0x1EEBB, 0x10FFFD];
+
+ function determineBidi(cueDiv) {
+ var nodeStack = [],
+ text = "",
+ charCode;
+
+ if (!cueDiv || !cueDiv.childNodes) {
+ return "ltr";
+ }
+
+ function pushNodes(nodeStack, node) {
+ for (var i = node.childNodes.length - 1; i >= 0; i--) {
+ nodeStack.push(node.childNodes[i]);
+ }
+ }
+
+ function nextTextNode(nodeStack) {
+ if (!nodeStack || !nodeStack.length) {
+ return null;
+ }
+
+ var node = nodeStack.pop(),
+ text = node.textContent || node.innerText;
+ if (text) {
+ // TODO: This should match all unicode type B characters (paragraph
+ // separator characters). See issue #115.
+ var m = text.match(/^.*(\n|\r)/);
+ if (m) {
+ nodeStack.length = 0;
+ return m[0];
+ }
+ return text;
+ }
+ if (node.tagName === "ruby") {
+ return nextTextNode(nodeStack);
+ }
+ if (node.childNodes) {
+ pushNodes(nodeStack, node);
+ return nextTextNode(nodeStack);
+ }
+ }
+
+ pushNodes(nodeStack, cueDiv);
+ while ((text = nextTextNode(nodeStack))) {
+ for (var i = 0; i < text.length; i++) {
+ charCode = text.charCodeAt(i);
+ for (var j = 0; j < strongRTLChars.length; j++) {
+ if (strongRTLChars[j] === charCode) {
+ return "rtl";
+ }
+ }
+ }
+ }
+ return "ltr";
+ }
+
+ function computeLinePos(cue) {
+ if (typeof cue.line === "number" &&
+ (cue.snapToLines || (cue.line >= 0 && cue.line <= 100))) {
+ return cue.line;
+ }
+ if (!cue.track || !cue.track.textTrackList ||
+ !cue.track.textTrackList.mediaElement) {
+ return -1;
+ }
+ var track = cue.track,
+ trackList = track.textTrackList,
+ count = 0;
+ for (var i = 0; i < trackList.length && trackList[i] !== track; i++) {
+ if (trackList[i].mode === "showing") {
+ count++;
+ }
+ }
+ return ++count * -1;
+ }
+
+ function StyleBox() {
+ }
+
+ // Apply styles to a div. If there is no div passed then it defaults to the
+ // div on 'this'.
+ StyleBox.prototype.applyStyles = function(styles, div) {
+ div = div || this.div;
+ for (var prop in styles) {
+ if (styles.hasOwnProperty(prop)) {
+ div.style[prop] = styles[prop];
+ }
+ }
+ };
+
+ StyleBox.prototype.formatStyle = function(val, unit) {
+ return val === 0 ? 0 : val + unit;
+ };
+
+ // Constructs the computed display state of the cue (a div). Places the div
+ // into the overlay which should be a block level element (usually a div).
+ function CueStyleBox(window, cue, styleOptions) {
+ var isIE8 = (/MSIE\s8\.0/).test(navigator.userAgent);
+ var color = "rgba(255, 255, 255, 1)";
+ var backgroundColor = "rgba(0, 0, 0, 0.8)";
+
+ if (isIE8) {
+ color = "rgb(255, 255, 255)";
+ backgroundColor = "rgb(0, 0, 0)";
+ }
+
+ StyleBox.call(this);
+ this.cue = cue;
+
+ // Parse our cue's text into a DOM tree rooted at 'cueDiv'. This div will
+ // have inline positioning and will function as the cue background box.
+ this.cueDiv = parseContent(window, cue.text);
+ var styles = {
+ color: color,
+ backgroundColor: backgroundColor,
+ position: "relative",
+ left: 0,
+ right: 0,
+ top: 0,
+ bottom: 0,
+ display: "inline"
+ };
+
+ if (!isIE8) {
+ styles.writingMode = cue.vertical === "" ? "horizontal-tb"
+ : cue.vertical === "lr" ? "vertical-lr"
+ : "vertical-rl";
+ styles.unicodeBidi = "plaintext";
+ }
+ this.applyStyles(styles, this.cueDiv);
+
+ // Create an absolutely positioned div that will be used to position the cue
+ // div. Note, all WebVTT cue-setting alignments are equivalent to the CSS
+ // mirrors of them except "middle" which is "center" in CSS.
+ this.div = window.document.createElement("div");
+ styles = {
+ textAlign: cue.align === "middle" ? "center" : cue.align,
+ font: styleOptions.font,
+ whiteSpace: "pre-line",
+ position: "absolute"
+ };
+
+ if (!isIE8) {
+ styles.direction = determineBidi(this.cueDiv);
+ styles.writingMode = cue.vertical === "" ? "horizontal-tb"
+ : cue.vertical === "lr" ? "vertical-lr"
+ : "vertical-rl".
+ stylesunicodeBidi = "plaintext";
+ }
+
+ this.applyStyles(styles);
+
+ this.div.appendChild(this.cueDiv);
+
+ // Calculate the distance from the reference edge of the viewport to the text
+ // position of the cue box. The reference edge will be resolved later when
+ // the box orientation styles are applied.
+ var textPos = 0;
+ switch (cue.positionAlign) {
+ case "start":
+ textPos = cue.position;
+ break;
+ case "middle":
+ textPos = cue.position - (cue.size / 2);
+ break;
+ case "end":
+ textPos = cue.position - cue.size;
+ break;
+ }
+
+ // Horizontal box orientation; textPos is the distance from the left edge of the
+ // area to the left edge of the box and cue.size is the distance extending to
+ // the right from there.
+ if (cue.vertical === "") {
+ this.applyStyles({
+ left: this.formatStyle(textPos, "%"),
+ width: this.formatStyle(cue.size, "%"),
+ });
+ // Vertical box orientation; textPos is the distance from the top edge of the
+ // area to the top edge of the box and cue.size is the height extending
+ // downwards from there.
+ } else {
+ this.applyStyles({
+ top: this.formatStyle(textPos, "%"),
+ height: this.formatStyle(cue.size, "%")
+ });
+ }
+
+ this.move = function(box) {
+ this.applyStyles({
+ top: this.formatStyle(box.top, "px"),
+ bottom: this.formatStyle(box.bottom, "px"),
+ left: this.formatStyle(box.left, "px"),
+ right: this.formatStyle(box.right, "px"),
+ height: this.formatStyle(box.height, "px"),
+ width: this.formatStyle(box.width, "px"),
+ });
+ };
+ }
+ CueStyleBox.prototype = _objCreate(StyleBox.prototype);
+ CueStyleBox.prototype.constructor = CueStyleBox;
+
+ // Represents the co-ordinates of an Element in a way that we can easily
+ // compute things with such as if it overlaps or intersects with another Element.
+ // Can initialize it with either a StyleBox or another BoxPosition.
+ function BoxPosition(obj) {
+ var isIE8 = (/MSIE\s8\.0/).test(navigator.userAgent);
+
+ // Either a BoxPosition was passed in and we need to copy it, or a StyleBox
+ // was passed in and we need to copy the results of 'getBoundingClientRect'
+ // as the object returned is readonly. All co-ordinate values are in reference
+ // to the viewport origin (top left).
+ var lh, height, width, top;
+ if (obj.div) {
+ height = obj.div.offsetHeight;
+ width = obj.div.offsetWidth;
+ top = obj.div.offsetTop;
+
+ var rects = (rects = obj.div.childNodes) && (rects = rects[0]) &&
+ rects.getClientRects && rects.getClientRects();
+ obj = obj.div.getBoundingClientRect();
+ // In certain cases the outter div will be slightly larger then the sum of
+ // the inner div's lines. This could be due to bold text, etc, on some platforms.
+ // In this case we should get the average line height and use that. This will
+ // result in the desired behaviour.
+ lh = rects ? Math.max((rects[0] && rects[0].height) || 0, obj.height / rects.length)
+ : 0;
+
+ }
+ this.left = obj.left;
+ this.right = obj.right;
+ this.top = obj.top || top;
+ this.height = obj.height || height;
+ this.bottom = obj.bottom || (top + (obj.height || height));
+ this.width = obj.width || width;
+ this.lineHeight = lh !== undefined ? lh : obj.lineHeight;
+
+ if (isIE8 && !this.lineHeight) {
+ this.lineHeight = 13;
+ }
+ }
+
+ // Move the box along a particular axis. Optionally pass in an amount to move
+ // the box. If no amount is passed then the default is the line height of the
+ // box.
+ BoxPosition.prototype.move = function(axis, toMove) {
+ toMove = toMove !== undefined ? toMove : this.lineHeight;
+ switch (axis) {
+ case "+x":
+ this.left += toMove;
+ this.right += toMove;
+ break;
+ case "-x":
+ this.left -= toMove;
+ this.right -= toMove;
+ break;
+ case "+y":
+ this.top += toMove;
+ this.bottom += toMove;
+ break;
+ case "-y":
+ this.top -= toMove;
+ this.bottom -= toMove;
+ break;
+ }
+ };
+
+ // Check if this box overlaps another box, b2.
+ BoxPosition.prototype.overlaps = function(b2) {
+ return this.left < b2.right &&
+ this.right > b2.left &&
+ this.top < b2.bottom &&
+ this.bottom > b2.top;
+ };
+
+ // Check if this box overlaps any other boxes in boxes.
+ BoxPosition.prototype.overlapsAny = function(boxes) {
+ for (var i = 0; i < boxes.length; i++) {
+ if (this.overlaps(boxes[i])) {
+ return true;
+ }
+ }
+ return false;
+ };
+
+ // Check if this box is within another box.
+ BoxPosition.prototype.within = function(container) {
+ return this.top >= container.top &&
+ this.bottom <= container.bottom &&
+ this.left >= container.left &&
+ this.right <= container.right;
+ };
+
+ // Check if this box is entirely within the container or it is overlapping
+ // on the edge opposite of the axis direction passed. For example, if "+x" is
+ // passed and the box is overlapping on the left edge of the container, then
+ // return true.
+ BoxPosition.prototype.overlapsOppositeAxis = function(container, axis) {
+ switch (axis) {
+ case "+x":
+ return this.left < container.left;
+ case "-x":
+ return this.right > container.right;
+ case "+y":
+ return this.top < container.top;
+ case "-y":
+ return this.bottom > container.bottom;
+ }
+ };
+
+ // Find the percentage of the area that this box is overlapping with another
+ // box.
+ BoxPosition.prototype.intersectPercentage = function(b2) {
+ var x = Math.max(0, Math.min(this.right, b2.right) - Math.max(this.left, b2.left)),
+ y = Math.max(0, Math.min(this.bottom, b2.bottom) - Math.max(this.top, b2.top)),
+ intersectArea = x * y;
+ return intersectArea / (this.height * this.width);
+ };
+
+ // Convert the positions from this box to CSS compatible positions using
+ // the reference container's positions. This has to be done because this
+ // box's positions are in reference to the viewport origin, whereas, CSS
+ // values are in referecne to their respective edges.
+ BoxPosition.prototype.toCSSCompatValues = function(reference) {
+ return {
+ top: this.top - reference.top,
+ bottom: reference.bottom - this.bottom,
+ left: this.left - reference.left,
+ right: reference.right - this.right,
+ height: this.height,
+ width: this.width
+ };
+ };
+
+ // Get an object that represents the box's position without anything extra.
+ // Can pass a StyleBox, HTMLElement, or another BoxPositon.
+ BoxPosition.getSimpleBoxPosition = function(obj) {
+ var height = obj.div ? obj.div.offsetHeight : obj.tagName ? obj.offsetHeight : 0;
+ var width = obj.div ? obj.div.offsetWidth : obj.tagName ? obj.offsetWidth : 0;
+ var top = obj.div ? obj.div.offsetTop : obj.tagName ? obj.offsetTop : 0;
+
+ obj = obj.div ? obj.div.getBoundingClientRect() :
+ obj.tagName ? obj.getBoundingClientRect() : obj;
+ var ret = {
+ left: obj.left,
+ right: obj.right,
+ top: obj.top || top,
+ height: obj.height || height,
+ bottom: obj.bottom || (top + (obj.height || height)),
+ width: obj.width || width
+ };
+ return ret;
+ };
+
+ // Move a StyleBox to its specified, or next best, position. The containerBox
+ // is the box that contains the StyleBox, such as a div. boxPositions are
+ // a list of other boxes that the styleBox can't overlap with.
+ function moveBoxToLinePosition(window, styleBox, containerBox, boxPositions) {
+
+ // Find the best position for a cue box, b, on the video. The axis parameter
+ // is a list of axis, the order of which, it will move the box along. For example:
+ // Passing ["+x", "-x"] will move the box first along the x axis in the positive
+ // direction. If it doesn't find a good position for it there it will then move
+ // it along the x axis in the negative direction.
+ function findBestPosition(b, axis) {
+ var bestPosition,
+ specifiedPosition = new BoxPosition(b),
+ percentage = 1; // Highest possible so the first thing we get is better.
+
+ for (var i = 0; i < axis.length; i++) {
+ while (b.overlapsOppositeAxis(containerBox, axis[i]) ||
+ (b.within(containerBox) && b.overlapsAny(boxPositions))) {
+ b.move(axis[i]);
+ }
+ // We found a spot where we aren't overlapping anything. This is our
+ // best position.
+ if (b.within(containerBox)) {
+ return b;
+ }
+ var p = b.intersectPercentage(containerBox);
+ // If we're outside the container box less then we were on our last try
+ // then remember this position as the best position.
+ if (percentage > p) {
+ bestPosition = new BoxPosition(b);
+ percentage = p;
+ }
+ // Reset the box position to the specified position.
+ b = new BoxPosition(specifiedPosition);
+ }
+ return bestPosition || specifiedPosition;
+ }
+
+ var boxPosition = new BoxPosition(styleBox),
+ cue = styleBox.cue,
+ linePos = computeLinePos(cue),
+ axis = [];
+
+ // If we have a line number to align the cue to.
+ if (cue.snapToLines) {
+ var size;
+ switch (cue.vertical) {
+ case "":
+ axis = [ "+y", "-y" ];
+ size = "height";
+ break;
+ case "rl":
+ axis = [ "+x", "-x" ];
+ size = "width";
+ break;
+ case "lr":
+ axis = [ "-x", "+x" ];
+ size = "width";
+ break;
+ }
+
+ var step = boxPosition.lineHeight,
+ position = step * Math.round(linePos),
+ maxPosition = containerBox[size] + step,
+ initialAxis = axis[0];
+
+ // If the specified intial position is greater then the max position then
+ // clamp the box to the amount of steps it would take for the box to
+ // reach the max position.
+ if (Math.abs(position) > maxPosition) {
+ position = position < 0 ? -1 : 1;
+ position *= Math.ceil(maxPosition / step) * step;
+ }
+
+ // If computed line position returns negative then line numbers are
+ // relative to the bottom of the video instead of the top. Therefore, we
+ // need to increase our initial position by the length or width of the
+ // video, depending on the writing direction, and reverse our axis directions.
+ if (linePos < 0) {
+ position += cue.vertical === "" ? containerBox.height : containerBox.width;
+ axis = axis.reverse();
+ }
+
+ // Move the box to the specified position. This may not be its best
+ // position.
+ boxPosition.move(initialAxis, position);
+
+ } else {
+ // If we have a percentage line value for the cue.
+ var calculatedPercentage = (boxPosition.lineHeight / containerBox.height) * 100;
+
+ switch (cue.lineAlign) {
+ case "middle":
+ linePos -= (calculatedPercentage / 2);
+ break;
+ case "end":
+ linePos -= calculatedPercentage;
+ break;
+ }
+
+ // Apply initial line position to the cue box.
+ switch (cue.vertical) {
+ case "":
+ styleBox.applyStyles({
+ top: styleBox.formatStyle(linePos, "%")
+ });
+ break;
+ case "rl":
+ styleBox.applyStyles({
+ left: styleBox.formatStyle(linePos, "%")
+ });
+ break;
+ case "lr":
+ styleBox.applyStyles({
+ right: styleBox.formatStyle(linePos, "%")
+ });
+ break;
+ }
+
+ axis = [ "+y", "-x", "+x", "-y" ];
+
+ // Get the box position again after we've applied the specified positioning
+ // to it.
+ boxPosition = new BoxPosition(styleBox);
+ }
+
+ var bestPosition = findBestPosition(boxPosition, axis);
+ styleBox.move(bestPosition.toCSSCompatValues(containerBox));
+ }
+
+ function WebVTT() {
+ // Nothing
+ }
+
+ // Helper to allow strings to be decoded instead of the default binary utf8 data.
+ WebVTT.StringDecoder = function() {
+ return {
+ decode: function(data) {
+ if (!data) {
+ return "";
+ }
+ if (typeof data !== "string") {
+ throw new Error("Error - expected string data.");
+ }
+ return decodeURIComponent(encodeURIComponent(data));
+ }
+ };
+ };
+
+ WebVTT.convertCueToDOMTree = function(window, cuetext) {
+ if (!window || !cuetext) {
+ return null;
+ }
+ return parseContent(window, cuetext);
+ };
+
+ var FONT_SIZE_PERCENT = 0.05;
+ var FONT_STYLE = "sans-serif";
+ var CUE_BACKGROUND_PADDING = "1.5%";
+
+ // Runs the processing model over the cues and regions passed to it.
+ // @param overlay A block level element (usually a div) that the computed cues
+ // and regions will be placed into.
+ WebVTT.processCues = function(window, cues, overlay) {
+ if (!window || !cues || !overlay) {
+ return null;
+ }
+
+ // Remove all previous children.
+ while (overlay.firstChild) {
+ overlay.removeChild(overlay.firstChild);
+ }
+
+ var paddedOverlay = window.document.createElement("div");
+ paddedOverlay.style.position = "absolute";
+ paddedOverlay.style.left = "0";
+ paddedOverlay.style.right = "0";
+ paddedOverlay.style.top = "0";
+ paddedOverlay.style.bottom = "0";
+ paddedOverlay.style.margin = CUE_BACKGROUND_PADDING;
+ overlay.appendChild(paddedOverlay);
+
+ // Determine if we need to compute the display states of the cues. This could
+ // be the case if a cue's state has been changed since the last computation or
+ // if it has not been computed yet.
+ function shouldCompute(cues) {
+ for (var i = 0; i < cues.length; i++) {
+ if (cues[i].hasBeenReset || !cues[i].displayState) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ // We don't need to recompute the cues' display states. Just reuse them.
+ if (!shouldCompute(cues)) {
+ for (var i = 0; i < cues.length; i++) {
+ paddedOverlay.appendChild(cues[i].displayState);
+ }
+ return;
+ }
+
+ var boxPositions = [],
+ containerBox = BoxPosition.getSimpleBoxPosition(paddedOverlay),
+ fontSize = Math.round(containerBox.height * FONT_SIZE_PERCENT * 100) / 100;
+ var styleOptions = {
+ font: fontSize + "px " + FONT_STYLE
+ };
+
+ (function() {
+ var styleBox, cue;
+
+ for (var i = 0; i < cues.length; i++) {
+ cue = cues[i];
+
+ // Compute the intial position and styles of the cue div.
+ styleBox = new CueStyleBox(window, cue, styleOptions);
+ paddedOverlay.appendChild(styleBox.div);
+
+ // Move the cue div to it's correct line position.
+ moveBoxToLinePosition(window, styleBox, containerBox, boxPositions);
+
+ // Remember the computed div so that we don't have to recompute it later
+ // if we don't have too.
+ cue.displayState = styleBox.div;
+
+ boxPositions.push(BoxPosition.getSimpleBoxPosition(styleBox));
+ }
+ })();
+ };
+
+ WebVTT.Parser = function(window, vttjs, decoder) {
+ if (!decoder) {
+ decoder = vttjs;
+ vttjs = {};
+ }
+ if (!vttjs) {
+ vttjs = {};
+ }
+
+ this.window = window;
+ this.vttjs = vttjs;
+ this.state = "INITIAL";
+ this.buffer = "";
+ this.decoder = decoder || new TextDecoder("utf8");
+ this.regionList = [];
+ };
+
+ WebVTT.Parser.prototype = {
+ // If the error is a ParsingError then report it to the consumer if
+ // possible. If it's not a ParsingError then throw it like normal.
+ reportOrThrowError: function(e) {
+ if (e instanceof ParsingError) {
+ this.onparsingerror && this.onparsingerror(e);
+ } else {
+ throw e;
+ }
+ },
+ parse: function (data) {
+ var self = this;
+
+ // If there is no data then we won't decode it, but will just try to parse
+ // whatever is in buffer already. This may occur in circumstances, for
+ // example when flush() is called.
+ if (data) {
+ // Try to decode the data that we received.
+ self.buffer += self.decoder.decode(data, {stream: true});
+ }
+
+ function collectNextLine() {
+ var buffer = self.buffer;
+ var pos = 0;
+ while (pos < buffer.length && buffer[pos] !== '\r' && buffer[pos] !== '\n') {
+ ++pos;
+ }
+ var line = buffer.substr(0, pos);
+ // Advance the buffer early in case we fail below.
+ if (buffer[pos] === '\r') {
+ ++pos;
+ }
+ if (buffer[pos] === '\n') {
+ ++pos;
+ }
+ self.buffer = buffer.substr(pos);
+ return line;
+ }
+
+ // 3.4 WebVTT region and WebVTT region settings syntax
+ function parseRegion(input) {
+ var settings = new Settings();
+
+ parseOptions(input, function (k, v) {
+ switch (k) {
+ case "id":
+ settings.set(k, v);
+ break;
+ case "width":
+ settings.percent(k, v);
+ break;
+ case "lines":
+ settings.integer(k, v);
+ break;
+ case "regionanchor":
+ case "viewportanchor":
+ var xy = v.split(',');
+ if (xy.length !== 2) {
+ break;
+ }
+ // We have to make sure both x and y parse, so use a temporary
+ // settings object here.
+ var anchor = new Settings();
+ anchor.percent("x", xy[0]);
+ anchor.percent("y", xy[1]);
+ if (!anchor.has("x") || !anchor.has("y")) {
+ break;
+ }
+ settings.set(k + "X", anchor.get("x"));
+ settings.set(k + "Y", anchor.get("y"));
+ break;
+ case "scroll":
+ settings.alt(k, v, ["up"]);
+ break;
+ }
+ }, /=/, /\s/);
+
+ // Create the region, using default values for any values that were not
+ // specified.
+ if (settings.has("id")) {
+ var region = new (self.vttjs.VTTRegion || self.window.VTTRegion)();
+ region.width = settings.get("width", 100);
+ region.lines = settings.get("lines", 3);
+ region.regionAnchorX = settings.get("regionanchorX", 0);
+ region.regionAnchorY = settings.get("regionanchorY", 100);
+ region.viewportAnchorX = settings.get("viewportanchorX", 0);
+ region.viewportAnchorY = settings.get("viewportanchorY", 100);
+ region.scroll = settings.get("scroll", "");
+ // Register the region.
+ self.onregion && self.onregion(region);
+ // Remember the VTTRegion for later in case we parse any VTTCues that
+ // reference it.
+ self.regionList.push({
+ id: settings.get("id"),
+ region: region
+ });
+ }
+ }
+
+ // 3.2 WebVTT metadata header syntax
+ function parseHeader(input) {
+ parseOptions(input, function (k, v) {
+ switch (k) {
+ case "Region":
+ // 3.3 WebVTT region metadata header syntax
+ parseRegion(v);
+ break;
+ }
+ }, /:/);
+ }
+
+ // 5.1 WebVTT file parsing.
+ try {
+ var line;
+ if (self.state === "INITIAL") {
+ // We can't start parsing until we have the first line.
+ if (!/\r\n|\n/.test(self.buffer)) {
+ return this;
+ }
+
+ line = collectNextLine();
+
+ var m = line.match(/^WEBVTT([ \t].*)?$/);
+ if (!m || !m[0]) {
+ throw new ParsingError(ParsingError.Errors.BadSignature);
+ }
+
+ self.state = "HEADER";
+ }
+
+ var alreadyCollectedLine = false;
+ while (self.buffer) {
+ // We can't parse a line until we have the full line.
+ if (!/\r\n|\n/.test(self.buffer)) {
+ return this;
+ }
+
+ if (!alreadyCollectedLine) {
+ line = collectNextLine();
+ } else {
+ alreadyCollectedLine = false;
+ }
+
+ switch (self.state) {
+ case "HEADER":
+ // 13-18 - Allow a header (metadata) under the WEBVTT line.
+ if (/:/.test(line)) {
+ parseHeader(line);
+ } else if (!line) {
+ // An empty line terminates the header and starts the body (cues).
+ self.state = "ID";
+ }
+ continue;
+ case "NOTE":
+ // Ignore NOTE blocks.
+ if (!line) {
+ self.state = "ID";
+ }
+ continue;
+ case "ID":
+ // Check for the start of NOTE blocks.
+ if (/^NOTE($|[ \t])/.test(line)) {
+ self.state = "NOTE";
+ break;
+ }
+ // 19-29 - Allow any number of line terminators, then initialize new cue values.
+ if (!line) {
+ continue;
+ }
+ self.cue = new (self.vttjs.VTTCue || self.window.VTTCue)(0, 0, "");
+ self.state = "CUE";
+ // 30-39 - Check if self line contains an optional identifier or timing data.
+ if (line.indexOf("-->") === -1) {
+ self.cue.id = line;
+ continue;
+ }
+ // Process line as start of a cue.
+ /*falls through*/
+ case "CUE":
+ // 40 - Collect cue timings and settings.
+ try {
+ parseCue(line, self.cue, self.regionList);
+ } catch (e) {
+ self.reportOrThrowError(e);
+ // In case of an error ignore rest of the cue.
+ self.cue = null;
+ self.state = "BADCUE";
+ continue;
+ }
+ self.state = "CUETEXT";
+ continue;
+ case "CUETEXT":
+ var hasSubstring = line.indexOf("-->") !== -1;
+ // 34 - If we have an empty line then report the cue.
+ // 35 - If we have the special substring '-->' then report the cue,
+ // but do not collect the line as we need to process the current
+ // one as a new cue.
+ if (!line || hasSubstring && (alreadyCollectedLine = true)) {
+ // We are done parsing self cue.
+ self.oncue && self.oncue(self.cue);
+ self.cue = null;
+ self.state = "ID";
+ continue;
+ }
+ if (self.cue.text) {
+ self.cue.text += "\n";
+ }
+ self.cue.text += line;
+ continue;
+ case "BADCUE": // BADCUE
+ // 54-62 - Collect and discard the remaining cue.
+ if (!line) {
+ self.state = "ID";
+ }
+ continue;
+ }
+ }
+ } catch (e) {
+ self.reportOrThrowError(e);
+
+ // If we are currently parsing a cue, report what we have.
+ if (self.state === "CUETEXT" && self.cue && self.oncue) {
+ self.oncue(self.cue);
+ }
+ self.cue = null;
+ // Enter BADWEBVTT state if header was not parsed correctly otherwise
+ // another exception occurred so enter BADCUE state.
+ self.state = self.state === "INITIAL" ? "BADWEBVTT" : "BADCUE";
+ }
+ return this;
+ },
+ flush: function () {
+ var self = this;
+ try {
+ // Finish decoding the stream.
+ self.buffer += self.decoder.decode();
+ // Synthesize the end of the current cue or region.
+ if (self.cue || self.state === "HEADER") {
+ self.buffer += "\n\n";
+ self.parse();
+ }
+ // If we've flushed, parsed, and we're still on the INITIAL state then
+ // that means we don't have enough of the stream to parse the first
+ // line.
+ if (self.state === "INITIAL") {
+ throw new ParsingError(ParsingError.Errors.BadSignature);
+ }
+ } catch(e) {
+ self.reportOrThrowError(e);
+ }
+ self.onflush && self.onflush();
+ return this;
+ }
+ };
+
+ global.WebVTT = WebVTT;
+
+}(this, (this.vttjs || {})));
diff --git a/js/video-js/video.js b/js/video-js/video.js
new file mode 100644
index 0000000..1f376bf
--- /dev/null
+++ b/js/video-js/video.js
@@ -0,0 +1,199 @@
+/*! Video.js v4.12.1 Copyright 2014 Brightcove, Inc. https://github.com/videojs/video.js/blob/master/LICENSE */
+(function() {var b=void 0,f=!0,j=null,l=!1;function m(){return function(){}}function n(a){return function(){return this[a]}}function q(a){return function(){return a}}var s;document.createElement("video");document.createElement("audio");document.createElement("track");
+function t(a,c,d){if("string"===typeof a){0===a.indexOf("#")&&(a=a.slice(1));if(t.Aa[a])return c&&t.log.warn('Player "'+a+'" is already initialised. Options will not be applied.'),d&&t.Aa[a].I(d),t.Aa[a];a=t.m(a)}if(!a||!a.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return a.player||new t.Player(a,c,d)}var videojs=window.videojs=t;t.ic="4.12";t.vd="https:"==document.location.protocol?"https://":"http://";t.VERSION="4.12.1";
+t.options={techOrder:["html5","flash"],html5:{},flash:{},width:300,height:150,defaultVolume:0,playbackRates:[],inactivityTimeout:2E3,children:{mediaLoader:{},posterImage:{},loadingSpinner:{},textTrackDisplay:{},bigPlayButton:{},controlBar:{},errorDisplay:{},textTrackSettings:{}},language:document.getElementsByTagName("html")[0].getAttribute("lang")||navigator.languages&&navigator.languages[0]||navigator.If||navigator.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this video."};
+"GENERATED_CDN_VSN"!==t.ic&&(videojs.options.flash.swf=t.vd+"vjs.zencdn.net/"+t.ic+"/video-js.swf");t.Jd=function(a,c){t.options.languages[a]=t.options.languages[a]!==b?t.$.ya(t.options.languages[a],c):c;return t.options.languages};t.Aa={};"function"===typeof define&&define.amd?define("videojs",[],function(){return videojs}):"object"===typeof exports&&"object"===typeof module&&(module.exports=videojs);t.Ea=t.CoreObject=m();
+t.Ea.extend=function(a){var c,d;a=a||{};c=a.init||a.l||this.prototype.init||this.prototype.l||m();d=function(){c.apply(this,arguments)};d.prototype=t.i.create(this.prototype);d.prototype.constructor=d;d.extend=t.Ea.extend;d.create=t.Ea.create;for(var e in a)a.hasOwnProperty(e)&&(d.prototype[e]=a[e]);return d};t.Ea.create=function(){var a=t.i.create(this.prototype);this.apply(a,arguments);return a};
+t.b=function(a,c,d){if(t.i.isArray(c))return v(t.b,a,c,d);var e=t.getData(a);e.G||(e.G={});e.G[c]||(e.G[c]=[]);d.s||(d.s=t.s++);e.G[c].push(d);e.ca||(e.disabled=l,e.ca=function(c){if(!e.disabled){c=t.Pb(c);var d=e.G[c.type];if(d)for(var d=d.slice(0),k=0,p=d.length;kt.hc;t.jc=/Firefox/i.test(t.P);t.lf=/Chrome/i.test(t.P);t.oa=/MSIE\s8\.0/.test(t.P);t.Eb=!!("ontouchstart"in window||window.xd&&document instanceof window.xd);t.wd="backgroundSize"in t.A.style;
+t.ed=function(a,c){t.i.da(c,function(c,e){e===j||"undefined"===typeof e||e===l?a.removeAttribute(c):a.setAttribute(c,e===f?"":e)})};t.Na=function(a){var c,d,e,g;c={};if(a&&a.attributes&&0e?"0"+e:e)+":")+(10>d?"0"+d:d)};t.Ld=function(){document.body.focus();document.onselectstart=q(l)};t.af=function(){document.onselectstart=q(f)};t.trim=function(a){return(a+"").replace(/^\s+|\s+$/g,"")};t.round=function(a,c){c||(c=0);return Math.round(a*Math.pow(10,c))/Math.pow(10,c)};
+t.Lb=function(a,c){return{length:1,start:function(){return a},end:function(){return c}}};t.Me=function(a){try{var c=window.localStorage||l;c&&(c.volume=a)}catch(d){22==d.code||1014==d.code?t.log("LocalStorage Full (VideoJS)",d):18==d.code?t.log("LocalStorage not allowed (VideoJS)",d):t.log("LocalStorage Error (VideoJS)",d)}};t.$d=function(a){a.match(/^https?:\/\//)||(a=t.e("div",{innerHTML:'x '}).firstChild.href);return a};
+t.Ee=function(a){var c,d,e,g;g="protocol hostname port pathname search hash host".split(" ");d=t.e("a",{href:a});if(e=""===d.host&&"file:"!==d.protocol)c=t.e("div"),c.innerHTML=' ',d=c.firstChild,c.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(c);a={};for(var h=0;he&&(a.preventDefault(),this.o("tap")))})}
+s.setTimeout=function(a,c){function d(){this.clearTimeout(e)}a=t.bind(this,a);var e=setTimeout(a,c);d.s="vjs-timeout-"+e;this.b("dispose",d);return e};s.clearTimeout=function(a){function c(){}clearTimeout(a);c.s="vjs-timeout-"+a;this.n("dispose",c);return a};s.setInterval=function(a,c){function d(){this.clearInterval(e)}a=t.bind(this,a);var e=setInterval(a,c);d.s="vjs-interval-"+e;this.b("dispose",d);return e};
+s.clearInterval=function(a){function c(){}clearInterval(a);c.s="vjs-interval-"+a;this.n("dispose",c);return a};t.w=t.a.extend({l:function(a,c){t.a.call(this,a,c);da(this);this.b("tap",this.u);this.b("click",this.u);this.b("focus",this.lb);this.b("blur",this.kb)}});s=t.w.prototype;
+s.e=function(a,c){var d;c=t.i.D({className:this.T(),role:"button","aria-live":"polite",tabIndex:0},c);d=t.a.prototype.e.call(this,a,c);c.innerHTML||(this.B=t.e("div",{className:"vjs-control-content"}),this.Jb=t.e("span",{className:"vjs-control-text",innerHTML:this.v(this.sa)||"Need Text"}),this.B.appendChild(this.Jb),d.appendChild(this.B));return d};s.T=function(){return"vjs-control "+t.a.prototype.T.call(this)};s.u=m();s.lb=function(){t.b(document,"keydown",t.bind(this,this.ja))};
+s.ja=function(a){if(32==a.which||13==a.which)a.preventDefault(),this.u()};s.kb=function(){t.n(document,"keydown",t.bind(this,this.ja))};t.S=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.Kd=this.ea(this.q.barName);this.handle=this.ea(this.q.handleName);this.b("mousedown",this.mb);this.b("touchstart",this.mb);this.b("focus",this.lb);this.b("blur",this.kb);this.b("click",this.u);this.b(a,"controlsvisible",this.update);this.b(a,this.Yc,this.update)}});s=t.S.prototype;
+s.e=function(a,c){c=c||{};c.className+=" vjs-slider";c=t.i.D({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},c);return t.a.prototype.e.call(this,a,c)};s.mb=function(a){a.preventDefault();t.Ld();this.p("vjs-sliding");this.b(document,"mousemove",this.ka);this.b(document,"mouseup",this.za);this.b(document,"touchmove",this.ka);this.b(document,"touchend",this.za);this.ka(a)};s.ka=m();
+s.za=function(){t.af();this.r("vjs-sliding");this.n(document,"mousemove",this.ka);this.n(document,"mouseup",this.za);this.n(document,"touchmove",this.ka);this.n(document,"touchend",this.za);this.update()};s.update=function(){if(this.c){var a,c=this.Sb(),d=this.handle,e=this.Kd;if("number"!==typeof c||c!==c||0>c||Infinity===c)c=0;a=c;if(d){a=this.c.offsetWidth;var g=d.m().offsetWidth;a=g?g/a:0;c*=1-a;a=c+a/2;d.m().style.left=t.round(100*c,2)+"%"}e&&(e.m().style.width=t.round(100*a,2)+"%")}};
+function ea(a,c){var d,e,g,h;d=a.c;e=t.Yd(d);h=g=d.offsetWidth;d=a.handle;if(a.options().vertical)return h=e.top,e=c.changedTouches?c.changedTouches[0].pageY:c.pageY,d&&(d=d.m().offsetHeight,h+=d/2,g-=d),Math.max(0,Math.min(1,(h-e+g)/g));g=e.left;e=c.changedTouches?c.changedTouches[0].pageX:c.pageX;d&&(d=d.m().offsetWidth,g+=d/2,h-=d);return Math.max(0,Math.min(1,(e-g)/h))}s.lb=function(){this.b(document,"keydown",this.ja)};
+s.ja=function(a){if(37==a.which||40==a.which)a.preventDefault(),this.jd();else if(38==a.which||39==a.which)a.preventDefault(),this.kd()};s.kb=function(){this.n(document,"keydown",this.ja)};s.u=function(a){a.stopImmediatePropagation();a.preventDefault()};t.ga=t.a.extend();t.ga.prototype.defaultValue=0;t.ga.prototype.e=function(a,c){c=c||{};c.className+=" vjs-slider-handle";c=t.i.D({innerHTML:''+this.defaultValue+" "},c);return t.a.prototype.e.call(this,"div",c)};
+t.pa=t.a.extend();function fa(a,c){a.ba(c);c.b("click",t.bind(a,function(){G(this)}))}t.pa.prototype.e=function(){var a=this.options().Cc||"ul";this.B=t.e(a,{className:"vjs-menu-content"});a=t.a.prototype.e.call(this,"div",{append:this.B,className:"vjs-menu"});a.appendChild(this.B);t.b(a,"click",function(a){a.preventDefault();a.stopImmediatePropagation()});return a};t.M=t.w.extend({l:function(a,c){t.w.call(this,a,c);this.selected(c.selected)}});
+t.M.prototype.e=function(a,c){return t.w.prototype.e.call(this,"li",t.i.D({className:"vjs-menu-item",innerHTML:this.v(this.q.label)},c))};t.M.prototype.u=function(){this.selected(f)};t.M.prototype.selected=function(a){a?(this.p("vjs-selected"),this.c.setAttribute("aria-selected",f)):(this.r("vjs-selected"),this.c.setAttribute("aria-selected",l))};
+t.O=t.w.extend({l:function(a,c){t.w.call(this,a,c);this.update();this.b("keydown",this.ja);this.c.setAttribute("aria-haspopup",f);this.c.setAttribute("role","button")}});s=t.O.prototype;s.update=function(){var a=this.Ja();this.xa&&this.removeChild(this.xa);this.xa=a;this.ba(a);this.H&&0===this.H.length?this.X():this.H&&1a&&(a=Infinity),this.duration(a),Infinity===a?this.p("vjs-live"):this.r("vjs-live"))};s.we=function(){this.isFullscreen()?this.p("vjs-fullscreen"):this.r("vjs-fullscreen")};
+function N(a,c,d){if(a.h&&!a.h.wa)a.h.I(function(){this[c](d)});else try{a.h[c](d)}catch(e){throw t.log(e),e;}}function M(a,c){if(a.h&&a.h.wa)try{return a.h[c]()}catch(d){throw a.h[c]===b?t.log("Video.js: "+c+" method not defined for "+a.Ua+" playback technology.",d):"TypeError"==d.name?(t.log("Video.js: "+c+" unavailable on "+a.Ua+" playback technology element.",d),a.h.wa=l):t.log(d),d;}}s.play=function(){N(this,"play");return this};s.pause=function(){N(this,"pause");return this};
+s.paused=function(){return M(this,"paused")===l?l:f};s.currentTime=function(a){return a!==b?(N(this,"setCurrentTime",a),this):this.K.currentTime=M(this,"currentTime")||0};s.duration=function(a){if(a!==b)return this.K.duration=parseFloat(a),this;this.K.duration===b&&this.Wc();return this.K.duration||0};s.remainingTime=function(){return this.duration()-this.currentTime()};s.buffered=function(){var a=M(this,"buffered");if(!a||!a.length)a=t.Lb(0,0);return a};
+s.bufferedPercent=function(){var a=this.duration(),c=this.buffered(),d=0,e,g;if(!a)return 0;for(var h=0;ha&&(g=a),d+=g-e;return d/a};s.volume=function(a){if(a!==b)return a=Math.max(0,Math.min(1,parseFloat(a))),this.K.volume=a,N(this,"setVolume",a),t.Me(a),this;a=parseFloat(M(this,"volume"));return isNaN(a)?1:a};s.muted=function(a){return a!==b?(N(this,"setMuted",a),this):M(this,"muted")||l};s.Ta=function(){return M(this,"supportsFullScreen")||l};s.Qc=l;
+s.isFullscreen=function(a){return a!==b?(this.Qc=!!a,this):this.Qc};s.isFullScreen=function(a){t.log.warn('player.isFullScreen() has been deprecated, use player.isFullscreen() with a lowercase "s")');return this.isFullscreen(a)};
+s.requestFullscreen=function(){var a=t.cb.Rb;this.isFullscreen(f);a?(t.b(document,a.fullscreenchange,t.bind(this,function(c){this.isFullscreen(document[a.fullscreenElement]);this.isFullscreen()===l&&t.n(document,a.fullscreenchange,arguments.callee);this.o("fullscreenchange")})),this.c[a.requestFullscreen]()):this.h.Ta()?N(this,"enterFullScreen"):(this.Jc(),this.o("fullscreenchange"));return this};
+s.requestFullScreen=function(){t.log.warn('player.requestFullScreen() has been deprecated, use player.requestFullscreen() with a lowercase "s")');return this.requestFullscreen()};s.exitFullscreen=function(){var a=t.cb.Rb;this.isFullscreen(l);if(a)document[a.exitFullscreen]();else this.h.Ta()?N(this,"exitFullScreen"):(this.Nb(),this.o("fullscreenchange"));return this};s.cancelFullScreen=function(){t.log.warn("player.cancelFullScreen() has been deprecated, use player.exitFullscreen()");return this.exitFullscreen()};
+s.Jc=function(){this.je=f;this.Ud=document.documentElement.style.overflow;t.b(document,"keydown",t.bind(this,this.Kc));document.documentElement.style.overflow="hidden";t.p(document.body,"vjs-full-window");this.o("enterFullWindow")};s.Kc=function(a){27===a.keyCode&&(this.isFullscreen()===f?this.exitFullscreen():this.Nb())};s.Nb=function(){this.je=l;t.n(document,"keydown",this.Kc);document.documentElement.style.overflow=this.Ud;t.r(document.body,"vjs-full-window");this.o("exitFullWindow")};
+s.selectSource=function(a){for(var c=0,d=this.q.techOrder;c'+this.v("Stream Type")+""+this.v("LIVE"),"aria-live":"off"});a.appendChild(this.B);return a};t.nc=t.w.extend({l:function(a,c){t.w.call(this,a,c);this.b(a,"play",this.$b);this.b(a,"pause",this.Zb)}});s=t.nc.prototype;s.sa="Play";
+s.T=function(){return"vjs-play-control "+t.w.prototype.T.call(this)};s.u=function(){this.d.paused()?this.d.play():this.d.pause()};s.$b=function(){this.r("vjs-paused");this.p("vjs-playing");this.c.children[0].children[0].innerHTML=this.v("Pause")};s.Zb=function(){this.r("vjs-playing");this.p("vjs-paused");this.c.children[0].children[0].innerHTML=this.v("Play")};t.vb=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.b(a,"timeupdate",this.ma)}});
+t.vb.prototype.e=function(){var a=t.a.prototype.e.call(this,"div",{className:"vjs-current-time vjs-time-controls vjs-control"});this.B=t.e("div",{className:"vjs-current-time-display",innerHTML:'Current Time 0:00',"aria-live":"off"});a.appendChild(this.B);return a};t.vb.prototype.ma=function(){var a=this.d.ob?this.d.K.currentTime:this.d.currentTime();this.B.innerHTML=''+this.v("Current Time")+" "+t.Ma(a,this.d.duration())};
+t.wb=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.b(a,"timeupdate",this.ma)}});t.wb.prototype.e=function(){var a=t.a.prototype.e.call(this,"div",{className:"vjs-duration vjs-time-controls vjs-control"});this.B=t.e("div",{className:"vjs-duration-display",innerHTML:''+this.v("Duration Time")+" 0:00","aria-live":"off"});a.appendChild(this.B);return a};
+t.wb.prototype.ma=function(){var a=this.d.duration();a&&(this.B.innerHTML=''+this.v("Duration Time")+" "+t.Ma(a))};t.tc=t.a.extend({l:function(a,c){t.a.call(this,a,c)}});t.tc.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-time-divider",innerHTML:"/
"})};t.Db=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.b(a,"timeupdate",this.ma)}});
+t.Db.prototype.e=function(){var a=t.a.prototype.e.call(this,"div",{className:"vjs-remaining-time vjs-time-controls vjs-control"});this.B=t.e("div",{className:"vjs-remaining-time-display",innerHTML:''+this.v("Remaining Time")+" -0:00","aria-live":"off"});a.appendChild(this.B);return a};t.Db.prototype.ma=function(){this.d.duration()&&(this.B.innerHTML=''+this.v("Remaining Time")+" -"+t.Ma(this.d.remainingTime()))};
+t.Za=t.w.extend({l:function(a,c){t.w.call(this,a,c)}});t.Za.prototype.sa="Fullscreen";t.Za.prototype.T=function(){return"vjs-fullscreen-control "+t.w.prototype.T.call(this)};t.Za.prototype.u=function(){this.d.isFullscreen()?(this.d.exitFullscreen(),this.Jb.innerHTML=this.v("Fullscreen")):(this.d.requestFullscreen(),this.Jb.innerHTML=this.v("Non-Fullscreen"))};t.Cb=t.a.extend({l:function(a,c){t.a.call(this,a,c)}});t.Cb.prototype.q={children:{seekBar:{}}};
+t.Cb.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-progress-control vjs-control"})};t.qc=t.S.extend({l:function(a,c){t.S.call(this,a,c);this.b(a,"timeupdate",this.Ca);a.I(t.bind(this,this.Ca))}});s=t.qc.prototype;s.q={children:{loadProgressBar:{},playProgressBar:{},seekHandle:{}},barName:"playProgressBar",handleName:"seekHandle"};s.Yc="timeupdate";s.e=function(){return t.S.prototype.e.call(this,"div",{className:"vjs-progress-holder","aria-label":"video progress bar"})};
+s.Ca=function(){var a=this.d.ob?this.d.K.currentTime:this.d.currentTime();this.c.setAttribute("aria-valuenow",t.round(100*this.Sb(),2));this.c.setAttribute("aria-valuetext",t.Ma(a,this.d.duration()))};s.Sb=function(){return this.d.currentTime()/this.d.duration()};s.mb=function(a){t.S.prototype.mb.call(this,a);this.d.ob=f;this.d.p("vjs-scrubbing");this.df=!this.d.paused();this.d.pause()};s.ka=function(a){a=ea(this,a)*this.d.duration();a==this.d.duration()&&(a-=0.1);this.d.currentTime(a)};
+s.za=function(a){t.S.prototype.za.call(this,a);this.d.ob=l;this.d.r("vjs-scrubbing");this.df&&this.d.play()};s.kd=function(){this.d.currentTime(this.d.currentTime()+5)};s.jd=function(){this.d.currentTime(this.d.currentTime()-5)};t.zb=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.b(a,"progress",this.update)}});t.zb.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.v("Loaded")+" : 0% "})};
+t.zb.prototype.update=function(){var a,c,d,e,g=this.d.buffered();a=this.d.duration();var h,k=this.d;h=k.buffered();k=k.duration();h=h.end(h.length-1);h>k&&(h=k);k=this.c.children;this.c.style.width=100*(h/a||0)+"%";for(a=0;ag.length;a--)this.c.removeChild(k[a-1])};t.mc=t.a.extend({l:function(a,c){t.a.call(this,a,c)}});
+t.mc.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-play-progress",innerHTML:''+this.v("Progress")+" : 0% "})};t.$a=t.ga.extend({l:function(a,c){t.ga.call(this,a,c);this.b(a,"timeupdate",this.ma)}});t.$a.prototype.defaultValue="00:00";t.$a.prototype.e=function(){return t.ga.prototype.e.call(this,"div",{className:"vjs-seek-handle","aria-live":"off"})};
+t.$a.prototype.ma=function(){var a=this.d.ob?this.d.K.currentTime:this.d.currentTime();this.c.innerHTML=''+t.Ma(a,this.d.duration())+" "};t.Gb=t.a.extend({l:function(a,c){t.a.call(this,a,c);a.h&&a.h.featuresVolumeControl===l&&this.p("vjs-hidden");this.b(a,"loadstart",function(){a.h.featuresVolumeControl===l?this.p("vjs-hidden"):this.r("vjs-hidden")})}});t.Gb.prototype.q={children:{volumeBar:{}}};
+t.Gb.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-volume-control vjs-control"})};t.Fb=t.S.extend({l:function(a,c){t.S.call(this,a,c);this.b(a,"volumechange",this.Ca);a.I(t.bind(this,this.Ca))}});s=t.Fb.prototype;s.Ca=function(){this.c.setAttribute("aria-valuenow",t.round(100*this.d.volume(),2));this.c.setAttribute("aria-valuetext",t.round(100*this.d.volume(),2)+"%")};s.q={children:{volumeLevel:{},volumeHandle:{}},barName:"volumeLevel",handleName:"volumeHandle"};
+s.Yc="volumechange";s.e=function(){return t.S.prototype.e.call(this,"div",{className:"vjs-volume-bar","aria-label":"volume level"})};s.ka=function(a){this.d.muted()&&this.d.muted(l);this.d.volume(ea(this,a))};s.Sb=function(){return this.d.muted()?0:this.d.volume()};s.kd=function(){this.d.volume(this.d.volume()+0.1)};s.jd=function(){this.d.volume(this.d.volume()-0.1)};t.uc=t.a.extend({l:function(a,c){t.a.call(this,a,c)}});
+t.uc.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-volume-level",innerHTML:' '})};t.Hb=t.ga.extend();t.Hb.prototype.defaultValue="00:00";t.Hb.prototype.e=function(){return t.ga.prototype.e.call(this,"div",{className:"vjs-volume-handle"})};
+t.qa=t.w.extend({l:function(a,c){t.w.call(this,a,c);this.b(a,"volumechange",this.update);a.h&&a.h.featuresVolumeControl===l&&this.p("vjs-hidden");this.b(a,"loadstart",function(){a.h.featuresVolumeControl===l?this.p("vjs-hidden"):this.r("vjs-hidden")})}});t.qa.prototype.e=function(){return t.w.prototype.e.call(this,"div",{className:"vjs-mute-control vjs-control",innerHTML:''+this.v("Mute")+"
"})};
+t.qa.prototype.u=function(){this.d.muted(this.d.muted()?l:f)};t.qa.prototype.update=function(){var a=this.d.volume(),c=3;0===a||this.d.muted()?c=0:0.33>a?c=1:0.67>a&&(c=2);this.d.muted()?this.c.children[0].children[0].innerHTML!=this.v("Unmute")&&(this.c.children[0].children[0].innerHTML=this.v("Unmute")):this.c.children[0].children[0].innerHTML!=this.v("Mute")&&(this.c.children[0].children[0].innerHTML=this.v("Mute"));for(a=0;4>a;a++)t.r(this.c,"vjs-vol-"+a);t.p(this.c,"vjs-vol-"+c)};
+t.Fa=t.O.extend({l:function(a,c){t.O.call(this,a,c);this.b(a,"volumechange",this.ef);a.h&&a.h.featuresVolumeControl===l&&this.p("vjs-hidden");this.b(a,"loadstart",function(){a.h.featuresVolumeControl===l?this.p("vjs-hidden"):this.r("vjs-hidden")});this.p("vjs-menu-button")}});t.Fa.prototype.Ja=function(){var a=new t.pa(this.d,{Cc:"div"}),c=new t.Fb(this.d,this.q.volumeBar);c.b("focus",function(){a.p("vjs-lock-showing")});c.b("blur",function(){G(a)});a.ba(c);return a};
+t.Fa.prototype.u=function(){t.qa.prototype.u.call(this);t.O.prototype.u.call(this)};t.Fa.prototype.e=function(){return t.w.prototype.e.call(this,"div",{className:"vjs-volume-menu-button vjs-menu-button vjs-control",innerHTML:''+this.v("Mute")+"
"})};t.Fa.prototype.ef=t.qa.prototype.update;t.oc=t.O.extend({l:function(a,c){t.O.call(this,a,c);this.sd();this.rd();this.b(a,"loadstart",this.sd);this.b(a,"ratechange",this.rd)}});s=t.oc.prototype;s.sa="Playback Rate";
+s.className="vjs-playback-rate";s.e=function(){var a=t.O.prototype.e.call(this);this.Sc=t.e("div",{className:"vjs-playback-rate-value",innerHTML:1});a.appendChild(this.Sc);return a};s.Ja=function(){var a=new t.pa(this.k()),c=this.k().options().playbackRates;if(c)for(var d=c.length-1;0<=d;d--)a.ba(new t.Bb(this.k(),{rate:c[d]+"x"}));return a};s.Ca=function(){this.m().setAttribute("aria-valuenow",this.k().playbackRate())};
+s.u=function(){for(var a=this.k().playbackRate(),c=this.k().options().playbackRates,d=c[0],e=0;ea){d=c[e];break}this.k().playbackRate(d)};function na(a){return a.k().h&&a.k().h.featuresPlaybackRate&&a.k().options().playbackRates&&0',"aria-label":"play video"})};t.sb.prototype.u=function(){this.d.play()};t.xb=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.update();this.b(a,"error",this.update)}});
+t.xb.prototype.e=function(){var a=t.a.prototype.e.call(this,"div",{className:"vjs-error-display"});this.B=t.e("div");a.appendChild(this.B);return a};t.xb.prototype.update=function(){this.k().error()&&(this.B.innerHTML=this.v(this.k().error().message))};var O;t.j=t.a.extend({l:function(a,c,d){c=c||{};c.dd=l;t.a.call(this,a,c,d);this.featuresProgressEvents||this.re();this.featuresTimeupdateEvents||this.se();this.fe();this.featuresNativeTextTracks||this.Vd();this.he()}});s=t.j.prototype;
+s.fe=function(){var a,c;a=this.k();c=function(){a.controls()&&!a.usingNativeControls()&&this.Id()};this.I(c);this.b(a,"controlsenabled",c);this.b(a,"controlsdisabled",this.He);this.I(function(){this.networkState&&0 '});e=t.i.D({data:a,width:"100%",height:"100%"},e);t.i.da(e,function(a,c){k+=a+'="'+c+'" '});return'"+h+" "};t.g.Ue={"rtmp/mp4":"MP4","rtmp/flv":"FLV"};t.g.Hf=function(a,c){return a+"&"+c};
+t.g.Te=function(a){var c={Bc:"",md:""};if(!a)return c;var d=a.indexOf("&"),e;-1!==d?e=d+1:(d=e=a.lastIndexOf("/")+1,0===d&&(d=e=a.length));c.Bc=a.substring(0,d);c.md=a.substring(e,a.length);return c};t.g.me=function(a){return a in t.g.Ue};t.g.Gd=/^rtmp[set]?:\/\//i;t.g.le=function(a){return t.g.Gd.test(a)};t.g.ac={};t.g.ac.eb=function(a){return t.g.me(a.type)||t.g.le(a.src)?"maybe":""};t.g.ac.Tb=function(a,c){var d=t.g.Te(a.src);c.setRtmpConnection(d.Bc);c.setRtmpStream(d.md)};t.g.Ra(t.g.ac);
+t.Fd=t.a.extend({l:function(a,c,d){t.a.call(this,a,c,d);if(!a.q.sources||0===a.q.sources.length){c=0;for(d=a.q.techOrder;c=e?d.push(g):g.startTime===g.endTime&&(g.startTime<=e&&g.startTime+0.5>=e)&&d.push(g);A=l;if(d.length!==this.Ga.length)A=f;else for(a=0;a>>0;if(0===g)return-1;d=+c||0;Infinity===Math.abs(d)&&(d=0);if(d>=g)return-1;for(d=Math.max(0<=d?d:g-Math.abs(d),0);d=this.H.length&&this.X();d&&(e=t.bind(this,this.update),d.addEventListener("removetrack",e),d.addEventListener("addtrack",e),this.d.b("dispose",function(){d.removeEventListener("removetrack",e);d.removeEventListener("addtrack",e)}))}});
+t.Q.prototype.Ia=function(){var a=[],c,d;this instanceof t.na&&(!this.k().h||!this.k().h.featuresNativeTextTracks)&&a.push(new t.tb(this.d,{kind:this.fa}));a.push(new t.Ab(this.d,{kind:this.fa}));d=this.d.textTracks();if(!d)return a;for(var e=0;ea?this.show():this.X()};t.ab=t.Q.extend({l:function(a,c,d){t.Q.call(this,a,c,d);this.c.setAttribute("aria-label","Subtitles Menu")}});t.ab.prototype.fa="subtitles";t.ab.prototype.sa="Subtitles";t.ab.prototype.className="vjs-subtitles-button";
+t.Xa=t.Q.extend({l:function(a,c,d){t.Q.call(this,a,c,d);this.c.setAttribute("aria-label","Chapters Menu")}});s=t.Xa.prototype;s.fa="chapters";s.sa="Chapters";s.className="vjs-chapters-button";s.Ia=function(){var a=[],c,d;d=this.d.textTracks();if(!d)return a;for(var e=0;e select").selectedIndex=0;this.m().querySelector(".vjs-bg-color > select").selectedIndex=0;this.m().querySelector(".window-color > select").selectedIndex=0;this.m().querySelector(".vjs-text-opacity > select").selectedIndex=
+0;this.m().querySelector(".vjs-bg-opacity > select").selectedIndex=0;this.m().querySelector(".vjs-window-opacity > select").selectedIndex=0;this.m().querySelector(".vjs-edge-style select").selectedIndex=0;this.m().querySelector(".vjs-font-family select").selectedIndex=0;this.m().querySelector(".vjs-font-percent select").selectedIndex=2;this.C()}));t.b(this.m().querySelector(".vjs-fg-color > select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-bg-color > select"),"change",t.bind(this,
+this.C));t.b(this.m().querySelector(".window-color > select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-text-opacity > select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-bg-opacity > select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-window-opacity > select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-font-percent select"),"change",t.bind(this,this.C));t.b(this.m().querySelector(".vjs-edge-style select"),"change",t.bind(this,
+this.C));t.b(this.m().querySelector(".vjs-font-family select"),"change",t.bind(this,this.C));a.options().persistTextTrackSettings&&this.Ie()}});s=t.sc.prototype;s.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:'Foreground --- White Black Red Green Blue Yellow Magenta Cyan --- Opaque Semi-Opaque
Background --- White Black Red Green Blue Yellow Magenta Cyan --- Opaque Semi-Transparent Transparent
Window --- White Black Red Green Blue Yellow Magenta Cyan --- Opaque Semi-Transparent Transparent
Font Size 50% 75% 100% 125% 150% 175% 200% 300% 400%
Text Edge Style None Raised Depressed Uniform Dropshadow
Font Family Default Monospace Serif Proportional Serif Monospace Sans-Serif Proportional Sans-Serif Casual Script Small Caps
Defaults Done
'})};
+s.Lc=function(){var a,c,d,e,g,h,k,p,r,u;a=this.m();g=X(a.querySelector(".vjs-edge-style select"));h=X(a.querySelector(".vjs-font-family select"));k=X(a.querySelector(".vjs-fg-color > select"));d=X(a.querySelector(".vjs-text-opacity > select"));p=X(a.querySelector(".vjs-bg-color > select"));c=X(a.querySelector(".vjs-bg-opacity > select"));r=X(a.querySelector(".window-color > select"));e=X(a.querySelector(".vjs-window-opacity > select"));a=window.parseFloat(X(a.querySelector(".vjs-font-percent > select")));
+c={backgroundOpacity:c,textOpacity:d,windowOpacity:e,edgeStyle:g,fontFamily:h,color:k,backgroundColor:p,windowColor:r,fontPercent:a};for(u in c)(""===c[u]||"none"===c[u]||"fontPercent"===u&&1===c[u])&&delete c[u];return c};
+s.Re=function(a){var c=this.m();Y(c.querySelector(".vjs-edge-style select"),a.La);Y(c.querySelector(".vjs-font-family select"),a.fontFamily);Y(c.querySelector(".vjs-fg-color > select"),a.color);Y(c.querySelector(".vjs-text-opacity > select"),a.nd);Y(c.querySelector(".vjs-bg-color > select"),a.backgroundColor);Y(c.querySelector(".vjs-bg-opacity > select"),a.yc);Y(c.querySelector(".window-color > select"),a.fc);Y(c.querySelector(".vjs-window-opacity > select"),a.ud);(a=a.Qb)&&(a=a.toFixed(2));Y(c.querySelector(".vjs-font-percent > select"),
+a)};s.Ie=function(){var a;try{a=JSON.parse(window.localStorage.getItem("vjs-text-track-settings"))}catch(c){}a&&this.Re(a)};s.Je=function(){var a;if(this.d.options().persistTextTrackSettings){a=this.Lc();try{t.ib(a)?window.localStorage.removeItem("vjs-text-track-settings"):window.localStorage.setItem("vjs-text-track-settings",JSON.stringify(a))}catch(c){}}};s.C=function(){var a=this.d.ea("textTrackDisplay");a&&a.C()};
+if("undefined"!==typeof window.JSON&&"function"===typeof window.JSON.parse)t.JSON=window.JSON;else{t.JSON={};var Z=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;t.JSON.parse=function(a,c){function d(a,e){var k,p,r=a[e];if(r&&"object"===typeof r)for(k in r)Object.prototype.hasOwnProperty.call(r,k)&&(p=d(r,k),p!==b?r[k]=p:delete r[k]);return c.call(a,e,r)}var e;a=String(a);Z.lastIndex=0;Z.test(a)&&(a=a.replace(Z,function(a){return"\\u"+("0000"+
+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof c?d({"":e},""):e;throw new SyntaxError("JSON.parse(): invalid or malformed JSON data");}}
+t.xc=function(){var a,c,d,e;a=document.getElementsByTagName("video");c=document.getElementsByTagName("audio");var g=[];if(a&&0a||a>100)throw new Error("Position must be between 0 and 100.");u=a,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",e({},j,{get:function(){return v},set:function(a){var b=d(a);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");v=b,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",e({},j,{get:function(){return w},set:function(a){if(0>a||a>100)throw new Error("Size must be between 0 and 100.");w=a,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",e({},j,{get:function(){return x},set:function(a){var b=d(a);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");x=b,this.hasBeenReset=!0}})),h.displayState=void 0,i?h:void 0}var g="auto",h={"":!0,lr:!0,rl:!0},i={start:!0,middle:!0,end:!0,left:!0,right:!0};f.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},a.VTTCue=a.VTTCue||f,b.VTTCue=f}(this,this.vttjs||{}),function(a,b){function c(a){if("string"!=typeof a)return!1;var b=f[a.toLowerCase()];return b?a.toLowerCase():!1}function d(a){return"number"==typeof a&&a>=0&&100>=a}function e(){var a=100,b=3,e=0,f=100,g=0,h=100,i="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return a},set:function(b){if(!d(b))throw new Error("Width must be between 0 and 100.");a=b}},lines:{enumerable:!0,get:function(){return b},set:function(a){if("number"!=typeof a)throw new TypeError("Lines must be set to a number.");b=a}},regionAnchorY:{enumerable:!0,get:function(){return f},set:function(a){if(!d(a))throw new Error("RegionAnchorX must be between 0 and 100.");f=a}},regionAnchorX:{enumerable:!0,get:function(){return e},set:function(a){if(!d(a))throw new Error("RegionAnchorY must be between 0 and 100.");e=a}},viewportAnchorY:{enumerable:!0,get:function(){return h},set:function(a){if(!d(a))throw new Error("ViewportAnchorY must be between 0 and 100.");h=a}},viewportAnchorX:{enumerable:!0,get:function(){return g},set:function(a){if(!d(a))throw new Error("ViewportAnchorX must be between 0 and 100.");g=a}},scroll:{enumerable:!0,get:function(){return i},set:function(a){var b=c(a);if(b===!1)throw new SyntaxError("An invalid or illegal string was specified.");i=b}}})}var f={"":!0,up:!0};a.VTTRegion=a.VTTRegion||e,b.VTTRegion=e}(this,this.vttjs||{}),function(a){function b(a,b){this.name="ParsingError",this.code=a.code,this.message=b||a.message}function c(a){function b(a,b,c,d){return 3600*(0|a)+60*(0|b)+(0|c)+(0|d)/1e3}var c=a.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return c?c[3]?b(c[1],c[2],c[3].replace(":",""),c[4]):c[1]>59?b(c[1],c[2],0,c[4]):b(0,c[1],c[2],c[4]):null}function d(){this.values=o(null)}function e(a,b,c,d){var e=d?a.split(d):[a];for(var f in e)if("string"==typeof e[f]){var g=e[f].split(c);if(2===g.length){var h=g[0],i=g[1];b(h,i)}}}function f(a,f,g){function h(){var d=c(a);if(null===d)throw new b(b.Errors.BadTimeStamp,"Malformed timestamp: "+k);return a=a.replace(/^[^\sa-zA-Z-]+/,""),d}function i(a,b){var c=new d;e(a,function(a,b){switch(a){case"region":for(var d=g.length-1;d>=0;d--)if(g[d].id===b){c.set(a,g[d].region);break}break;case"vertical":c.alt(a,b,["rl","lr"]);break;case"line":var e=b.split(","),f=e[0];c.integer(a,f),c.percent(a,f)?c.set("snapToLines",!1):null,c.alt(a,f,["auto"]),2===e.length&&c.alt("lineAlign",e[1],["start","middle","end"]);break;case"position":e=b.split(","),c.percent(a,e[0]),2===e.length&&c.alt("positionAlign",e[1],["start","middle","end"]);break;case"size":c.percent(a,b);break;case"align":c.alt(a,b,["start","middle","end","left","right"])}},/:/,/\s/),b.region=c.get("region",null),b.vertical=c.get("vertical",""),b.line=c.get("line","auto"),b.lineAlign=c.get("lineAlign","start"),b.snapToLines=c.get("snapToLines",!0),b.size=c.get("size",100),b.align=c.get("align","middle"),b.position=c.get("position",{start:0,left:0,middle:50,end:100,right:100},b.align),b.positionAlign=c.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},b.align)}function j(){a=a.replace(/^\s+/,"")}var k=a;if(j(),f.startTime=h(),j(),"-->"!==a.substr(0,3))throw new b(b.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+k);a=a.substr(3),j(),f.endTime=h(),j(),i(a,f)}function g(a,b){function d(){function a(a){return b=b.substr(a.length),a}if(!b)return null;var c=b.match(/^([^<]*)(<[^>]+>?)?/);return a(c[1]?c[1]:c[2])}function e(a){return p[a]}function f(a){for(;o=a.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)a=a.replace(o[0],e);return a}function g(a,b){return!s[b.localName]||s[b.localName]===a.localName}function h(b,c){var d=q[b];if(!d)return null;var e=a.document.createElement(d);e.localName=d;var f=r[b];return f&&c&&(e[f]=c.trim()),e}for(var i,j=a.document.createElement("div"),k=j,l=[];null!==(i=d());)if("<"!==i[0])k.appendChild(a.document.createTextNode(f(i)));else{if("/"===i[1]){l.length&&l[l.length-1]===i.substr(2).replace(">","")&&(l.pop(),k=k.parentNode);continue}var m,n=c(i.substr(1,i.length-2));if(n){m=a.document.createProcessingInstruction("timestamp",n),k.appendChild(m);continue}var o=i.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!o)continue;if(m=h(o[1],o[3]),!m)continue;if(!g(k,m))continue;o[2]&&(m.className=o[2].substr(1).replace("."," ")),l.push(o[1]),k.appendChild(m),k=m}return j}function h(a){function b(a,b){for(var c=b.childNodes.length-1;c>=0;c--)a.push(b.childNodes[c])}function c(a){if(!a||!a.length)return null;var d=a.pop(),e=d.textContent||d.innerText;if(e){var f=e.match(/^.*(\n|\r)/);return f?(a.length=0,f[0]):e}return"ruby"===d.tagName?c(a):d.childNodes?(b(a,d),c(a)):void 0}var d,e=[],f="";if(!a||!a.childNodes)return"ltr";for(b(e,a);f=c(e);)for(var g=0;g=0&&a.line<=100))return a.line;if(!a.track||!a.track.textTrackList||!a.track.textTrackList.mediaElement)return-1;for(var b=a.track,c=b.textTrackList,d=0,e=0;ei&&(e=new l(a),g=i),a=new l(f)}return e||f}var f=new l(b),g=b.cue,h=i(g),j=[];if(g.snapToLines){var k;switch(g.vertical){case"":j=["+y","-y"],k="height";break;case"rl":j=["+x","-x"],k="width";break;case"lr":j=["-x","+x"],k="width"}var m=f.lineHeight,n=m*Math.round(h),o=c[k]+m,p=j[0];Math.abs(n)>o&&(n=0>n?-1:1,n*=Math.ceil(o/m)*m),0>h&&(n+=""===g.vertical?c.height:c.width,j=j.reverse()),f.move(p,n)}else{var q=f.lineHeight/c.height*100;switch(g.lineAlign){case"middle":h-=q/2;break;case"end":h-=q}switch(g.vertical){case"":b.applyStyles({top:b.formatStyle(h,"%")});break;case"rl":b.applyStyles({left:b.formatStyle(h,"%")});break;case"lr":b.applyStyles({right:b.formatStyle(h,"%")})}j=["+y","-x","+x","-y"],f=new l(b)}var r=e(f,j);b.move(r.toCSSCompatValues(c))}function n(){}var o=Object.create||function(){function a(){}return function(b){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return a.prototype=b,new a}}();b.prototype=o(Error.prototype),b.prototype.constructor=b,b.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},d.prototype={set:function(a,b){this.get(a)||""===b||(this.values[a]=b)},get:function(a,b,c){return c?this.has(a)?this.values[a]:b[c]:this.has(a)?this.values[a]:b},has:function(a){return a in this.values},alt:function(a,b,c){for(var d=0;d=0&&100>=b)?(this.set(a,b),!0):!1}};var p={"&":"&","<":"<",">":">","":"","":""," ":" "},q={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},r={v:"title",lang:"lang"},s={rt:"ruby"},t=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];j.prototype.applyStyles=function(a,b){b=b||this.div;for(var c in a)a.hasOwnProperty(c)&&(b.style[c]=a[c])},j.prototype.formatStyle=function(a,b){return 0===a?0:a+b},k.prototype=o(j.prototype),k.prototype.constructor=k,l.prototype.move=function(a,b){switch(b=void 0!==b?b:this.lineHeight,a){case"+x":this.left+=b,this.right+=b;break;case"-x":this.left-=b,this.right-=b;break;case"+y":this.top+=b,this.bottom+=b;break;case"-y":this.top-=b,this.bottom-=b}},l.prototype.overlaps=function(a){return this.lefta.left&&this.topa.top},l.prototype.overlapsAny=function(a){for(var b=0;b=a.top&&this.bottom<=a.bottom&&this.left>=a.left&&this.right<=a.right},l.prototype.overlapsOppositeAxis=function(a,b){switch(b){case"+x":return this.lefta.right;case"+y":return this.topa.bottom}},l.prototype.intersectPercentage=function(a){var b=Math.max(0,Math.min(this.right,a.right)-Math.max(this.left,a.left)),c=Math.max(0,Math.min(this.bottom,a.bottom)-Math.max(this.top,a.top)),d=b*c;return d/(this.height*this.width)},l.prototype.toCSSCompatValues=function(a){return{top:this.top-a.top,bottom:a.bottom-this.bottom,left:this.left-a.left,right:a.right-this.right,height:this.height,width:this.width}},l.getSimpleBoxPosition=function(a){var b=a.div?a.div.offsetHeight:a.tagName?a.offsetHeight:0,c=a.div?a.div.offsetWidth:a.tagName?a.offsetWidth:0,d=a.div?a.div.offsetTop:a.tagName?a.offsetTop:0;a=a.div?a.div.getBoundingClientRect():a.tagName?a.getBoundingClientRect():a;var e={left:a.left,right:a.right,top:a.top||d,height:a.height||b,bottom:a.bottom||d+(a.height||b),width:a.width||c};return e},n.StringDecoder=function(){return{decode:function(a){if(!a)return"";if("string"!=typeof a)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(a))}}},n.convertCueToDOMTree=function(a,b){return a&&b?g(a,b):null};var u=.05,v="sans-serif",w="1.5%";n.processCues=function(a,b,c){function d(a){for(var b=0;b")){i.cue.id=j;continue}case"CUE":try{f(j,i.cue,i.regionList)}catch(m){i.reportOrThrowError(m),i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":var n=-1!==j.indexOf("-->");if(!j||n&&(l=!0)){i.oncue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}i.cue.text&&(i.cue.text+="\n"),i.cue.text+=j;continue;case"BADCUE":j||(i.state="ID");continue}}}catch(m){i.reportOrThrowError(m),"CUETEXT"===i.state&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state="INITIAL"===i.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var a=this;try{if(a.buffer+=a.decoder.decode(),(a.cue||"HEADER"===a.state)&&(a.buffer+="\n\n",a.parse()),"INITIAL"===a.state)throw new b(b.Errors.BadSignature)}catch(c){a.reportOrThrowError(c)}return a.onflush&&a.onflush(),this}},a.WebVTT=n}(this,this.vttjs||{});
\ No newline at end of file
diff --git a/js/video-js/video.novtt.dev.js b/js/video-js/video.novtt.dev.js
new file mode 100644
index 0000000..344f352
--- /dev/null
+++ b/js/video-js/video.novtt.dev.js
@@ -0,0 +1,9846 @@
+/**
+ * @fileoverview Main function src.
+ */
+
+// HTML5 Shiv. Must be in to support older browsers.
+document.createElement('video');
+document.createElement('audio');
+document.createElement('track');
+
+/**
+ * Doubles as the main function for users to create a player instance and also
+ * the main library object.
+ *
+ * **ALIASES** videojs, _V_ (deprecated)
+ *
+ * The `vjs` function can be used to initialize or retrieve a player.
+ *
+ * var myPlayer = vjs('my_video_id');
+ *
+ * @param {String|Element} id Video element or video element ID
+ * @param {Object=} options Optional options object for config/settings
+ * @param {Function=} ready Optional ready callback
+ * @return {vjs.Player} A player instance
+ * @namespace
+ */
+var vjs = function(id, options, ready){
+ var tag; // Element of ID
+
+ // Allow for element or ID to be passed in
+ // String ID
+ if (typeof id === 'string') {
+
+ // Adjust for jQuery ID syntax
+ if (id.indexOf('#') === 0) {
+ id = id.slice(1);
+ }
+
+ // If a player instance has already been created for this ID return it.
+ if (vjs.players[id]) {
+
+ // If options or ready funtion are passed, warn
+ if (options) {
+ vjs.log.warn ('Player "' + id + '" is already initialised. Options will not be applied.');
+ }
+
+ if (ready) {
+ vjs.players[id].ready(ready);
+ }
+
+ return vjs.players[id];
+
+ // Otherwise get element for ID
+ } else {
+ tag = vjs.el(id);
+ }
+
+ // ID is a media element
+ } else {
+ tag = id;
+ }
+
+ // Check for a useable element
+ if (!tag || !tag.nodeName) { // re: nodeName, could be a box div also
+ throw new TypeError('The element or ID supplied is not valid. (videojs)'); // Returns
+ }
+
+ // Element may have a player attr referring to an already created player instance.
+ // If not, set up a new player and return the instance.
+ return tag['player'] || new vjs.Player(tag, options, ready);
+};
+
+// Extended name, also available externally, window.videojs
+var videojs = window['videojs'] = vjs;
+
+// CDN Version. Used to target right flash swf.
+vjs.CDN_VERSION = '4.12';
+vjs.ACCESS_PROTOCOL = ('https:' == document.location.protocol ? 'https://' : 'http://');
+
+/**
+* Full player version
+* @type {string}
+*/
+vjs['VERSION'] = '4.12.1';
+
+/**
+ * Global Player instance options, surfaced from vjs.Player.prototype.options_
+ * vjs.options = vjs.Player.prototype.options_
+ * All options should use string keys so they avoid
+ * renaming by closure compiler
+ * @type {Object}
+ */
+vjs.options = {
+ // Default order of fallback technology
+ 'techOrder': ['html5','flash'],
+ // techOrder: ['flash','html5'],
+
+ 'html5': {},
+ 'flash': {},
+
+ // Default of web browser is 300x150. Should rely on source width/height.
+ 'width': 300,
+ 'height': 150,
+ // defaultVolume: 0.85,
+ 'defaultVolume': 0.00, // The freakin seaguls are driving me crazy!
+
+ // default playback rates
+ 'playbackRates': [],
+ // Add playback rate selection by adding rates
+ // 'playbackRates': [0.5, 1, 1.5, 2],
+
+ // default inactivity timeout
+ 'inactivityTimeout': 2000,
+
+ // Included control sets
+ 'children': {
+ 'mediaLoader': {},
+ 'posterImage': {},
+ 'loadingSpinner': {},
+ 'textTrackDisplay': {},
+ 'bigPlayButton': {},
+ 'controlBar': {},
+ 'errorDisplay': {},
+ 'textTrackSettings': {}
+ },
+
+ 'language': document.getElementsByTagName('html')[0].getAttribute('lang') || navigator.languages && navigator.languages[0] || navigator.userLanguage || navigator.language || 'en',
+
+ // locales and their language translations
+ 'languages': {},
+
+ // Default message to show when a video cannot be played.
+ 'notSupportedMessage': 'No compatible source was found for this video.'
+};
+
+// Set CDN Version of swf
+// The added (+) blocks the replace from changing this 4.12 string
+if (vjs.CDN_VERSION !== 'GENERATED'+'_CDN_VSN') {
+ videojs.options['flash']['swf'] = vjs.ACCESS_PROTOCOL + 'vjs.zencdn.net/'+vjs.CDN_VERSION+'/video-js.swf';
+}
+
+/**
+ * Utility function for adding languages to the default options. Useful for
+ * amending multiple language support at runtime.
+ *
+ * Example: vjs.addLanguage('es', {'Hello':'Hola'});
+ *
+ * @param {String} code The language code or dictionary property
+ * @param {Object} data The data values to be translated
+ * @return {Object} The resulting global languages dictionary object
+ */
+vjs.addLanguage = function(code, data){
+ if(vjs.options['languages'][code] !== undefined) {
+ vjs.options['languages'][code] = vjs.util.mergeOptions(vjs.options['languages'][code], data);
+ } else {
+ vjs.options['languages'][code] = data;
+ }
+ return vjs.options['languages'];
+};
+
+/**
+ * Global player list
+ * @type {Object}
+ */
+vjs.players = {};
+
+/*!
+ * Custom Universal Module Definition (UMD)
+ *
+ * Video.js will never be a non-browser lib so we can simplify UMD a bunch and
+ * still support requirejs and browserify. This also needs to be closure
+ * compiler compatible, so string keys are used.
+ */
+if (typeof define === 'function' && define['amd']) {
+ define('videojs', [], function(){ return videojs; });
+
+// checking that module is an object too because of umdjs/umd#35
+} else if (typeof exports === 'object' && typeof module === 'object') {
+ module['exports'] = videojs;
+}
+/**
+ * Core Object/Class for objects that use inheritance + constructors
+ *
+ * To create a class that can be subclassed itself, extend the CoreObject class.
+ *
+ * var Animal = CoreObject.extend();
+ * var Horse = Animal.extend();
+ *
+ * The constructor can be defined through the init property of an object argument.
+ *
+ * var Animal = CoreObject.extend({
+ * init: function(name, sound){
+ * this.name = name;
+ * }
+ * });
+ *
+ * Other methods and properties can be added the same way, or directly to the
+ * prototype.
+ *
+ * var Animal = CoreObject.extend({
+ * init: function(name){
+ * this.name = name;
+ * },
+ * getName: function(){
+ * return this.name;
+ * },
+ * sound: '...'
+ * });
+ *
+ * Animal.prototype.makeSound = function(){
+ * alert(this.sound);
+ * };
+ *
+ * To create an instance of a class, use the create method.
+ *
+ * var fluffy = Animal.create('Fluffy');
+ * fluffy.getName(); // -> Fluffy
+ *
+ * Methods and properties can be overridden in subclasses.
+ *
+ * var Horse = Animal.extend({
+ * sound: 'Neighhhhh!'
+ * });
+ *
+ * var horsey = Horse.create('Horsey');
+ * horsey.getName(); // -> Horsey
+ * horsey.makeSound(); // -> Alert: Neighhhhh!
+ *
+ * @class
+ * @constructor
+ */
+vjs.CoreObject = vjs['CoreObject'] = function(){};
+// Manually exporting vjs['CoreObject'] here for Closure Compiler
+// because of the use of the extend/create class methods
+// If we didn't do this, those functions would get flattened to something like
+// `a = ...` and `this.prototype` would refer to the global object instead of
+// CoreObject
+
+/**
+ * Create a new object that inherits from this Object
+ *
+ * var Animal = CoreObject.extend();
+ * var Horse = Animal.extend();
+ *
+ * @param {Object} props Functions and properties to be applied to the
+ * new object's prototype
+ * @return {vjs.CoreObject} An object that inherits from CoreObject
+ * @this {*}
+ */
+vjs.CoreObject.extend = function(props){
+ var init, subObj;
+
+ props = props || {};
+ // Set up the constructor using the supplied init method
+ // or using the init of the parent object
+ // Make sure to check the unobfuscated version for external libs
+ init = props['init'] || props.init || this.prototype['init'] || this.prototype.init || function(){};
+ // In Resig's simple class inheritance (previously used) the constructor
+ // is a function that calls `this.init.apply(arguments)`
+ // However that would prevent us from using `ParentObject.call(this);`
+ // in a Child constructor because the `this` in `this.init`
+ // would still refer to the Child and cause an infinite loop.
+ // We would instead have to do
+ // `ParentObject.prototype.init.apply(this, arguments);`
+ // Bleh. We're not creating a _super() function, so it's good to keep
+ // the parent constructor reference simple.
+ subObj = function(){
+ init.apply(this, arguments);
+ };
+
+ // Inherit from this object's prototype
+ subObj.prototype = vjs.obj.create(this.prototype);
+ // Reset the constructor property for subObj otherwise
+ // instances of subObj would have the constructor of the parent Object
+ subObj.prototype.constructor = subObj;
+
+ // Make the class extendable
+ subObj.extend = vjs.CoreObject.extend;
+ // Make a function for creating instances
+ subObj.create = vjs.CoreObject.create;
+
+ // Extend subObj's prototype with functions and other properties from props
+ for (var name in props) {
+ if (props.hasOwnProperty(name)) {
+ subObj.prototype[name] = props[name];
+ }
+ }
+
+ return subObj;
+};
+
+/**
+ * Create a new instance of this Object class
+ *
+ * var myAnimal = Animal.create();
+ *
+ * @return {vjs.CoreObject} An instance of a CoreObject subclass
+ * @this {*}
+ */
+vjs.CoreObject.create = function(){
+ // Create a new object that inherits from this object's prototype
+ var inst = vjs.obj.create(this.prototype);
+
+ // Apply this constructor function to the new object
+ this.apply(inst, arguments);
+
+ // Return the new object
+ return inst;
+};
+/**
+ * @fileoverview Event System (John Resig - Secrets of a JS Ninja http://jsninja.com/)
+ * (Original book version wasn't completely usable, so fixed some things and made Closure Compiler compatible)
+ * This should work very similarly to jQuery's events, however it's based off the book version which isn't as
+ * robust as jquery's, so there's probably some differences.
+ */
+
+/**
+ * Add an event listener to element
+ * It stores the handler function in a separate cache object
+ * and adds a generic handler to the element's event,
+ * along with a unique id (guid) to the element.
+ * @param {Element|Object} elem Element or object to bind listeners to
+ * @param {String|Array} type Type of event to bind to.
+ * @param {Function} fn Event listener.
+ * @private
+ */
+vjs.on = function(elem, type, fn){
+ if (vjs.obj.isArray(type)) {
+ return _handleMultipleEvents(vjs.on, elem, type, fn);
+ }
+
+ var data = vjs.getData(elem);
+
+ // We need a place to store all our handler data
+ if (!data.handlers) data.handlers = {};
+
+ if (!data.handlers[type]) data.handlers[type] = [];
+
+ if (!fn.guid) fn.guid = vjs.guid++;
+
+ data.handlers[type].push(fn);
+
+ if (!data.dispatcher) {
+ data.disabled = false;
+
+ data.dispatcher = function (event){
+
+ if (data.disabled) return;
+ event = vjs.fixEvent(event);
+
+ var handlers = data.handlers[event.type];
+
+ if (handlers) {
+ // Copy handlers so if handlers are added/removed during the process it doesn't throw everything off.
+ var handlersCopy = handlers.slice(0);
+
+ for (var m = 0, n = handlersCopy.length; m < n; m++) {
+ if (event.isImmediatePropagationStopped()) {
+ break;
+ } else {
+ handlersCopy[m].call(elem, event);
+ }
+ }
+ }
+ };
+ }
+
+ if (data.handlers[type].length == 1) {
+ if (elem.addEventListener) {
+ elem.addEventListener(type, data.dispatcher, false);
+ } else if (elem.attachEvent) {
+ elem.attachEvent('on' + type, data.dispatcher);
+ }
+ }
+};
+
+/**
+ * Removes event listeners from an element
+ * @param {Element|Object} elem Object to remove listeners from
+ * @param {String|Array=} type Type of listener to remove. Don't include to remove all events from element.
+ * @param {Function} fn Specific listener to remove. Don't include to remove listeners for an event type.
+ * @private
+ */
+vjs.off = function(elem, type, fn) {
+ // Don't want to add a cache object through getData if not needed
+ if (!vjs.hasData(elem)) return;
+
+ var data = vjs.getData(elem);
+
+ // If no events exist, nothing to unbind
+ if (!data.handlers) { return; }
+
+ if (vjs.obj.isArray(type)) {
+ return _handleMultipleEvents(vjs.off, elem, type, fn);
+ }
+
+ // Utility function
+ var removeType = function(t){
+ data.handlers[t] = [];
+ vjs.cleanUpEvents(elem,t);
+ };
+
+ // Are we removing all bound events?
+ if (!type) {
+ for (var t in data.handlers) removeType(t);
+ return;
+ }
+
+ var handlers = data.handlers[type];
+
+ // If no handlers exist, nothing to unbind
+ if (!handlers) return;
+
+ // If no listener was provided, remove all listeners for type
+ if (!fn) {
+ removeType(type);
+ return;
+ }
+
+ // We're only removing a single handler
+ if (fn.guid) {
+ for (var n = 0; n < handlers.length; n++) {
+ if (handlers[n].guid === fn.guid) {
+ handlers.splice(n--, 1);
+ }
+ }
+ }
+
+ vjs.cleanUpEvents(elem, type);
+};
+
+/**
+ * Clean up the listener cache and dispatchers
+ * @param {Element|Object} elem Element to clean up
+ * @param {String} type Type of event to clean up
+ * @private
+ */
+vjs.cleanUpEvents = function(elem, type) {
+ var data = vjs.getData(elem);
+
+ // Remove the events of a particular type if there are none left
+ if (data.handlers[type].length === 0) {
+ delete data.handlers[type];
+ // data.handlers[type] = null;
+ // Setting to null was causing an error with data.handlers
+
+ // Remove the meta-handler from the element
+ if (elem.removeEventListener) {
+ elem.removeEventListener(type, data.dispatcher, false);
+ } else if (elem.detachEvent) {
+ elem.detachEvent('on' + type, data.dispatcher);
+ }
+ }
+
+ // Remove the events object if there are no types left
+ if (vjs.isEmpty(data.handlers)) {
+ delete data.handlers;
+ delete data.dispatcher;
+ delete data.disabled;
+
+ // data.handlers = null;
+ // data.dispatcher = null;
+ // data.disabled = null;
+ }
+
+ // Finally remove the expando if there is no data left
+ if (vjs.isEmpty(data)) {
+ vjs.removeData(elem);
+ }
+};
+
+/**
+ * Fix a native event to have standard property values
+ * @param {Object} event Event object to fix
+ * @return {Object}
+ * @private
+ */
+vjs.fixEvent = function(event) {
+
+ function returnTrue() { return true; }
+ function returnFalse() { return false; }
+
+ // Test if fixing up is needed
+ // Used to check if !event.stopPropagation instead of isPropagationStopped
+ // But native events return true for stopPropagation, but don't have
+ // other expected methods like isPropagationStopped. Seems to be a problem
+ // with the Javascript Ninja code. So we're just overriding all events now.
+ if (!event || !event.isPropagationStopped) {
+ var old = event || window.event;
+
+ event = {};
+ // Clone the old object so that we can modify the values event = {};
+ // IE8 Doesn't like when you mess with native event properties
+ // Firefox returns false for event.hasOwnProperty('type') and other props
+ // which makes copying more difficult.
+ // TODO: Probably best to create a whitelist of event props
+ for (var key in old) {
+ // Safari 6.0.3 warns you if you try to copy deprecated layerX/Y
+ // Chrome warns you if you try to copy deprecated keyboardEvent.keyLocation
+ if (key !== 'layerX' && key !== 'layerY' && key !== 'keyLocation') {
+ // Chrome 32+ warns if you try to copy deprecated returnValue, but
+ // we still want to if preventDefault isn't supported (IE8).
+ if (!(key == 'returnValue' && old.preventDefault)) {
+ event[key] = old[key];
+ }
+ }
+ }
+
+ // The event occurred on this element
+ if (!event.target) {
+ event.target = event.srcElement || document;
+ }
+
+ // Handle which other element the event is related to
+ event.relatedTarget = event.fromElement === event.target ?
+ event.toElement :
+ event.fromElement;
+
+ // Stop the default browser action
+ event.preventDefault = function () {
+ if (old.preventDefault) {
+ old.preventDefault();
+ }
+ event.returnValue = false;
+ event.isDefaultPrevented = returnTrue;
+ event.defaultPrevented = true;
+ };
+
+ event.isDefaultPrevented = returnFalse;
+ event.defaultPrevented = false;
+
+ // Stop the event from bubbling
+ event.stopPropagation = function () {
+ if (old.stopPropagation) {
+ old.stopPropagation();
+ }
+ event.cancelBubble = true;
+ event.isPropagationStopped = returnTrue;
+ };
+
+ event.isPropagationStopped = returnFalse;
+
+ // Stop the event from bubbling and executing other handlers
+ event.stopImmediatePropagation = function () {
+ if (old.stopImmediatePropagation) {
+ old.stopImmediatePropagation();
+ }
+ event.isImmediatePropagationStopped = returnTrue;
+ event.stopPropagation();
+ };
+
+ event.isImmediatePropagationStopped = returnFalse;
+
+ // Handle mouse position
+ if (event.clientX != null) {
+ var doc = document.documentElement, body = document.body;
+
+ event.pageX = event.clientX +
+ (doc && doc.scrollLeft || body && body.scrollLeft || 0) -
+ (doc && doc.clientLeft || body && body.clientLeft || 0);
+ event.pageY = event.clientY +
+ (doc && doc.scrollTop || body && body.scrollTop || 0) -
+ (doc && doc.clientTop || body && body.clientTop || 0);
+ }
+
+ // Handle key presses
+ event.which = event.charCode || event.keyCode;
+
+ // Fix button for mouse clicks:
+ // 0 == left; 1 == middle; 2 == right
+ if (event.button != null) {
+ event.button = (event.button & 1 ? 0 :
+ (event.button & 4 ? 1 :
+ (event.button & 2 ? 2 : 0)));
+ }
+ }
+
+ // Returns fixed-up instance
+ return event;
+};
+
+/**
+ * Trigger an event for an element
+ * @param {Element|Object} elem Element to trigger an event on
+ * @param {Event|Object|String} event A string (the type) or an event object with a type attribute
+ * @private
+ */
+vjs.trigger = function(elem, event) {
+ // Fetches element data and a reference to the parent (for bubbling).
+ // Don't want to add a data object to cache for every parent,
+ // so checking hasData first.
+ var elemData = (vjs.hasData(elem)) ? vjs.getData(elem) : {};
+ var parent = elem.parentNode || elem.ownerDocument;
+ // type = event.type || event,
+ // handler;
+
+ // If an event name was passed as a string, creates an event out of it
+ if (typeof event === 'string') {
+ event = { type:event, target:elem };
+ }
+ // Normalizes the event properties.
+ event = vjs.fixEvent(event);
+
+ // If the passed element has a dispatcher, executes the established handlers.
+ if (elemData.dispatcher) {
+ elemData.dispatcher.call(elem, event);
+ }
+
+ // Unless explicitly stopped or the event does not bubble (e.g. media events)
+ // recursively calls this function to bubble the event up the DOM.
+ if (parent && !event.isPropagationStopped() && event.bubbles !== false) {
+ vjs.trigger(parent, event);
+
+ // If at the top of the DOM, triggers the default action unless disabled.
+ } else if (!parent && !event.defaultPrevented) {
+ var targetData = vjs.getData(event.target);
+
+ // Checks if the target has a default action for this event.
+ if (event.target[event.type]) {
+ // Temporarily disables event dispatching on the target as we have already executed the handler.
+ targetData.disabled = true;
+ // Executes the default action.
+ if (typeof event.target[event.type] === 'function') {
+ event.target[event.type]();
+ }
+ // Re-enables event dispatching.
+ targetData.disabled = false;
+ }
+ }
+
+ // Inform the triggerer if the default was prevented by returning false
+ return !event.defaultPrevented;
+ /* Original version of js ninja events wasn't complete.
+ * We've since updated to the latest version, but keeping this around
+ * for now just in case.
+ */
+ // // Added in addition to book. Book code was broke.
+ // event = typeof event === 'object' ?
+ // event[vjs.expando] ?
+ // event :
+ // new vjs.Event(type, event) :
+ // new vjs.Event(type);
+
+ // event.type = type;
+ // if (handler) {
+ // handler.call(elem, event);
+ // }
+
+ // // Clean up the event in case it is being reused
+ // event.result = undefined;
+ // event.target = elem;
+};
+
+/**
+ * Trigger a listener only once for an event
+ * @param {Element|Object} elem Element or object to
+ * @param {String|Array} type
+ * @param {Function} fn
+ * @private
+ */
+vjs.one = function(elem, type, fn) {
+ if (vjs.obj.isArray(type)) {
+ return _handleMultipleEvents(vjs.one, elem, type, fn);
+ }
+ var func = function(){
+ vjs.off(elem, type, func);
+ fn.apply(this, arguments);
+ };
+ // copy the guid to the new function so it can removed using the original function's ID
+ func.guid = fn.guid = fn.guid || vjs.guid++;
+ vjs.on(elem, type, func);
+};
+
+/**
+ * Loops through an array of event types and calls the requested method for each type.
+ * @param {Function} fn The event method we want to use.
+ * @param {Element|Object} elem Element or object to bind listeners to
+ * @param {String} type Type of event to bind to.
+ * @param {Function} callback Event listener.
+ * @private
+ */
+function _handleMultipleEvents(fn, elem, type, callback) {
+ vjs.arr.forEach(type, function(type) {
+ fn(elem, type, callback); //Call the event method for each one of the types
+ });
+}
+var hasOwnProp = Object.prototype.hasOwnProperty;
+
+/**
+ * Creates an element and applies properties.
+ * @param {String=} tagName Name of tag to be created.
+ * @param {Object=} properties Element properties to be applied.
+ * @return {Element}
+ * @private
+ */
+vjs.createEl = function(tagName, properties){
+ var el;
+
+ tagName = tagName || 'div';
+ properties = properties || {};
+
+ el = document.createElement(tagName);
+
+ vjs.obj.each(properties, function(propName, val){
+ // Not remembering why we were checking for dash
+ // but using setAttribute means you have to use getAttribute
+
+ // The check for dash checks for the aria-* attributes, like aria-label, aria-valuemin.
+ // The additional check for "role" is because the default method for adding attributes does not
+ // add the attribute "role". My guess is because it's not a valid attribute in some namespaces, although
+ // browsers handle the attribute just fine. The W3C allows for aria-* attributes to be used in pre-HTML5 docs.
+ // http://www.w3.org/TR/wai-aria-primer/#ariahtml. Using setAttribute gets around this problem.
+ if (propName.indexOf('aria-') !== -1 || propName == 'role') {
+ el.setAttribute(propName, val);
+ } else {
+ el[propName] = val;
+ }
+ });
+
+ return el;
+};
+
+/**
+ * Uppercase the first letter of a string
+ * @param {String} string String to be uppercased
+ * @return {String}
+ * @private
+ */
+vjs.capitalize = function(string){
+ return string.charAt(0).toUpperCase() + string.slice(1);
+};
+
+/**
+ * Object functions container
+ * @type {Object}
+ * @private
+ */
+vjs.obj = {};
+
+/**
+ * Object.create shim for prototypal inheritance
+ *
+ * https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/create
+ *
+ * @function
+ * @param {Object} obj Object to use as prototype
+ * @private
+ */
+vjs.obj.create = Object.create || function(obj){
+ //Create a new function called 'F' which is just an empty object.
+ function F() {}
+
+ //the prototype of the 'F' function should point to the
+ //parameter of the anonymous function.
+ F.prototype = obj;
+
+ //create a new constructor function based off of the 'F' function.
+ return new F();
+};
+
+/**
+ * Loop through each property in an object and call a function
+ * whose arguments are (key,value)
+ * @param {Object} obj Object of properties
+ * @param {Function} fn Function to be called on each property.
+ * @this {*}
+ * @private
+ */
+vjs.obj.each = function(obj, fn, context){
+ for (var key in obj) {
+ if (hasOwnProp.call(obj, key)) {
+ fn.call(context || this, key, obj[key]);
+ }
+ }
+};
+
+/**
+ * Merge two objects together and return the original.
+ * @param {Object} obj1
+ * @param {Object} obj2
+ * @return {Object}
+ * @private
+ */
+vjs.obj.merge = function(obj1, obj2){
+ if (!obj2) { return obj1; }
+ for (var key in obj2){
+ if (hasOwnProp.call(obj2, key)) {
+ obj1[key] = obj2[key];
+ }
+ }
+ return obj1;
+};
+
+/**
+ * Merge two objects, and merge any properties that are objects
+ * instead of just overwriting one. Uses to merge options hashes
+ * where deeper default settings are important.
+ * @param {Object} obj1 Object to override
+ * @param {Object} obj2 Overriding object
+ * @return {Object} New object. Obj1 and Obj2 will be untouched.
+ * @private
+ */
+vjs.obj.deepMerge = function(obj1, obj2){
+ var key, val1, val2;
+
+ // make a copy of obj1 so we're not overwriting original values.
+ // like prototype.options_ and all sub options objects
+ obj1 = vjs.obj.copy(obj1);
+
+ for (key in obj2){
+ if (hasOwnProp.call(obj2, key)) {
+ val1 = obj1[key];
+ val2 = obj2[key];
+
+ // Check if both properties are pure objects and do a deep merge if so
+ if (vjs.obj.isPlain(val1) && vjs.obj.isPlain(val2)) {
+ obj1[key] = vjs.obj.deepMerge(val1, val2);
+ } else {
+ obj1[key] = obj2[key];
+ }
+ }
+ }
+ return obj1;
+};
+
+/**
+ * Make a copy of the supplied object
+ * @param {Object} obj Object to copy
+ * @return {Object} Copy of object
+ * @private
+ */
+vjs.obj.copy = function(obj){
+ return vjs.obj.merge({}, obj);
+};
+
+/**
+ * Check if an object is plain, and not a dom node or any object sub-instance
+ * @param {Object} obj Object to check
+ * @return {Boolean} True if plain, false otherwise
+ * @private
+ */
+vjs.obj.isPlain = function(obj){
+ return !!obj
+ && typeof obj === 'object'
+ && obj.toString() === '[object Object]'
+ && obj.constructor === Object;
+};
+
+/**
+ * Check if an object is Array
+* Since instanceof Array will not work on arrays created in another frame we need to use Array.isArray, but since IE8 does not support Array.isArray we need this shim
+ * @param {Object} obj Object to check
+ * @return {Boolean} True if plain, false otherwise
+ * @private
+ */
+vjs.obj.isArray = Array.isArray || function(arr) {
+ return Object.prototype.toString.call(arr) === '[object Array]';
+};
+
+/**
+ * Check to see whether the input is NaN or not.
+ * NaN is the only JavaScript construct that isn't equal to itself
+ * @param {Number} num Number to check
+ * @return {Boolean} True if NaN, false otherwise
+ * @private
+ */
+vjs.isNaN = function(num) {
+ return num !== num;
+};
+
+/**
+ * Bind (a.k.a proxy or Context). A simple method for changing the context of a function
+ It also stores a unique id on the function so it can be easily removed from events
+ * @param {*} context The object to bind as scope
+ * @param {Function} fn The function to be bound to a scope
+ * @param {Number=} uid An optional unique ID for the function to be set
+ * @return {Function}
+ * @private
+ */
+vjs.bind = function(context, fn, uid) {
+ // Make sure the function has a unique ID
+ if (!fn.guid) { fn.guid = vjs.guid++; }
+
+ // Create the new function that changes the context
+ var ret = function() {
+ return fn.apply(context, arguments);
+ };
+
+ // Allow for the ability to individualize this function
+ // Needed in the case where multiple objects might share the same prototype
+ // IF both items add an event listener with the same function, then you try to remove just one
+ // it will remove both because they both have the same guid.
+ // when using this, you need to use the bind method when you remove the listener as well.
+ // currently used in text tracks
+ ret.guid = (uid) ? uid + '_' + fn.guid : fn.guid;
+
+ return ret;
+};
+
+/**
+ * Element Data Store. Allows for binding data to an element without putting it directly on the element.
+ * Ex. Event listeners are stored here.
+ * (also from jsninja.com, slightly modified and updated for closure compiler)
+ * @type {Object}
+ * @private
+ */
+vjs.cache = {};
+
+/**
+ * Unique ID for an element or function
+ * @type {Number}
+ * @private
+ */
+vjs.guid = 1;
+
+/**
+ * Unique attribute name to store an element's guid in
+ * @type {String}
+ * @constant
+ * @private
+ */
+vjs.expando = 'vdata' + (new Date()).getTime();
+
+/**
+ * Returns the cache object where data for an element is stored
+ * @param {Element} el Element to store data for.
+ * @return {Object}
+ * @private
+ */
+vjs.getData = function(el){
+ var id = el[vjs.expando];
+ if (!id) {
+ id = el[vjs.expando] = vjs.guid++;
+ }
+ if (!vjs.cache[id]) {
+ vjs.cache[id] = {};
+ }
+ return vjs.cache[id];
+};
+
+/**
+ * Returns the cache object where data for an element is stored
+ * @param {Element} el Element to store data for.
+ * @return {Object}
+ * @private
+ */
+vjs.hasData = function(el){
+ var id = el[vjs.expando];
+ return !(!id || vjs.isEmpty(vjs.cache[id]));
+};
+
+/**
+ * Delete data for the element from the cache and the guid attr from getElementById
+ * @param {Element} el Remove data for an element
+ * @private
+ */
+vjs.removeData = function(el){
+ var id = el[vjs.expando];
+ if (!id) { return; }
+ // Remove all stored data
+ // Changed to = null
+ // http://coding.smashingmagazine.com/2012/11/05/writing-fast-memory-efficient-javascript/
+ // vjs.cache[id] = null;
+ delete vjs.cache[id];
+
+ // Remove the expando property from the DOM node
+ try {
+ delete el[vjs.expando];
+ } catch(e) {
+ if (el.removeAttribute) {
+ el.removeAttribute(vjs.expando);
+ } else {
+ // IE doesn't appear to support removeAttribute on the document element
+ el[vjs.expando] = null;
+ }
+ }
+};
+
+/**
+ * Check if an object is empty
+ * @param {Object} obj The object to check for emptiness
+ * @return {Boolean}
+ * @private
+ */
+vjs.isEmpty = function(obj) {
+ for (var prop in obj) {
+ // Inlude null properties as empty.
+ if (obj[prop] !== null) {
+ return false;
+ }
+ }
+ return true;
+};
+
+/**
+ * Check if an element has a CSS class
+ * @param {Element} element Element to check
+ * @param {String} classToCheck Classname to check
+ * @private
+ */
+vjs.hasClass = function(element, classToCheck){
+ return ((' ' + element.className + ' ').indexOf(' ' + classToCheck + ' ') !== -1);
+};
+
+
+/**
+ * Add a CSS class name to an element
+ * @param {Element} element Element to add class name to
+ * @param {String} classToAdd Classname to add
+ * @private
+ */
+vjs.addClass = function(element, classToAdd){
+ if (!vjs.hasClass(element, classToAdd)) {
+ element.className = element.className === '' ? classToAdd : element.className + ' ' + classToAdd;
+ }
+};
+
+/**
+ * Remove a CSS class name from an element
+ * @param {Element} element Element to remove from class name
+ * @param {String} classToAdd Classname to remove
+ * @private
+ */
+vjs.removeClass = function(element, classToRemove){
+ var classNames, i;
+
+ if (!vjs.hasClass(element, classToRemove)) {return;}
+
+ classNames = element.className.split(' ');
+
+ // no arr.indexOf in ie8, and we don't want to add a big shim
+ for (i = classNames.length - 1; i >= 0; i--) {
+ if (classNames[i] === classToRemove) {
+ classNames.splice(i,1);
+ }
+ }
+
+ element.className = classNames.join(' ');
+};
+
+/**
+ * Element for testing browser HTML5 video capabilities
+ * @type {Element}
+ * @constant
+ * @private
+ */
+vjs.TEST_VID = vjs.createEl('video');
+(function() {
+ var track = document.createElement('track');
+ track.kind = 'captions';
+ track.srclang = 'en';
+ track.label = 'English';
+ vjs.TEST_VID.appendChild(track);
+})();
+
+/**
+ * Useragent for browser testing.
+ * @type {String}
+ * @constant
+ * @private
+ */
+vjs.USER_AGENT = navigator.userAgent;
+
+/**
+ * Device is an iPhone
+ * @type {Boolean}
+ * @constant
+ * @private
+ */
+vjs.IS_IPHONE = (/iPhone/i).test(vjs.USER_AGENT);
+vjs.IS_IPAD = (/iPad/i).test(vjs.USER_AGENT);
+vjs.IS_IPOD = (/iPod/i).test(vjs.USER_AGENT);
+vjs.IS_IOS = vjs.IS_IPHONE || vjs.IS_IPAD || vjs.IS_IPOD;
+
+vjs.IOS_VERSION = (function(){
+ var match = vjs.USER_AGENT.match(/OS (\d+)_/i);
+ if (match && match[1]) { return match[1]; }
+})();
+
+vjs.IS_ANDROID = (/Android/i).test(vjs.USER_AGENT);
+vjs.ANDROID_VERSION = (function() {
+ // This matches Android Major.Minor.Patch versions
+ // ANDROID_VERSION is Major.Minor as a Number, if Minor isn't available, then only Major is returned
+ var match = vjs.USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),
+ major,
+ minor;
+
+ if (!match) {
+ return null;
+ }
+
+ major = match[1] && parseFloat(match[1]);
+ minor = match[2] && parseFloat(match[2]);
+
+ if (major && minor) {
+ return parseFloat(match[1] + '.' + match[2]);
+ } else if (major) {
+ return major;
+ } else {
+ return null;
+ }
+})();
+// Old Android is defined as Version older than 2.3, and requiring a webkit version of the android browser
+vjs.IS_OLD_ANDROID = vjs.IS_ANDROID && (/webkit/i).test(vjs.USER_AGENT) && vjs.ANDROID_VERSION < 2.3;
+
+vjs.IS_FIREFOX = (/Firefox/i).test(vjs.USER_AGENT);
+vjs.IS_CHROME = (/Chrome/i).test(vjs.USER_AGENT);
+vjs.IS_IE8 = (/MSIE\s8\.0/).test(vjs.USER_AGENT);
+
+vjs.TOUCH_ENABLED = !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof window.DocumentTouch);
+vjs.BACKGROUND_SIZE_SUPPORTED = 'backgroundSize' in vjs.TEST_VID.style;
+
+/**
+ * Apply attributes to an HTML element.
+ * @param {Element} el Target element.
+ * @param {Object=} attributes Element attributes to be applied.
+ * @private
+ */
+vjs.setElementAttributes = function(el, attributes){
+ vjs.obj.each(attributes, function(attrName, attrValue) {
+ if (attrValue === null || typeof attrValue === 'undefined' || attrValue === false) {
+ el.removeAttribute(attrName);
+ } else {
+ el.setAttribute(attrName, (attrValue === true ? '' : attrValue));
+ }
+ });
+};
+
+/**
+ * Get an element's attribute values, as defined on the HTML tag
+ * Attributes are not the same as properties. They're defined on the tag
+ * or with setAttribute (which shouldn't be used with HTML)
+ * This will return true or false for boolean attributes.
+ * @param {Element} tag Element from which to get tag attributes
+ * @return {Object}
+ * @private
+ */
+vjs.getElementAttributes = function(tag){
+ var obj, knownBooleans, attrs, attrName, attrVal;
+
+ obj = {};
+
+ // known boolean attributes
+ // we can check for matching boolean properties, but older browsers
+ // won't know about HTML5 boolean attributes that we still read from
+ knownBooleans = ','+'autoplay,controls,loop,muted,default'+',';
+
+ if (tag && tag.attributes && tag.attributes.length > 0) {
+ attrs = tag.attributes;
+
+ for (var i = attrs.length - 1; i >= 0; i--) {
+ attrName = attrs[i].name;
+ attrVal = attrs[i].value;
+
+ // check for known booleans
+ // the matching element property will return a value for typeof
+ if (typeof tag[attrName] === 'boolean' || knownBooleans.indexOf(','+attrName+',') !== -1) {
+ // the value of an included boolean attribute is typically an empty
+ // string ('') which would equal false if we just check for a false value.
+ // we also don't want support bad code like autoplay='false'
+ attrVal = (attrVal !== null) ? true : false;
+ }
+
+ obj[attrName] = attrVal;
+ }
+ }
+
+ return obj;
+};
+
+/**
+ * Get the computed style value for an element
+ * From http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/
+ * @param {Element} el Element to get style value for
+ * @param {String} strCssRule Style name
+ * @return {String} Style value
+ * @private
+ */
+vjs.getComputedDimension = function(el, strCssRule){
+ var strValue = '';
+ if(document.defaultView && document.defaultView.getComputedStyle){
+ strValue = document.defaultView.getComputedStyle(el, '').getPropertyValue(strCssRule);
+
+ } else if(el.currentStyle){
+ // IE8 Width/Height support
+ strValue = el['client'+strCssRule.substr(0,1).toUpperCase() + strCssRule.substr(1)] + 'px';
+ }
+ return strValue;
+};
+
+/**
+ * Insert an element as the first child node of another
+ * @param {Element} child Element to insert
+ * @param {[type]} parent Element to insert child into
+ * @private
+ */
+vjs.insertFirst = function(child, parent){
+ if (parent.firstChild) {
+ parent.insertBefore(child, parent.firstChild);
+ } else {
+ parent.appendChild(child);
+ }
+};
+
+/**
+ * Object to hold browser support information
+ * @type {Object}
+ * @private
+ */
+vjs.browser = {};
+
+/**
+ * Shorthand for document.getElementById()
+ * Also allows for CSS (jQuery) ID syntax. But nothing other than IDs.
+ * @param {String} id Element ID
+ * @return {Element} Element with supplied ID
+ * @private
+ */
+vjs.el = function(id){
+ if (id.indexOf('#') === 0) {
+ id = id.slice(1);
+ }
+
+ return document.getElementById(id);
+};
+
+/**
+ * Format seconds as a time string, H:MM:SS or M:SS
+ * Supplying a guide (in seconds) will force a number of leading zeros
+ * to cover the length of the guide
+ * @param {Number} seconds Number of seconds to be turned into a string
+ * @param {Number} guide Number (in seconds) to model the string after
+ * @return {String} Time formatted as H:MM:SS or M:SS
+ * @private
+ */
+vjs.formatTime = function(seconds, guide) {
+ // Default to using seconds as guide
+ guide = guide || seconds;
+ var s = Math.floor(seconds % 60),
+ m = Math.floor(seconds / 60 % 60),
+ h = Math.floor(seconds / 3600),
+ gm = Math.floor(guide / 60 % 60),
+ gh = Math.floor(guide / 3600);
+
+ // handle invalid times
+ if (isNaN(seconds) || seconds === Infinity) {
+ // '-' is false for all relational operators (e.g. <, >=) so this setting
+ // will add the minimum number of fields specified by the guide
+ h = m = s = '-';
+ }
+
+ // Check if we need to show hours
+ h = (h > 0 || gh > 0) ? h + ':' : '';
+
+ // If hours are showing, we may need to add a leading zero.
+ // Always show at least one digit of minutes.
+ m = (((h || gm >= 10) && m < 10) ? '0' + m : m) + ':';
+
+ // Check if leading zero is need for seconds
+ s = (s < 10) ? '0' + s : s;
+
+ return h + m + s;
+};
+
+// Attempt to block the ability to select text while dragging controls
+vjs.blockTextSelection = function(){
+ document.body.focus();
+ document.onselectstart = function () { return false; };
+};
+// Turn off text selection blocking
+vjs.unblockTextSelection = function(){ document.onselectstart = function () { return true; }; };
+
+/**
+ * Trim whitespace from the ends of a string.
+ * @param {String} string String to trim
+ * @return {String} Trimmed string
+ * @private
+ */
+vjs.trim = function(str){
+ return (str+'').replace(/^\s+|\s+$/g, '');
+};
+
+/**
+ * Should round off a number to a decimal place
+ * @param {Number} num Number to round
+ * @param {Number} dec Number of decimal places to round to
+ * @return {Number} Rounded number
+ * @private
+ */
+vjs.round = function(num, dec) {
+ if (!dec) { dec = 0; }
+ return Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
+};
+
+/**
+ * Should create a fake TimeRange object
+ * Mimics an HTML5 time range instance, which has functions that
+ * return the start and end times for a range
+ * TimeRanges are returned by the buffered() method
+ * @param {Number} start Start time in seconds
+ * @param {Number} end End time in seconds
+ * @return {Object} Fake TimeRange object
+ * @private
+ */
+vjs.createTimeRange = function(start, end){
+ return {
+ length: 1,
+ start: function() { return start; },
+ end: function() { return end; }
+ };
+};
+
+/**
+ * Add to local storage (may removable)
+ * @private
+ */
+vjs.setLocalStorage = function(key, value){
+ try {
+ // IE was throwing errors referencing the var anywhere without this
+ var localStorage = window.localStorage || false;
+ if (!localStorage) { return; }
+ localStorage[key] = value;
+ } catch(e) {
+ if (e.code == 22 || e.code == 1014) { // Webkit == 22 / Firefox == 1014
+ vjs.log('LocalStorage Full (VideoJS)', e);
+ } else {
+ if (e.code == 18) {
+ vjs.log('LocalStorage not allowed (VideoJS)', e);
+ } else {
+ vjs.log('LocalStorage Error (VideoJS)', e);
+ }
+ }
+ }
+};
+
+/**
+ * Get absolute version of relative URL. Used to tell flash correct URL.
+ * http://stackoverflow.com/questions/470832/getting-an-absolute-url-from-a-relative-one-ie6-issue
+ * @param {String} url URL to make absolute
+ * @return {String} Absolute URL
+ * @private
+ */
+vjs.getAbsoluteURL = function(url){
+
+ // Check if absolute URL
+ if (!url.match(/^https?:\/\//)) {
+ // Convert to absolute URL. Flash hosted off-site needs an absolute URL.
+ url = vjs.createEl('div', {
+ innerHTML: 'x '
+ }).firstChild.href;
+ }
+
+ return url;
+};
+
+
+/**
+ * Resolve and parse the elements of a URL
+ * @param {String} url The url to parse
+ * @return {Object} An object of url details
+ */
+vjs.parseUrl = function(url) {
+ var div, a, addToBody, props, details;
+
+ props = ['protocol', 'hostname', 'port', 'pathname', 'search', 'hash', 'host'];
+
+ // add the url to an anchor and let the browser parse the URL
+ a = vjs.createEl('a', { href: url });
+
+ // IE8 (and 9?) Fix
+ // ie8 doesn't parse the URL correctly until the anchor is actually
+ // added to the body, and an innerHTML is needed to trigger the parsing
+ addToBody = (a.host === '' && a.protocol !== 'file:');
+ if (addToBody) {
+ div = vjs.createEl('div');
+ div.innerHTML = ' ';
+ a = div.firstChild;
+ // prevent the div from affecting layout
+ div.setAttribute('style', 'display:none; position:absolute;');
+ document.body.appendChild(div);
+ }
+
+ // Copy the specific URL properties to a new object
+ // This is also needed for IE8 because the anchor loses its
+ // properties when it's removed from the dom
+ details = {};
+ for (var i = 0; i < props.length; i++) {
+ details[props[i]] = a[props[i]];
+ }
+
+ // IE9 adds the port to the host property unlike everyone else. If
+ // a port identifier is added for standard ports, strip it.
+ if (details.protocol === 'http:') {
+ details.host = details.host.replace(/:80$/, '');
+ }
+ if (details.protocol === 'https:') {
+ details.host = details.host.replace(/:443$/, '');
+ }
+
+ if (addToBody) {
+ document.body.removeChild(div);
+ }
+
+ return details;
+};
+
+/**
+ * Log messages to the console and history based on the type of message
+ *
+ * @param {String} type The type of message, or `null` for `log`
+ * @param {[type]} args The args to be passed to the log
+ * @private
+ */
+function _logType(type, args){
+ var argsArray, noop, console;
+
+ // convert args to an array to get array functions
+ argsArray = Array.prototype.slice.call(args);
+ // if there's no console then don't try to output messages
+ // they will still be stored in vjs.log.history
+ // Was setting these once outside of this function, but containing them
+ // in the function makes it easier to test cases where console doesn't exist
+ noop = function(){};
+ console = window['console'] || {
+ 'log': noop,
+ 'warn': noop,
+ 'error': noop
+ };
+
+ if (type) {
+ // add the type to the front of the message
+ argsArray.unshift(type.toUpperCase()+':');
+ } else {
+ // default to log with no prefix
+ type = 'log';
+ }
+
+ // add to history
+ vjs.log.history.push(argsArray);
+
+ // add console prefix after adding to history
+ argsArray.unshift('VIDEOJS:');
+
+ // call appropriate log function
+ if (console[type].apply) {
+ console[type].apply(console, argsArray);
+ } else {
+ // ie8 doesn't allow error.apply, but it will just join() the array anyway
+ console[type](argsArray.join(' '));
+ }
+}
+
+/**
+ * Log plain debug messages
+ */
+vjs.log = function(){
+ _logType(null, arguments);
+};
+
+/**
+ * Keep a history of log messages
+ * @type {Array}
+ */
+vjs.log.history = [];
+
+/**
+ * Log error messages
+ */
+vjs.log.error = function(){
+ _logType('error', arguments);
+};
+
+/**
+ * Log warning messages
+ */
+vjs.log.warn = function(){
+ _logType('warn', arguments);
+};
+
+// Offset Left
+// getBoundingClientRect technique from John Resig http://ejohn.org/blog/getboundingclientrect-is-awesome/
+vjs.findPosition = function(el) {
+ var box, docEl, body, clientLeft, scrollLeft, left, clientTop, scrollTop, top;
+
+ if (el.getBoundingClientRect && el.parentNode) {
+ box = el.getBoundingClientRect();
+ }
+
+ if (!box) {
+ return {
+ left: 0,
+ top: 0
+ };
+ }
+
+ docEl = document.documentElement;
+ body = document.body;
+
+ clientLeft = docEl.clientLeft || body.clientLeft || 0;
+ scrollLeft = window.pageXOffset || body.scrollLeft;
+ left = box.left + scrollLeft - clientLeft;
+
+ clientTop = docEl.clientTop || body.clientTop || 0;
+ scrollTop = window.pageYOffset || body.scrollTop;
+ top = box.top + scrollTop - clientTop;
+
+ // Android sometimes returns slightly off decimal values, so need to round
+ return {
+ left: vjs.round(left),
+ top: vjs.round(top)
+ };
+};
+
+/**
+ * Array functions container
+ * @type {Object}
+ * @private
+ */
+vjs.arr = {};
+
+/*
+ * Loops through an array and runs a function for each item inside it.
+ * @param {Array} array The array
+ * @param {Function} callback The function to be run for each item
+ * @param {*} thisArg The `this` binding of callback
+ * @returns {Array} The array
+ * @private
+ */
+vjs.arr.forEach = function(array, callback, thisArg) {
+ if (vjs.obj.isArray(array) && callback instanceof Function) {
+ for (var i = 0, len = array.length; i < len; ++i) {
+ callback.call(thisArg || vjs, array[i], i, array);
+ }
+ }
+
+ return array;
+};
+/**
+ * Simple http request for retrieving external files (e.g. text tracks)
+ *
+ * ##### Example
+ *
+ * // using url string
+ * videojs.xhr('http://example.com/myfile.vtt', function(error, response, responseBody){});
+ *
+ * // or options block
+ * videojs.xhr({
+ * uri: 'http://example.com/myfile.vtt',
+ * method: 'GET',
+ * responseType: 'text'
+ * }, function(error, response, responseBody){
+ * if (error) {
+ * // log the error
+ * } else {
+ * // successful, do something with the response
+ * }
+ * });
+ *
+ *
+ * API is modeled after the Raynos/xhr, which we hope to use after
+ * getting browserify implemented.
+ * https://github.com/Raynos/xhr/blob/master/index.js
+ *
+ * @param {Object|String} options Options block or URL string
+ * @param {Function} callback The callback function
+ * @returns {Object} The request
+ */
+vjs.xhr = function(options, callback){
+ var XHR, request, urlInfo, winLoc, fileUrl, crossOrigin, abortTimeout, successHandler, errorHandler;
+
+ // If options is a string it's the url
+ if (typeof options === 'string') {
+ options = {
+ uri: options
+ };
+ }
+
+ // Merge with default options
+ videojs.util.mergeOptions({
+ method: 'GET',
+ timeout: 45 * 1000
+ }, options);
+
+ callback = callback || function(){};
+
+ successHandler = function(){
+ window.clearTimeout(abortTimeout);
+ callback(null, request, request.response || request.responseText);
+ };
+
+ errorHandler = function(err){
+ window.clearTimeout(abortTimeout);
+
+ if (!err || typeof err === 'string') {
+ err = new Error(err);
+ }
+
+ callback(err, request);
+ };
+
+ XHR = window.XMLHttpRequest;
+
+ if (typeof XHR === 'undefined') {
+ // Shim XMLHttpRequest for older IEs
+ XHR = function () {
+ try { return new window.ActiveXObject('Msxml2.XMLHTTP.6.0'); } catch (e) {}
+ try { return new window.ActiveXObject('Msxml2.XMLHTTP.3.0'); } catch (f) {}
+ try { return new window.ActiveXObject('Msxml2.XMLHTTP'); } catch (g) {}
+ throw new Error('This browser does not support XMLHttpRequest.');
+ };
+ }
+
+ request = new XHR();
+ // Store a reference to the url on the request instance
+ request.uri = options.uri;
+
+ urlInfo = vjs.parseUrl(options.uri);
+ winLoc = window.location;
+ // Check if url is for another domain/origin
+ // IE8 doesn't know location.origin, so we won't rely on it here
+ crossOrigin = (urlInfo.protocol + urlInfo.host) !== (winLoc.protocol + winLoc.host);
+
+ // XDomainRequest -- Use for IE if XMLHTTPRequest2 isn't available
+ // 'withCredentials' is only available in XMLHTTPRequest2
+ // Also XDomainRequest has a lot of gotchas, so only use if cross domain
+ if (crossOrigin && window.XDomainRequest && !('withCredentials' in request)) {
+ request = new window.XDomainRequest();
+ request.onload = successHandler;
+ request.onerror = errorHandler;
+ // These blank handlers need to be set to fix ie9
+ // http://cypressnorth.com/programming/internet-explorer-aborting-ajax-requests-fixed/
+ request.onprogress = function(){};
+ request.ontimeout = function(){};
+
+ // XMLHTTPRequest
+ } else {
+ fileUrl = (urlInfo.protocol == 'file:' || winLoc.protocol == 'file:');
+
+ request.onreadystatechange = function() {
+ if (request.readyState === 4) {
+ if (request.timedout) {
+ return errorHandler('timeout');
+ }
+
+ if (request.status === 200 || fileUrl && request.status === 0) {
+ successHandler();
+ } else {
+ errorHandler();
+ }
+ }
+ };
+
+ if (options.timeout) {
+ abortTimeout = window.setTimeout(function() {
+ if (request.readyState !== 4) {
+ request.timedout = true;
+ request.abort();
+ }
+ }, options.timeout);
+ }
+ }
+
+ // open the connection
+ try {
+ // Third arg is async, or ignored by XDomainRequest
+ request.open(options.method || 'GET', options.uri, true);
+ } catch(err) {
+ return errorHandler(err);
+ }
+
+ // withCredentials only supported by XMLHttpRequest2
+ if(options.withCredentials) {
+ request.withCredentials = true;
+ }
+
+ if (options.responseType) {
+ request.responseType = options.responseType;
+ }
+
+ // send the request
+ try {
+ request.send();
+ } catch(err) {
+ return errorHandler(err);
+ }
+
+ return request;
+};
+/**
+ * Utility functions namespace
+ * @namespace
+ * @type {Object}
+ */
+vjs.util = {};
+
+/**
+ * Merge two options objects, recursively merging any plain object properties as
+ * well. Previously `deepMerge`
+ *
+ * @param {Object} obj1 Object to override values in
+ * @param {Object} obj2 Overriding object
+ * @return {Object} New object -- obj1 and obj2 will be untouched
+ */
+vjs.util.mergeOptions = function(obj1, obj2){
+ var key, val1, val2;
+
+ // make a copy of obj1 so we're not overwriting original values.
+ // like prototype.options_ and all sub options objects
+ obj1 = vjs.obj.copy(obj1);
+
+ for (key in obj2){
+ if (obj2.hasOwnProperty(key)) {
+ val1 = obj1[key];
+ val2 = obj2[key];
+
+ // Check if both properties are pure objects and do a deep merge if so
+ if (vjs.obj.isPlain(val1) && vjs.obj.isPlain(val2)) {
+ obj1[key] = vjs.util.mergeOptions(val1, val2);
+ } else {
+ obj1[key] = obj2[key];
+ }
+ }
+ }
+ return obj1;
+};vjs.EventEmitter = function() {
+};
+
+vjs.EventEmitter.prototype.allowedEvents_ = {
+};
+
+vjs.EventEmitter.prototype.on = function(type, fn) {
+ // Remove the addEventListener alias before calling vjs.on
+ // so we don't get into an infinite type loop
+ var ael = this.addEventListener;
+ this.addEventListener = Function.prototype;
+ vjs.on(this, type, fn);
+ this.addEventListener = ael;
+};
+vjs.EventEmitter.prototype.addEventListener = vjs.EventEmitter.prototype.on;
+
+vjs.EventEmitter.prototype.off = function(type, fn) {
+ vjs.off(this, type, fn);
+};
+vjs.EventEmitter.prototype.removeEventListener = vjs.EventEmitter.prototype.off;
+
+vjs.EventEmitter.prototype.one = function(type, fn) {
+ vjs.one(this, type, fn);
+};
+
+vjs.EventEmitter.prototype.trigger = function(event) {
+ var type = event.type || event;
+
+ if (typeof event === 'string') {
+ event = {
+ type: type
+ };
+ }
+ event = vjs.fixEvent(event);
+
+ if (this.allowedEvents_[type] && this['on' + type]) {
+ this['on' + type](event);
+ }
+
+ vjs.trigger(this, event);
+};
+// The standard DOM EventTarget.dispatchEvent() is aliased to trigger()
+vjs.EventEmitter.prototype.dispatchEvent = vjs.EventEmitter.prototype.trigger;
+/**
+ * @fileoverview Player Component - Base class for all UI objects
+ *
+ */
+
+/**
+ * Base UI Component class
+ *
+ * Components are embeddable UI objects that are represented by both a
+ * javascript object and an element in the DOM. They can be children of other
+ * components, and can have many children themselves.
+ *
+ * // adding a button to the player
+ * var button = player.addChild('button');
+ * button.el(); // -> button element
+ *
+ *
+ *
+ * Components are also event emitters.
+ *
+ * button.on('click', function(){
+ * console.log('Button Clicked!');
+ * });
+ *
+ * button.trigger('customevent');
+ *
+ * @param {Object} player Main Player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ * @extends vjs.CoreObject
+ */
+vjs.Component = vjs.CoreObject.extend({
+ /**
+ * the constructor function for the class
+ *
+ * @constructor
+ */
+ init: function(player, options, ready){
+ this.player_ = player;
+
+ // Make a copy of prototype.options_ to protect against overriding global defaults
+ this.options_ = vjs.obj.copy(this.options_);
+
+ // Updated options with supplied options
+ options = this.options(options);
+
+ // Get ID from options or options element if one is supplied
+ this.id_ = options['id'] || (options['el'] && options['el']['id']);
+
+ // If there was no ID from the options, generate one
+ if (!this.id_) {
+ // Don't require the player ID function in the case of mock players
+ this.id_ = ((player.id && player.id()) || 'no_player') + '_component_' + vjs.guid++;
+ }
+
+ this.name_ = options['name'] || null;
+
+ // Create element if one wasn't provided in options
+ this.el_ = options['el'] || this.createEl();
+
+ this.children_ = [];
+ this.childIndex_ = {};
+ this.childNameIndex_ = {};
+
+ // Add any child components in options
+ this.initChildren();
+
+ this.ready(ready);
+ // Don't want to trigger ready here or it will before init is actually
+ // finished for all children that run this constructor
+
+ if (options.reportTouchActivity !== false) {
+ this.enableTouchActivity();
+ }
+ }
+});
+
+/**
+ * Dispose of the component and all child components
+ */
+vjs.Component.prototype.dispose = function(){
+ this.trigger({ type: 'dispose', 'bubbles': false });
+
+ // Dispose all children.
+ if (this.children_) {
+ for (var i = this.children_.length - 1; i >= 0; i--) {
+ if (this.children_[i].dispose) {
+ this.children_[i].dispose();
+ }
+ }
+ }
+
+ // Delete child references
+ this.children_ = null;
+ this.childIndex_ = null;
+ this.childNameIndex_ = null;
+
+ // Remove all event listeners.
+ this.off();
+
+ // Remove element from DOM
+ if (this.el_.parentNode) {
+ this.el_.parentNode.removeChild(this.el_);
+ }
+
+ vjs.removeData(this.el_);
+ this.el_ = null;
+};
+
+/**
+ * Reference to main player instance
+ *
+ * @type {vjs.Player}
+ * @private
+ */
+vjs.Component.prototype.player_ = true;
+
+/**
+ * Return the component's player
+ *
+ * @return {vjs.Player}
+ */
+vjs.Component.prototype.player = function(){
+ return this.player_;
+};
+
+/**
+ * The component's options object
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Component.prototype.options_;
+
+/**
+ * Deep merge of options objects
+ *
+ * Whenever a property is an object on both options objects
+ * the two properties will be merged using vjs.obj.deepMerge.
+ *
+ * This is used for merging options for child components. We
+ * want it to be easy to override individual options on a child
+ * component without having to rewrite all the other default options.
+ *
+ * Parent.prototype.options_ = {
+ * children: {
+ * 'childOne': { 'foo': 'bar', 'asdf': 'fdsa' },
+ * 'childTwo': {},
+ * 'childThree': {}
+ * }
+ * }
+ * newOptions = {
+ * children: {
+ * 'childOne': { 'foo': 'baz', 'abc': '123' }
+ * 'childTwo': null,
+ * 'childFour': {}
+ * }
+ * }
+ *
+ * this.options(newOptions);
+ *
+ * RESULT
+ *
+ * {
+ * children: {
+ * 'childOne': { 'foo': 'baz', 'asdf': 'fdsa', 'abc': '123' },
+ * 'childTwo': null, // Disabled. Won't be initialized.
+ * 'childThree': {},
+ * 'childFour': {}
+ * }
+ * }
+ *
+ * @param {Object} obj Object of new option values
+ * @return {Object} A NEW object of this.options_ and obj merged
+ */
+vjs.Component.prototype.options = function(obj){
+ if (obj === undefined) return this.options_;
+
+ return this.options_ = vjs.util.mergeOptions(this.options_, obj);
+};
+
+/**
+ * The DOM element for the component
+ *
+ * @type {Element}
+ * @private
+ */
+vjs.Component.prototype.el_;
+
+/**
+ * Create the component's DOM element
+ *
+ * @param {String=} tagName Element's node type. e.g. 'div'
+ * @param {Object=} attributes An object of element attributes that should be set on the element
+ * @return {Element}
+ */
+vjs.Component.prototype.createEl = function(tagName, attributes){
+ return vjs.createEl(tagName, attributes);
+};
+
+vjs.Component.prototype.localize = function(string){
+ var lang = this.player_.language(),
+ languages = this.player_.languages();
+ if (languages && languages[lang] && languages[lang][string]) {
+ return languages[lang][string];
+ }
+ return string;
+};
+
+/**
+ * Get the component's DOM element
+ *
+ * var domEl = myComponent.el();
+ *
+ * @return {Element}
+ */
+vjs.Component.prototype.el = function(){
+ return this.el_;
+};
+
+/**
+ * An optional element where, if defined, children will be inserted instead of
+ * directly in `el_`
+ *
+ * @type {Element}
+ * @private
+ */
+vjs.Component.prototype.contentEl_;
+
+/**
+ * Return the component's DOM element for embedding content.
+ * Will either be el_ or a new element defined in createEl.
+ *
+ * @return {Element}
+ */
+vjs.Component.prototype.contentEl = function(){
+ return this.contentEl_ || this.el_;
+};
+
+/**
+ * The ID for the component
+ *
+ * @type {String}
+ * @private
+ */
+vjs.Component.prototype.id_;
+
+/**
+ * Get the component's ID
+ *
+ * var id = myComponent.id();
+ *
+ * @return {String}
+ */
+vjs.Component.prototype.id = function(){
+ return this.id_;
+};
+
+/**
+ * The name for the component. Often used to reference the component.
+ *
+ * @type {String}
+ * @private
+ */
+vjs.Component.prototype.name_;
+
+/**
+ * Get the component's name. The name is often used to reference the component.
+ *
+ * var name = myComponent.name();
+ *
+ * @return {String}
+ */
+vjs.Component.prototype.name = function(){
+ return this.name_;
+};
+
+/**
+ * Array of child components
+ *
+ * @type {Array}
+ * @private
+ */
+vjs.Component.prototype.children_;
+
+/**
+ * Get an array of all child components
+ *
+ * var kids = myComponent.children();
+ *
+ * @return {Array} The children
+ */
+vjs.Component.prototype.children = function(){
+ return this.children_;
+};
+
+/**
+ * Object of child components by ID
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Component.prototype.childIndex_;
+
+/**
+ * Returns a child component with the provided ID
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.getChildById = function(id){
+ return this.childIndex_[id];
+};
+
+/**
+ * Object of child components by name
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Component.prototype.childNameIndex_;
+
+/**
+ * Returns a child component with the provided name
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.getChild = function(name){
+ return this.childNameIndex_[name];
+};
+
+/**
+ * Adds a child component inside this component
+ *
+ * myComponent.el();
+ * // ->
+ * myComonent.children();
+ * // [empty array]
+ *
+ * var myButton = myComponent.addChild('MyButton');
+ * // -> myButton
+ * // -> myButton === myComonent.children()[0];
+ *
+ * Pass in options for child constructors and options for children of the child
+ *
+ * var myButton = myComponent.addChild('MyButton', {
+ * text: 'Press Me',
+ * children: {
+ * buttonChildExample: {
+ * buttonChildOption: true
+ * }
+ * }
+ * });
+ *
+ * @param {String|vjs.Component} child The class name or instance of a child to add
+ * @param {Object=} options Options, including options to be passed to children of the child.
+ * @return {vjs.Component} The child component (created by this process if a string was used)
+ * @suppress {accessControls|checkRegExp|checkTypes|checkVars|const|constantProperty|deprecated|duplicate|es5Strict|fileoverviewTags|globalThis|invalidCasts|missingProperties|nonStandardJsDocs|strictModuleDepCheck|undefinedNames|undefinedVars|unknownDefines|uselessCode|visibility}
+ */
+vjs.Component.prototype.addChild = function(child, options){
+ var component, componentClass, componentName;
+
+ // If child is a string, create new component with options
+ if (typeof child === 'string') {
+ componentName = child;
+
+ // Make sure options is at least an empty object to protect against errors
+ options = options || {};
+
+ // If no componentClass in options, assume componentClass is the name lowercased
+ // (e.g. playButton)
+ componentClass = options['componentClass'] || vjs.capitalize(componentName);
+
+ // Set name through options
+ options['name'] = componentName;
+
+ // Create a new object & element for this controls set
+ // If there's no .player_, this is a player
+ // Closure Compiler throws an 'incomplete alias' warning if we use the vjs variable directly.
+ // Every class should be exported, so this should never be a problem here.
+ component = new window['videojs'][componentClass](this.player_ || this, options);
+
+ // child is a component instance
+ } else {
+ component = child;
+ }
+
+ this.children_.push(component);
+
+ if (typeof component.id === 'function') {
+ this.childIndex_[component.id()] = component;
+ }
+
+ // If a name wasn't used to create the component, check if we can use the
+ // name function of the component
+ componentName = componentName || (component.name && component.name());
+
+ if (componentName) {
+ this.childNameIndex_[componentName] = component;
+ }
+
+ // Add the UI object's element to the container div (box)
+ // Having an element is not required
+ if (typeof component['el'] === 'function' && component['el']()) {
+ this.contentEl().appendChild(component['el']());
+ }
+
+ // Return so it can stored on parent object if desired.
+ return component;
+};
+
+/**
+ * Remove a child component from this component's list of children, and the
+ * child component's element from this component's element
+ *
+ * @param {vjs.Component} component Component to remove
+ */
+vjs.Component.prototype.removeChild = function(component){
+ if (typeof component === 'string') {
+ component = this.getChild(component);
+ }
+
+ if (!component || !this.children_) return;
+
+ var childFound = false;
+ for (var i = this.children_.length - 1; i >= 0; i--) {
+ if (this.children_[i] === component) {
+ childFound = true;
+ this.children_.splice(i,1);
+ break;
+ }
+ }
+
+ if (!childFound) return;
+
+ this.childIndex_[component.id()] = null;
+ this.childNameIndex_[component.name()] = null;
+
+ var compEl = component.el();
+ if (compEl && compEl.parentNode === this.contentEl()) {
+ this.contentEl().removeChild(component.el());
+ }
+};
+
+/**
+ * Add and initialize default child components from options
+ *
+ * // when an instance of MyComponent is created, all children in options
+ * // will be added to the instance by their name strings and options
+ * MyComponent.prototype.options_.children = {
+ * myChildComponent: {
+ * myChildOption: true
+ * }
+ * }
+ *
+ * // Or when creating the component
+ * var myComp = new MyComponent(player, {
+ * children: {
+ * myChildComponent: {
+ * myChildOption: true
+ * }
+ * }
+ * });
+ *
+ * The children option can also be an Array of child names or
+ * child options objects (that also include a 'name' key).
+ *
+ * var myComp = new MyComponent(player, {
+ * children: [
+ * 'button',
+ * {
+ * name: 'button',
+ * someOtherOption: true
+ * }
+ * ]
+ * });
+ *
+ */
+vjs.Component.prototype.initChildren = function(){
+ var parent, parentOptions, children, child, name, opts, handleAdd;
+
+ parent = this;
+ parentOptions = parent.options();
+ children = parentOptions['children'];
+
+ if (children) {
+ handleAdd = function(name, opts){
+ // Allow options for children to be set at the parent options
+ // e.g. videojs(id, { controlBar: false });
+ // instead of videojs(id, { children: { controlBar: false });
+ if (parentOptions[name] !== undefined) {
+ opts = parentOptions[name];
+ }
+
+ // Allow for disabling default components
+ // e.g. vjs.options['children']['posterImage'] = false
+ if (opts === false) return;
+
+ // Create and add the child component.
+ // Add a direct reference to the child by name on the parent instance.
+ // If two of the same component are used, different names should be supplied
+ // for each
+ parent[name] = parent.addChild(name, opts);
+ };
+
+ // Allow for an array of children details to passed in the options
+ if (vjs.obj.isArray(children)) {
+ for (var i = 0; i < children.length; i++) {
+ child = children[i];
+
+ if (typeof child == 'string') {
+ // ['myComponent']
+ name = child;
+ opts = {};
+ } else {
+ // [{ name: 'myComponent', otherOption: true }]
+ name = child.name;
+ opts = child;
+ }
+
+ handleAdd(name, opts);
+ }
+ } else {
+ vjs.obj.each(children, handleAdd);
+ }
+ }
+};
+
+/**
+ * Allows sub components to stack CSS class names
+ *
+ * @return {String} The constructed class name
+ */
+vjs.Component.prototype.buildCSSClass = function(){
+ // Child classes can include a function that does:
+ // return 'CLASS NAME' + this._super();
+ return '';
+};
+
+/* Events
+============================================================================= */
+
+/**
+ * Add an event listener to this component's element
+ *
+ * var myFunc = function(){
+ * var myComponent = this;
+ * // Do something when the event is fired
+ * };
+ *
+ * myComponent.on('eventType', myFunc);
+ *
+ * The context of myFunc will be myComponent unless previously bound.
+ *
+ * Alternatively, you can add a listener to another element or component.
+ *
+ * myComponent.on(otherElement, 'eventName', myFunc);
+ * myComponent.on(otherComponent, 'eventName', myFunc);
+ *
+ * The benefit of using this over `vjs.on(otherElement, 'eventName', myFunc)`
+ * and `otherComponent.on('eventName', myFunc)` is that this way the listeners
+ * will be automatically cleaned up when either component is disposed.
+ * It will also bind myComponent as the context of myFunc.
+ *
+ * **NOTE**: When using this on elements in the page other than window
+ * and document (both permanent), if you remove the element from the DOM
+ * you need to call `vjs.trigger(el, 'dispose')` on it to clean up
+ * references to it and allow the browser to garbage collect it.
+ *
+ * @param {String|vjs.Component} first The event type or other component
+ * @param {Function|String} second The event handler or event type
+ * @param {Function} third The event handler
+ * @return {vjs.Component} self
+ */
+vjs.Component.prototype.on = function(first, second, third){
+ var target, type, fn, removeOnDispose, cleanRemover, thisComponent;
+
+ if (typeof first === 'string' || vjs.obj.isArray(first)) {
+ vjs.on(this.el_, first, vjs.bind(this, second));
+
+ // Targeting another component or element
+ } else {
+ target = first;
+ type = second;
+ fn = vjs.bind(this, third);
+ thisComponent = this;
+
+ // When this component is disposed, remove the listener from the other component
+ removeOnDispose = function(){
+ thisComponent.off(target, type, fn);
+ };
+ // Use the same function ID so we can remove it later it using the ID
+ // of the original listener
+ removeOnDispose.guid = fn.guid;
+ this.on('dispose', removeOnDispose);
+
+ // If the other component is disposed first we need to clean the reference
+ // to the other component in this component's removeOnDispose listener
+ // Otherwise we create a memory leak.
+ cleanRemover = function(){
+ thisComponent.off('dispose', removeOnDispose);
+ };
+ // Add the same function ID so we can easily remove it later
+ cleanRemover.guid = fn.guid;
+
+ // Check if this is a DOM node
+ if (first.nodeName) {
+ // Add the listener to the other element
+ vjs.on(target, type, fn);
+ vjs.on(target, 'dispose', cleanRemover);
+
+ // Should be a component
+ // Not using `instanceof vjs.Component` because it makes mock players difficult
+ } else if (typeof first.on === 'function') {
+ // Add the listener to the other component
+ target.on(type, fn);
+ target.on('dispose', cleanRemover);
+ }
+ }
+
+ return this;
+};
+
+/**
+ * Remove an event listener from this component's element
+ *
+ * myComponent.off('eventType', myFunc);
+ *
+ * If myFunc is excluded, ALL listeners for the event type will be removed.
+ * If eventType is excluded, ALL listeners will be removed from the component.
+ *
+ * Alternatively you can use `off` to remove listeners that were added to other
+ * elements or components using `myComponent.on(otherComponent...`.
+ * In this case both the event type and listener function are REQUIRED.
+ *
+ * myComponent.off(otherElement, 'eventType', myFunc);
+ * myComponent.off(otherComponent, 'eventType', myFunc);
+ *
+ * @param {String=|vjs.Component} first The event type or other component
+ * @param {Function=|String} second The listener function or event type
+ * @param {Function=} third The listener for other component
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.off = function(first, second, third){
+ var target, otherComponent, type, fn, otherEl;
+
+ if (!first || typeof first === 'string' || vjs.obj.isArray(first)) {
+ vjs.off(this.el_, first, second);
+ } else {
+ target = first;
+ type = second;
+ // Ensure there's at least a guid, even if the function hasn't been used
+ fn = vjs.bind(this, third);
+
+ // Remove the dispose listener on this component,
+ // which was given the same guid as the event listener
+ this.off('dispose', fn);
+
+ if (first.nodeName) {
+ // Remove the listener
+ vjs.off(target, type, fn);
+ // Remove the listener for cleaning the dispose listener
+ vjs.off(target, 'dispose', fn);
+ } else {
+ target.off(type, fn);
+ target.off('dispose', fn);
+ }
+ }
+
+ return this;
+};
+
+/**
+ * Add an event listener to be triggered only once and then removed
+ *
+ * myComponent.one('eventName', myFunc);
+ *
+ * Alternatively you can add a listener to another element or component
+ * that will be triggered only once.
+ *
+ * myComponent.one(otherElement, 'eventName', myFunc);
+ * myComponent.one(otherComponent, 'eventName', myFunc);
+ *
+ * @param {String|vjs.Component} first The event type or other component
+ * @param {Function|String} second The listener function or event type
+ * @param {Function=} third The listener function for other component
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.one = function(first, second, third) {
+ var target, type, fn, thisComponent, newFunc;
+
+ if (typeof first === 'string' || vjs.obj.isArray(first)) {
+ vjs.one(this.el_, first, vjs.bind(this, second));
+ } else {
+ target = first;
+ type = second;
+ fn = vjs.bind(this, third);
+ thisComponent = this;
+
+ newFunc = function(){
+ thisComponent.off(target, type, newFunc);
+ fn.apply(this, arguments);
+ };
+ // Keep the same function ID so we can remove it later
+ newFunc.guid = fn.guid;
+
+ this.on(target, type, newFunc);
+ }
+
+ return this;
+};
+
+/**
+ * Trigger an event on an element
+ *
+ * myComponent.trigger('eventName');
+ * myComponent.trigger({'type':'eventName'});
+ *
+ * @param {Event|Object|String} event A string (the type) or an event object with a type attribute
+ * @return {vjs.Component} self
+ */
+vjs.Component.prototype.trigger = function(event){
+ vjs.trigger(this.el_, event);
+ return this;
+};
+
+/* Ready
+================================================================================ */
+/**
+ * Is the component loaded
+ * This can mean different things depending on the component.
+ *
+ * @private
+ * @type {Boolean}
+ */
+vjs.Component.prototype.isReady_;
+
+/**
+ * Trigger ready as soon as initialization is finished
+ *
+ * Allows for delaying ready. Override on a sub class prototype.
+ * If you set this.isReadyOnInitFinish_ it will affect all components.
+ * Specially used when waiting for the Flash player to asynchronously load.
+ *
+ * @type {Boolean}
+ * @private
+ */
+vjs.Component.prototype.isReadyOnInitFinish_ = true;
+
+/**
+ * List of ready listeners
+ *
+ * @type {Array}
+ * @private
+ */
+vjs.Component.prototype.readyQueue_;
+
+/**
+ * Bind a listener to the component's ready state
+ *
+ * Different from event listeners in that if the ready event has already happened
+ * it will trigger the function immediately.
+ *
+ * @param {Function} fn Ready listener
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.ready = function(fn){
+ if (fn) {
+ if (this.isReady_) {
+ fn.call(this);
+ } else {
+ if (this.readyQueue_ === undefined) {
+ this.readyQueue_ = [];
+ }
+ this.readyQueue_.push(fn);
+ }
+ }
+ return this;
+};
+
+/**
+ * Trigger the ready listeners
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.triggerReady = function(){
+ this.isReady_ = true;
+
+ var readyQueue = this.readyQueue_;
+
+ if (readyQueue && readyQueue.length > 0) {
+
+ for (var i = 0, j = readyQueue.length; i < j; i++) {
+ readyQueue[i].call(this);
+ }
+
+ // Reset Ready Queue
+ this.readyQueue_ = [];
+
+ // Allow for using event listeners also, in case you want to do something everytime a source is ready.
+ this.trigger('ready');
+ }
+};
+
+/* Display
+============================================================================= */
+
+/**
+ * Check if a component's element has a CSS class name
+ *
+ * @param {String} classToCheck Classname to check
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.hasClass = function(classToCheck){
+ return vjs.hasClass(this.el_, classToCheck);
+};
+
+/**
+ * Add a CSS class name to the component's element
+ *
+ * @param {String} classToAdd Classname to add
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.addClass = function(classToAdd){
+ vjs.addClass(this.el_, classToAdd);
+ return this;
+};
+
+/**
+ * Remove a CSS class name from the component's element
+ *
+ * @param {String} classToRemove Classname to remove
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.removeClass = function(classToRemove){
+ vjs.removeClass(this.el_, classToRemove);
+ return this;
+};
+
+/**
+ * Show the component element if hidden
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.show = function(){
+ this.removeClass('vjs-hidden');
+ return this;
+};
+
+/**
+ * Hide the component element if currently showing
+ *
+ * @return {vjs.Component}
+ */
+vjs.Component.prototype.hide = function(){
+ this.addClass('vjs-hidden');
+ return this;
+};
+
+/**
+ * Lock an item in its visible state
+ * To be used with fadeIn/fadeOut.
+ *
+ * @return {vjs.Component}
+ * @private
+ */
+vjs.Component.prototype.lockShowing = function(){
+ this.addClass('vjs-lock-showing');
+ return this;
+};
+
+/**
+ * Unlock an item to be hidden
+ * To be used with fadeIn/fadeOut.
+ *
+ * @return {vjs.Component}
+ * @private
+ */
+vjs.Component.prototype.unlockShowing = function(){
+ this.removeClass('vjs-lock-showing');
+ return this;
+};
+
+/**
+ * Disable component by making it unshowable
+ *
+ * Currently private because we're moving towards more css-based states.
+ * @private
+ */
+vjs.Component.prototype.disable = function(){
+ this.hide();
+ this.show = function(){};
+};
+
+/**
+ * Set or get the width of the component (CSS values)
+ *
+ * Setting the video tag dimension values only works with values in pixels.
+ * Percent values will not work.
+ * Some percents can be used, but width()/height() will return the number + %,
+ * not the actual computed width/height.
+ *
+ * @param {Number|String=} num Optional width number
+ * @param {Boolean} skipListeners Skip the 'resize' event trigger
+ * @return {vjs.Component} This component, when setting the width
+ * @return {Number|String} The width, when getting
+ */
+vjs.Component.prototype.width = function(num, skipListeners){
+ return this.dimension('width', num, skipListeners);
+};
+
+/**
+ * Get or set the height of the component (CSS values)
+ *
+ * Setting the video tag dimension values only works with values in pixels.
+ * Percent values will not work.
+ * Some percents can be used, but width()/height() will return the number + %,
+ * not the actual computed width/height.
+ *
+ * @param {Number|String=} num New component height
+ * @param {Boolean=} skipListeners Skip the resize event trigger
+ * @return {vjs.Component} This component, when setting the height
+ * @return {Number|String} The height, when getting
+ */
+vjs.Component.prototype.height = function(num, skipListeners){
+ return this.dimension('height', num, skipListeners);
+};
+
+/**
+ * Set both width and height at the same time
+ *
+ * @param {Number|String} width
+ * @param {Number|String} height
+ * @return {vjs.Component} The component
+ */
+vjs.Component.prototype.dimensions = function(width, height){
+ // Skip resize listeners on width for optimization
+ return this.width(width, true).height(height);
+};
+
+/**
+ * Get or set width or height
+ *
+ * This is the shared code for the width() and height() methods.
+ * All for an integer, integer + 'px' or integer + '%';
+ *
+ * Known issue: Hidden elements officially have a width of 0. We're defaulting
+ * to the style.width value and falling back to computedStyle which has the
+ * hidden element issue. Info, but probably not an efficient fix:
+ * http://www.foliotek.com/devblog/getting-the-width-of-a-hidden-element-with-jquery-using-width/
+ *
+ * @param {String} widthOrHeight 'width' or 'height'
+ * @param {Number|String=} num New dimension
+ * @param {Boolean=} skipListeners Skip resize event trigger
+ * @return {vjs.Component} The component if a dimension was set
+ * @return {Number|String} The dimension if nothing was set
+ * @private
+ */
+vjs.Component.prototype.dimension = function(widthOrHeight, num, skipListeners){
+ if (num !== undefined) {
+ if (num === null || vjs.isNaN(num)) {
+ num = 0;
+ }
+
+ // Check if using css width/height (% or px) and adjust
+ if ((''+num).indexOf('%') !== -1 || (''+num).indexOf('px') !== -1) {
+ this.el_.style[widthOrHeight] = num;
+ } else if (num === 'auto') {
+ this.el_.style[widthOrHeight] = '';
+ } else {
+ this.el_.style[widthOrHeight] = num+'px';
+ }
+
+ // skipListeners allows us to avoid triggering the resize event when setting both width and height
+ if (!skipListeners) { this.trigger('resize'); }
+
+ // Return component
+ return this;
+ }
+
+ // Not setting a value, so getting it
+ // Make sure element exists
+ if (!this.el_) return 0;
+
+ // Get dimension value from style
+ var val = this.el_.style[widthOrHeight];
+ var pxIndex = val.indexOf('px');
+ if (pxIndex !== -1) {
+ // Return the pixel value with no 'px'
+ return parseInt(val.slice(0,pxIndex), 10);
+
+ // No px so using % or no style was set, so falling back to offsetWidth/height
+ // If component has display:none, offset will return 0
+ // TODO: handle display:none and no dimension style using px
+ } else {
+
+ return parseInt(this.el_['offset'+vjs.capitalize(widthOrHeight)], 10);
+
+ // ComputedStyle version.
+ // Only difference is if the element is hidden it will return
+ // the percent value (e.g. '100%'')
+ // instead of zero like offsetWidth returns.
+ // var val = vjs.getComputedStyleValue(this.el_, widthOrHeight);
+ // var pxIndex = val.indexOf('px');
+
+ // if (pxIndex !== -1) {
+ // return val.slice(0, pxIndex);
+ // } else {
+ // return val;
+ // }
+ }
+};
+
+/**
+ * Fired when the width and/or height of the component changes
+ * @event resize
+ */
+vjs.Component.prototype.onResize;
+
+/**
+ * Emit 'tap' events when touch events are supported
+ *
+ * This is used to support toggling the controls through a tap on the video.
+ *
+ * We're requiring them to be enabled because otherwise every component would
+ * have this extra overhead unnecessarily, on mobile devices where extra
+ * overhead is especially bad.
+ * @private
+ */
+vjs.Component.prototype.emitTapEvents = function(){
+ var touchStart, firstTouch, touchTime, couldBeTap, noTap,
+ xdiff, ydiff, touchDistance, tapMovementThreshold, touchTimeThreshold;
+
+ // Track the start time so we can determine how long the touch lasted
+ touchStart = 0;
+ firstTouch = null;
+
+ // Maximum movement allowed during a touch event to still be considered a tap
+ // Other popular libs use anywhere from 2 (hammer.js) to 15, so 10 seems like a nice, round number.
+ tapMovementThreshold = 10;
+
+ // The maximum length a touch can be while still being considered a tap
+ touchTimeThreshold = 200;
+
+ this.on('touchstart', function(event) {
+ // If more than one finger, don't consider treating this as a click
+ if (event.touches.length === 1) {
+ firstTouch = vjs.obj.copy(event.touches[0]);
+ // Record start time so we can detect a tap vs. "touch and hold"
+ touchStart = new Date().getTime();
+ // Reset couldBeTap tracking
+ couldBeTap = true;
+ }
+ });
+
+ this.on('touchmove', function(event) {
+ // If more than one finger, don't consider treating this as a click
+ if (event.touches.length > 1) {
+ couldBeTap = false;
+ } else if (firstTouch) {
+ // Some devices will throw touchmoves for all but the slightest of taps.
+ // So, if we moved only a small distance, this could still be a tap
+ xdiff = event.touches[0].pageX - firstTouch.pageX;
+ ydiff = event.touches[0].pageY - firstTouch.pageY;
+ touchDistance = Math.sqrt(xdiff * xdiff + ydiff * ydiff);
+ if (touchDistance > tapMovementThreshold) {
+ couldBeTap = false;
+ }
+ }
+ });
+
+ noTap = function(){
+ couldBeTap = false;
+ };
+ // TODO: Listen to the original target. http://youtu.be/DujfpXOKUp8?t=13m8s
+ this.on('touchleave', noTap);
+ this.on('touchcancel', noTap);
+
+ // When the touch ends, measure how long it took and trigger the appropriate
+ // event
+ this.on('touchend', function(event) {
+ firstTouch = null;
+ // Proceed only if the touchmove/leave/cancel event didn't happen
+ if (couldBeTap === true) {
+ // Measure how long the touch lasted
+ touchTime = new Date().getTime() - touchStart;
+ // Make sure the touch was less than the threshold to be considered a tap
+ if (touchTime < touchTimeThreshold) {
+ event.preventDefault(); // Don't let browser turn this into a click
+ this.trigger('tap');
+ // It may be good to copy the touchend event object and change the
+ // type to tap, if the other event properties aren't exact after
+ // vjs.fixEvent runs (e.g. event.target)
+ }
+ }
+ });
+};
+
+/**
+ * Report user touch activity when touch events occur
+ *
+ * User activity is used to determine when controls should show/hide. It's
+ * relatively simple when it comes to mouse events, because any mouse event
+ * should show the controls. So we capture mouse events that bubble up to the
+ * player and report activity when that happens.
+ *
+ * With touch events it isn't as easy. We can't rely on touch events at the
+ * player level, because a tap (touchstart + touchend) on the video itself on
+ * mobile devices is meant to turn controls off (and on). User activity is
+ * checked asynchronously, so what could happen is a tap event on the video
+ * turns the controls off, then the touchend event bubbles up to the player,
+ * which if it reported user activity, would turn the controls right back on.
+ * (We also don't want to completely block touch events from bubbling up)
+ *
+ * Also a touchmove, touch+hold, and anything other than a tap is not supposed
+ * to turn the controls back on on a mobile device.
+ *
+ * Here we're setting the default component behavior to report user activity
+ * whenever touch events happen, and this can be turned off by components that
+ * want touch events to act differently.
+ */
+vjs.Component.prototype.enableTouchActivity = function() {
+ var report, touchHolding, touchEnd;
+
+ // Don't continue if the root player doesn't support reporting user activity
+ if (!this.player().reportUserActivity) {
+ return;
+ }
+
+ // listener for reporting that the user is active
+ report = vjs.bind(this.player(), this.player().reportUserActivity);
+
+ this.on('touchstart', function() {
+ report();
+ // For as long as the they are touching the device or have their mouse down,
+ // we consider them active even if they're not moving their finger or mouse.
+ // So we want to continue to update that they are active
+ this.clearInterval(touchHolding);
+ // report at the same interval as activityCheck
+ touchHolding = this.setInterval(report, 250);
+ });
+
+ touchEnd = function(event) {
+ report();
+ // stop the interval that maintains activity if the touch is holding
+ this.clearInterval(touchHolding);
+ };
+
+ this.on('touchmove', report);
+ this.on('touchend', touchEnd);
+ this.on('touchcancel', touchEnd);
+};
+
+/**
+ * Creates timeout and sets up disposal automatically.
+ * @param {Function} fn The function to run after the timeout.
+ * @param {Number} timeout Number of ms to delay before executing specified function.
+ * @return {Number} Returns the timeout ID
+ */
+vjs.Component.prototype.setTimeout = function(fn, timeout) {
+ fn = vjs.bind(this, fn);
+
+ // window.setTimeout would be preferable here, but due to some bizarre issue with Sinon and/or Phantomjs, we can't.
+ var timeoutId = setTimeout(fn, timeout);
+
+ var disposeFn = function() {
+ this.clearTimeout(timeoutId);
+ };
+
+ disposeFn.guid = 'vjs-timeout-'+ timeoutId;
+
+ this.on('dispose', disposeFn);
+
+ return timeoutId;
+};
+
+
+/**
+ * Clears a timeout and removes the associated dispose listener
+ * @param {Number} timeoutId The id of the timeout to clear
+ * @return {Number} Returns the timeout ID
+ */
+vjs.Component.prototype.clearTimeout = function(timeoutId) {
+ clearTimeout(timeoutId);
+
+ var disposeFn = function(){};
+ disposeFn.guid = 'vjs-timeout-'+ timeoutId;
+
+ this.off('dispose', disposeFn);
+
+ return timeoutId;
+};
+
+/**
+ * Creates an interval and sets up disposal automatically.
+ * @param {Function} fn The function to run every N seconds.
+ * @param {Number} interval Number of ms to delay before executing specified function.
+ * @return {Number} Returns the interval ID
+ */
+vjs.Component.prototype.setInterval = function(fn, interval) {
+ fn = vjs.bind(this, fn);
+
+ var intervalId = setInterval(fn, interval);
+
+ var disposeFn = function() {
+ this.clearInterval(intervalId);
+ };
+
+ disposeFn.guid = 'vjs-interval-'+ intervalId;
+
+ this.on('dispose', disposeFn);
+
+ return intervalId;
+};
+
+/**
+ * Clears an interval and removes the associated dispose listener
+ * @param {Number} intervalId The id of the interval to clear
+ * @return {Number} Returns the interval ID
+ */
+vjs.Component.prototype.clearInterval = function(intervalId) {
+ clearInterval(intervalId);
+
+ var disposeFn = function(){};
+ disposeFn.guid = 'vjs-interval-'+ intervalId;
+
+ this.off('dispose', disposeFn);
+
+ return intervalId;
+};
+/* Button - Base class for all buttons
+================================================================================ */
+/**
+ * Base class for all buttons
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.Button = vjs.Component.extend({
+ /**
+ * @constructor
+ * @inheritDoc
+ */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.emitTapEvents();
+
+ this.on('tap', this.onClick);
+ this.on('click', this.onClick);
+ this.on('focus', this.onFocus);
+ this.on('blur', this.onBlur);
+ }
+});
+
+vjs.Button.prototype.createEl = function(type, props){
+ var el;
+
+ // Add standard Aria and Tabindex info
+ props = vjs.obj.merge({
+ className: this.buildCSSClass(),
+ 'role': 'button',
+ 'aria-live': 'polite', // let the screen reader user know that the text of the button may change
+ tabIndex: 0
+ }, props);
+
+ el = vjs.Component.prototype.createEl.call(this, type, props);
+
+ // if innerHTML hasn't been overridden (bigPlayButton), add content elements
+ if (!props.innerHTML) {
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-control-content'
+ });
+
+ this.controlText_ = vjs.createEl('span', {
+ className: 'vjs-control-text',
+ innerHTML: this.localize(this.buttonText) || 'Need Text'
+ });
+
+ this.contentEl_.appendChild(this.controlText_);
+ el.appendChild(this.contentEl_);
+ }
+
+ return el;
+};
+
+vjs.Button.prototype.buildCSSClass = function(){
+ // TODO: Change vjs-control to vjs-button?
+ return 'vjs-control ' + vjs.Component.prototype.buildCSSClass.call(this);
+};
+
+ // Click - Override with specific functionality for button
+vjs.Button.prototype.onClick = function(){};
+
+ // Focus - Add keyboard functionality to element
+vjs.Button.prototype.onFocus = function(){
+ vjs.on(document, 'keydown', vjs.bind(this, this.onKeyPress));
+};
+
+ // KeyPress (document level) - Trigger click when keys are pressed
+vjs.Button.prototype.onKeyPress = function(event){
+ // Check for space bar (32) or enter (13) keys
+ if (event.which == 32 || event.which == 13) {
+ event.preventDefault();
+ this.onClick();
+ }
+};
+
+// Blur - Remove keyboard triggers
+vjs.Button.prototype.onBlur = function(){
+ vjs.off(document, 'keydown', vjs.bind(this, this.onKeyPress));
+};
+/* Slider
+================================================================================ */
+/**
+ * The base functionality for sliders like the volume bar and seek bar
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.Slider = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ // Set property names to bar and handle to match with the child Slider class is looking for
+ this.bar = this.getChild(this.options_['barName']);
+ this.handle = this.getChild(this.options_['handleName']);
+
+ this.on('mousedown', this.onMouseDown);
+ this.on('touchstart', this.onMouseDown);
+ this.on('focus', this.onFocus);
+ this.on('blur', this.onBlur);
+ this.on('click', this.onClick);
+
+ this.on(player, 'controlsvisible', this.update);
+ this.on(player, this.playerEvent, this.update);
+ }
+});
+
+vjs.Slider.prototype.createEl = function(type, props) {
+ props = props || {};
+ // Add the slider element class to all sub classes
+ props.className = props.className + ' vjs-slider';
+ props = vjs.obj.merge({
+ 'role': 'slider',
+ 'aria-valuenow': 0,
+ 'aria-valuemin': 0,
+ 'aria-valuemax': 100,
+ tabIndex: 0
+ }, props);
+
+ return vjs.Component.prototype.createEl.call(this, type, props);
+};
+
+vjs.Slider.prototype.onMouseDown = function(event){
+ event.preventDefault();
+ vjs.blockTextSelection();
+ this.addClass('vjs-sliding');
+
+ this.on(document, 'mousemove', this.onMouseMove);
+ this.on(document, 'mouseup', this.onMouseUp);
+ this.on(document, 'touchmove', this.onMouseMove);
+ this.on(document, 'touchend', this.onMouseUp);
+
+ this.onMouseMove(event);
+};
+
+// To be overridden by a subclass
+vjs.Slider.prototype.onMouseMove = function(){};
+
+vjs.Slider.prototype.onMouseUp = function() {
+ vjs.unblockTextSelection();
+ this.removeClass('vjs-sliding');
+
+ this.off(document, 'mousemove', this.onMouseMove);
+ this.off(document, 'mouseup', this.onMouseUp);
+ this.off(document, 'touchmove', this.onMouseMove);
+ this.off(document, 'touchend', this.onMouseUp);
+
+ this.update();
+};
+
+vjs.Slider.prototype.update = function(){
+ // In VolumeBar init we have a setTimeout for update that pops and update to the end of the
+ // execution stack. The player is destroyed before then update will cause an error
+ if (!this.el_) return;
+
+ // If scrubbing, we could use a cached value to make the handle keep up with the user's mouse.
+ // On HTML5 browsers scrubbing is really smooth, but some flash players are slow, so we might want to utilize this later.
+ // var progress = (this.player_.scrubbing) ? this.player_.getCache().currentTime / this.player_.duration() : this.player_.currentTime() / this.player_.duration();
+
+ var barProgress,
+ progress = this.getPercent(),
+ handle = this.handle,
+ bar = this.bar;
+
+ // Protect against no duration and other division issues
+ if (typeof progress !== 'number' ||
+ progress !== progress ||
+ progress < 0 ||
+ progress === Infinity) {
+ progress = 0;
+ }
+
+ barProgress = progress;
+
+ // If there is a handle, we need to account for the handle in our calculation for progress bar
+ // so that it doesn't fall short of or extend past the handle.
+ if (handle) {
+
+ var box = this.el_,
+ boxWidth = box.offsetWidth,
+
+ handleWidth = handle.el().offsetWidth,
+
+ // The width of the handle in percent of the containing box
+ // In IE, widths may not be ready yet causing NaN
+ handlePercent = (handleWidth) ? handleWidth / boxWidth : 0,
+
+ // Get the adjusted size of the box, considering that the handle's center never touches the left or right side.
+ // There is a margin of half the handle's width on both sides.
+ boxAdjustedPercent = 1 - handlePercent,
+
+ // Adjust the progress that we'll use to set widths to the new adjusted box width
+ adjustedProgress = progress * boxAdjustedPercent;
+
+ // The bar does reach the left side, so we need to account for this in the bar's width
+ barProgress = adjustedProgress + (handlePercent / 2);
+
+ // Move the handle from the left based on the adjected progress
+ handle.el().style.left = vjs.round(adjustedProgress * 100, 2) + '%';
+ }
+
+ // Set the new bar width
+ if (bar) {
+ bar.el().style.width = vjs.round(barProgress * 100, 2) + '%';
+ }
+};
+
+vjs.Slider.prototype.calculateDistance = function(event){
+ var el, box, boxX, boxY, boxW, boxH, handle, pageX, pageY;
+
+ el = this.el_;
+ box = vjs.findPosition(el);
+ boxW = boxH = el.offsetWidth;
+ handle = this.handle;
+
+ if (this.options()['vertical']) {
+ boxY = box.top;
+
+ if (event.changedTouches) {
+ pageY = event.changedTouches[0].pageY;
+ } else {
+ pageY = event.pageY;
+ }
+
+ if (handle) {
+ var handleH = handle.el().offsetHeight;
+ // Adjusted X and Width, so handle doesn't go outside the bar
+ boxY = boxY + (handleH / 2);
+ boxH = boxH - handleH;
+ }
+
+ // Percent that the click is through the adjusted area
+ return Math.max(0, Math.min(1, ((boxY - pageY) + boxH) / boxH));
+
+ } else {
+ boxX = box.left;
+
+ if (event.changedTouches) {
+ pageX = event.changedTouches[0].pageX;
+ } else {
+ pageX = event.pageX;
+ }
+
+ if (handle) {
+ var handleW = handle.el().offsetWidth;
+
+ // Adjusted X and Width, so handle doesn't go outside the bar
+ boxX = boxX + (handleW / 2);
+ boxW = boxW - handleW;
+ }
+
+ // Percent that the click is through the adjusted area
+ return Math.max(0, Math.min(1, (pageX - boxX) / boxW));
+ }
+};
+
+vjs.Slider.prototype.onFocus = function(){
+ this.on(document, 'keydown', this.onKeyPress);
+};
+
+vjs.Slider.prototype.onKeyPress = function(event){
+ if (event.which == 37 || event.which == 40) { // Left and Down Arrows
+ event.preventDefault();
+ this.stepBack();
+ } else if (event.which == 38 || event.which == 39) { // Up and Right Arrows
+ event.preventDefault();
+ this.stepForward();
+ }
+};
+
+vjs.Slider.prototype.onBlur = function(){
+ this.off(document, 'keydown', this.onKeyPress);
+};
+
+/**
+ * Listener for click events on slider, used to prevent clicks
+ * from bubbling up to parent elements like button menus.
+ * @param {Object} event Event object
+ */
+vjs.Slider.prototype.onClick = function(event){
+ event.stopImmediatePropagation();
+ event.preventDefault();
+};
+
+/**
+ * SeekBar Behavior includes play progress bar, and seek handle
+ * Needed so it can determine seek position based on handle position/size
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.SliderHandle = vjs.Component.extend();
+
+/**
+ * Default value of the slider
+ *
+ * @type {Number}
+ * @private
+ */
+vjs.SliderHandle.prototype.defaultValue = 0;
+
+/** @inheritDoc */
+vjs.SliderHandle.prototype.createEl = function(type, props) {
+ props = props || {};
+ // Add the slider element class to all sub classes
+ props.className = props.className + ' vjs-slider-handle';
+ props = vjs.obj.merge({
+ innerHTML: '
'+this.defaultValue+' '
+ }, props);
+
+ return vjs.Component.prototype.createEl.call(this, 'div', props);
+};
+/* Menu
+================================================================================ */
+/**
+ * The Menu component is used to build pop up menus, including subtitle and
+ * captions selection menus.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.Menu = vjs.Component.extend();
+
+/**
+ * Add a menu item to the menu
+ * @param {Object|String} component Component or component type to add
+ */
+vjs.Menu.prototype.addItem = function(component){
+ this.addChild(component);
+ component.on('click', vjs.bind(this, function(){
+ this.unlockShowing();
+ }));
+};
+
+/** @inheritDoc */
+vjs.Menu.prototype.createEl = function(){
+ var contentElType = this.options().contentElType || 'ul';
+ this.contentEl_ = vjs.createEl(contentElType, {
+ className: 'vjs-menu-content'
+ });
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ append: this.contentEl_,
+ className: 'vjs-menu'
+ });
+ el.appendChild(this.contentEl_);
+
+ // Prevent clicks from bubbling up. Needed for Menu Buttons,
+ // where a click on the parent is significant
+ vjs.on(el, 'click', function(event){
+ event.preventDefault();
+ event.stopImmediatePropagation();
+ });
+
+ return el;
+};
+
+/**
+ * The component for a menu item. `
`
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.MenuItem = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+ this.selected(options['selected']);
+ }
+});
+
+/** @inheritDoc */
+vjs.MenuItem.prototype.createEl = function(type, props){
+ return vjs.Button.prototype.createEl.call(this, 'li', vjs.obj.merge({
+ className: 'vjs-menu-item',
+ innerHTML: this.localize(this.options_['label'])
+ }, props));
+};
+
+/**
+ * Handle a click on the menu item, and set it to selected
+ */
+vjs.MenuItem.prototype.onClick = function(){
+ this.selected(true);
+};
+
+/**
+ * Set this menu item as selected or not
+ * @param {Boolean} selected
+ */
+vjs.MenuItem.prototype.selected = function(selected){
+ if (selected) {
+ this.addClass('vjs-selected');
+ this.el_.setAttribute('aria-selected',true);
+ } else {
+ this.removeClass('vjs-selected');
+ this.el_.setAttribute('aria-selected',false);
+ }
+};
+
+
+/**
+ * A button class with a popup menu
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.MenuButton = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.update();
+
+ this.on('keydown', this.onKeyPress);
+ this.el_.setAttribute('aria-haspopup', true);
+ this.el_.setAttribute('role', 'button');
+ }
+});
+
+vjs.MenuButton.prototype.update = function() {
+ var menu = this.createMenu();
+
+ if (this.menu) {
+ this.removeChild(this.menu);
+ }
+
+ this.menu = menu;
+ this.addChild(menu);
+
+ if (this.items && this.items.length === 0) {
+ this.hide();
+ } else if (this.items && this.items.length > 1) {
+ this.show();
+ }
+};
+
+/**
+ * Track the state of the menu button
+ * @type {Boolean}
+ * @private
+ */
+vjs.MenuButton.prototype.buttonPressed_ = false;
+
+vjs.MenuButton.prototype.createMenu = function(){
+ var menu = new vjs.Menu(this.player_);
+
+ // Add a title list item to the top
+ if (this.options().title) {
+ menu.contentEl().appendChild(vjs.createEl('li', {
+ className: 'vjs-menu-title',
+ innerHTML: vjs.capitalize(this.options().title),
+ tabindex: -1
+ }));
+ }
+
+ this.items = this['createItems']();
+
+ if (this.items) {
+ // Add menu items to the menu
+ for (var i = 0; i < this.items.length; i++) {
+ menu.addItem(this.items[i]);
+ }
+ }
+
+ return menu;
+};
+
+/**
+ * Create the list of menu items. Specific to each subclass.
+ */
+vjs.MenuButton.prototype.createItems = function(){};
+
+/** @inheritDoc */
+vjs.MenuButton.prototype.buildCSSClass = function(){
+ return this.className + ' vjs-menu-button ' + vjs.Button.prototype.buildCSSClass.call(this);
+};
+
+// Focus - Add keyboard functionality to element
+// This function is not needed anymore. Instead, the keyboard functionality is handled by
+// treating the button as triggering a submenu. When the button is pressed, the submenu
+// appears. Pressing the button again makes the submenu disappear.
+vjs.MenuButton.prototype.onFocus = function(){};
+// Can't turn off list display that we turned on with focus, because list would go away.
+vjs.MenuButton.prototype.onBlur = function(){};
+
+vjs.MenuButton.prototype.onClick = function(){
+ // When you click the button it adds focus, which will show the menu indefinitely.
+ // So we'll remove focus when the mouse leaves the button.
+ // Focus is needed for tab navigation.
+ this.one('mouseout', vjs.bind(this, function(){
+ this.menu.unlockShowing();
+ this.el_.blur();
+ }));
+ if (this.buttonPressed_){
+ this.unpressButton();
+ } else {
+ this.pressButton();
+ }
+};
+
+vjs.MenuButton.prototype.onKeyPress = function(event){
+
+ // Check for space bar (32) or enter (13) keys
+ if (event.which == 32 || event.which == 13) {
+ if (this.buttonPressed_){
+ this.unpressButton();
+ } else {
+ this.pressButton();
+ }
+ event.preventDefault();
+ // Check for escape (27) key
+ } else if (event.which == 27){
+ if (this.buttonPressed_){
+ this.unpressButton();
+ }
+ event.preventDefault();
+ }
+};
+
+vjs.MenuButton.prototype.pressButton = function(){
+ this.buttonPressed_ = true;
+ this.menu.lockShowing();
+ this.el_.setAttribute('aria-pressed', true);
+ if (this.items && this.items.length > 0) {
+ this.items[0].el().focus(); // set the focus to the title of the submenu
+ }
+};
+
+vjs.MenuButton.prototype.unpressButton = function(){
+ this.buttonPressed_ = false;
+ this.menu.unlockShowing();
+ this.el_.setAttribute('aria-pressed', false);
+};
+/**
+ * Custom MediaError to mimic the HTML5 MediaError
+ * @param {Number} code The media error code
+ */
+vjs.MediaError = function(code){
+ if (typeof code === 'number') {
+ this.code = code;
+ } else if (typeof code === 'string') {
+ // default code is zero, so this is a custom error
+ this.message = code;
+ } else if (typeof code === 'object') { // object
+ vjs.obj.merge(this, code);
+ }
+
+ if (!this.message) {
+ this.message = vjs.MediaError.defaultMessages[this.code] || '';
+ }
+};
+
+/**
+ * The error code that refers two one of the defined
+ * MediaError types
+ * @type {Number}
+ */
+vjs.MediaError.prototype.code = 0;
+
+/**
+ * An optional message to be shown with the error.
+ * Message is not part of the HTML5 video spec
+ * but allows for more informative custom errors.
+ * @type {String}
+ */
+vjs.MediaError.prototype.message = '';
+
+/**
+ * An optional status code that can be set by plugins
+ * to allow even more detail about the error.
+ * For example the HLS plugin might provide the specific
+ * HTTP status code that was returned when the error
+ * occurred, then allowing a custom error overlay
+ * to display more information.
+ * @type {[type]}
+ */
+vjs.MediaError.prototype.status = null;
+
+vjs.MediaError.errorTypes = [
+ 'MEDIA_ERR_CUSTOM', // = 0
+ 'MEDIA_ERR_ABORTED', // = 1
+ 'MEDIA_ERR_NETWORK', // = 2
+ 'MEDIA_ERR_DECODE', // = 3
+ 'MEDIA_ERR_SRC_NOT_SUPPORTED', // = 4
+ 'MEDIA_ERR_ENCRYPTED' // = 5
+];
+
+vjs.MediaError.defaultMessages = {
+ 1: 'You aborted the video playback',
+ 2: 'A network error caused the video download to fail part-way.',
+ 3: 'The video playback was aborted due to a corruption problem or because the video used features your browser did not support.',
+ 4: 'The video could not be loaded, either because the server or network failed or because the format is not supported.',
+ 5: 'The video is encrypted and we do not have the keys to decrypt it.'
+};
+
+// Add types as properties on MediaError
+// e.g. MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
+for (var errNum = 0; errNum < vjs.MediaError.errorTypes.length; errNum++) {
+ vjs.MediaError[vjs.MediaError.errorTypes[errNum]] = errNum;
+ // values should be accessible on both the class and instance
+ vjs.MediaError.prototype[vjs.MediaError.errorTypes[errNum]] = errNum;
+}
+(function(){
+ var apiMap, specApi, browserApi, i;
+
+ /**
+ * Store the browser-specific methods for the fullscreen API
+ * @type {Object|undefined}
+ * @private
+ */
+ vjs.browser.fullscreenAPI;
+
+ // browser API methods
+ // map approach from Screenful.js - https://github.com/sindresorhus/screenfull.js
+ apiMap = [
+ // Spec: https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html
+ [
+ 'requestFullscreen',
+ 'exitFullscreen',
+ 'fullscreenElement',
+ 'fullscreenEnabled',
+ 'fullscreenchange',
+ 'fullscreenerror'
+ ],
+ // WebKit
+ [
+ 'webkitRequestFullscreen',
+ 'webkitExitFullscreen',
+ 'webkitFullscreenElement',
+ 'webkitFullscreenEnabled',
+ 'webkitfullscreenchange',
+ 'webkitfullscreenerror'
+ ],
+ // Old WebKit (Safari 5.1)
+ [
+ 'webkitRequestFullScreen',
+ 'webkitCancelFullScreen',
+ 'webkitCurrentFullScreenElement',
+ 'webkitCancelFullScreen',
+ 'webkitfullscreenchange',
+ 'webkitfullscreenerror'
+ ],
+ // Mozilla
+ [
+ 'mozRequestFullScreen',
+ 'mozCancelFullScreen',
+ 'mozFullScreenElement',
+ 'mozFullScreenEnabled',
+ 'mozfullscreenchange',
+ 'mozfullscreenerror'
+ ],
+ // Microsoft
+ [
+ 'msRequestFullscreen',
+ 'msExitFullscreen',
+ 'msFullscreenElement',
+ 'msFullscreenEnabled',
+ 'MSFullscreenChange',
+ 'MSFullscreenError'
+ ]
+ ];
+
+ specApi = apiMap[0];
+
+ // determine the supported set of functions
+ for (i=0; i
+ *
+ *
+ * ```
+ *
+ * After an instance has been created it can be accessed globally using `Video('example_video_1')`.
+ *
+ * @class
+ * @extends vjs.Component
+ */
+vjs.Player = vjs.Component.extend({
+
+ /**
+ * player's constructor function
+ *
+ * @constructs
+ * @method init
+ * @param {Element} tag The original video tag used for configuring options
+ * @param {Object=} options Player options
+ * @param {Function=} ready Ready callback function
+ */
+ init: function(tag, options, ready){
+ this.tag = tag; // Store the original tag used to set options
+
+ // Make sure tag ID exists
+ tag.id = tag.id || 'vjs_video_' + vjs.guid++;
+
+ // Store the tag attributes used to restore html5 element
+ this.tagAttributes = tag && vjs.getElementAttributes(tag);
+
+ // Set Options
+ // The options argument overrides options set in the video tag
+ // which overrides globally set options.
+ // This latter part coincides with the load order
+ // (tag must exist before Player)
+ options = vjs.obj.merge(this.getTagSettings(tag), options);
+
+ // Update Current Language
+ this.language_ = options['language'] || vjs.options['language'];
+
+ // Update Supported Languages
+ this.languages_ = options['languages'] || vjs.options['languages'];
+
+ // Cache for video property values.
+ this.cache_ = {};
+
+ // Set poster
+ this.poster_ = options['poster'] || '';
+
+ // Set controls
+ this.controls_ = !!options['controls'];
+ // Original tag settings stored in options
+ // now remove immediately so native controls don't flash.
+ // May be turned back on by HTML5 tech if nativeControlsForTouch is true
+ tag.controls = false;
+
+ // we don't want the player to report touch activity on itself
+ // see enableTouchActivity in Component
+ options.reportTouchActivity = false;
+
+ // Set isAudio based on whether or not an audio tag was used
+ this.isAudio(this.tag.nodeName.toLowerCase() === 'audio');
+
+ // Run base component initializing with new options.
+ // Builds the element through createEl()
+ // Inits and embeds any child components in opts
+ vjs.Component.call(this, this, options, ready);
+
+ // Update controls className. Can't do this when the controls are initially
+ // set because the element doesn't exist yet.
+ if (this.controls()) {
+ this.addClass('vjs-controls-enabled');
+ } else {
+ this.addClass('vjs-controls-disabled');
+ }
+
+ if (this.isAudio()) {
+ this.addClass('vjs-audio');
+ }
+
+ // TODO: Make this smarter. Toggle user state between touching/mousing
+ // using events, since devices can have both touch and mouse events.
+ // if (vjs.TOUCH_ENABLED) {
+ // this.addClass('vjs-touch-enabled');
+ // }
+
+ // Make player easily findable by ID
+ vjs.players[this.id_] = this;
+
+ if (options['plugins']) {
+ vjs.obj.each(options['plugins'], function(key, val){
+ this[key](val);
+ }, this);
+ }
+
+ this.listenForUserActivity();
+ }
+});
+
+/**
+ * The player's stored language code
+ *
+ * @type {String}
+ * @private
+ */
+vjs.Player.prototype.language_;
+
+/**
+ * The player's language code
+ * @param {String} languageCode The locale string
+ * @return {String} The locale string when getting
+ * @return {vjs.Player} self, when setting
+ */
+vjs.Player.prototype.language = function (languageCode) {
+ if (languageCode === undefined) {
+ return this.language_;
+ }
+
+ this.language_ = languageCode;
+ return this;
+};
+
+/**
+ * The player's stored language dictionary
+ *
+ * @type {Object}
+ * @private
+ */
+vjs.Player.prototype.languages_;
+
+vjs.Player.prototype.languages = function(){
+ return this.languages_;
+};
+
+/**
+ * Player instance options, surfaced using vjs.options
+ * vjs.options = vjs.Player.prototype.options_
+ * Make changes in vjs.options, not here.
+ * All options should use string keys so they avoid
+ * renaming by closure compiler
+ * @type {Object}
+ * @private
+ */
+vjs.Player.prototype.options_ = vjs.options;
+
+/**
+ * Destroys the video player and does any necessary cleanup
+ *
+ * myPlayer.dispose();
+ *
+ * This is especially helpful if you are dynamically adding and removing videos
+ * to/from the DOM.
+ */
+vjs.Player.prototype.dispose = function(){
+ this.trigger('dispose');
+ // prevent dispose from being called twice
+ this.off('dispose');
+
+ // Kill reference to this player
+ vjs.players[this.id_] = null;
+ if (this.tag && this.tag['player']) { this.tag['player'] = null; }
+ if (this.el_ && this.el_['player']) { this.el_['player'] = null; }
+
+ if (this.tech) { this.tech.dispose(); }
+
+ // Component dispose
+ vjs.Component.prototype.dispose.call(this);
+};
+
+vjs.Player.prototype.getTagSettings = function(tag){
+ var tagOptions,
+ dataSetup,
+ options = {
+ 'sources': [],
+ 'tracks': []
+ };
+
+ tagOptions = vjs.getElementAttributes(tag);
+ dataSetup = tagOptions['data-setup'];
+
+ // Check if data-setup attr exists.
+ if (dataSetup !== null){
+ // Parse options JSON
+ // If empty string, make it a parsable json object.
+ vjs.obj.merge(tagOptions, vjs.JSON.parse(dataSetup || '{}'));
+ }
+
+ vjs.obj.merge(options, tagOptions);
+
+ // Get tag children settings
+ if (tag.hasChildNodes()) {
+ var children, child, childName, i, j;
+
+ children = tag.childNodes;
+
+ for (i=0,j=children.length; i 0) {
+ techOptions['startTime'] = this.cache_.currentTime;
+ }
+
+ this.cache_.src = source.src;
+ }
+
+ // Initialize tech instance
+ this.tech = new window['videojs'][techName](this, techOptions);
+
+ this.tech.ready(techReady);
+};
+
+vjs.Player.prototype.unloadTech = function(){
+ this.isReady_ = false;
+
+ this.tech.dispose();
+
+ this.tech = false;
+};
+
+// There's many issues around changing the size of a Flash (or other plugin) object.
+// First is a plugin reload issue in Firefox that has been around for 11 years: https://bugzilla.mozilla.org/show_bug.cgi?id=90268
+// Then with the new fullscreen API, Mozilla and webkit browsers will reload the flash object after going to fullscreen.
+// To get around this, we're unloading the tech, caching source and currentTime values, and reloading the tech once the plugin is resized.
+// reloadTech: function(betweenFn){
+// vjs.log('unloadingTech')
+// this.unloadTech();
+// vjs.log('unloadedTech')
+// if (betweenFn) { betweenFn.call(); }
+// vjs.log('LoadingTech')
+// this.loadTech(this.techName, { src: this.cache_.src })
+// vjs.log('loadedTech')
+// },
+
+// /* Player event handlers (how the player reacts to certain events)
+// ================================================================================ */
+
+/**
+ * Fired when the user agent begins looking for media data
+ * @event loadstart
+ */
+vjs.Player.prototype.onLoadStart = function() {
+ // TODO: Update to use `emptied` event instead. See #1277.
+
+ this.removeClass('vjs-ended');
+
+ // reset the error state
+ this.error(null);
+
+ // If it's already playing we want to trigger a firstplay event now.
+ // The firstplay event relies on both the play and loadstart events
+ // which can happen in any order for a new source
+ if (!this.paused()) {
+ this.trigger('firstplay');
+ } else {
+ // reset the hasStarted state
+ this.hasStarted(false);
+ }
+};
+
+vjs.Player.prototype.hasStarted_ = false;
+
+vjs.Player.prototype.hasStarted = function(hasStarted){
+ if (hasStarted !== undefined) {
+ // only update if this is a new value
+ if (this.hasStarted_ !== hasStarted) {
+ this.hasStarted_ = hasStarted;
+ if (hasStarted) {
+ this.addClass('vjs-has-started');
+ // trigger the firstplay event if this newly has played
+ this.trigger('firstplay');
+ } else {
+ this.removeClass('vjs-has-started');
+ }
+ }
+ return this;
+ }
+ return this.hasStarted_;
+};
+
+/**
+ * Fired when the player has initial duration and dimension information
+ * @event loadedmetadata
+ */
+vjs.Player.prototype.onLoadedMetaData;
+
+/**
+ * Fired when the player has downloaded data at the current playback position
+ * @event loadeddata
+ */
+vjs.Player.prototype.onLoadedData;
+
+/**
+ * Fired when the player has finished downloading the source data
+ * @event loadedalldata
+ */
+vjs.Player.prototype.onLoadedAllData;
+
+/**
+ * Fired whenever the media begins or resumes playback
+ * @event play
+ */
+vjs.Player.prototype.onPlay = function(){
+ this.removeClass('vjs-ended');
+ this.removeClass('vjs-paused');
+ this.addClass('vjs-playing');
+
+ // hide the poster when the user hits play
+ // https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-play
+ this.hasStarted(true);
+};
+
+/**
+ * Fired whenever the media begins waiting
+ * @event waiting
+ */
+vjs.Player.prototype.onWaiting = function(){
+ this.addClass('vjs-waiting');
+};
+
+/**
+ * A handler for events that signal that waiting has ended
+ * which is not consistent between browsers. See #1351
+ * @private
+ */
+vjs.Player.prototype.onWaitEnd = function(){
+ this.removeClass('vjs-waiting');
+};
+
+/**
+ * Fired whenever the player is jumping to a new time
+ * @event seeking
+ */
+vjs.Player.prototype.onSeeking = function(){
+ this.addClass('vjs-seeking');
+};
+
+/**
+ * Fired when the player has finished jumping to a new time
+ * @event seeked
+ */
+vjs.Player.prototype.onSeeked = function(){
+ this.removeClass('vjs-seeking');
+};
+
+/**
+ * Fired the first time a video is played
+ *
+ * Not part of the HLS spec, and we're not sure if this is the best
+ * implementation yet, so use sparingly. If you don't have a reason to
+ * prevent playback, use `myPlayer.one('play');` instead.
+ *
+ * @event firstplay
+ */
+vjs.Player.prototype.onFirstPlay = function(){
+ //If the first starttime attribute is specified
+ //then we will start at the given offset in seconds
+ if(this.options_['starttime']){
+ this.currentTime(this.options_['starttime']);
+ }
+
+ this.addClass('vjs-has-started');
+};
+
+/**
+ * Fired whenever the media has been paused
+ * @event pause
+ */
+vjs.Player.prototype.onPause = function(){
+ this.removeClass('vjs-playing');
+ this.addClass('vjs-paused');
+};
+
+/**
+ * Fired when the current playback position has changed
+ *
+ * During playback this is fired every 15-250 milliseconds, depending on the
+ * playback technology in use.
+ * @event timeupdate
+ */
+vjs.Player.prototype.onTimeUpdate;
+
+/**
+ * Fired while the user agent is downloading media data
+ * @event progress
+ */
+vjs.Player.prototype.onProgress = function(){
+ // Add custom event for when source is finished downloading.
+ if (this.bufferedPercent() == 1) {
+ this.trigger('loadedalldata');
+ }
+};
+
+/**
+ * Fired when the end of the media resource is reached (currentTime == duration)
+ * @event ended
+ */
+vjs.Player.prototype.onEnded = function(){
+ this.addClass('vjs-ended');
+ if (this.options_['loop']) {
+ this.currentTime(0);
+ this.play();
+ } else if (!this.paused()) {
+ this.pause();
+ }
+};
+
+/**
+ * Fired when the duration of the media resource is first known or changed
+ * @event durationchange
+ */
+vjs.Player.prototype.onDurationChange = function(){
+ // Allows for caching value instead of asking player each time.
+ // We need to get the techGet response and check for a value so we don't
+ // accidentally cause the stack to blow up.
+ var duration = this.techGet('duration');
+ if (duration) {
+ if (duration < 0) {
+ duration = Infinity;
+ }
+ this.duration(duration);
+ // Determine if the stream is live and propagate styles down to UI.
+ if (duration === Infinity) {
+ this.addClass('vjs-live');
+ } else {
+ this.removeClass('vjs-live');
+ }
+ }
+};
+
+/**
+ * Fired when the volume changes
+ * @event volumechange
+ */
+vjs.Player.prototype.onVolumeChange;
+
+/**
+ * Fired when the player switches in or out of fullscreen mode
+ * @event fullscreenchange
+ */
+vjs.Player.prototype.onFullscreenChange = function() {
+ if (this.isFullscreen()) {
+ this.addClass('vjs-fullscreen');
+ } else {
+ this.removeClass('vjs-fullscreen');
+ }
+};
+
+/**
+ * Fired when an error occurs
+ * @event error
+ */
+vjs.Player.prototype.onError;
+
+// /* Player API
+// ================================================================================ */
+
+/**
+ * Object for cached values.
+ * @private
+ */
+vjs.Player.prototype.cache_;
+
+vjs.Player.prototype.getCache = function(){
+ return this.cache_;
+};
+
+// Pass values to the playback tech
+vjs.Player.prototype.techCall = function(method, arg){
+ // If it's not ready yet, call method when it is
+ if (this.tech && !this.tech.isReady_) {
+ this.tech.ready(function(){
+ this[method](arg);
+ });
+
+ // Otherwise call method now
+ } else {
+ try {
+ this.tech[method](arg);
+ } catch(e) {
+ vjs.log(e);
+ throw e;
+ }
+ }
+};
+
+// Get calls can't wait for the tech, and sometimes don't need to.
+vjs.Player.prototype.techGet = function(method){
+ if (this.tech && this.tech.isReady_) {
+
+ // Flash likes to die and reload when you hide or reposition it.
+ // In these cases the object methods go away and we get errors.
+ // When that happens we'll catch the errors and inform tech that it's not ready any more.
+ try {
+ return this.tech[method]();
+ } catch(e) {
+ // When building additional tech libs, an expected method may not be defined yet
+ if (this.tech[method] === undefined) {
+ vjs.log('Video.js: ' + method + ' method not defined for '+this.techName+' playback technology.', e);
+ } else {
+ // When a method isn't available on the object it throws a TypeError
+ if (e.name == 'TypeError') {
+ vjs.log('Video.js: ' + method + ' unavailable on '+this.techName+' playback technology element.', e);
+ this.tech.isReady_ = false;
+ } else {
+ vjs.log(e);
+ }
+ }
+ throw e;
+ }
+ }
+
+ return;
+};
+
+/**
+ * start media playback
+ *
+ * myPlayer.play();
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.play = function(){
+ this.techCall('play');
+ return this;
+};
+
+/**
+ * Pause the video playback
+ *
+ * myPlayer.pause();
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.pause = function(){
+ this.techCall('pause');
+ return this;
+};
+
+/**
+ * Check if the player is paused
+ *
+ * var isPaused = myPlayer.paused();
+ * var isPlaying = !myPlayer.paused();
+ *
+ * @return {Boolean} false if the media is currently playing, or true otherwise
+ */
+vjs.Player.prototype.paused = function(){
+ // The initial state of paused should be true (in Safari it's actually false)
+ return (this.techGet('paused') === false) ? false : true;
+};
+
+/**
+ * Get or set the current time (in seconds)
+ *
+ * // get
+ * var whereYouAt = myPlayer.currentTime();
+ *
+ * // set
+ * myPlayer.currentTime(120); // 2 minutes into the video
+ *
+ * @param {Number|String=} seconds The time to seek to
+ * @return {Number} The time in seconds, when not setting
+ * @return {vjs.Player} self, when the current time is set
+ */
+vjs.Player.prototype.currentTime = function(seconds){
+ if (seconds !== undefined) {
+
+ this.techCall('setCurrentTime', seconds);
+
+ return this;
+ }
+
+ // cache last currentTime and return. default to 0 seconds
+ //
+ // Caching the currentTime is meant to prevent a massive amount of reads on the tech's
+ // currentTime when scrubbing, but may not provide much performance benefit afterall.
+ // Should be tested. Also something has to read the actual current time or the cache will
+ // never get updated.
+ return this.cache_.currentTime = (this.techGet('currentTime') || 0);
+};
+
+/**
+ * Get the length in time of the video in seconds
+ *
+ * var lengthOfVideo = myPlayer.duration();
+ *
+ * **NOTE**: The video must have started loading before the duration can be
+ * known, and in the case of Flash, may not be known until the video starts
+ * playing.
+ *
+ * @return {Number} The duration of the video in seconds
+ */
+vjs.Player.prototype.duration = function(seconds){
+ if (seconds !== undefined) {
+
+ // cache the last set value for optimized scrubbing (esp. Flash)
+ this.cache_.duration = parseFloat(seconds);
+
+ return this;
+ }
+
+ if (this.cache_.duration === undefined) {
+ this.onDurationChange();
+ }
+
+ return this.cache_.duration || 0;
+};
+
+/**
+ * Calculates how much time is left.
+ *
+ * var timeLeft = myPlayer.remainingTime();
+ *
+ * Not a native video element function, but useful
+ * @return {Number} The time remaining in seconds
+ */
+vjs.Player.prototype.remainingTime = function(){
+ return this.duration() - this.currentTime();
+};
+
+// http://dev.w3.org/html5/spec/video.html#dom-media-buffered
+// Buffered returns a timerange object.
+// Kind of like an array of portions of the video that have been downloaded.
+
+/**
+ * Get a TimeRange object with the times of the video that have been downloaded
+ *
+ * If you just want the percent of the video that's been downloaded,
+ * use bufferedPercent.
+ *
+ * // Number of different ranges of time have been buffered. Usually 1.
+ * numberOfRanges = bufferedTimeRange.length,
+ *
+ * // Time in seconds when the first range starts. Usually 0.
+ * firstRangeStart = bufferedTimeRange.start(0),
+ *
+ * // Time in seconds when the first range ends
+ * firstRangeEnd = bufferedTimeRange.end(0),
+ *
+ * // Length in seconds of the first time range
+ * firstRangeLength = firstRangeEnd - firstRangeStart;
+ *
+ * @return {Object} A mock TimeRange object (following HTML spec)
+ */
+vjs.Player.prototype.buffered = function(){
+ var buffered = this.techGet('buffered');
+
+ if (!buffered || !buffered.length) {
+ buffered = vjs.createTimeRange(0,0);
+ }
+
+ return buffered;
+};
+
+/**
+ * Get the percent (as a decimal) of the video that's been downloaded
+ *
+ * var howMuchIsDownloaded = myPlayer.bufferedPercent();
+ *
+ * 0 means none, 1 means all.
+ * (This method isn't in the HTML5 spec, but it's very convenient)
+ *
+ * @return {Number} A decimal between 0 and 1 representing the percent
+ */
+vjs.Player.prototype.bufferedPercent = function(){
+ var duration = this.duration(),
+ buffered = this.buffered(),
+ bufferedDuration = 0,
+ start, end;
+
+ if (!duration) {
+ return 0;
+ }
+
+ for (var i=0; i duration) {
+ end = duration;
+ }
+
+ bufferedDuration += end - start;
+ }
+
+ return bufferedDuration / duration;
+};
+
+/**
+ * Get the ending time of the last buffered time range
+ *
+ * This is used in the progress bar to encapsulate all time ranges.
+ * @return {Number} The end of the last buffered time range
+ */
+vjs.Player.prototype.bufferedEnd = function(){
+ var buffered = this.buffered(),
+ duration = this.duration(),
+ end = buffered.end(buffered.length-1);
+
+ if (end > duration) {
+ end = duration;
+ }
+
+ return end;
+};
+
+/**
+ * Get or set the current volume of the media
+ *
+ * // get
+ * var howLoudIsIt = myPlayer.volume();
+ *
+ * // set
+ * myPlayer.volume(0.5); // Set volume to half
+ *
+ * 0 is off (muted), 1.0 is all the way up, 0.5 is half way.
+ *
+ * @param {Number} percentAsDecimal The new volume as a decimal percent
+ * @return {Number} The current volume, when getting
+ * @return {vjs.Player} self, when setting
+ */
+vjs.Player.prototype.volume = function(percentAsDecimal){
+ var vol;
+
+ if (percentAsDecimal !== undefined) {
+ vol = Math.max(0, Math.min(1, parseFloat(percentAsDecimal))); // Force value to between 0 and 1
+ this.cache_.volume = vol;
+ this.techCall('setVolume', vol);
+ vjs.setLocalStorage('volume', vol);
+ return this;
+ }
+
+ // Default to 1 when returning current volume.
+ vol = parseFloat(this.techGet('volume'));
+ return (isNaN(vol)) ? 1 : vol;
+};
+
+
+/**
+ * Get the current muted state, or turn mute on or off
+ *
+ * // get
+ * var isVolumeMuted = myPlayer.muted();
+ *
+ * // set
+ * myPlayer.muted(true); // mute the volume
+ *
+ * @param {Boolean=} muted True to mute, false to unmute
+ * @return {Boolean} True if mute is on, false if not, when getting
+ * @return {vjs.Player} self, when setting mute
+ */
+vjs.Player.prototype.muted = function(muted){
+ if (muted !== undefined) {
+ this.techCall('setMuted', muted);
+ return this;
+ }
+ return this.techGet('muted') || false; // Default to false
+};
+
+// Check if current tech can support native fullscreen
+// (e.g. with built in controls like iOS, so not our flash swf)
+vjs.Player.prototype.supportsFullScreen = function(){
+ return this.techGet('supportsFullScreen') || false;
+};
+
+/**
+ * is the player in fullscreen
+ * @type {Boolean}
+ * @private
+ */
+vjs.Player.prototype.isFullscreen_ = false;
+
+/**
+ * Check if the player is in fullscreen mode
+ *
+ * // get
+ * var fullscreenOrNot = myPlayer.isFullscreen();
+ *
+ * // set
+ * myPlayer.isFullscreen(true); // tell the player it's in fullscreen
+ *
+ * NOTE: As of the latest HTML5 spec, isFullscreen is no longer an official
+ * property and instead document.fullscreenElement is used. But isFullscreen is
+ * still a valuable property for internal player workings.
+ *
+ * @param {Boolean=} isFS Update the player's fullscreen state
+ * @return {Boolean} true if fullscreen, false if not
+ * @return {vjs.Player} self, when setting
+ */
+vjs.Player.prototype.isFullscreen = function(isFS){
+ if (isFS !== undefined) {
+ this.isFullscreen_ = !!isFS;
+ return this;
+ }
+ return this.isFullscreen_;
+};
+
+/**
+ * Old naming for isFullscreen()
+ * @deprecated for lowercase 's' version
+ */
+vjs.Player.prototype.isFullScreen = function(isFS){
+ vjs.log.warn('player.isFullScreen() has been deprecated, use player.isFullscreen() with a lowercase "s")');
+ return this.isFullscreen(isFS);
+};
+
+/**
+ * Increase the size of the video to full screen
+ *
+ * myPlayer.requestFullscreen();
+ *
+ * In some browsers, full screen is not supported natively, so it enters
+ * "full window mode", where the video fills the browser window.
+ * In browsers and devices that support native full screen, sometimes the
+ * browser's default controls will be shown, and not the Video.js custom skin.
+ * This includes most mobile devices (iOS, Android) and older versions of
+ * Safari.
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.requestFullscreen = function(){
+ var fsApi = vjs.browser.fullscreenAPI;
+
+ this.isFullscreen(true);
+
+ if (fsApi) {
+ // the browser supports going fullscreen at the element level so we can
+ // take the controls fullscreen as well as the video
+
+ // Trigger fullscreenchange event after change
+ // We have to specifically add this each time, and remove
+ // when canceling fullscreen. Otherwise if there's multiple
+ // players on a page, they would all be reacting to the same fullscreen
+ // events
+ vjs.on(document, fsApi['fullscreenchange'], vjs.bind(this, function(e){
+ this.isFullscreen(document[fsApi.fullscreenElement]);
+
+ // If cancelling fullscreen, remove event listener.
+ if (this.isFullscreen() === false) {
+ vjs.off(document, fsApi['fullscreenchange'], arguments.callee);
+ }
+
+ this.trigger('fullscreenchange');
+ }));
+
+ this.el_[fsApi.requestFullscreen]();
+
+ } else if (this.tech.supportsFullScreen()) {
+ // we can't take the video.js controls fullscreen but we can go fullscreen
+ // with native controls
+ this.techCall('enterFullScreen');
+ } else {
+ // fullscreen isn't supported so we'll just stretch the video element to
+ // fill the viewport
+ this.enterFullWindow();
+ this.trigger('fullscreenchange');
+ }
+
+ return this;
+};
+
+/**
+ * Old naming for requestFullscreen
+ * @deprecated for lower case 's' version
+ */
+vjs.Player.prototype.requestFullScreen = function(){
+ vjs.log.warn('player.requestFullScreen() has been deprecated, use player.requestFullscreen() with a lowercase "s")');
+ return this.requestFullscreen();
+};
+
+
+/**
+ * Return the video to its normal size after having been in full screen mode
+ *
+ * myPlayer.exitFullscreen();
+ *
+ * @return {vjs.Player} self
+ */
+vjs.Player.prototype.exitFullscreen = function(){
+ var fsApi = vjs.browser.fullscreenAPI;
+ this.isFullscreen(false);
+
+ // Check for browser element fullscreen support
+ if (fsApi) {
+ document[fsApi.exitFullscreen]();
+ } else if (this.tech.supportsFullScreen()) {
+ this.techCall('exitFullScreen');
+ } else {
+ this.exitFullWindow();
+ this.trigger('fullscreenchange');
+ }
+
+ return this;
+};
+
+/**
+ * Old naming for exitFullscreen
+ * @deprecated for exitFullscreen
+ */
+vjs.Player.prototype.cancelFullScreen = function(){
+ vjs.log.warn('player.cancelFullScreen() has been deprecated, use player.exitFullscreen()');
+ return this.exitFullscreen();
+};
+
+// When fullscreen isn't supported we can stretch the video container to as wide as the browser will let us.
+vjs.Player.prototype.enterFullWindow = function(){
+ this.isFullWindow = true;
+
+ // Storing original doc overflow value to return to when fullscreen is off
+ this.docOrigOverflow = document.documentElement.style.overflow;
+
+ // Add listener for esc key to exit fullscreen
+ vjs.on(document, 'keydown', vjs.bind(this, this.fullWindowOnEscKey));
+
+ // Hide any scroll bars
+ document.documentElement.style.overflow = 'hidden';
+
+ // Apply fullscreen styles
+ vjs.addClass(document.body, 'vjs-full-window');
+
+ this.trigger('enterFullWindow');
+};
+vjs.Player.prototype.fullWindowOnEscKey = function(event){
+ if (event.keyCode === 27) {
+ if (this.isFullscreen() === true) {
+ this.exitFullscreen();
+ } else {
+ this.exitFullWindow();
+ }
+ }
+};
+
+vjs.Player.prototype.exitFullWindow = function(){
+ this.isFullWindow = false;
+ vjs.off(document, 'keydown', this.fullWindowOnEscKey);
+
+ // Unhide scroll bars.
+ document.documentElement.style.overflow = this.docOrigOverflow;
+
+ // Remove fullscreen styles
+ vjs.removeClass(document.body, 'vjs-full-window');
+
+ // Resize the box, controller, and poster to original sizes
+ // this.positionAll();
+ this.trigger('exitFullWindow');
+};
+
+vjs.Player.prototype.selectSource = function(sources){
+ // Loop through each playback technology in the options order
+ for (var i=0,j=this.options_['techOrder'];i 0) {
+ // In milliseconds, if no more activity has occurred the
+ // user will be considered inactive
+ inactivityTimeout = this.setTimeout(function () {
+ // Protect against the case where the inactivityTimeout can trigger just
+ // before the next user activity is picked up by the activityCheck loop
+ // causing a flicker
+ if (!this.userActivity_) {
+ this.userActive(false);
+ }
+ }, timeout);
+ }
+ }
+ }, 250);
+};
+
+/**
+ * Gets or sets the current playback rate.
+ * @param {Boolean} rate New playback rate to set.
+ * @return {Number} Returns the new playback rate when setting
+ * @return {Number} Returns the current playback rate when getting
+ */
+vjs.Player.prototype.playbackRate = function(rate) {
+ if (rate !== undefined) {
+ this.techCall('setPlaybackRate', rate);
+ return this;
+ }
+
+ if (this.tech && this.tech['featuresPlaybackRate']) {
+ return this.techGet('playbackRate');
+ } else {
+ return 1.0;
+ }
+
+};
+
+/**
+ * Store the current audio state
+ * @type {Boolean}
+ * @private
+ */
+vjs.Player.prototype.isAudio_ = false;
+
+/**
+ * Gets or sets the audio flag
+ *
+ * @param {Boolean} bool True signals that this is an audio player.
+ * @return {Boolean} Returns true if player is audio, false if not when getting
+ * @return {vjs.Player} Returns the player if setting
+ * @private
+ */
+vjs.Player.prototype.isAudio = function(bool) {
+ if (bool !== undefined) {
+ this.isAudio_ = !!bool;
+ return this;
+ }
+
+ return this.isAudio_;
+};
+
+/**
+ * Returns the current state of network activity for the element, from
+ * the codes in the list below.
+ * - NETWORK_EMPTY (numeric value 0)
+ * The element has not yet been initialised. All attributes are in
+ * their initial states.
+ * - NETWORK_IDLE (numeric value 1)
+ * The element's resource selection algorithm is active and has
+ * selected a resource, but it is not actually using the network at
+ * this time.
+ * - NETWORK_LOADING (numeric value 2)
+ * The user agent is actively trying to download data.
+ * - NETWORK_NO_SOURCE (numeric value 3)
+ * The element's resource selection algorithm is active, but it has
+ * not yet found a resource to use.
+ * @return {Number} the current network activity state
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#network-states
+ */
+vjs.Player.prototype.networkState = function(){
+ return this.techGet('networkState');
+};
+
+/**
+ * Returns a value that expresses the current state of the element
+ * with respect to rendering the current playback position, from the
+ * codes in the list below.
+ * - HAVE_NOTHING (numeric value 0)
+ * No information regarding the media resource is available.
+ * - HAVE_METADATA (numeric value 1)
+ * Enough of the resource has been obtained that the duration of the
+ * resource is available.
+ * - HAVE_CURRENT_DATA (numeric value 2)
+ * Data for the immediate current playback position is available.
+ * - HAVE_FUTURE_DATA (numeric value 3)
+ * Data for the immediate current playback position is available, as
+ * well as enough data for the user agent to advance the current
+ * playback position in the direction of playback.
+ * - HAVE_ENOUGH_DATA (numeric value 4)
+ * The user agent estimates that enough data is available for
+ * playback to proceed uninterrupted.
+ * @return {Number} the current playback rendering state
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-readystate
+ */
+vjs.Player.prototype.readyState = function(){
+ return this.techGet('readyState');
+};
+
+/**
+ * Text tracks are tracks of timed text events.
+ * Captions - text displayed over the video for the hearing impaired
+ * Subtitles - text displayed over the video for those who don't understand language in the video
+ * Chapters - text displayed in a menu allowing the user to jump to particular points (chapters) in the video
+ * Descriptions (not supported yet) - audio descriptions that are read back to the user by a screen reading device
+ */
+
+/**
+ * Get an array of associated text tracks. captions, subtitles, chapters, descriptions
+ * http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-texttracks
+ * @return {Array} Array of track objects
+ */
+vjs.Player.prototype.textTracks = function(){
+ // cannot use techGet directly because it checks to see whether the tech is ready.
+ // Flash is unlikely to be ready in time but textTracks should still work.
+ return this.tech && this.tech['textTracks']();
+};
+
+vjs.Player.prototype.remoteTextTracks = function() {
+ return this.tech && this.tech['remoteTextTracks']();
+};
+
+/**
+ * Add a text track
+ * In addition to the W3C settings we allow adding additional info through options.
+ * http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-addtexttrack
+ * @param {String} kind Captions, subtitles, chapters, descriptions, or metadata
+ * @param {String=} label Optional label
+ * @param {String=} language Optional language
+ */
+vjs.Player.prototype.addTextTrack = function(kind, label, language) {
+ return this.tech && this.tech['addTextTrack'](kind, label, language);
+};
+
+vjs.Player.prototype.addRemoteTextTrack = function(options) {
+ return this.tech && this.tech['addRemoteTextTrack'](options);
+};
+
+vjs.Player.prototype.removeRemoteTextTrack = function(track) {
+ this.tech && this.tech['removeRemoteTextTrack'](track);
+};
+
+// Methods to add support for
+// initialTime: function(){ return this.techCall('initialTime'); },
+// startOffsetTime: function(){ return this.techCall('startOffsetTime'); },
+// played: function(){ return this.techCall('played'); },
+// seekable: function(){ return this.techCall('seekable'); },
+// videoTracks: function(){ return this.techCall('videoTracks'); },
+// audioTracks: function(){ return this.techCall('audioTracks'); },
+// videoWidth: function(){ return this.techCall('videoWidth'); },
+// videoHeight: function(){ return this.techCall('videoHeight'); },
+// defaultPlaybackRate: function(){ return this.techCall('defaultPlaybackRate'); },
+// mediaGroup: function(){ return this.techCall('mediaGroup'); },
+// controller: function(){ return this.techCall('controller'); },
+// defaultMuted: function(){ return this.techCall('defaultMuted'); }
+
+// TODO
+// currentSrcList: the array of sources including other formats and bitrates
+// playList: array of source lists in order of playback
+/**
+ * Container of main controls
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ * @extends vjs.Component
+ */
+vjs.ControlBar = vjs.Component.extend();
+
+vjs.ControlBar.prototype.options_ = {
+ loadEvent: 'play',
+ children: {
+ 'playToggle': {},
+ 'currentTimeDisplay': {},
+ 'timeDivider': {},
+ 'durationDisplay': {},
+ 'remainingTimeDisplay': {},
+ 'liveDisplay': {},
+ 'progressControl': {},
+ 'fullscreenToggle': {},
+ 'volumeControl': {},
+ 'muteToggle': {},
+ // 'volumeMenuButton': {},
+ 'playbackRateMenuButton': {},
+ 'subtitlesButton': {},
+ 'captionsButton': {},
+ 'chaptersButton': {}
+ }
+};
+
+vjs.ControlBar.prototype.createEl = function(){
+ return vjs.createEl('div', {
+ className: 'vjs-control-bar'
+ });
+};
+/**
+ * Displays the live indicator
+ * TODO - Future make it click to snap to live
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.LiveDisplay = vjs.Component.extend({
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.LiveDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-live-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-live-display',
+ innerHTML: '' + this.localize('Stream Type') + ' ' + this.localize('LIVE'),
+ 'aria-live': 'off'
+ });
+
+ el.appendChild(this.contentEl_);
+
+ return el;
+};
+/**
+ * Button to toggle between play and pause
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.PlayToggle = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.on(player, 'play', this.onPlay);
+ this.on(player, 'pause', this.onPause);
+ }
+});
+
+vjs.PlayToggle.prototype.buttonText = 'Play';
+
+vjs.PlayToggle.prototype.buildCSSClass = function(){
+ return 'vjs-play-control ' + vjs.Button.prototype.buildCSSClass.call(this);
+};
+
+// OnClick - Toggle between play and pause
+vjs.PlayToggle.prototype.onClick = function(){
+ if (this.player_.paused()) {
+ this.player_.play();
+ } else {
+ this.player_.pause();
+ }
+};
+
+ // OnPlay - Add the vjs-playing class to the element so it can change appearance
+vjs.PlayToggle.prototype.onPlay = function(){
+ this.removeClass('vjs-paused');
+ this.addClass('vjs-playing');
+ this.el_.children[0].children[0].innerHTML = this.localize('Pause'); // change the button text to "Pause"
+};
+
+ // OnPause - Add the vjs-paused class to the element so it can change appearance
+vjs.PlayToggle.prototype.onPause = function(){
+ this.removeClass('vjs-playing');
+ this.addClass('vjs-paused');
+ this.el_.children[0].children[0].innerHTML = this.localize('Play'); // change the button text to "Play"
+};
+/**
+ * Displays the current time
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.CurrentTimeDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+vjs.CurrentTimeDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-current-time vjs-time-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-current-time-display',
+ innerHTML: 'Current Time ' + '0:00', // label the current time for screen reader users
+ 'aria-live': 'off' // tell screen readers not to automatically read the time as it changes
+ });
+
+ el.appendChild(this.contentEl_);
+ return el;
+};
+
+vjs.CurrentTimeDisplay.prototype.updateContent = function(){
+ // Allows for smooth scrubbing, when player can't keep up.
+ var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ this.contentEl_.innerHTML = '' + this.localize('Current Time') + ' ' + vjs.formatTime(time, this.player_.duration());
+};
+
+/**
+ * Displays the duration
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.DurationDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ // this might need to be changed to 'durationchange' instead of 'timeupdate' eventually,
+ // however the durationchange event fires before this.player_.duration() is set,
+ // so the value cannot be written out using this method.
+ // Once the order of durationchange and this.player_.duration() being set is figured out,
+ // this can be updated.
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+vjs.DurationDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-duration vjs-time-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-duration-display',
+ innerHTML: '' + this.localize('Duration Time') + ' ' + '0:00', // label the duration time for screen reader users
+ 'aria-live': 'off' // tell screen readers not to automatically read the time as it changes
+ });
+
+ el.appendChild(this.contentEl_);
+ return el;
+};
+
+vjs.DurationDisplay.prototype.updateContent = function(){
+ var duration = this.player_.duration();
+ if (duration) {
+ this.contentEl_.innerHTML = '' + this.localize('Duration Time') + ' ' + vjs.formatTime(duration); // label the duration time for screen reader users
+ }
+};
+
+/**
+ * The separator between the current time and duration
+ *
+ * Can be hidden if it's not needed in the design.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.TimeDivider = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.TimeDivider.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-time-divider',
+ innerHTML: '/
'
+ });
+};
+
+/**
+ * Displays the time left in the video
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.RemainingTimeDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+vjs.RemainingTimeDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-remaining-time vjs-time-controls vjs-control'
+ });
+
+ this.contentEl_ = vjs.createEl('div', {
+ className: 'vjs-remaining-time-display',
+ innerHTML: '' + this.localize('Remaining Time') + ' ' + '-0:00', // label the remaining time for screen reader users
+ 'aria-live': 'off' // tell screen readers not to automatically read the time as it changes
+ });
+
+ el.appendChild(this.contentEl_);
+ return el;
+};
+
+vjs.RemainingTimeDisplay.prototype.updateContent = function(){
+ if (this.player_.duration()) {
+ this.contentEl_.innerHTML = '' + this.localize('Remaining Time') + ' ' + '-'+ vjs.formatTime(this.player_.remainingTime());
+ }
+
+ // Allows for smooth scrubbing, when player can't keep up.
+ // var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ // this.contentEl_.innerHTML = vjs.formatTime(time, this.player_.duration());
+};
+/**
+ * Toggle fullscreen video
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @extends vjs.Button
+ */
+vjs.FullscreenToggle = vjs.Button.extend({
+ /**
+ * @constructor
+ * @memberof vjs.FullscreenToggle
+ * @instance
+ */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+ }
+});
+
+vjs.FullscreenToggle.prototype.buttonText = 'Fullscreen';
+
+vjs.FullscreenToggle.prototype.buildCSSClass = function(){
+ return 'vjs-fullscreen-control ' + vjs.Button.prototype.buildCSSClass.call(this);
+};
+
+vjs.FullscreenToggle.prototype.onClick = function(){
+ if (!this.player_.isFullscreen()) {
+ this.player_.requestFullscreen();
+ this.controlText_.innerHTML = this.localize('Non-Fullscreen');
+ } else {
+ this.player_.exitFullscreen();
+ this.controlText_.innerHTML = this.localize('Fullscreen');
+ }
+};
+/**
+ * The Progress Control component contains the seek bar, load progress,
+ * and play progress
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.ProgressControl = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.ProgressControl.prototype.options_ = {
+ children: {
+ 'seekBar': {}
+ }
+};
+
+vjs.ProgressControl.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-progress-control vjs-control'
+ });
+};
+
+/**
+ * Seek Bar and holder for the progress bars
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.SeekBar = vjs.Slider.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Slider.call(this, player, options);
+ this.on(player, 'timeupdate', this.updateARIAAttributes);
+ player.ready(vjs.bind(this, this.updateARIAAttributes));
+ }
+});
+
+vjs.SeekBar.prototype.options_ = {
+ children: {
+ 'loadProgressBar': {},
+ 'playProgressBar': {},
+ 'seekHandle': {}
+ },
+ 'barName': 'playProgressBar',
+ 'handleName': 'seekHandle'
+};
+
+vjs.SeekBar.prototype.playerEvent = 'timeupdate';
+
+vjs.SeekBar.prototype.createEl = function(){
+ return vjs.Slider.prototype.createEl.call(this, 'div', {
+ className: 'vjs-progress-holder',
+ 'aria-label': 'video progress bar'
+ });
+};
+
+vjs.SeekBar.prototype.updateARIAAttributes = function(){
+ // Allows for smooth scrubbing, when player can't keep up.
+ var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ this.el_.setAttribute('aria-valuenow',vjs.round(this.getPercent()*100, 2)); // machine readable value of progress bar (percentage complete)
+ this.el_.setAttribute('aria-valuetext',vjs.formatTime(time, this.player_.duration())); // human readable value of progress bar (time complete)
+};
+
+vjs.SeekBar.prototype.getPercent = function(){
+ return this.player_.currentTime() / this.player_.duration();
+};
+
+vjs.SeekBar.prototype.onMouseDown = function(event){
+ vjs.Slider.prototype.onMouseDown.call(this, event);
+
+ this.player_.scrubbing = true;
+ this.player_.addClass('vjs-scrubbing');
+
+ this.videoWasPlaying = !this.player_.paused();
+ this.player_.pause();
+};
+
+vjs.SeekBar.prototype.onMouseMove = function(event){
+ var newTime = this.calculateDistance(event) * this.player_.duration();
+
+ // Don't let video end while scrubbing.
+ if (newTime == this.player_.duration()) { newTime = newTime - 0.1; }
+
+ // Set new time (tell player to seek to new time)
+ this.player_.currentTime(newTime);
+};
+
+vjs.SeekBar.prototype.onMouseUp = function(event){
+ vjs.Slider.prototype.onMouseUp.call(this, event);
+
+ this.player_.scrubbing = false;
+ this.player_.removeClass('vjs-scrubbing');
+ if (this.videoWasPlaying) {
+ this.player_.play();
+ }
+};
+
+vjs.SeekBar.prototype.stepForward = function(){
+ this.player_.currentTime(this.player_.currentTime() + 5); // more quickly fast forward for keyboard-only users
+};
+
+vjs.SeekBar.prototype.stepBack = function(){
+ this.player_.currentTime(this.player_.currentTime() - 5); // more quickly rewind for keyboard-only users
+};
+
+/**
+ * Shows load progress
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.LoadProgressBar = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ this.on(player, 'progress', this.update);
+ }
+});
+
+vjs.LoadProgressBar.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-load-progress',
+ innerHTML: '' + this.localize('Loaded') + ' : 0% '
+ });
+};
+
+vjs.LoadProgressBar.prototype.update = function(){
+ var i, start, end, part,
+ buffered = this.player_.buffered(),
+ duration = this.player_.duration(),
+ bufferedEnd = this.player_.bufferedEnd(),
+ children = this.el_.children,
+ // get the percent width of a time compared to the total end
+ percentify = function (time, end){
+ var percent = (time / end) || 0; // no NaN
+ return (percent * 100) + '%';
+ };
+
+ // update the width of the progress bar
+ this.el_.style.width = percentify(bufferedEnd, duration);
+
+ // add child elements to represent the individual buffered time ranges
+ for (i = 0; i < buffered.length; i++) {
+ start = buffered.start(i),
+ end = buffered.end(i),
+ part = children[i];
+
+ if (!part) {
+ part = this.el_.appendChild(vjs.createEl());
+ }
+
+ // set the percent based on the width of the progress bar (bufferedEnd)
+ part.style.left = percentify(start, bufferedEnd);
+ part.style.width = percentify(end - start, bufferedEnd);
+ }
+
+ // remove unused buffered range elements
+ for (i = children.length; i > buffered.length; i--) {
+ this.el_.removeChild(children[i-1]);
+ }
+};
+
+/**
+ * Shows play progress
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.PlayProgressBar = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.PlayProgressBar.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-play-progress',
+ innerHTML: '' + this.localize('Progress') + ' : 0% '
+ });
+};
+
+/**
+ * The Seek Handle shows the current position of the playhead during playback,
+ * and can be dragged to adjust the playhead.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.SeekHandle = vjs.SliderHandle.extend({
+ init: function(player, options) {
+ vjs.SliderHandle.call(this, player, options);
+ this.on(player, 'timeupdate', this.updateContent);
+ }
+});
+
+/**
+ * The default value for the handle content, which may be read by screen readers
+ *
+ * @type {String}
+ * @private
+ */
+vjs.SeekHandle.prototype.defaultValue = '00:00';
+
+/** @inheritDoc */
+vjs.SeekHandle.prototype.createEl = function() {
+ return vjs.SliderHandle.prototype.createEl.call(this, 'div', {
+ className: 'vjs-seek-handle',
+ 'aria-live': 'off'
+ });
+};
+
+vjs.SeekHandle.prototype.updateContent = function() {
+ var time = (this.player_.scrubbing) ? this.player_.getCache().currentTime : this.player_.currentTime();
+ this.el_.innerHTML = '' + vjs.formatTime(time, this.player_.duration()) + ' ';
+};
+/**
+ * The component for controlling the volume level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.VolumeControl = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ // hide volume controls when they're not supported by the current tech
+ if (player.tech && player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ }
+ this.on(player, 'loadstart', function(){
+ if (player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ } else {
+ this.removeClass('vjs-hidden');
+ }
+ });
+ }
+});
+
+vjs.VolumeControl.prototype.options_ = {
+ children: {
+ 'volumeBar': {}
+ }
+};
+
+vjs.VolumeControl.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-control vjs-control'
+ });
+};
+
+/**
+ * The bar that contains the volume level and can be clicked on to adjust the level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.VolumeBar = vjs.Slider.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Slider.call(this, player, options);
+ this.on(player, 'volumechange', this.updateARIAAttributes);
+ player.ready(vjs.bind(this, this.updateARIAAttributes));
+ }
+});
+
+vjs.VolumeBar.prototype.updateARIAAttributes = function(){
+ // Current value of volume bar as a percentage
+ this.el_.setAttribute('aria-valuenow',vjs.round(this.player_.volume()*100, 2));
+ this.el_.setAttribute('aria-valuetext',vjs.round(this.player_.volume()*100, 2)+'%');
+};
+
+vjs.VolumeBar.prototype.options_ = {
+ children: {
+ 'volumeLevel': {},
+ 'volumeHandle': {}
+ },
+ 'barName': 'volumeLevel',
+ 'handleName': 'volumeHandle'
+};
+
+vjs.VolumeBar.prototype.playerEvent = 'volumechange';
+
+vjs.VolumeBar.prototype.createEl = function(){
+ return vjs.Slider.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-bar',
+ 'aria-label': 'volume level'
+ });
+};
+
+vjs.VolumeBar.prototype.onMouseMove = function(event) {
+ if (this.player_.muted()) {
+ this.player_.muted(false);
+ }
+
+ this.player_.volume(this.calculateDistance(event));
+};
+
+vjs.VolumeBar.prototype.getPercent = function(){
+ if (this.player_.muted()) {
+ return 0;
+ } else {
+ return this.player_.volume();
+ }
+};
+
+vjs.VolumeBar.prototype.stepForward = function(){
+ this.player_.volume(this.player_.volume() + 0.1);
+};
+
+vjs.VolumeBar.prototype.stepBack = function(){
+ this.player_.volume(this.player_.volume() - 0.1);
+};
+
+/**
+ * Shows volume level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.VolumeLevel = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+ }
+});
+
+vjs.VolumeLevel.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-level',
+ innerHTML: ' '
+ });
+};
+
+/**
+ * The volume handle can be dragged to adjust the volume level
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+ vjs.VolumeHandle = vjs.SliderHandle.extend();
+
+ vjs.VolumeHandle.prototype.defaultValue = '00:00';
+
+ /** @inheritDoc */
+ vjs.VolumeHandle.prototype.createEl = function(){
+ return vjs.SliderHandle.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-handle'
+ });
+ };
+/**
+ * A button component for muting the audio
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.MuteToggle = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.on(player, 'volumechange', this.update);
+
+ // hide mute toggle if the current tech doesn't support volume control
+ if (player.tech && player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ }
+
+ this.on(player, 'loadstart', function(){
+ if (player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ } else {
+ this.removeClass('vjs-hidden');
+ }
+ });
+ }
+});
+
+vjs.MuteToggle.prototype.createEl = function(){
+ return vjs.Button.prototype.createEl.call(this, 'div', {
+ className: 'vjs-mute-control vjs-control',
+ innerHTML: '' + this.localize('Mute') + '
'
+ });
+};
+
+vjs.MuteToggle.prototype.onClick = function(){
+ this.player_.muted( this.player_.muted() ? false : true );
+};
+
+vjs.MuteToggle.prototype.update = function(){
+ var vol = this.player_.volume(),
+ level = 3;
+
+ if (vol === 0 || this.player_.muted()) {
+ level = 0;
+ } else if (vol < 0.33) {
+ level = 1;
+ } else if (vol < 0.67) {
+ level = 2;
+ }
+
+ // Don't rewrite the button text if the actual text doesn't change.
+ // This causes unnecessary and confusing information for screen reader users.
+ // This check is needed because this function gets called every time the volume level is changed.
+ if(this.player_.muted()){
+ if(this.el_.children[0].children[0].innerHTML!=this.localize('Unmute')){
+ this.el_.children[0].children[0].innerHTML = this.localize('Unmute'); // change the button text to "Unmute"
+ }
+ } else {
+ if(this.el_.children[0].children[0].innerHTML!=this.localize('Mute')){
+ this.el_.children[0].children[0].innerHTML = this.localize('Mute'); // change the button text to "Mute"
+ }
+ }
+
+ /* TODO improve muted icon classes */
+ for (var i = 0; i < 4; i++) {
+ vjs.removeClass(this.el_, 'vjs-vol-'+i);
+ }
+ vjs.addClass(this.el_, 'vjs-vol-'+level);
+};
+/**
+ * Menu button with a popup for showing the volume slider.
+ * @constructor
+ */
+vjs.VolumeMenuButton = vjs.MenuButton.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.MenuButton.call(this, player, options);
+
+ // Same listeners as MuteToggle
+ this.on(player, 'volumechange', this.volumeUpdate);
+
+ // hide mute toggle if the current tech doesn't support volume control
+ if (player.tech && player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ }
+ this.on(player, 'loadstart', function(){
+ if (player.tech['featuresVolumeControl'] === false) {
+ this.addClass('vjs-hidden');
+ } else {
+ this.removeClass('vjs-hidden');
+ }
+ });
+ this.addClass('vjs-menu-button');
+ }
+});
+
+vjs.VolumeMenuButton.prototype.createMenu = function(){
+ var menu = new vjs.Menu(this.player_, {
+ contentElType: 'div'
+ });
+ var vc = new vjs.VolumeBar(this.player_, this.options_['volumeBar']);
+ vc.on('focus', function() {
+ menu.lockShowing();
+ });
+ vc.on('blur', function() {
+ menu.unlockShowing();
+ });
+ menu.addChild(vc);
+ return menu;
+};
+
+vjs.VolumeMenuButton.prototype.onClick = function(){
+ vjs.MuteToggle.prototype.onClick.call(this);
+ vjs.MenuButton.prototype.onClick.call(this);
+};
+
+vjs.VolumeMenuButton.prototype.createEl = function(){
+ return vjs.Button.prototype.createEl.call(this, 'div', {
+ className: 'vjs-volume-menu-button vjs-menu-button vjs-control',
+ innerHTML: '' + this.localize('Mute') + '
'
+ });
+};
+vjs.VolumeMenuButton.prototype.volumeUpdate = vjs.MuteToggle.prototype.update;
+/**
+ * The component for controlling the playback rate
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.PlaybackRateMenuButton = vjs.MenuButton.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.MenuButton.call(this, player, options);
+
+ this.updateVisibility();
+ this.updateLabel();
+
+ this.on(player, 'loadstart', this.updateVisibility);
+ this.on(player, 'ratechange', this.updateLabel);
+ }
+});
+
+vjs.PlaybackRateMenuButton.prototype.buttonText = 'Playback Rate';
+vjs.PlaybackRateMenuButton.prototype.className = 'vjs-playback-rate';
+
+vjs.PlaybackRateMenuButton.prototype.createEl = function(){
+ var el = vjs.MenuButton.prototype.createEl.call(this);
+
+ this.labelEl_ = vjs.createEl('div', {
+ className: 'vjs-playback-rate-value',
+ innerHTML: 1.0
+ });
+
+ el.appendChild(this.labelEl_);
+
+ return el;
+};
+
+// Menu creation
+vjs.PlaybackRateMenuButton.prototype.createMenu = function(){
+ var menu = new vjs.Menu(this.player());
+ var rates = this.player().options()['playbackRates'];
+
+ if (rates) {
+ for (var i = rates.length - 1; i >= 0; i--) {
+ menu.addChild(
+ new vjs.PlaybackRateMenuItem(this.player(), { 'rate': rates[i] + 'x'})
+ );
+ }
+ }
+
+ return menu;
+};
+
+vjs.PlaybackRateMenuButton.prototype.updateARIAAttributes = function(){
+ // Current playback rate
+ this.el().setAttribute('aria-valuenow', this.player().playbackRate());
+};
+
+vjs.PlaybackRateMenuButton.prototype.onClick = function(){
+ // select next rate option
+ var currentRate = this.player().playbackRate();
+ var rates = this.player().options()['playbackRates'];
+ // this will select first one if the last one currently selected
+ var newRate = rates[0];
+ for (var i = 0; i currentRate) {
+ newRate = rates[i];
+ break;
+ }
+ }
+ this.player().playbackRate(newRate);
+};
+
+vjs.PlaybackRateMenuButton.prototype.playbackRateSupported = function(){
+ return this.player().tech
+ && this.player().tech['featuresPlaybackRate']
+ && this.player().options()['playbackRates']
+ && this.player().options()['playbackRates'].length > 0
+ ;
+};
+
+/**
+ * Hide playback rate controls when they're no playback rate options to select
+ */
+vjs.PlaybackRateMenuButton.prototype.updateVisibility = function(){
+ if (this.playbackRateSupported()) {
+ this.removeClass('vjs-hidden');
+ } else {
+ this.addClass('vjs-hidden');
+ }
+};
+
+/**
+ * Update button label when rate changed
+ */
+vjs.PlaybackRateMenuButton.prototype.updateLabel = function(){
+ if (this.playbackRateSupported()) {
+ this.labelEl_.innerHTML = this.player().playbackRate() + 'x';
+ }
+};
+
+/**
+ * The specific menu item type for selecting a playback rate
+ *
+ * @constructor
+ */
+vjs.PlaybackRateMenuItem = vjs.MenuItem.extend({
+ contentElType: 'button',
+ /** @constructor */
+ init: function(player, options){
+ var label = this.label = options['rate'];
+ var rate = this.rate = parseFloat(label, 10);
+
+ // Modify options for parent MenuItem class's init.
+ options['label'] = label;
+ options['selected'] = rate === 1;
+ vjs.MenuItem.call(this, player, options);
+
+ this.on(player, 'ratechange', this.update);
+ }
+});
+
+vjs.PlaybackRateMenuItem.prototype.onClick = function(){
+ vjs.MenuItem.prototype.onClick.call(this);
+ this.player().playbackRate(this.rate);
+};
+
+vjs.PlaybackRateMenuItem.prototype.update = function(){
+ this.selected(this.player().playbackRate() == this.rate);
+};
+/* Poster Image
+================================================================================ */
+/**
+ * The component that handles showing the poster image.
+ *
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.PosterImage = vjs.Button.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Button.call(this, player, options);
+
+ this.update();
+ player.on('posterchange', vjs.bind(this, this.update));
+ }
+});
+
+/**
+ * Clean up the poster image
+ */
+vjs.PosterImage.prototype.dispose = function(){
+ this.player().off('posterchange', this.update);
+ vjs.Button.prototype.dispose.call(this);
+};
+
+/**
+ * Create the poster image element
+ * @return {Element}
+ */
+vjs.PosterImage.prototype.createEl = function(){
+ var el = vjs.createEl('div', {
+ className: 'vjs-poster',
+
+ // Don't want poster to be tabbable.
+ tabIndex: -1
+ });
+
+ // To ensure the poster image resizes while maintaining its original aspect
+ // ratio, use a div with `background-size` when available. For browsers that
+ // do not support `background-size` (e.g. IE8), fall back on using a regular
+ // img element.
+ if (!vjs.BACKGROUND_SIZE_SUPPORTED) {
+ this.fallbackImg_ = vjs.createEl('img');
+ el.appendChild(this.fallbackImg_);
+ }
+
+ return el;
+};
+
+/**
+ * Event handler for updates to the player's poster source
+ */
+vjs.PosterImage.prototype.update = function(){
+ var url = this.player().poster();
+
+ this.setSrc(url);
+
+ // If there's no poster source we should display:none on this component
+ // so it's not still clickable or right-clickable
+ if (url) {
+ this.show();
+ } else {
+ this.hide();
+ }
+};
+
+/**
+ * Set the poster source depending on the display method
+ */
+vjs.PosterImage.prototype.setSrc = function(url){
+ var backgroundImage;
+
+ if (this.fallbackImg_) {
+ this.fallbackImg_.src = url;
+ } else {
+ backgroundImage = '';
+ // Any falsey values should stay as an empty string, otherwise
+ // this will throw an extra error
+ if (url) {
+ backgroundImage = 'url("' + url + '")';
+ }
+
+ this.el_.style.backgroundImage = backgroundImage;
+ }
+};
+
+/**
+ * Event handler for clicks on the poster image
+ */
+vjs.PosterImage.prototype.onClick = function(){
+ // We don't want a click to trigger playback when controls are disabled
+ // but CSS should be hiding the poster to prevent that from happening
+ this.player_.play();
+};
+/* Loading Spinner
+================================================================================ */
+/**
+ * Loading spinner for waiting events
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.LoadingSpinner = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ // MOVING DISPLAY HANDLING TO CSS
+
+ // player.on('canplay', vjs.bind(this, this.hide));
+ // player.on('canplaythrough', vjs.bind(this, this.hide));
+ // player.on('playing', vjs.bind(this, this.hide));
+ // player.on('seeking', vjs.bind(this, this.show));
+
+ // in some browsers seeking does not trigger the 'playing' event,
+ // so we also need to trap 'seeked' if we are going to set a
+ // 'seeking' event
+ // player.on('seeked', vjs.bind(this, this.hide));
+
+ // player.on('ended', vjs.bind(this, this.hide));
+
+ // Not showing spinner on stalled any more. Browsers may stall and then not trigger any events that would remove the spinner.
+ // Checked in Chrome 16 and Safari 5.1.2. http://help.videojs.com/discussions/problems/883-why-is-the-download-progress-showing
+ // player.on('stalled', vjs.bind(this, this.show));
+
+ // player.on('waiting', vjs.bind(this, this.show));
+ }
+});
+
+vjs.LoadingSpinner.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-loading-spinner'
+ });
+};
+/* Big Play Button
+================================================================================ */
+/**
+ * Initial play button. Shows before the video has played. The hiding of the
+ * big play button is done via CSS and player states.
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @class
+ * @constructor
+ */
+vjs.BigPlayButton = vjs.Button.extend();
+
+vjs.BigPlayButton.prototype.createEl = function(){
+ return vjs.Button.prototype.createEl.call(this, 'div', {
+ className: 'vjs-big-play-button',
+ innerHTML: ' ',
+ 'aria-label': 'play video'
+ });
+};
+
+vjs.BigPlayButton.prototype.onClick = function(){
+ this.player_.play();
+};
+/**
+ * Display that an error has occurred making the video unplayable
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @constructor
+ */
+vjs.ErrorDisplay = vjs.Component.extend({
+ init: function(player, options){
+ vjs.Component.call(this, player, options);
+
+ this.update();
+ this.on(player, 'error', this.update);
+ }
+});
+
+vjs.ErrorDisplay.prototype.createEl = function(){
+ var el = vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-error-display'
+ });
+
+ this.contentEl_ = vjs.createEl('div');
+ el.appendChild(this.contentEl_);
+
+ return el;
+};
+
+vjs.ErrorDisplay.prototype.update = function(){
+ if (this.player().error()) {
+ this.contentEl_.innerHTML = this.localize(this.player().error().message);
+ }
+};
+(function() {
+ var createTrackHelper;
+/**
+ * @fileoverview Media Technology Controller - Base class for media playback
+ * technology controllers like Flash and HTML5
+ */
+
+/**
+ * Base class for media (HTML5 Video, Flash) controllers
+ * @param {vjs.Player|Object} player Central player instance
+ * @param {Object=} options Options object
+ * @constructor
+ */
+vjs.MediaTechController = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ options = options || {};
+ // we don't want the tech to report user activity automatically.
+ // This is done manually in addControlsListeners
+ options.reportTouchActivity = false;
+ vjs.Component.call(this, player, options, ready);
+
+ // Manually track progress in cases where the browser/flash player doesn't report it.
+ if (!this['featuresProgressEvents']) {
+ this.manualProgressOn();
+ }
+
+ // Manually track timeupdates in cases where the browser/flash player doesn't report it.
+ if (!this['featuresTimeupdateEvents']) {
+ this.manualTimeUpdatesOn();
+ }
+
+ this.initControlsListeners();
+
+ if (!this['featuresNativeTextTracks']) {
+ this.emulateTextTracks();
+ }
+
+ this.initTextTrackListeners();
+ }
+});
+
+/**
+ * Set up click and touch listeners for the playback element
+ * On desktops, a click on the video itself will toggle playback,
+ * on a mobile device a click on the video toggles controls.
+ * (toggling controls is done by toggling the user state between active and
+ * inactive)
+ *
+ * A tap can signal that a user has become active, or has become inactive
+ * e.g. a quick tap on an iPhone movie should reveal the controls. Another
+ * quick tap should hide them again (signaling the user is in an inactive
+ * viewing state)
+ *
+ * In addition to this, we still want the user to be considered inactive after
+ * a few seconds of inactivity.
+ *
+ * Note: the only part of iOS interaction we can't mimic with this setup
+ * is a touch and hold on the video element counting as activity in order to
+ * keep the controls showing, but that shouldn't be an issue. A touch and hold on
+ * any controls will still keep the user active
+ */
+vjs.MediaTechController.prototype.initControlsListeners = function(){
+ var player, activateControls;
+
+ player = this.player();
+
+ activateControls = function(){
+ if (player.controls() && !player.usingNativeControls()) {
+ this.addControlsListeners();
+ }
+ };
+
+ // Set up event listeners once the tech is ready and has an element to apply
+ // listeners to
+ this.ready(activateControls);
+ this.on(player, 'controlsenabled', activateControls);
+ this.on(player, 'controlsdisabled', this.removeControlsListeners);
+
+ // if we're loading the playback object after it has started loading or playing the
+ // video (often with autoplay on) then the loadstart event has already fired and we
+ // need to fire it manually because many things rely on it.
+ // Long term we might consider how we would do this for other events like 'canplay'
+ // that may also have fired.
+ this.ready(function(){
+ if (this.networkState && this.networkState() > 0) {
+ this.player().trigger('loadstart');
+ }
+ });
+};
+
+vjs.MediaTechController.prototype.addControlsListeners = function(){
+ var userWasActive;
+
+ // Some browsers (Chrome & IE) don't trigger a click on a flash swf, but do
+ // trigger mousedown/up.
+ // http://stackoverflow.com/questions/1444562/javascript-onclick-event-over-flash-object
+ // Any touch events are set to block the mousedown event from happening
+ this.on('mousedown', this.onClick);
+
+ // If the controls were hidden we don't want that to change without a tap event
+ // so we'll check if the controls were already showing before reporting user
+ // activity
+ this.on('touchstart', function(event) {
+ userWasActive = this.player_.userActive();
+ });
+
+ this.on('touchmove', function(event) {
+ if (userWasActive){
+ this.player().reportUserActivity();
+ }
+ });
+
+ this.on('touchend', function(event) {
+ // Stop the mouse events from also happening
+ event.preventDefault();
+ });
+
+ // Turn on component tap events
+ this.emitTapEvents();
+
+ // The tap listener needs to come after the touchend listener because the tap
+ // listener cancels out any reportedUserActivity when setting userActive(false)
+ this.on('tap', this.onTap);
+};
+
+/**
+ * Remove the listeners used for click and tap controls. This is needed for
+ * toggling to controls disabled, where a tap/touch should do nothing.
+ */
+vjs.MediaTechController.prototype.removeControlsListeners = function(){
+ // We don't want to just use `this.off()` because there might be other needed
+ // listeners added by techs that extend this.
+ this.off('tap');
+ this.off('touchstart');
+ this.off('touchmove');
+ this.off('touchleave');
+ this.off('touchcancel');
+ this.off('touchend');
+ this.off('click');
+ this.off('mousedown');
+};
+
+/**
+ * Handle a click on the media element. By default will play/pause the media.
+ */
+vjs.MediaTechController.prototype.onClick = function(event){
+ // We're using mousedown to detect clicks thanks to Flash, but mousedown
+ // will also be triggered with right-clicks, so we need to prevent that
+ if (event.button !== 0) return;
+
+ // When controls are disabled a click should not toggle playback because
+ // the click is considered a control
+ if (this.player().controls()) {
+ if (this.player().paused()) {
+ this.player().play();
+ } else {
+ this.player().pause();
+ }
+ }
+};
+
+/**
+ * Handle a tap on the media element. By default it will toggle the user
+ * activity state, which hides and shows the controls.
+ */
+vjs.MediaTechController.prototype.onTap = function(){
+ this.player().userActive(!this.player().userActive());
+};
+
+/* Fallbacks for unsupported event types
+================================================================================ */
+// Manually trigger progress events based on changes to the buffered amount
+// Many flash players and older HTML5 browsers don't send progress or progress-like events
+vjs.MediaTechController.prototype.manualProgressOn = function(){
+ this.manualProgress = true;
+
+ // Trigger progress watching when a source begins loading
+ this.trackProgress();
+};
+
+vjs.MediaTechController.prototype.manualProgressOff = function(){
+ this.manualProgress = false;
+ this.stopTrackingProgress();
+};
+
+vjs.MediaTechController.prototype.trackProgress = function(){
+ this.progressInterval = this.setInterval(function(){
+ // Don't trigger unless buffered amount is greater than last time
+
+ var bufferedPercent = this.player().bufferedPercent();
+
+ if (this.bufferedPercent_ != bufferedPercent) {
+ this.player().trigger('progress');
+ }
+
+ this.bufferedPercent_ = bufferedPercent;
+
+ if (bufferedPercent === 1) {
+ this.stopTrackingProgress();
+ }
+ }, 500);
+};
+vjs.MediaTechController.prototype.stopTrackingProgress = function(){ this.clearInterval(this.progressInterval); };
+
+/*! Time Tracking -------------------------------------------------------------- */
+vjs.MediaTechController.prototype.manualTimeUpdatesOn = function(){
+ var player = this.player_;
+
+ this.manualTimeUpdates = true;
+
+ this.on(player, 'play', this.trackCurrentTime);
+ this.on(player, 'pause', this.stopTrackingCurrentTime);
+ // timeupdate is also called by .currentTime whenever current time is set
+
+ // Watch for native timeupdate event
+ this.one('timeupdate', function(){
+ // Update known progress support for this playback technology
+ this['featuresTimeupdateEvents'] = true;
+ // Turn off manual progress tracking
+ this.manualTimeUpdatesOff();
+ });
+};
+
+vjs.MediaTechController.prototype.manualTimeUpdatesOff = function(){
+ var player = this.player_;
+
+ this.manualTimeUpdates = false;
+ this.stopTrackingCurrentTime();
+ this.off(player, 'play', this.trackCurrentTime);
+ this.off(player, 'pause', this.stopTrackingCurrentTime);
+};
+
+vjs.MediaTechController.prototype.trackCurrentTime = function(){
+ if (this.currentTimeInterval) { this.stopTrackingCurrentTime(); }
+ this.currentTimeInterval = this.setInterval(function(){
+ this.player().trigger('timeupdate');
+ }, 250); // 42 = 24 fps // 250 is what Webkit uses // FF uses 15
+};
+
+// Turn off play progress tracking (when paused or dragging)
+vjs.MediaTechController.prototype.stopTrackingCurrentTime = function(){
+ this.clearInterval(this.currentTimeInterval);
+
+ // #1002 - if the video ends right before the next timeupdate would happen,
+ // the progress bar won't make it all the way to the end
+ this.player().trigger('timeupdate');
+};
+
+vjs.MediaTechController.prototype.dispose = function() {
+ // Turn off any manual progress or timeupdate tracking
+ if (this.manualProgress) { this.manualProgressOff(); }
+
+ if (this.manualTimeUpdates) { this.manualTimeUpdatesOff(); }
+
+ vjs.Component.prototype.dispose.call(this);
+};
+
+vjs.MediaTechController.prototype.setCurrentTime = function() {
+ // improve the accuracy of manual timeupdates
+ if (this.manualTimeUpdates) { this.player().trigger('timeupdate'); }
+};
+
+// TODO: Consider looking at moving this into the text track display directly
+// https://github.com/videojs/video.js/issues/1863
+vjs.MediaTechController.prototype.initTextTrackListeners = function() {
+ var player = this.player_,
+ tracks,
+ textTrackListChanges = function() {
+ var textTrackDisplay = player.getChild('textTrackDisplay'),
+ controlBar;
+
+ if (textTrackDisplay) {
+ textTrackDisplay.updateDisplay();
+ }
+ };
+
+ tracks = this.textTracks();
+
+ if (!tracks) {
+ return;
+ }
+
+ tracks.addEventListener('removetrack', textTrackListChanges);
+ tracks.addEventListener('addtrack', textTrackListChanges);
+
+ this.on('dispose', vjs.bind(this, function() {
+ tracks.removeEventListener('removetrack', textTrackListChanges);
+ tracks.removeEventListener('addtrack', textTrackListChanges);
+ }));
+};
+
+vjs.MediaTechController.prototype.emulateTextTracks = function() {
+ var player = this.player_,
+ textTracksChanges,
+ tracks,
+ script;
+
+ if (!window['WebVTT']) {
+ script = document.createElement('script');
+ script.src = player.options()['vtt.js'] || '../node_modules/vtt.js/dist/vtt.js';
+ player.el().appendChild(script);
+ window['WebVTT'] = true;
+ }
+
+ tracks = this.textTracks();
+ if (!tracks) {
+ return;
+ }
+
+ textTracksChanges = function() {
+ var i, track, textTrackDisplay;
+
+ textTrackDisplay = player.getChild('textTrackDisplay'),
+
+ textTrackDisplay.updateDisplay();
+
+ for (i = 0; i < this.length; i++) {
+ track = this[i];
+ track.removeEventListener('cuechange', vjs.bind(textTrackDisplay, textTrackDisplay.updateDisplay));
+ if (track.mode === 'showing') {
+ track.addEventListener('cuechange', vjs.bind(textTrackDisplay, textTrackDisplay.updateDisplay));
+ }
+ }
+ };
+
+ tracks.addEventListener('change', textTracksChanges);
+
+ this.on('dispose', vjs.bind(this, function() {
+ tracks.removeEventListener('change', textTracksChanges);
+ }));
+};
+
+/**
+ * Provide default methods for text tracks.
+ *
+ * Html5 tech overrides these.
+ */
+
+/**
+ * List of associated text tracks
+ * @type {Array}
+ * @private
+ */
+vjs.MediaTechController.prototype.textTracks_;
+
+vjs.MediaTechController.prototype.textTracks = function() {
+ this.player_.textTracks_ = this.player_.textTracks_ || new vjs.TextTrackList();
+ return this.player_.textTracks_;
+};
+
+vjs.MediaTechController.prototype.remoteTextTracks = function() {
+ this.player_.remoteTextTracks_ = this.player_.remoteTextTracks_ || new vjs.TextTrackList();
+ return this.player_.remoteTextTracks_;
+};
+
+createTrackHelper = function(self, kind, label, language, options) {
+ var tracks = self.textTracks(),
+ track;
+
+ options = options || {};
+
+ options['kind'] = kind;
+ if (label) {
+ options['label'] = label;
+ }
+ if (language) {
+ options['language'] = language;
+ }
+ options['player'] = self.player_;
+
+ track = new vjs.TextTrack(options);
+ tracks.addTrack_(track);
+
+ return track;
+};
+
+vjs.MediaTechController.prototype.addTextTrack = function(kind, label, language) {
+ if (!kind) {
+ throw new Error('TextTrack kind is required but was not provided');
+ }
+
+ return createTrackHelper(this, kind, label, language);
+};
+
+vjs.MediaTechController.prototype.addRemoteTextTrack = function(options) {
+ var track = createTrackHelper(this, options['kind'], options['label'], options['language'], options);
+ this.remoteTextTracks().addTrack_(track);
+ return {
+ track: track
+ };
+};
+
+vjs.MediaTechController.prototype.removeRemoteTextTrack = function(track) {
+ this.textTracks().removeTrack_(track);
+ this.remoteTextTracks().removeTrack_(track);
+};
+
+/**
+ * Provide a default setPoster method for techs
+ *
+ * Poster support for techs should be optional, so we don't want techs to
+ * break if they don't have a way to set a poster.
+ */
+vjs.MediaTechController.prototype.setPoster = function(){};
+
+vjs.MediaTechController.prototype['featuresVolumeControl'] = true;
+
+// Resizing plugins using request fullscreen reloads the plugin
+vjs.MediaTechController.prototype['featuresFullscreenResize'] = false;
+vjs.MediaTechController.prototype['featuresPlaybackRate'] = false;
+
+// Optional events that we can manually mimic with timers
+// currently not triggered by video-js-swf
+vjs.MediaTechController.prototype['featuresProgressEvents'] = false;
+vjs.MediaTechController.prototype['featuresTimeupdateEvents'] = false;
+
+vjs.MediaTechController.prototype['featuresNativeTextTracks'] = false;
+
+/**
+ * A functional mixin for techs that want to use the Source Handler pattern.
+ *
+ * ##### EXAMPLE:
+ *
+ * videojs.MediaTechController.withSourceHandlers.call(MyTech);
+ *
+ */
+vjs.MediaTechController.withSourceHandlers = function(Tech){
+ /**
+ * Register a source handler
+ * Source handlers are scripts for handling specific formats.
+ * The source handler pattern is used for adaptive formats (HLS, DASH) that
+ * manually load video data and feed it into a Source Buffer (Media Source Extensions)
+ * @param {Function} handler The source handler
+ * @param {Boolean} first Register it before any existing handlers
+ */
+ Tech.registerSourceHandler = function(handler, index){
+ var handlers = Tech.sourceHandlers;
+
+ if (!handlers) {
+ handlers = Tech.sourceHandlers = [];
+ }
+
+ if (index === undefined) {
+ // add to the end of the list
+ index = handlers.length;
+ }
+
+ handlers.splice(index, 0, handler);
+ };
+
+ /**
+ * Return the first source handler that supports the source
+ * TODO: Answer question: should 'probably' be prioritized over 'maybe'
+ * @param {Object} source The source object
+ * @returns {Object} The first source handler that supports the source
+ * @returns {null} Null if no source handler is found
+ */
+ Tech.selectSourceHandler = function(source){
+ var handlers = Tech.sourceHandlers || [],
+ can;
+
+ for (var i = 0; i < handlers.length; i++) {
+ can = handlers[i].canHandleSource(source);
+
+ if (can) {
+ return handlers[i];
+ }
+ }
+
+ return null;
+ };
+
+ /**
+ * Check if the tech can support the given source
+ * @param {Object} srcObj The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+ Tech.canPlaySource = function(srcObj){
+ var sh = Tech.selectSourceHandler(srcObj);
+
+ if (sh) {
+ return sh.canHandleSource(srcObj);
+ }
+
+ return '';
+ };
+
+ /**
+ * Create a function for setting the source using a source object
+ * and source handlers.
+ * Should never be called unless a source handler was found.
+ * @param {Object} source A source object with src and type keys
+ * @return {vjs.MediaTechController} self
+ */
+ Tech.prototype.setSource = function(source){
+ var sh = Tech.selectSourceHandler(source);
+
+ // Dispose any existing source handler
+ this.disposeSourceHandler();
+ this.off('dispose', this.disposeSourceHandler);
+
+ this.currentSource_ = source;
+ this.sourceHandler_ = sh.handleSource(source, this);
+ this.on('dispose', this.disposeSourceHandler);
+
+ return this;
+ };
+
+ /**
+ * Clean up any existing source handler
+ */
+ Tech.prototype.disposeSourceHandler = function(){
+ if (this.sourceHandler_ && this.sourceHandler_.dispose) {
+ this.sourceHandler_.dispose();
+ }
+ };
+
+};
+
+vjs.media = {};
+
+})();
+/**
+ * @fileoverview HTML5 Media Controller - Wrapper for HTML5 Media API
+ */
+
+/**
+ * HTML5 Media Controller - Wrapper for HTML5 Media API
+ * @param {vjs.Player|Object} player
+ * @param {Object=} options
+ * @param {Function=} ready
+ * @constructor
+ */
+vjs.Html5 = vjs.MediaTechController.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ var nodes, nodesLength, i, node, nodeName, removeNodes;
+
+ if (options['nativeCaptions'] === false || options['nativeTextTracks'] === false) {
+ this['featuresNativeTextTracks'] = false;
+ }
+
+ vjs.MediaTechController.call(this, player, options, ready);
+
+ this.setupTriggers();
+
+ var source = options['source'];
+
+ // Set the source if one is provided
+ // 1) Check if the source is new (if not, we want to keep the original so playback isn't interrupted)
+ // 2) Check to see if the network state of the tag was failed at init, and if so, reset the source
+ // anyway so the error gets fired.
+ if (source && (this.el_.currentSrc !== source.src || (player.tag && player.tag.initNetworkState_ === 3))) {
+ this.setSource(source);
+ }
+
+ if (this.el_.hasChildNodes()) {
+
+ nodes = this.el_.childNodes;
+ nodesLength = nodes.length;
+ removeNodes = [];
+
+ while (nodesLength--) {
+ node = nodes[nodesLength];
+ nodeName = node.nodeName.toLowerCase();
+ if (nodeName === 'track') {
+ if (!this['featuresNativeTextTracks']) {
+ // Empty video tag tracks so the built-in player doesn't use them also.
+ // This may not be fast enough to stop HTML5 browsers from reading the tags
+ // so we'll need to turn off any default tracks if we're manually doing
+ // captions and subtitles. videoElement.textTracks
+ removeNodes.push(node);
+ } else {
+ this.remoteTextTracks().addTrack_(node['track']);
+ }
+ }
+ }
+
+ for (i=0; i= 0; i--) {
+ var attr = settingsAttrs[i];
+ var overwriteAttrs = {};
+ if (typeof player.options_[attr] !== 'undefined') {
+ overwriteAttrs[attr] = player.options_[attr];
+ }
+ vjs.setElementAttributes(el, overwriteAttrs);
+ }
+
+ return el;
+ // jenniisawesome = true;
+};
+
+
+vjs.Html5.prototype.hideCaptions = function() {
+ var tracks = this.el_.textTracks,
+ track,
+ i = tracks.length,
+ kinds = {
+ 'captions': 1,
+ 'subtitles': 1
+ };
+
+ while (i--) {
+ track = tracks[i];
+ if (track && track['kind'] in kinds) {
+ track.mode = 'disabled';
+ }
+ }
+};
+
+// Make video events trigger player events
+// May seem verbose here, but makes other APIs possible.
+// Triggers removed using this.off when disposed
+vjs.Html5.prototype.setupTriggers = function(){
+ for (var i = vjs.Html5.Events.length - 1; i >= 0; i--) {
+ this.on(vjs.Html5.Events[i], this.eventHandler);
+ }
+};
+
+vjs.Html5.prototype.eventHandler = function(evt){
+ // In the case of an error on the video element, set the error prop
+ // on the player and let the player handle triggering the event. On
+ // some platforms, error events fire that do not cause the error
+ // property on the video element to be set. See #1465 for an example.
+ if (evt.type == 'error' && this.error()) {
+ this.player().error(this.error().code);
+
+ // in some cases we pass the event directly to the player
+ } else {
+ // No need for media events to bubble up.
+ evt.bubbles = false;
+
+ this.player().trigger(evt);
+ }
+};
+
+vjs.Html5.prototype.useNativeControls = function(){
+ var tech, player, controlsOn, controlsOff, cleanUp;
+
+ tech = this;
+ player = this.player();
+
+ // If the player controls are enabled turn on the native controls
+ tech.setControls(player.controls());
+
+ // Update the native controls when player controls state is updated
+ controlsOn = function(){
+ tech.setControls(true);
+ };
+ controlsOff = function(){
+ tech.setControls(false);
+ };
+ player.on('controlsenabled', controlsOn);
+ player.on('controlsdisabled', controlsOff);
+
+ // Clean up when not using native controls anymore
+ cleanUp = function(){
+ player.off('controlsenabled', controlsOn);
+ player.off('controlsdisabled', controlsOff);
+ };
+ tech.on('dispose', cleanUp);
+ player.on('usingcustomcontrols', cleanUp);
+
+ // Update the state of the player to using native controls
+ player.usingNativeControls(true);
+};
+
+
+vjs.Html5.prototype.play = function(){ this.el_.play(); };
+vjs.Html5.prototype.pause = function(){ this.el_.pause(); };
+vjs.Html5.prototype.paused = function(){ return this.el_.paused; };
+
+vjs.Html5.prototype.currentTime = function(){ return this.el_.currentTime; };
+vjs.Html5.prototype.setCurrentTime = function(seconds){
+ try {
+ this.el_.currentTime = seconds;
+ } catch(e) {
+ vjs.log(e, 'Video is not ready. (Video.js)');
+ // this.warning(VideoJS.warnings.videoNotReady);
+ }
+};
+
+vjs.Html5.prototype.duration = function(){ return this.el_.duration || 0; };
+vjs.Html5.prototype.buffered = function(){ return this.el_.buffered; };
+
+vjs.Html5.prototype.volume = function(){ return this.el_.volume; };
+vjs.Html5.prototype.setVolume = function(percentAsDecimal){ this.el_.volume = percentAsDecimal; };
+vjs.Html5.prototype.muted = function(){ return this.el_.muted; };
+vjs.Html5.prototype.setMuted = function(muted){ this.el_.muted = muted; };
+
+vjs.Html5.prototype.width = function(){ return this.el_.offsetWidth; };
+vjs.Html5.prototype.height = function(){ return this.el_.offsetHeight; };
+
+vjs.Html5.prototype.supportsFullScreen = function(){
+ if (typeof this.el_.webkitEnterFullScreen == 'function') {
+
+ // Seems to be broken in Chromium/Chrome && Safari in Leopard
+ if (/Android/.test(vjs.USER_AGENT) || !/Chrome|Mac OS X 10.5/.test(vjs.USER_AGENT)) {
+ return true;
+ }
+ }
+ return false;
+};
+
+vjs.Html5.prototype.enterFullScreen = function(){
+ var video = this.el_;
+
+ if ('webkitDisplayingFullscreen' in video) {
+ this.one('webkitbeginfullscreen', function() {
+ this.player_.isFullscreen(true);
+
+ this.one('webkitendfullscreen', function() {
+ this.player_.isFullscreen(false);
+ this.player_.trigger('fullscreenchange');
+ });
+
+ this.player_.trigger('fullscreenchange');
+ });
+ }
+
+ if (video.paused && video.networkState <= video.HAVE_METADATA) {
+ // attempt to prime the video element for programmatic access
+ // this isn't necessary on the desktop but shouldn't hurt
+ this.el_.play();
+
+ // playing and pausing synchronously during the transition to fullscreen
+ // can get iOS ~6.1 devices into a play/pause loop
+ this.setTimeout(function(){
+ video.pause();
+ video.webkitEnterFullScreen();
+ }, 0);
+ } else {
+ video.webkitEnterFullScreen();
+ }
+};
+
+vjs.Html5.prototype.exitFullScreen = function(){
+ this.el_.webkitExitFullScreen();
+};
+
+
+vjs.Html5.prototype.src = function(src) {
+ if (src === undefined) {
+ return this.el_.src;
+ } else {
+ // Setting src through `src` instead of `setSrc` will be deprecated
+ this.setSrc(src);
+ }
+};
+
+vjs.Html5.prototype.setSrc = function(src) {
+ this.el_.src = src;
+};
+
+vjs.Html5.prototype.load = function(){ this.el_.load(); };
+vjs.Html5.prototype.currentSrc = function(){ return this.el_.currentSrc; };
+
+vjs.Html5.prototype.poster = function(){ return this.el_.poster; };
+vjs.Html5.prototype.setPoster = function(val){ this.el_.poster = val; };
+
+vjs.Html5.prototype.preload = function(){ return this.el_.preload; };
+vjs.Html5.prototype.setPreload = function(val){ this.el_.preload = val; };
+
+vjs.Html5.prototype.autoplay = function(){ return this.el_.autoplay; };
+vjs.Html5.prototype.setAutoplay = function(val){ this.el_.autoplay = val; };
+
+vjs.Html5.prototype.controls = function(){ return this.el_.controls; };
+vjs.Html5.prototype.setControls = function(val){ this.el_.controls = !!val; };
+
+vjs.Html5.prototype.loop = function(){ return this.el_.loop; };
+vjs.Html5.prototype.setLoop = function(val){ this.el_.loop = val; };
+
+vjs.Html5.prototype.error = function(){ return this.el_.error; };
+vjs.Html5.prototype.seeking = function(){ return this.el_.seeking; };
+vjs.Html5.prototype.ended = function(){ return this.el_.ended; };
+vjs.Html5.prototype.defaultMuted = function(){ return this.el_.defaultMuted; };
+
+vjs.Html5.prototype.playbackRate = function(){ return this.el_.playbackRate; };
+vjs.Html5.prototype.setPlaybackRate = function(val){ this.el_.playbackRate = val; };
+
+vjs.Html5.prototype.networkState = function(){ return this.el_.networkState; };
+vjs.Html5.prototype.readyState = function(){ return this.el_.readyState; };
+
+vjs.Html5.prototype.textTracks = function() {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.textTracks.call(this);
+ }
+
+ return this.el_.textTracks;
+};
+vjs.Html5.prototype.addTextTrack = function(kind, label, language) {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.addTextTrack.call(this, kind, label, language);
+ }
+
+ return this.el_.addTextTrack(kind, label, language);
+};
+
+vjs.Html5.prototype.addRemoteTextTrack = function(options) {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.addRemoteTextTrack.call(this, options);
+ }
+
+ var track = document.createElement('track');
+ options = options || {};
+
+ if (options['kind']) {
+ track['kind'] = options['kind'];
+ }
+ if (options['label']) {
+ track['label'] = options['label'];
+ }
+ if (options['language'] || options['srclang']) {
+ track['srclang'] = options['language'] || options['srclang'];
+ }
+ if (options['default']) {
+ track['default'] = options['default'];
+ }
+ if (options['id']) {
+ track['id'] = options['id'];
+ }
+ if (options['src']) {
+ track['src'] = options['src'];
+ }
+
+ this.el().appendChild(track);
+
+ if (track.track['kind'] === 'metadata') {
+ track['track']['mode'] = 'hidden';
+ } else {
+ track['track']['mode'] = 'disabled';
+ }
+
+ track['onload'] = function() {
+ var tt = track['track'];
+ if (track.readyState >= 2) {
+ if (tt['kind'] === 'metadata' && tt['mode'] !== 'hidden') {
+ tt['mode'] = 'hidden';
+ } else if (tt['kind'] !== 'metadata' && tt['mode'] !== 'disabled') {
+ tt['mode'] = 'disabled';
+ }
+ track['onload'] = null;
+ }
+ };
+
+ this.remoteTextTracks().addTrack_(track.track);
+
+ return track;
+};
+
+vjs.Html5.prototype.removeRemoteTextTrack = function(track) {
+ if (!this['featuresNativeTextTracks']) {
+ return vjs.MediaTechController.prototype.removeRemoteTextTrack.call(this, track);
+ }
+
+ var tracks, i;
+
+ this.remoteTextTracks().removeTrack_(track);
+
+ tracks = this.el()['querySelectorAll']('track');
+
+ for (i = 0; i < tracks.length; i++) {
+ if (tracks[i] === track || tracks[i]['track'] === track) {
+ tracks[i]['parentNode']['removeChild'](tracks[i]);
+ break;
+ }
+ }
+};
+
+/* HTML5 Support Testing ---------------------------------------------------- */
+
+/**
+ * Check if HTML5 video is supported by this browser/device
+ * @return {Boolean}
+ */
+vjs.Html5.isSupported = function(){
+ // IE9 with no Media Player is a LIAR! (#984)
+ try {
+ vjs.TEST_VID['volume'] = 0.5;
+ } catch (e) {
+ return false;
+ }
+
+ return !!vjs.TEST_VID.canPlayType;
+};
+
+// Add Source Handler pattern functions to this tech
+vjs.MediaTechController.withSourceHandlers(vjs.Html5);
+
+/**
+ * The default native source handler.
+ * This simply passes the source to the video element. Nothing fancy.
+ * @param {Object} source The source object
+ * @param {vjs.Html5} tech The instance of the HTML5 tech
+ */
+vjs.Html5.nativeSourceHandler = {};
+
+/**
+ * Check if the video element can handle the source natively
+ * @param {Object} source The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+vjs.Html5.nativeSourceHandler.canHandleSource = function(source){
+ var match, ext;
+
+ function canPlayType(type){
+ // IE9 on Windows 7 without MediaPlayer throws an error here
+ // https://github.com/videojs/video.js/issues/519
+ try {
+ return vjs.TEST_VID.canPlayType(type);
+ } catch(e) {
+ return '';
+ }
+ }
+
+ // If a type was provided we should rely on that
+ if (source.type) {
+ return canPlayType(source.type);
+ } else if (source.src) {
+ // If no type, fall back to checking 'video/[EXTENSION]'
+ match = source.src.match(/\.([^.\/\?]+)(\?[^\/]+)?$/i);
+ ext = match && match[1];
+
+ return canPlayType('video/'+ext);
+ }
+
+ return '';
+};
+
+/**
+ * Pass the source to the video element
+ * Adaptive source handlers will have more complicated workflows before passing
+ * video data to the video element
+ * @param {Object} source The source object
+ * @param {vjs.Html5} tech The instance of the Html5 tech
+ */
+vjs.Html5.nativeSourceHandler.handleSource = function(source, tech){
+ tech.setSrc(source.src);
+};
+
+/**
+ * Clean up the source handler when disposing the player or switching sources..
+ * (no cleanup is needed when supporting the format natively)
+ */
+vjs.Html5.nativeSourceHandler.dispose = function(){};
+
+// Register the native source handler
+vjs.Html5.registerSourceHandler(vjs.Html5.nativeSourceHandler);
+
+/**
+ * Check if the volume can be changed in this browser/device.
+ * Volume cannot be changed in a lot of mobile devices.
+ * Specifically, it can't be changed from 1 on iOS.
+ * @return {Boolean}
+ */
+vjs.Html5.canControlVolume = function(){
+ var volume = vjs.TEST_VID.volume;
+ vjs.TEST_VID.volume = (volume / 2) + 0.1;
+ return volume !== vjs.TEST_VID.volume;
+};
+
+/**
+ * Check if playbackRate is supported in this browser/device.
+ * @return {[type]} [description]
+ */
+vjs.Html5.canControlPlaybackRate = function(){
+ var playbackRate = vjs.TEST_VID.playbackRate;
+ vjs.TEST_VID.playbackRate = (playbackRate / 2) + 0.1;
+ return playbackRate !== vjs.TEST_VID.playbackRate;
+};
+
+/**
+ * Check to see if native text tracks are supported by this browser/device
+ * @return {Boolean}
+ */
+vjs.Html5.supportsNativeTextTracks = function() {
+ var supportsTextTracks;
+
+ // Figure out native text track support
+ // If mode is a number, we cannot change it because it'll disappear from view.
+ // Browsers with numeric modes include IE10 and older (<=2013) samsung android models.
+ // Firefox isn't playing nice either with modifying the mode
+ // TODO: Investigate firefox: https://github.com/videojs/video.js/issues/1862
+ supportsTextTracks = !!vjs.TEST_VID.textTracks;
+ if (supportsTextTracks && vjs.TEST_VID.textTracks.length > 0) {
+ supportsTextTracks = typeof vjs.TEST_VID.textTracks[0]['mode'] !== 'number';
+ }
+ if (supportsTextTracks && vjs.IS_FIREFOX) {
+ supportsTextTracks = false;
+ }
+
+ return supportsTextTracks;
+};
+
+/**
+ * Set the tech's volume control support status
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['featuresVolumeControl'] = vjs.Html5.canControlVolume();
+
+/**
+ * Set the tech's playbackRate support status
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['featuresPlaybackRate'] = vjs.Html5.canControlPlaybackRate();
+
+/**
+ * Set the tech's status on moving the video element.
+ * In iOS, if you move a video element in the DOM, it breaks video playback.
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['movingMediaElementInDOM'] = !vjs.IS_IOS;
+
+/**
+ * Set the the tech's fullscreen resize support status.
+ * HTML video is able to automatically resize when going to fullscreen.
+ * (No longer appears to be used. Can probably be removed.)
+ */
+vjs.Html5.prototype['featuresFullscreenResize'] = true;
+
+/**
+ * Set the tech's progress event support status
+ * (this disables the manual progress events of the MediaTechController)
+ */
+vjs.Html5.prototype['featuresProgressEvents'] = true;
+
+/**
+ * Sets the tech's status on native text track support
+ * @type {Boolean}
+ */
+vjs.Html5.prototype['featuresNativeTextTracks'] = vjs.Html5.supportsNativeTextTracks();
+
+// HTML5 Feature detection and Device Fixes --------------------------------- //
+(function() {
+ var canPlayType,
+ mpegurlRE = /^application\/(?:x-|vnd\.apple\.)mpegurl/i,
+ mp4RE = /^video\/mp4/i;
+
+ vjs.Html5.patchCanPlayType = function() {
+ // Android 4.0 and above can play HLS to some extent but it reports being unable to do so
+ if (vjs.ANDROID_VERSION >= 4.0) {
+ if (!canPlayType) {
+ canPlayType = vjs.TEST_VID.constructor.prototype.canPlayType;
+ }
+
+ vjs.TEST_VID.constructor.prototype.canPlayType = function(type) {
+ if (type && mpegurlRE.test(type)) {
+ return 'maybe';
+ }
+ return canPlayType.call(this, type);
+ };
+ }
+
+ // Override Android 2.2 and less canPlayType method which is broken
+ if (vjs.IS_OLD_ANDROID) {
+ if (!canPlayType) {
+ canPlayType = vjs.TEST_VID.constructor.prototype.canPlayType;
+ }
+
+ vjs.TEST_VID.constructor.prototype.canPlayType = function(type){
+ if (type && mp4RE.test(type)) {
+ return 'maybe';
+ }
+ return canPlayType.call(this, type);
+ };
+ }
+ };
+
+ vjs.Html5.unpatchCanPlayType = function() {
+ var r = vjs.TEST_VID.constructor.prototype.canPlayType;
+ vjs.TEST_VID.constructor.prototype.canPlayType = canPlayType;
+ canPlayType = null;
+ return r;
+ };
+
+ // by default, patch the video element
+ vjs.Html5.patchCanPlayType();
+})();
+
+// List of all HTML5 events (various uses).
+vjs.Html5.Events = 'loadstart,suspend,abort,error,emptied,stalled,loadedmetadata,loadeddata,canplay,canplaythrough,playing,waiting,seeking,seeked,ended,durationchange,timeupdate,progress,play,pause,ratechange,volumechange'.split(',');
+
+vjs.Html5.disposeMediaElement = function(el){
+ if (!el) { return; }
+
+ el['player'] = null;
+
+ if (el.parentNode) {
+ el.parentNode.removeChild(el);
+ }
+
+ // remove any child track or source nodes to prevent their loading
+ while(el.hasChildNodes()) {
+ el.removeChild(el.firstChild);
+ }
+
+ // remove any src reference. not setting `src=''` because that causes a warning
+ // in firefox
+ el.removeAttribute('src');
+
+ // force the media element to update its loading state by calling load()
+ // however IE on Windows 7N has a bug that throws an error so need a try/catch (#793)
+ if (typeof el.load === 'function') {
+ // wrapping in an iife so it's not deoptimized (#1060#discussion_r10324473)
+ (function() {
+ try {
+ el.load();
+ } catch (e) {
+ // not supported
+ }
+ })();
+ }
+};
+/**
+ * @fileoverview VideoJS-SWF - Custom Flash Player with HTML5-ish API
+ * https://github.com/zencoder/video-js-swf
+ * Not using setupTriggers. Using global onEvent func to distribute events
+ */
+
+/**
+ * Flash Media Controller - Wrapper for fallback SWF API
+ *
+ * @param {vjs.Player} player
+ * @param {Object=} options
+ * @param {Function=} ready
+ * @constructor
+ */
+vjs.Flash = vjs.MediaTechController.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.MediaTechController.call(this, player, options, ready);
+
+ var source = options['source'],
+
+ // Which element to embed in
+ parentEl = options['parentEl'],
+
+ // Create a temporary element to be replaced by swf object
+ placeHolder = this.el_ = vjs.createEl('div', { id: player.id() + '_temp_flash' }),
+
+ // Generate ID for swf object
+ objId = player.id()+'_flash_api',
+
+ // Store player options in local var for optimization
+ // TODO: switch to using player methods instead of options
+ // e.g. player.autoplay();
+ playerOptions = player.options_,
+
+ // Merge default flashvars with ones passed in to init
+ flashVars = vjs.obj.merge({
+
+ // SWF Callback Functions
+ 'readyFunction': 'videojs.Flash.onReady',
+ 'eventProxyFunction': 'videojs.Flash.onEvent',
+ 'errorEventProxyFunction': 'videojs.Flash.onError',
+
+ // Player Settings
+ 'autoplay': playerOptions.autoplay,
+ 'preload': playerOptions.preload,
+ 'loop': playerOptions.loop,
+ 'muted': playerOptions.muted
+
+ }, options['flashVars']),
+
+ // Merge default parames with ones passed in
+ params = vjs.obj.merge({
+ 'wmode': 'opaque', // Opaque is needed to overlay controls, but can affect playback performance
+ 'bgcolor': '#000000' // Using bgcolor prevents a white flash when the object is loading
+ }, options['params']),
+
+ // Merge default attributes with ones passed in
+ attributes = vjs.obj.merge({
+ 'id': objId,
+ 'name': objId, // Both ID and Name needed or swf to identify itself
+ 'class': 'vjs-tech'
+ }, options['attributes'])
+ ;
+
+ // If source was supplied pass as a flash var.
+ if (source) {
+ this.ready(function(){
+ this.setSource(source);
+ });
+ }
+
+ // Add placeholder to player div
+ vjs.insertFirst(placeHolder, parentEl);
+
+ // Having issues with Flash reloading on certain page actions (hide/resize/fullscreen) in certain browsers
+ // This allows resetting the playhead when we catch the reload
+ if (options['startTime']) {
+ this.ready(function(){
+ this.load();
+ this.play();
+ this['currentTime'](options['startTime']);
+ });
+ }
+
+ // firefox doesn't bubble mousemove events to parent. videojs/video-js-swf#37
+ // bugzilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=836786
+ if (vjs.IS_FIREFOX) {
+ this.ready(function(){
+ this.on('mousemove', function(){
+ // since it's a custom event, don't bubble higher than the player
+ this.player().trigger({ 'type':'mousemove', 'bubbles': false });
+ });
+ });
+ }
+
+ // native click events on the SWF aren't triggered on IE11, Win8.1RT
+ // use stageclick events triggered from inside the SWF instead
+ player.on('stageclick', player.reportUserActivity);
+
+ this.el_ = vjs.Flash.embed(options['swf'], placeHolder, flashVars, params, attributes);
+ }
+});
+
+vjs.Flash.prototype.dispose = function(){
+ vjs.MediaTechController.prototype.dispose.call(this);
+};
+
+vjs.Flash.prototype.play = function(){
+ this.el_.vjs_play();
+};
+
+vjs.Flash.prototype.pause = function(){
+ this.el_.vjs_pause();
+};
+
+vjs.Flash.prototype.src = function(src){
+ if (src === undefined) {
+ return this['currentSrc']();
+ }
+
+ // Setting src through `src` not `setSrc` will be deprecated
+ return this.setSrc(src);
+};
+
+vjs.Flash.prototype.setSrc = function(src){
+ // Make sure source URL is absolute.
+ src = vjs.getAbsoluteURL(src);
+ this.el_.vjs_src(src);
+
+ // Currently the SWF doesn't autoplay if you load a source later.
+ // e.g. Load player w/ no source, wait 2s, set src.
+ if (this.player_.autoplay()) {
+ var tech = this;
+ this.setTimeout(function(){ tech.play(); }, 0);
+ }
+};
+
+vjs.Flash.prototype['setCurrentTime'] = function(time){
+ this.lastSeekTarget_ = time;
+ this.el_.vjs_setProperty('currentTime', time);
+ vjs.MediaTechController.prototype.setCurrentTime.call(this);
+};
+
+vjs.Flash.prototype['currentTime'] = function(time){
+ // when seeking make the reported time keep up with the requested time
+ // by reading the time we're seeking to
+ if (this.seeking()) {
+ return this.lastSeekTarget_ || 0;
+ }
+ return this.el_.vjs_getProperty('currentTime');
+};
+
+vjs.Flash.prototype['currentSrc'] = function(){
+ if (this.currentSource_) {
+ return this.currentSource_.src;
+ } else {
+ return this.el_.vjs_getProperty('currentSrc');
+ }
+};
+
+vjs.Flash.prototype.load = function(){
+ this.el_.vjs_load();
+};
+
+vjs.Flash.prototype.poster = function(){
+ this.el_.vjs_getProperty('poster');
+};
+vjs.Flash.prototype['setPoster'] = function(){
+ // poster images are not handled by the Flash tech so make this a no-op
+};
+
+vjs.Flash.prototype.buffered = function(){
+ return vjs.createTimeRange(0, this.el_.vjs_getProperty('buffered'));
+};
+
+vjs.Flash.prototype.supportsFullScreen = function(){
+ return false; // Flash does not allow fullscreen through javascript
+};
+
+vjs.Flash.prototype.enterFullScreen = function(){
+ return false;
+};
+
+(function(){
+ // Create setters and getters for attributes
+ var api = vjs.Flash.prototype,
+ readWrite = 'rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted'.split(','),
+ readOnly = 'error,networkState,readyState,seeking,initialTime,duration,startOffsetTime,paused,played,seekable,ended,videoTracks,audioTracks,videoWidth,videoHeight'.split(','),
+ // Overridden: buffered, currentTime, currentSrc
+ i;
+
+ function createSetter(attr){
+ var attrUpper = attr.charAt(0).toUpperCase() + attr.slice(1);
+ api['set'+attrUpper] = function(val){ return this.el_.vjs_setProperty(attr, val); };
+ }
+ function createGetter(attr) {
+ api[attr] = function(){ return this.el_.vjs_getProperty(attr); };
+ }
+
+ // Create getter and setters for all read/write attributes
+ for (i = 0; i < readWrite.length; i++) {
+ createGetter(readWrite[i]);
+ createSetter(readWrite[i]);
+ }
+
+ // Create getters for read-only attributes
+ for (i = 0; i < readOnly.length; i++) {
+ createGetter(readOnly[i]);
+ }
+})();
+
+/* Flash Support Testing -------------------------------------------------------- */
+
+vjs.Flash.isSupported = function(){
+ return vjs.Flash.version()[0] >= 10;
+ // return swfobject.hasFlashPlayerVersion('10');
+};
+
+// Add Source Handler pattern functions to this tech
+vjs.MediaTechController.withSourceHandlers(vjs.Flash);
+
+/**
+ * The default native source handler.
+ * This simply passes the source to the video element. Nothing fancy.
+ * @param {Object} source The source object
+ * @param {vjs.Flash} tech The instance of the Flash tech
+ */
+vjs.Flash.nativeSourceHandler = {};
+
+/**
+ * Check Flash can handle the source natively
+ * @param {Object} source The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+vjs.Flash.nativeSourceHandler.canHandleSource = function(source){
+ var type;
+
+ if (!source.type) {
+ return '';
+ }
+
+ // Strip code information from the type because we don't get that specific
+ type = source.type.replace(/;.*/,'').toLowerCase();
+
+ if (type in vjs.Flash.formats) {
+ return 'maybe';
+ }
+
+ return '';
+};
+
+/**
+ * Pass the source to the flash object
+ * Adaptive source handlers will have more complicated workflows before passing
+ * video data to the video element
+ * @param {Object} source The source object
+ * @param {vjs.Flash} tech The instance of the Flash tech
+ */
+vjs.Flash.nativeSourceHandler.handleSource = function(source, tech){
+ tech.setSrc(source.src);
+};
+
+/**
+ * Clean up the source handler when disposing the player or switching sources..
+ * (no cleanup is needed when supporting the format natively)
+ */
+vjs.Flash.nativeSourceHandler.dispose = function(){};
+
+// Register the native source handler
+vjs.Flash.registerSourceHandler(vjs.Flash.nativeSourceHandler);
+
+vjs.Flash.formats = {
+ 'video/flv': 'FLV',
+ 'video/x-flv': 'FLV',
+ 'video/mp4': 'MP4',
+ 'video/m4v': 'MP4'
+};
+
+vjs.Flash['onReady'] = function(currSwf){
+ var el, player;
+
+ el = vjs.el(currSwf);
+
+ // get player from the player div property
+ player = el && el.parentNode && el.parentNode['player'];
+
+ // if there is no el or player then the tech has been disposed
+ // and the tech element was removed from the player div
+ if (player) {
+ // reference player on tech element
+ el['player'] = player;
+ // check that the flash object is really ready
+ vjs.Flash['checkReady'](player.tech);
+ }
+};
+
+// The SWF isn't always ready when it says it is. Sometimes the API functions still need to be added to the object.
+// If it's not ready, we set a timeout to check again shortly.
+vjs.Flash['checkReady'] = function(tech){
+ // stop worrying if the tech has been disposed
+ if (!tech.el()) {
+ return;
+ }
+
+ // check if API property exists
+ if (tech.el().vjs_getProperty) {
+ // tell tech it's ready
+ tech.triggerReady();
+ } else {
+ // wait longer
+ this.setTimeout(function(){
+ vjs.Flash['checkReady'](tech);
+ }, 50);
+ }
+};
+
+// Trigger events from the swf on the player
+vjs.Flash['onEvent'] = function(swfID, eventName){
+ var player = vjs.el(swfID)['player'];
+ player.trigger(eventName);
+};
+
+// Log errors from the swf
+vjs.Flash['onError'] = function(swfID, err){
+ var player = vjs.el(swfID)['player'];
+ var msg = 'FLASH: '+err;
+
+ if (err == 'srcnotfound') {
+ player.error({ code: 4, message: msg });
+
+ // errors we haven't categorized into the media errors
+ } else {
+ player.error(msg);
+ }
+};
+
+// Flash Version Check
+vjs.Flash.version = function(){
+ var version = '0,0,0';
+
+ // IE
+ try {
+ version = new window.ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
+
+ // other browsers
+ } catch(e) {
+ try {
+ if (navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin){
+ version = (navigator.plugins['Shockwave Flash 2.0'] || navigator.plugins['Shockwave Flash']).description.replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
+ }
+ } catch(err) {}
+ }
+ return version.split(',');
+};
+
+// Flash embedding method. Only used in non-iframe mode
+vjs.Flash.embed = function(swf, placeHolder, flashVars, params, attributes){
+ var code = vjs.Flash.getEmbedCode(swf, flashVars, params, attributes),
+
+ // Get element by embedding code and retrieving created element
+ obj = vjs.createEl('div', { innerHTML: code }).childNodes[0],
+
+ par = placeHolder.parentNode
+ ;
+
+ placeHolder.parentNode.replaceChild(obj, placeHolder);
+
+ // IE6 seems to have an issue where it won't initialize the swf object after injecting it.
+ // This is a dumb fix
+ var newObj = par.childNodes[0];
+ setTimeout(function(){
+ newObj.style.display = 'block';
+ }, 1000);
+
+ return obj;
+
+};
+
+vjs.Flash.getEmbedCode = function(swf, flashVars, params, attributes){
+
+ var objTag = ' ';
+ });
+
+ attributes = vjs.obj.merge({
+ // Add swf to attributes (need both for IE and Others to work)
+ 'data': swf,
+
+ // Default to 100% width/height
+ 'width': '100%',
+ 'height': '100%'
+
+ }, attributes);
+
+ // Create Attributes string
+ vjs.obj.each(attributes, function(key, val){
+ attrsString += (key + '="' + val + '" ');
+ });
+
+ return objTag + attrsString + '>' + paramsString + '';
+};
+vjs.Flash.streamingFormats = {
+ 'rtmp/mp4': 'MP4',
+ 'rtmp/flv': 'FLV'
+};
+
+vjs.Flash.streamFromParts = function(connection, stream) {
+ return connection + '&' + stream;
+};
+
+vjs.Flash.streamToParts = function(src) {
+ var parts = {
+ connection: '',
+ stream: ''
+ };
+
+ if (! src) {
+ return parts;
+ }
+
+ // Look for the normal URL separator we expect, '&'.
+ // If found, we split the URL into two pieces around the
+ // first '&'.
+ var connEnd = src.indexOf('&');
+ var streamBegin;
+ if (connEnd !== -1) {
+ streamBegin = connEnd + 1;
+ }
+ else {
+ // If there's not a '&', we use the last '/' as the delimiter.
+ connEnd = streamBegin = src.lastIndexOf('/') + 1;
+ if (connEnd === 0) {
+ // really, there's not a '/'?
+ connEnd = streamBegin = src.length;
+ }
+ }
+ parts.connection = src.substring(0, connEnd);
+ parts.stream = src.substring(streamBegin, src.length);
+
+ return parts;
+};
+
+vjs.Flash.isStreamingType = function(srcType) {
+ return srcType in vjs.Flash.streamingFormats;
+};
+
+// RTMP has four variations, any string starting
+// with one of these protocols should be valid
+vjs.Flash.RTMP_RE = /^rtmp[set]?:\/\//i;
+
+vjs.Flash.isStreamingSrc = function(src) {
+ return vjs.Flash.RTMP_RE.test(src);
+};
+
+/**
+ * A source handler for RTMP urls
+ * @type {Object}
+ */
+vjs.Flash.rtmpSourceHandler = {};
+
+/**
+ * Check Flash can handle the source natively
+ * @param {Object} source The source object
+ * @return {String} 'probably', 'maybe', or '' (empty string)
+ */
+vjs.Flash.rtmpSourceHandler.canHandleSource = function(source){
+ if (vjs.Flash.isStreamingType(source.type) || vjs.Flash.isStreamingSrc(source.src)) {
+ return 'maybe';
+ }
+
+ return '';
+};
+
+/**
+ * Pass the source to the flash object
+ * Adaptive source handlers will have more complicated workflows before passing
+ * video data to the video element
+ * @param {Object} source The source object
+ * @param {vjs.Flash} tech The instance of the Flash tech
+ */
+vjs.Flash.rtmpSourceHandler.handleSource = function(source, tech){
+ var srcParts = vjs.Flash.streamToParts(source.src);
+
+ tech['setRtmpConnection'](srcParts.connection);
+ tech['setRtmpStream'](srcParts.stream);
+};
+
+// Register the native source handler
+vjs.Flash.registerSourceHandler(vjs.Flash.rtmpSourceHandler);
+/**
+ * The Media Loader is the component that decides which playback technology to load
+ * when the player is initialized.
+ *
+ * @constructor
+ */
+vjs.MediaLoader = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.Component.call(this, player, options, ready);
+
+ // If there are no sources when the player is initialized,
+ // load the first supported playback technology.
+ if (!player.options_['sources'] || player.options_['sources'].length === 0) {
+ for (var i=0,j=player.options_['techOrder']; i= ct) {
+ active.push(cue);
+ } else if (cue['startTime'] === cue['endTime'] && cue['startTime'] <= ct && cue['startTime'] + 0.5 >= ct) {
+ active.push(cue);
+ }
+ }
+
+ changed = false;
+
+ if (active.length !== this.activeCues_.length) {
+ changed = true;
+ } else {
+ for (i = 0; i < active.length; i++) {
+ if (indexOf.call(this.activeCues_, active[i]) === -1) {
+ changed = true;
+ }
+ }
+ }
+
+ this.activeCues_ = active;
+ activeCues.setCues_(this.activeCues_);
+
+ return activeCues;
+ },
+ set: Function.prototype
+ });
+
+ if (options.src) {
+ loadTrack(options.src, tt);
+ } else {
+ tt.loaded_ = true;
+ }
+
+ if (vjs.IS_IE8) {
+ return tt;
+ }
+};
+
+vjs.TextTrack.prototype = vjs.obj.create(vjs.EventEmitter.prototype);
+vjs.TextTrack.prototype.constructor = vjs.TextTrack;
+
+/*
+ * cuechange - One or more cues in the track have become active or stopped being active.
+ */
+vjs.TextTrack.prototype.allowedEvents_ = {
+ 'cuechange': 'cuechange'
+};
+
+vjs.TextTrack.prototype.addCue = function(cue) {
+ var tracks = this.player_.textTracks(),
+ i = 0;
+
+ if (tracks) {
+ for (; i < tracks.length; i++) {
+ if (tracks[i] !== this) {
+ tracks[i].removeCue(cue);
+ }
+ }
+ }
+
+ this.cues_.push(cue);
+ this['cues'].setCues_(this.cues_);
+};
+
+vjs.TextTrack.prototype.removeCue = function(removeCue) {
+ var i = 0,
+ l = this.cues_.length,
+ cue,
+ removed = false;
+
+ for (; i < l; i++) {
+ cue = this.cues_[i];
+ if (cue === removeCue) {
+ this.cues_.splice(i, 1);
+ removed = true;
+ }
+ }
+
+ if (removed) {
+ this.cues.setCues_(this.cues_);
+ }
+};
+
+/*
+ * Downloading stuff happens below this point
+ */
+var loadTrack, parseCues, indexOf;
+
+loadTrack = function(src, track) {
+ vjs.xhr(src, vjs.bind(this, function(err, response, responseBody){
+ if (err) {
+ return vjs.log.error(err);
+ }
+
+
+ track.loaded_ = true;
+ parseCues(responseBody, track);
+ }));
+};
+
+parseCues = function(srcContent, track) {
+ if (typeof window['WebVTT'] !== 'function') {
+ //try again a bit later
+ return window.setTimeout(function() {
+ parseCues(srcContent, track);
+ }, 25);
+ }
+
+ var parser = new window['WebVTT']['Parser'](window, window['vttjs'], window['WebVTT']['StringDecoder']());
+
+ parser['oncue'] = function(cue) {
+ track.addCue(cue);
+ };
+ parser['onparsingerror'] = function(error) {
+ vjs.log.error(error);
+ };
+
+ parser['parse'](srcContent);
+ parser['flush']();
+};
+
+indexOf = function(searchElement, fromIndex) {
+
+ var k;
+
+ if (this == null) {
+ throw new TypeError('"this" is null or not defined');
+ }
+
+ var O = Object(this);
+
+ var len = O.length >>> 0;
+
+ if (len === 0) {
+ return -1;
+ }
+
+ var n = +fromIndex || 0;
+
+ if (Math.abs(n) === Infinity) {
+ n = 0;
+ }
+
+ if (n >= len) {
+ return -1;
+ }
+
+ k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
+
+ while (k < len) {
+ if (k in O && O[k] === searchElement) {
+ return k;
+ }
+ k++;
+ }
+ return -1;
+};
+
+})();
+/*
+ * https://html.spec.whatwg.org/multipage/embedded-content.html#texttracklist
+ *
+ * interface TextTrackList : EventTarget {
+ * readonly attribute unsigned long length;
+ * getter TextTrack (unsigned long index);
+ * TextTrack? getTrackById(DOMString id);
+ *
+ * attribute EventHandler onchange;
+ * attribute EventHandler onaddtrack;
+ * attribute EventHandler onremovetrack;
+ * };
+ */
+vjs.TextTrackList = function(tracks) {
+ var list = this,
+ prop,
+ i = 0;
+
+ if (vjs.IS_IE8) {
+ list = document.createElement('custom');
+
+ for (prop in vjs.TextTrackList.prototype) {
+ list[prop] = vjs.TextTrackList.prototype[prop];
+ }
+ }
+
+ tracks = tracks || [];
+ list.tracks_ = [];
+
+ Object.defineProperty(list, 'length', {
+ get: function() {
+ return this.tracks_.length;
+ }
+ });
+
+ for (; i < tracks.length; i++) {
+ list.addTrack_(tracks[i]);
+ }
+
+ if (vjs.IS_IE8) {
+ return list;
+ }
+};
+
+vjs.TextTrackList.prototype = vjs.obj.create(vjs.EventEmitter.prototype);
+vjs.TextTrackList.prototype.constructor = vjs.TextTrackList;
+
+/*
+ * change - One or more tracks in the track list have been enabled or disabled.
+ * addtrack - A track has been added to the track list.
+ * removetrack - A track has been removed from the track list.
+*/
+vjs.TextTrackList.prototype.allowedEvents_ = {
+ 'change': 'change',
+ 'addtrack': 'addtrack',
+ 'removetrack': 'removetrack'
+};
+
+// emulate attribute EventHandler support to allow for feature detection
+(function() {
+ var event;
+
+ for (event in vjs.TextTrackList.prototype.allowedEvents_) {
+ vjs.TextTrackList.prototype['on' + event] = null;
+ }
+})();
+
+vjs.TextTrackList.prototype.addTrack_ = function(track) {
+ var index = this.tracks_.length;
+ if (!(''+index in this)) {
+ Object.defineProperty(this, index, {
+ get: function() {
+ return this.tracks_[index];
+ }
+ });
+ }
+
+ track.addEventListener('modechange', vjs.bind(this, function() {
+ this.trigger('change');
+ }));
+ this.tracks_.push(track);
+
+ this.trigger({
+ type: 'addtrack',
+ track: track
+ });
+};
+
+vjs.TextTrackList.prototype.removeTrack_ = function(rtrack) {
+ var i = 0,
+ l = this.length,
+ result = null,
+ track;
+
+ for (; i < l; i++) {
+ track = this[i];
+ if (track === rtrack) {
+ this.tracks_.splice(i, 1);
+ break;
+ }
+ }
+
+ this.trigger({
+ type: 'removetrack',
+ track: rtrack
+ });
+};
+
+vjs.TextTrackList.prototype.getTrackById = function(id) {
+ var i = 0,
+ l = this.length,
+ result = null,
+ track;
+
+ for (; i < l; i++) {
+ track = this[i];
+ if (track.id === id) {
+ result = track;
+ break;
+ }
+ }
+
+ return result;
+};
+/*
+ * https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackcuelist
+ *
+ * interface TextTrackCueList {
+ * readonly attribute unsigned long length;
+ * getter TextTrackCue (unsigned long index);
+ * TextTrackCue? getCueById(DOMString id);
+ * };
+ */
+
+vjs.TextTrackCueList = function(cues) {
+ var list = this,
+ prop;
+
+ if (vjs.IS_IE8) {
+ list = document.createElement('custom');
+
+ for (prop in vjs.TextTrackCueList.prototype) {
+ list[prop] = vjs.TextTrackCueList.prototype[prop];
+ }
+ }
+
+ vjs.TextTrackCueList.prototype.setCues_.call(list, cues);
+
+ Object.defineProperty(list, 'length', {
+ get: function() {
+ return this.length_;
+ }
+ });
+
+ if (vjs.IS_IE8) {
+ return list;
+ }
+};
+
+vjs.TextTrackCueList.prototype.setCues_ = function(cues) {
+ var oldLength = this.length || 0,
+ i = 0,
+ l = cues.length,
+ defineProp;
+
+ this.cues_ = cues;
+ this.length_ = cues.length;
+
+ defineProp = function(i) {
+ if (!(''+i in this)) {
+ Object.defineProperty(this, '' + i, {
+ get: function() {
+ return this.cues_[i];
+ }
+ });
+ }
+ };
+
+ if (oldLength < l) {
+ i = oldLength;
+ for(; i < l; i++) {
+ defineProp.call(this, i);
+ }
+ }
+};
+
+vjs.TextTrackCueList.prototype.getCueById = function(id) {
+ var i = 0,
+ l = this.length,
+ result = null,
+ cue;
+
+ for (; i < l; i++) {
+ cue = this[i];
+ if (cue.id === id) {
+ result = cue;
+ break;
+ }
+ }
+
+ return result;
+};
+(function() {
+'use strict';
+
+/* Text Track Display
+============================================================================= */
+// Global container for both subtitle and captions text. Simple div container.
+
+/**
+ * The component for displaying text track cues
+ *
+ * @constructor
+ */
+vjs.TextTrackDisplay = vjs.Component.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.Component.call(this, player, options, ready);
+
+ player.on('loadstart', vjs.bind(this, this.toggleDisplay));
+
+ // This used to be called during player init, but was causing an error
+ // if a track should show by default and the display hadn't loaded yet.
+ // Should probably be moved to an external track loader when we support
+ // tracks that don't need a display.
+ player.ready(vjs.bind(this, function() {
+ if (player.tech && player.tech['featuresNativeTextTracks']) {
+ this.hide();
+ return;
+ }
+
+ var i, tracks, track;
+
+ player.on('fullscreenchange', vjs.bind(this, this.updateDisplay));
+
+ tracks = player.options_['tracks'] || [];
+ for (i = 0; i < tracks.length; i++) {
+ track = tracks[i];
+ this.player_.addRemoteTextTrack(track);
+ }
+ }));
+ }
+});
+
+vjs.TextTrackDisplay.prototype.toggleDisplay = function() {
+ if (this.player_.tech && this.player_.tech['featuresNativeTextTracks']) {
+ this.hide();
+ } else {
+ this.show();
+ }
+};
+
+vjs.TextTrackDisplay.prototype.createEl = function(){
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-text-track-display'
+ });
+};
+
+vjs.TextTrackDisplay.prototype.clearDisplay = function() {
+ if (typeof window['WebVTT'] === 'function') {
+ window['WebVTT']['processCues'](window, [], this.el_);
+ }
+};
+
+// Add cue HTML to display
+var constructColor = function(color, opacity) {
+ return 'rgba(' +
+ // color looks like "#f0e"
+ parseInt(color[1] + color[1], 16) + ',' +
+ parseInt(color[2] + color[2], 16) + ',' +
+ parseInt(color[3] + color[3], 16) + ',' +
+ opacity + ')';
+};
+var darkGray = '#222';
+var lightGray = '#ccc';
+var fontMap = {
+ monospace: 'monospace',
+ sansSerif: 'sans-serif',
+ serif: 'serif',
+ monospaceSansSerif: '"Andale Mono", "Lucida Console", monospace',
+ monospaceSerif: '"Courier New", monospace',
+ proportionalSansSerif: 'sans-serif',
+ proportionalSerif: 'serif',
+ casual: '"Comic Sans MS", Impact, fantasy',
+ script: '"Monotype Corsiva", cursive',
+ smallcaps: '"Andale Mono", "Lucida Console", monospace, sans-serif'
+};
+var tryUpdateStyle = function(el, style, rule) {
+ // some style changes will throw an error, particularly in IE8. Those should be noops.
+ try {
+ el.style[style] = rule;
+ } catch (e) {}
+};
+
+vjs.TextTrackDisplay.prototype.updateDisplay = function() {
+ var tracks = this.player_.textTracks(),
+ i = 0,
+ track;
+
+ this.clearDisplay();
+
+ if (!tracks) {
+ return;
+ }
+
+ for (; i < tracks.length; i++) {
+ track = tracks[i];
+ if (track['mode'] === 'showing') {
+ this.updateForTrack(track);
+ }
+ }
+};
+
+vjs.TextTrackDisplay.prototype.updateForTrack = function(track) {
+ if (typeof window['WebVTT'] !== 'function' || !track['activeCues']) {
+ return;
+ }
+
+ var i = 0,
+ property,
+ cueDiv,
+ overrides = this.player_['textTrackSettings'].getValues(),
+ fontSize,
+ cues = [];
+
+ for (; i < track['activeCues'].length; i++) {
+ cues.push(track['activeCues'][i]);
+ }
+
+ window['WebVTT']['processCues'](window, track['activeCues'], this.el_);
+
+ i = cues.length;
+ while (i--) {
+ cueDiv = cues[i].displayState;
+ if (overrides.color) {
+ cueDiv.firstChild.style.color = overrides.color;
+ }
+ if (overrides.textOpacity) {
+ tryUpdateStyle(cueDiv.firstChild,
+ 'color',
+ constructColor(overrides.color || '#fff',
+ overrides.textOpacity));
+ }
+ if (overrides.backgroundColor) {
+ cueDiv.firstChild.style.backgroundColor = overrides.backgroundColor;
+ }
+ if (overrides.backgroundOpacity) {
+ tryUpdateStyle(cueDiv.firstChild,
+ 'backgroundColor',
+ constructColor(overrides.backgroundColor || '#000',
+ overrides.backgroundOpacity));
+ }
+ if (overrides.windowColor) {
+ if (overrides.windowOpacity) {
+ tryUpdateStyle(cueDiv,
+ 'backgroundColor',
+ constructColor(overrides.windowColor, overrides.windowOpacity));
+ } else {
+ cueDiv.style.backgroundColor = overrides.windowColor;
+ }
+ }
+ if (overrides.edgeStyle) {
+ if (overrides.edgeStyle === 'dropshadow') {
+ cueDiv.firstChild.style.textShadow = '2px 2px 3px ' + darkGray + ', 2px 2px 4px ' + darkGray + ', 2px 2px 5px ' + darkGray;
+ } else if (overrides.edgeStyle === 'raised') {
+ cueDiv.firstChild.style.textShadow = '1px 1px ' + darkGray + ', 2px 2px ' + darkGray + ', 3px 3px ' + darkGray;
+ } else if (overrides.edgeStyle === 'depressed') {
+ cueDiv.firstChild.style.textShadow = '1px 1px ' + lightGray + ', 0 1px ' + lightGray + ', -1px -1px ' + darkGray + ', 0 -1px ' + darkGray;
+ } else if (overrides.edgeStyle === 'uniform') {
+ cueDiv.firstChild.style.textShadow = '0 0 4px ' + darkGray + ', 0 0 4px ' + darkGray + ', 0 0 4px ' + darkGray + ', 0 0 4px ' + darkGray;
+ }
+ }
+ if (overrides.fontPercent && overrides.fontPercent !== 1) {
+ fontSize = window.parseFloat(cueDiv.style.fontSize);
+ cueDiv.style.fontSize = (fontSize * overrides.fontPercent) + 'px';
+ cueDiv.style.height = 'auto';
+ cueDiv.style.top = 'auto';
+ cueDiv.style.bottom = '2px';
+ }
+ if (overrides.fontFamily && overrides.fontFamily !== 'default') {
+ if (overrides.fontFamily === 'small-caps') {
+ cueDiv.firstChild.style.fontVariant = 'small-caps';
+ } else {
+ cueDiv.firstChild.style.fontFamily = fontMap[overrides.fontFamily];
+ }
+ }
+ }
+};
+
+
+/**
+ * The specific menu item type for selecting a language within a text track kind
+ *
+ * @constructor
+ */
+vjs.TextTrackMenuItem = vjs.MenuItem.extend({
+ /** @constructor */
+ init: function(player, options){
+ var track = this.track = options['track'],
+ tracks = player.textTracks(),
+ changeHandler,
+ event;
+
+ if (tracks) {
+ changeHandler = vjs.bind(this, function() {
+ var selected = this.track['mode'] === 'showing',
+ track,
+ i,
+ l;
+
+ if (this instanceof vjs.OffTextTrackMenuItem) {
+ selected = true;
+
+ i = 0,
+ l = tracks.length;
+
+ for (; i < l; i++) {
+ track = tracks[i];
+ if (track['kind'] === this.track['kind'] && track['mode'] === 'showing') {
+ selected = false;
+ break;
+ }
+ }
+ }
+
+ this.selected(selected);
+ });
+ tracks.addEventListener('change', changeHandler);
+ player.on('dispose', function() {
+ tracks.removeEventListener('change', changeHandler);
+ });
+ }
+
+ // Modify options for parent MenuItem class's init.
+ options['label'] = track['label'] || track['language'] || 'Unknown';
+ options['selected'] = track['default'] || track['mode'] === 'showing';
+ vjs.MenuItem.call(this, player, options);
+
+ // iOS7 doesn't dispatch change events to TextTrackLists when an
+ // associated track's mode changes. Without something like
+ // Object.observe() (also not present on iOS7), it's not
+ // possible to detect changes to the mode attribute and polyfill
+ // the change event. As a poor substitute, we manually dispatch
+ // change events whenever the controls modify the mode.
+ if (tracks && tracks.onchange === undefined) {
+ this.on(['tap', 'click'], function() {
+ if (typeof window.Event !== 'object') {
+ // Android 2.3 throws an Illegal Constructor error for window.Event
+ try {
+ event = new window.Event('change');
+ } catch(err){}
+ }
+
+ if (!event) {
+ event = document.createEvent('Event');
+ event.initEvent('change', true, true);
+ }
+
+ tracks.dispatchEvent(event);
+ });
+ }
+ }
+});
+
+vjs.TextTrackMenuItem.prototype.onClick = function(){
+ var kind = this.track['kind'],
+ tracks = this.player_.textTracks(),
+ mode,
+ track,
+ i = 0;
+
+ vjs.MenuItem.prototype.onClick.call(this);
+
+ if (!tracks) {
+ return;
+ }
+
+ for (; i < tracks.length; i++) {
+ track = tracks[i];
+
+ if (track['kind'] !== kind) {
+ continue;
+ }
+
+ if (track === this.track) {
+ track['mode'] = 'showing';
+ } else {
+ track['mode'] = 'disabled';
+ }
+ }
+};
+
+/**
+ * A special menu item for turning of a specific type of text track
+ *
+ * @constructor
+ */
+vjs.OffTextTrackMenuItem = vjs.TextTrackMenuItem.extend({
+ /** @constructor */
+ init: function(player, options){
+ // Create pseudo track info
+ // Requires options['kind']
+ options['track'] = {
+ 'kind': options['kind'],
+ 'player': player,
+ 'label': options['kind'] + ' off',
+ 'default': false,
+ 'mode': 'disabled'
+ };
+ vjs.TextTrackMenuItem.call(this, player, options);
+ this.selected(true);
+ }
+});
+
+vjs.CaptionSettingsMenuItem = vjs.TextTrackMenuItem.extend({
+ init: function(player, options) {
+ options['track'] = {
+ 'kind': options['kind'],
+ 'player': player,
+ 'label': options['kind'] + ' settings',
+ 'default': false,
+ mode: 'disabled'
+ };
+
+ vjs.TextTrackMenuItem.call(this, player, options);
+ this.addClass('vjs-texttrack-settings');
+ }
+});
+
+vjs.CaptionSettingsMenuItem.prototype.onClick = function() {
+ this.player().getChild('textTrackSettings').show();
+};
+
+/**
+ * The base class for buttons that toggle specific text track types (e.g. subtitles)
+ *
+ * @constructor
+ */
+vjs.TextTrackButton = vjs.MenuButton.extend({
+ /** @constructor */
+ init: function(player, options){
+ var tracks, updateHandler;
+
+ vjs.MenuButton.call(this, player, options);
+
+ tracks = this.player_.textTracks();
+
+ if (this.items.length <= 1) {
+ this.hide();
+ }
+
+ if (!tracks) {
+ return;
+ }
+
+ updateHandler = vjs.bind(this, this.update);
+ tracks.addEventListener('removetrack', updateHandler);
+ tracks.addEventListener('addtrack', updateHandler);
+
+ this.player_.on('dispose', function() {
+ tracks.removeEventListener('removetrack', updateHandler);
+ tracks.removeEventListener('addtrack', updateHandler);
+ });
+ }
+});
+
+// Create a menu item for each text track
+vjs.TextTrackButton.prototype.createItems = function(){
+ var items = [], track, tracks;
+
+ if (this instanceof vjs.CaptionsButton && !(this.player().tech && this.player().tech['featuresNativeTextTracks'])) {
+ items.push(new vjs.CaptionSettingsMenuItem(this.player_, { 'kind': this.kind_ }));
+ }
+
+ // Add an OFF menu item to turn all tracks off
+ items.push(new vjs.OffTextTrackMenuItem(this.player_, { 'kind': this.kind_ }));
+
+ tracks = this.player_.textTracks();
+
+ if (!tracks) {
+ return items;
+ }
+
+ for (var i = 0; i < tracks.length; i++) {
+ track = tracks[i];
+
+ // only add tracks that are of the appropriate kind and have a label
+ if (track['kind'] === this.kind_) {
+ items.push(new vjs.TextTrackMenuItem(this.player_, {
+ 'track': track
+ }));
+ }
+ }
+
+ return items;
+};
+
+/**
+ * The button component for toggling and selecting captions
+ *
+ * @constructor
+ */
+vjs.CaptionsButton = vjs.TextTrackButton.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.TextTrackButton.call(this, player, options, ready);
+ this.el_.setAttribute('aria-label','Captions Menu');
+ }
+});
+vjs.CaptionsButton.prototype.kind_ = 'captions';
+vjs.CaptionsButton.prototype.buttonText = 'Captions';
+vjs.CaptionsButton.prototype.className = 'vjs-captions-button';
+
+vjs.CaptionsButton.prototype.update = function() {
+ var threshold = 2;
+ vjs.TextTrackButton.prototype.update.call(this);
+
+ // if native, then threshold is 1 because no settings button
+ if (this.player().tech && this.player().tech['featuresNativeTextTracks']) {
+ threshold = 1;
+ }
+
+ if (this.items && this.items.length > threshold) {
+ this.show();
+ } else {
+ this.hide();
+ }
+};
+
+/**
+ * The button component for toggling and selecting subtitles
+ *
+ * @constructor
+ */
+vjs.SubtitlesButton = vjs.TextTrackButton.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.TextTrackButton.call(this, player, options, ready);
+ this.el_.setAttribute('aria-label','Subtitles Menu');
+ }
+});
+vjs.SubtitlesButton.prototype.kind_ = 'subtitles';
+vjs.SubtitlesButton.prototype.buttonText = 'Subtitles';
+vjs.SubtitlesButton.prototype.className = 'vjs-subtitles-button';
+
+// Chapters act much differently than other text tracks
+// Cues are navigation vs. other tracks of alternative languages
+/**
+ * The button component for toggling and selecting chapters
+ *
+ * @constructor
+ */
+vjs.ChaptersButton = vjs.TextTrackButton.extend({
+ /** @constructor */
+ init: function(player, options, ready){
+ vjs.TextTrackButton.call(this, player, options, ready);
+ this.el_.setAttribute('aria-label','Chapters Menu');
+ }
+});
+vjs.ChaptersButton.prototype.kind_ = 'chapters';
+vjs.ChaptersButton.prototype.buttonText = 'Chapters';
+vjs.ChaptersButton.prototype.className = 'vjs-chapters-button';
+
+// Create a menu item for each text track
+vjs.ChaptersButton.prototype.createItems = function(){
+ var items = [], track, tracks;
+
+ tracks = this.player_.textTracks();
+
+ if (!tracks) {
+ return items;
+ }
+
+ for (var i = 0; i < tracks.length; i++) {
+ track = tracks[i];
+ if (track['kind'] === this.kind_) {
+ items.push(new vjs.TextTrackMenuItem(this.player_, {
+ 'track': track
+ }));
+ }
+ }
+
+ return items;
+};
+
+vjs.ChaptersButton.prototype.createMenu = function(){
+ var tracks = this.player_.textTracks() || [],
+ i = 0,
+ l = tracks.length,
+ track, chaptersTrack,
+ items = this.items = [];
+
+ for (; i < l; i++) {
+ track = tracks[i];
+ if (track['kind'] == this.kind_) {
+ if (!track.cues) {
+ track['mode'] = 'hidden';
+ /* jshint loopfunc:true */
+ // TODO see if we can figure out a better way of doing this https://github.com/videojs/video.js/issues/1864
+ window.setTimeout(vjs.bind(this, function() {
+ this.createMenu();
+ }), 100);
+ /* jshint loopfunc:false */
+ } else {
+ chaptersTrack = track;
+ break;
+ }
+ }
+ }
+
+ var menu = this.menu;
+ if (menu === undefined) {
+ menu = new vjs.Menu(this.player_);
+ menu.contentEl().appendChild(vjs.createEl('li', {
+ className: 'vjs-menu-title',
+ innerHTML: vjs.capitalize(this.kind_),
+ tabindex: -1
+ }));
+ }
+
+ if (chaptersTrack) {
+ var cues = chaptersTrack['cues'], cue, mi;
+ i = 0;
+ l = cues.length;
+
+ for (; i < l; i++) {
+ cue = cues[i];
+
+ mi = new vjs.ChaptersTrackMenuItem(this.player_, {
+ 'track': chaptersTrack,
+ 'cue': cue
+ });
+
+ items.push(mi);
+
+ menu.addChild(mi);
+ }
+ this.addChild(menu);
+ }
+
+ if (this.items.length > 0) {
+ this.show();
+ }
+
+ return menu;
+};
+
+
+/**
+ * @constructor
+ */
+vjs.ChaptersTrackMenuItem = vjs.MenuItem.extend({
+ /** @constructor */
+ init: function(player, options){
+ var track = this.track = options['track'],
+ cue = this.cue = options['cue'],
+ currentTime = player.currentTime();
+
+ // Modify options for parent MenuItem class's init.
+ options['label'] = cue.text;
+ options['selected'] = (cue['startTime'] <= currentTime && currentTime < cue['endTime']);
+ vjs.MenuItem.call(this, player, options);
+
+ track.addEventListener('cuechange', vjs.bind(this, this.update));
+ }
+});
+
+vjs.ChaptersTrackMenuItem.prototype.onClick = function(){
+ vjs.MenuItem.prototype.onClick.call(this);
+ this.player_.currentTime(this.cue.startTime);
+ this.update(this.cue.startTime);
+};
+
+vjs.ChaptersTrackMenuItem.prototype.update = function(){
+ var cue = this.cue,
+ currentTime = this.player_.currentTime();
+
+ // vjs.log(currentTime, cue.startTime);
+ this.selected(cue['startTime'] <= currentTime && currentTime < cue['endTime']);
+};
+})();
+(function() {
+ 'use strict';
+
+ vjs.TextTrackSettings = vjs.Component.extend({
+ init: function(player, options) {
+ vjs.Component.call(this, player, options);
+ this.hide();
+
+ vjs.on(this.el().querySelector('.vjs-done-button'), 'click', vjs.bind(this, function() {
+ this.saveSettings();
+ this.hide();
+ }));
+
+ vjs.on(this.el().querySelector('.vjs-default-button'), 'click', vjs.bind(this, function() {
+ this.el().querySelector('.vjs-fg-color > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-bg-color > select').selectedIndex = 0;
+ this.el().querySelector('.window-color > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-text-opacity > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-bg-opacity > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-window-opacity > select').selectedIndex = 0;
+ this.el().querySelector('.vjs-edge-style select').selectedIndex = 0;
+ this.el().querySelector('.vjs-font-family select').selectedIndex = 0;
+ this.el().querySelector('.vjs-font-percent select').selectedIndex = 2;
+ this.updateDisplay();
+ }));
+
+ vjs.on(this.el().querySelector('.vjs-fg-color > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-bg-color > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.window-color > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-text-opacity > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-bg-opacity > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-window-opacity > select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-font-percent select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-edge-style select'), 'change', vjs.bind(this, this.updateDisplay));
+ vjs.on(this.el().querySelector('.vjs-font-family select'), 'change', vjs.bind(this, this.updateDisplay));
+
+ if (player.options()['persistTextTrackSettings']) {
+ this.restoreSettings();
+ }
+ }
+ });
+
+ vjs.TextTrackSettings.prototype.createEl = function() {
+ return vjs.Component.prototype.createEl.call(this, 'div', {
+ className: 'vjs-caption-settings vjs-modal-overlay',
+ innerHTML: captionOptionsMenuTemplate()
+ });
+ };
+
+ vjs.TextTrackSettings.prototype.getValues = function() {
+ var el, bgOpacity, textOpacity, windowOpacity, textEdge, fontFamily, fgColor, bgColor, windowColor, result, name, fontPercent;
+
+ el = this.el();
+
+ textEdge = getSelectedOptionValue(el.querySelector('.vjs-edge-style select'));
+ fontFamily = getSelectedOptionValue(el.querySelector('.vjs-font-family select'));
+ fgColor = getSelectedOptionValue(el.querySelector('.vjs-fg-color > select'));
+ textOpacity = getSelectedOptionValue(el.querySelector('.vjs-text-opacity > select'));
+ bgColor = getSelectedOptionValue(el.querySelector('.vjs-bg-color > select'));
+ bgOpacity = getSelectedOptionValue(el.querySelector('.vjs-bg-opacity > select'));
+ windowColor = getSelectedOptionValue(el.querySelector('.window-color > select'));
+ windowOpacity = getSelectedOptionValue(el.querySelector('.vjs-window-opacity > select'));
+ fontPercent = window['parseFloat'](getSelectedOptionValue(el.querySelector('.vjs-font-percent > select')));
+
+ result = {
+ 'backgroundOpacity': bgOpacity,
+ 'textOpacity': textOpacity,
+ 'windowOpacity': windowOpacity,
+ 'edgeStyle': textEdge,
+ 'fontFamily': fontFamily,
+ 'color': fgColor,
+ 'backgroundColor': bgColor,
+ 'windowColor': windowColor,
+ 'fontPercent': fontPercent
+ };
+ for (name in result) {
+ if (result[name] === '' || result[name] === 'none' || (name === 'fontPercent' && result[name] === 1.00)) {
+ delete result[name];
+ }
+ }
+ return result;
+ };
+
+ vjs.TextTrackSettings.prototype.setValues = function(values) {
+ var el = this.el(), fontPercent;
+
+ setSelectedOption(el.querySelector('.vjs-edge-style select'), values.edgeStyle);
+ setSelectedOption(el.querySelector('.vjs-font-family select'), values.fontFamily);
+ setSelectedOption(el.querySelector('.vjs-fg-color > select'), values.color);
+ setSelectedOption(el.querySelector('.vjs-text-opacity > select'), values.textOpacity);
+ setSelectedOption(el.querySelector('.vjs-bg-color > select'), values.backgroundColor);
+ setSelectedOption(el.querySelector('.vjs-bg-opacity > select'), values.backgroundOpacity);
+ setSelectedOption(el.querySelector('.window-color > select'), values.windowColor);
+ setSelectedOption(el.querySelector('.vjs-window-opacity > select'), values.windowOpacity);
+
+ fontPercent = values.fontPercent;
+
+ if (fontPercent) {
+ fontPercent = fontPercent.toFixed(2);
+ }
+
+ setSelectedOption(el.querySelector('.vjs-font-percent > select'), fontPercent);
+ };
+
+ vjs.TextTrackSettings.prototype.restoreSettings = function() {
+ var values;
+ try {
+ values = JSON.parse(window.localStorage.getItem('vjs-text-track-settings'));
+ } catch (e) {}
+
+ if (values) {
+ this.setValues(values);
+ }
+ };
+
+ vjs.TextTrackSettings.prototype.saveSettings = function() {
+ var values;
+
+ if (!this.player_.options()['persistTextTrackSettings']) {
+ return;
+ }
+
+ values = this.getValues();
+ try {
+ if (!vjs.isEmpty(values)) {
+ window.localStorage.setItem('vjs-text-track-settings', JSON.stringify(values));
+ } else {
+ window.localStorage.removeItem('vjs-text-track-settings');
+ }
+ } catch (e) {}
+ };
+
+ vjs.TextTrackSettings.prototype.updateDisplay = function() {
+ var ttDisplay = this.player_.getChild('textTrackDisplay');
+ if (ttDisplay) {
+ ttDisplay.updateDisplay();
+ }
+ };
+
+ function getSelectedOptionValue(target) {
+ var selectedOption;
+ // not all browsers support selectedOptions, so, fallback to options
+ if (target.selectedOptions) {
+ selectedOption = target.selectedOptions[0];
+ } else if (target.options) {
+ selectedOption = target.options[target.options.selectedIndex];
+ }
+
+ return selectedOption.value;
+ }
+
+ function setSelectedOption(target, value) {
+ var i, option;
+
+ if (!value) {
+ return;
+ }
+
+ for (i = 0; i < target.options.length; i++) {
+ option = target.options[i];
+ if (option.value === value) {
+ break;
+ }
+ }
+
+ target.selectedIndex = i;
+ }
+
+ function captionOptionsMenuTemplate() {
+ return '' +
+ '
' +
+ '
' +
+ 'Foreground ' +
+ '' +
+ '--- ' +
+ 'White ' +
+ 'Black ' +
+ 'Red ' +
+ 'Green ' +
+ 'Blue ' +
+ 'Yellow ' +
+ 'Magenta ' +
+ 'Cyan ' +
+ ' ' +
+ '' +
+ '' +
+ '--- ' +
+ 'Opaque ' +
+ 'Semi-Opaque ' +
+ ' ' +
+ ' ' +
+ '
' + // vjs-fg-color
+ '
' +
+ 'Background ' +
+ '' +
+ '--- ' +
+ 'White ' +
+ 'Black ' +
+ 'Red ' +
+ 'Green ' +
+ 'Blue ' +
+ 'Yellow ' +
+ 'Magenta ' +
+ 'Cyan ' +
+ ' ' +
+ '' +
+ '' +
+ '--- ' +
+ 'Opaque ' +
+ 'Semi-Transparent ' +
+ 'Transparent ' +
+ ' ' +
+ ' ' +
+ '
' + // vjs-bg-color
+ '
' +
+ 'Window ' +
+ '' +
+ '--- ' +
+ 'White ' +
+ 'Black ' +
+ 'Red ' +
+ 'Green ' +
+ 'Blue ' +
+ 'Yellow ' +
+ 'Magenta ' +
+ 'Cyan ' +
+ ' ' +
+ '' +
+ '' +
+ '--- ' +
+ 'Opaque ' +
+ 'Semi-Transparent ' +
+ 'Transparent ' +
+ ' ' +
+ ' ' +
+ '
' + // vjs-window-color
+ '
' + // vjs-tracksettings
+ '
' +
+ '
' +
+ 'Font Size ' +
+ '' +
+ '50% ' +
+ '75% ' +
+ '100% ' +
+ '125% ' +
+ '150% ' +
+ '175% ' +
+ '200% ' +
+ '300% ' +
+ '400% ' +
+ ' ' +
+ '
' + // vjs-font-percent
+ '
' +
+ 'Text Edge Style ' +
+ '' +
+ 'None ' +
+ 'Raised ' +
+ 'Depressed ' +
+ 'Uniform ' +
+ 'Dropshadow ' +
+ ' ' +
+ '
' + // vjs-edge-style
+ '
' +
+ 'Font Family ' +
+ '' +
+ 'Default ' +
+ 'Monospace Serif ' +
+ 'Proportional Serif ' +
+ 'Monospace Sans-Serif ' +
+ 'Proportional Sans-Serif ' +
+ 'Casual ' +
+ 'Script ' +
+ 'Small Caps ' +
+ ' ' +
+ '
' + // vjs-font-family
+ '
' +
+ '
' +
+ '' +
+ 'Defaults ' +
+ 'Done ' +
+ '
';
+ }
+
+})();
+/**
+ * @fileoverview Add JSON support
+ * @suppress {undefinedVars}
+ * (Compiler doesn't like JSON not being declared)
+ */
+
+/**
+ * Javascript JSON implementation
+ * (Parse Method Only)
+ * https://github.com/douglascrockford/JSON-js/blob/master/json2.js
+ * Only using for parse method when parsing data-setup attribute JSON.
+ * @suppress {undefinedVars}
+ * @namespace
+ * @private
+ */
+vjs.JSON;
+
+if (typeof window.JSON !== 'undefined' && typeof window.JSON.parse === 'function') {
+ vjs.JSON = window.JSON;
+
+} else {
+ vjs.JSON = {};
+
+ var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
+
+ /**
+ * parse the json
+ *
+ * @memberof vjs.JSON
+ * @param {String} text The JSON string to parse
+ * @param {Function=} [reviver] Optional function that can transform the results
+ * @return {Object|Array} The parsed JSON
+ */
+ vjs.JSON.parse = function (text, reviver) {
+ var j;
+
+ function walk(holder, key) {
+ var k, v, value = holder[key];
+ if (value && typeof value === 'object') {
+ for (k in value) {
+ if (Object.prototype.hasOwnProperty.call(value, k)) {
+ v = walk(value, k);
+ if (v !== undefined) {
+ value[k] = v;
+ } else {
+ delete value[k];
+ }
+ }
+ }
+ }
+ return reviver.call(holder, key, value);
+ }
+ text = String(text);
+ cx.lastIndex = 0;
+ if (cx.test(text)) {
+ text = text.replace(cx, function (a) {
+ return '\\u' +
+ ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
+ });
+ }
+
+ if (/^[\],:{}\s]*$/
+ .test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')
+ .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']')
+ .replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
+
+ j = eval('(' + text + ')');
+
+ return typeof reviver === 'function' ?
+ walk({'': j}, '') : j;
+ }
+
+ throw new SyntaxError('JSON.parse(): invalid or malformed JSON data');
+ };
+}
+/**
+ * @fileoverview Functions for automatically setting up a player
+ * based on the data-setup attribute of the video tag
+ */
+
+// Automatically set up any tags that have a data-setup attribute
+vjs.autoSetup = function(){
+ var options, mediaEl, player, i, e;
+
+ // One day, when we stop supporting IE8, go back to this, but in the meantime...*hack hack hack*
+ // var vids = Array.prototype.slice.call(document.getElementsByTagName('video'));
+ // var audios = Array.prototype.slice.call(document.getElementsByTagName('audio'));
+ // var mediaEls = vids.concat(audios);
+
+ // Because IE8 doesn't support calling slice on a node list, we need to loop through each list of elements
+ // to build up a new, combined list of elements.
+ var vids = document.getElementsByTagName('video');
+ var audios = document.getElementsByTagName('audio');
+ var mediaEls = [];
+ if (vids && vids.length > 0) {
+ for(i=0, e=vids.length; i 0) {
+ for(i=0, e=audios.length; i 0) {
+
+ for (i=0,e=mediaEls.length; it.hc;t.jc=/Firefox/i.test(t.P);t.lf=/Chrome/i.test(t.P);t.oa=/MSIE\s8\.0/.test(t.P);t.Eb=!!("ontouchstart"in window||window.xd&&document instanceof window.xd);t.wd="backgroundSize"in t.A.style;
+t.ed=function(a,c){t.i.da(c,function(c,e){e===j||"undefined"===typeof e||e===l?a.removeAttribute(c):a.setAttribute(c,e===f?"":e)})};t.Na=function(a){var c,d,e,g;c={};if(a&&a.attributes&&0e?"0"+e:e)+":")+(10>d?"0"+d:d)};t.Ld=function(){document.body.focus();document.onselectstart=q(l)};t.af=function(){document.onselectstart=q(f)};t.trim=function(a){return(a+"").replace(/^\s+|\s+$/g,"")};t.round=function(a,c){c||(c=0);return Math.round(a*Math.pow(10,c))/Math.pow(10,c)};
+t.Lb=function(a,c){return{length:1,start:function(){return a},end:function(){return c}}};t.Me=function(a){try{var c=window.localStorage||l;c&&(c.volume=a)}catch(d){22==d.code||1014==d.code?t.log("LocalStorage Full (VideoJS)",d):18==d.code?t.log("LocalStorage not allowed (VideoJS)",d):t.log("LocalStorage Error (VideoJS)",d)}};t.$d=function(a){a.match(/^https?:\/\//)||(a=t.e("div",{innerHTML:'x '}).firstChild.href);return a};
+t.Ee=function(a){var c,d,e,g;g="protocol hostname port pathname search hash host".split(" ");d=t.e("a",{href:a});if(e=""===d.host&&"file:"!==d.protocol)c=t.e("div"),c.innerHTML=' ',d=c.firstChild,c.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(c);a={};for(var h=0;he&&(a.preventDefault(),this.o("tap")))})}
+s.setTimeout=function(a,c){function d(){this.clearTimeout(e)}a=t.bind(this,a);var e=setTimeout(a,c);d.s="vjs-timeout-"+e;this.b("dispose",d);return e};s.clearTimeout=function(a){function c(){}clearTimeout(a);c.s="vjs-timeout-"+a;this.n("dispose",c);return a};s.setInterval=function(a,c){function d(){this.clearInterval(e)}a=t.bind(this,a);var e=setInterval(a,c);d.s="vjs-interval-"+e;this.b("dispose",d);return e};
+s.clearInterval=function(a){function c(){}clearInterval(a);c.s="vjs-interval-"+a;this.n("dispose",c);return a};t.w=t.a.extend({l:function(a,c){t.a.call(this,a,c);da(this);this.b("tap",this.u);this.b("click",this.u);this.b("focus",this.lb);this.b("blur",this.kb)}});s=t.w.prototype;
+s.e=function(a,c){var d;c=t.i.D({className:this.T(),role:"button","aria-live":"polite",tabIndex:0},c);d=t.a.prototype.e.call(this,a,c);c.innerHTML||(this.B=t.e("div",{className:"vjs-control-content"}),this.Jb=t.e("span",{className:"vjs-control-text",innerHTML:this.v(this.sa)||"Need Text"}),this.B.appendChild(this.Jb),d.appendChild(this.B));return d};s.T=function(){return"vjs-control "+t.a.prototype.T.call(this)};s.u=m();s.lb=function(){t.b(document,"keydown",t.bind(this,this.ja))};
+s.ja=function(a){if(32==a.which||13==a.which)a.preventDefault(),this.u()};s.kb=function(){t.n(document,"keydown",t.bind(this,this.ja))};t.S=t.a.extend({l:function(a,c){t.a.call(this,a,c);this.Kd=this.ea(this.q.barName);this.handle=this.ea(this.q.handleName);this.b("mousedown",this.mb);this.b("touchstart",this.mb);this.b("focus",this.lb);this.b("blur",this.kb);this.b("click",this.u);this.b(a,"controlsvisible",this.update);this.b(a,this.Yc,this.update)}});s=t.S.prototype;
+s.e=function(a,c){c=c||{};c.className+=" vjs-slider";c=t.i.D({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},c);return t.a.prototype.e.call(this,a,c)};s.mb=function(a){a.preventDefault();t.Ld();this.p("vjs-sliding");this.b(document,"mousemove",this.ka);this.b(document,"mouseup",this.za);this.b(document,"touchmove",this.ka);this.b(document,"touchend",this.za);this.ka(a)};s.ka=m();
+s.za=function(){t.af();this.r("vjs-sliding");this.n(document,"mousemove",this.ka);this.n(document,"mouseup",this.za);this.n(document,"touchmove",this.ka);this.n(document,"touchend",this.za);this.update()};s.update=function(){if(this.c){var a,c=this.Sb(),d=this.handle,e=this.Kd;if("number"!==typeof c||c!==c||0>c||Infinity===c)c=0;a=c;if(d){a=this.c.offsetWidth;var g=d.m().offsetWidth;a=g?g/a:0;c*=1-a;a=c+a/2;d.m().style.left=t.round(100*c,2)+"%"}e&&(e.m().style.width=t.round(100*a,2)+"%")}};
+function ea(a,c){var d,e,g,h;d=a.c;e=t.Yd(d);h=g=d.offsetWidth;d=a.handle;if(a.options().vertical)return h=e.top,e=c.changedTouches?c.changedTouches[0].pageY:c.pageY,d&&(d=d.m().offsetHeight,h+=d/2,g-=d),Math.max(0,Math.min(1,(h-e+g)/g));g=e.left;e=c.changedTouches?c.changedTouches[0].pageX:c.pageX;d&&(d=d.m().offsetWidth,g+=d/2,h-=d);return Math.max(0,Math.min(1,(e-g)/h))}s.lb=function(){this.b(document,"keydown",this.ja)};
+s.ja=function(a){if(37==a.which||40==a.which)a.preventDefault(),this.jd();else if(38==a.which||39==a.which)a.preventDefault(),this.kd()};s.kb=function(){this.n(document,"keydown",this.ja)};s.u=function(a){a.stopImmediatePropagation();a.preventDefault()};t.ga=t.a.extend();t.ga.prototype.defaultValue=0;t.ga.prototype.e=function(a,c){c=c||{};c.className+=" vjs-slider-handle";c=t.i.D({innerHTML:''+this.defaultValue+" "},c);return t.a.prototype.e.call(this,"div",c)};
+t.pa=t.a.extend();function fa(a,c){a.ba(c);c.b("click",t.bind(a,function(){G(this)}))}t.pa.prototype.e=function(){var a=this.options().Cc||"ul";this.B=t.e(a,{className:"vjs-menu-content"});a=t.a.prototype.e.call(this,"div",{append:this.B,className:"vjs-menu"});a.appendChild(this.B);t.b(a,"click",function(a){a.preventDefault();a.stopImmediatePropagation()});return a};t.M=t.w.extend({l:function(a,c){t.w.call(this,a,c);this.selected(c.selected)}});
+t.M.prototype.e=function(a,c){return t.w.prototype.e.call(this,"li",t.i.D({className:"vjs-menu-item",innerHTML:this.v(this.q.label)},c))};t.M.prototype.u=function(){this.selected(f)};t.M.prototype.selected=function(a){a?(this.p("vjs-selected"),this.c.setAttribute("aria-selected",f)):(this.r("vjs-selected"),this.c.setAttribute("aria-selected",l))};
+t.O=t.w.extend({l:function(a,c){t.w.call(this,a,c);this.update();this.b("keydown",this.ja);this.c.setAttribute("aria-haspopup",f);this.c.setAttribute("role","button")}});s=t.O.prototype;s.update=function(){var a=this.Ja();this.xa&&this.removeChild(this.xa);this.xa=a;this.ba(a);this.H&&0===this.H.length?this.X():this.H&&1a&&(a=Infinity),this.duration(a),Infinity===a?this.p("vjs-live"):this.r("vjs-live"))};s.we=function(){this.isFullscreen()?this.p("vjs-fullscreen"):this.r("vjs-fullscreen")};
+function N(a,c,d){if(a.h&&!a.h.wa)a.h.I(function(){this[c](d)});else try{a.h[c](d)}catch(e){throw t.log(e),e;}}function M(a,c){if(a.h&&a.h.wa)try{return a.h[c]()}catch(d){throw a.h[c]===b?t.log("Video.js: "+c+" method not defined for "+a.Ua+" playback technology.",d):"TypeError"==d.name?(t.log("Video.js: "+c+" unavailable on "+a.Ua+" playback technology element.",d),a.h.wa=l):t.log(d),d;}}s.play=function(){N(this,"play");return this};s.pause=function(){N(this,"pause");return this};
+s.paused=function(){return M(this,"paused")===l?l:f};s.currentTime=function(a){return a!==b?(N(this,"setCurrentTime",a),this):this.K.currentTime=M(this,"currentTime")||0};s.duration=function(a){if(a!==b)return this.K.duration=parseFloat(a),this;this.K.duration===b&&this.Wc();return this.K.duration||0};s.remainingTime=function(){return this.duration()-this.currentTime()};s.buffered=function(){var a=M(this,"buffered");if(!a||!a.length)a=t.Lb(0,0);return a};
+s.bufferedPercent=function(){var a=this.duration(),c=this.buffered(),d=0,e,g;if(!a)return 0;for(var h=0;h