Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) Safe-mode: OFF (not secure) /var/www/clients/client172/web473/web/aps/xcrud/plugins/videojs/src/ drwxr-xr-x |
Viewing file: videojs.simpleoverlay.js (2.2 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | /* * simpleoverlay * https://github.com/brightcove/videojs-simpleoverlay * * Copyright (c) 2013 Brightcove * Licensed under the Apache 2 license. */ (function(vjs) { var /** * Copies properties from one or more objects onto an original. */ extend = function(obj /*, arg1, arg2, ... */) { var arg, i, k; for (i = 1; i < arguments.length; i++) { arg = arguments[i]; for (k in arg) { if (arg.hasOwnProperty(k)) { obj[k] = arg[k]; } } } return obj; }, // define some reasonable defaults defaults = { // don't show any overlays by default }, // plugin initializer simpleOverlay = function(options) { var // save a reference to the player instance player = this, // merge options and defaults settings = extend({}, defaults, options || {}), i, overlay; // insert the overlays into the player but keep them hidden initially for (i in settings) { overlay = settings[i]; overlay.el = document.createElement('div'); overlay.el.className = i + ' vjs-hidden'; overlay.el.textContent = overlay.textContent; player.el().appendChild(overlay.el); } // show and hide the overlays for this time period player.on('timeupdate', function() { var currentTime = player.currentTime(), i, overlay; // iterate over all the defined overlays for (i in settings) { overlay = settings[i]; if (overlay.start <= currentTime && overlay.end > currentTime) { // if the overlay isn't already showing, show it if (/vjs-hidden/.test(overlay.el.className)) { overlay.el.className = overlay.el.className.replace(/\s?vjs-hidden/, ''); } // if the overlay isn't already hidden, hide it } else if (!(/vjs-hidden/).test(overlay.el.className)) { overlay.el.className += ' vjs-hidden'; } } }); }; // register the plugin with video.js vjs.plugin('simpleoverlay', simpleOverlay); }(window.videojs)); |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.1747 ]-- |