/*! * MediaElement.js * http://www.mediaelementjs.com/ * * Wrapper that mimics native HTML5 MediaElement (audio and video) * using a variety of technologies (pure JavaScript, Flash, iframe) * * Copyright 2010-2017, John Dyer (http://j.hn/) * License: MIT * */(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o'; } else { var rendered = item.render(t); if (rendered !== null && rendered !== undefined) { html += '
' + rendered + '
'; } } } t.contextMenu.innerHTML = html; var width = t.contextMenu.offsetWidth, height = t.contextMenu.offsetHeight, x = event.pageX, y = event.pageY, doc = document.documentElement, scrollLeft = (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0), scrollTop = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0), left = x + width > window.innerWidth + scrollLeft ? x - width : x, top = y + height > window.innerHeight + scrollTop ? y - height : y; t.contextMenu.style.display = ''; t.contextMenu.style.left = left + 'px'; t.contextMenu.style.top = top + 'px'; var contextItems = t.contextMenu.querySelectorAll('.' + t.options.classPrefix + 'contextmenu-item'); var _loop = function _loop(_i, _total) { var menuItem = contextItems[_i], itemIndex = parseInt(menuItem.getAttribute('data-itemindex'), 10), item = t.options.contextMenuItems[itemIndex]; if (typeof item.show !== 'undefined') { item.show(menuItem, t); } menuItem.addEventListener('click', function () { if (typeof item.click !== 'undefined') { item.click(t); } t.contextMenu.style.display = 'none'; }); }; for (var _i = 0, _total = contextItems.length; _i < _total; _i++) { _loop(_i, _total); } setTimeout(function () { t.killControlsTimer(); }, 100); } }); },{}]},{},[1]);