Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/320092
Change subject: Remove minified videojs-responsive-layout.js
......................................................................
Remove minified videojs-responsive-layout.js
RL will minify where necessary
Change-Id: Ifdbec9bdea0bf85f2e8f338f40b1dd44f5e0156f
---
D resources/videojs-responsive-layout/videojs-responsive-layout.min.js
1 file changed, 0 insertions(+), 7 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TimedMediaHandler
refs/changes/92/320092/1
diff --git
a/resources/videojs-responsive-layout/videojs-responsive-layout.min.js
b/resources/videojs-responsive-layout/videojs-responsive-layout.min.js
deleted file mode 100644
index 5715da4..0000000
--- a/resources/videojs-responsive-layout/videojs-responsive-layout.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * videojs-responsive-layout
- * @version 1.1.1
- * @copyright 2016 Derk-Jan Hartman
- * @license (MIT OR Apache-2.0)
- */
-!function(e){if("object"==typeof exports&&"undefined"!=typeof
module)module.exports=e();else if("function"==typeof
define&&define.amd)define([],e);else{var t;t="undefined"!=typeof
window?window:"undefined"!=typeof global?global:"undefined"!=typeof
self?self:this,t.videojsResponsiveLayout=e()}}(function(){return function
e(t,n,o){function i(u,a){if(!n[u]){if(!t[u]){var l="function"==typeof
require&&require;if(!a&&l)return l(u,!0);if(r)return r(u,!0);var s=new
Error("Cannot find module '"+u+"'");throw s.code="MODULE_NOT_FOUND",s}var
f=n[u]={exports:{}};t[u][0].call(f.exports,function(e){var n=t[u][1][e];return
i(n?n:e)},f,f.exports,e,t,n,o)}return n[u].exports}for(var r="function"==typeof
require&&require,u=0;u<o.length;u++)i(o[u]);return
i}({1:[function(e,t,n){},{}],2:[function(e,t,n){var
o=e("./throttle");t.exports=function(e,t,n){return void
0===n?o(e,t,!1):o(e,n,t!==!1)}},{"./throttle":4}],3:[function(e,t,n){t.exports={throttle:e("./throttle"),debounce:e("./debounce")}},{"./debounce":2,"./throttle":4}],4:[function(e,t,n){var
o=e("jquery");t.exports=function(e,t,n,i){function r(){function
o(){a=Number(new Date),n.apply(l,f)}function r(){u=void 0}var
l=this,s=Number(new Date)-a,f=arguments;i&&!u&&o(),u&&clearTimeout(u),void
0===i&&s>e?o():t!==!0&&(u=setTimeout(i?r:o,void 0===i?e-s:e))}var
u,a=0;return"boolean"!=typeof t&&(i=n,n=t,t=void
0),o&&o.guid&&(r.guid=n.guid=n.guid||o.guid++),r}},{jquery:1}],5:[function(e,t,n){(function(o){"use
strict";function i(e){return e&&e.__esModule?e:{"default":e}}function
r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a
function")}Object.defineProperty(n,"__esModule",{value:!0});var
u=function(){function e(e,t){for(var n=0;n<t.length;n++){var
o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in
o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return
function(t,n,o){return
n&&e(t.prototype,n),o&&e(t,o),t}}(),a="undefined"!=typeof
window?window.videojs:"undefined"!=typeof
o?o.videojs:null,l=i(a),s=e("throttle-debounce").debounce,f={debounceDelay:200,layoutMap:[{layoutClassName:"vjs-layout-tiny",width:2},{layoutClassName:"vjs-layout-x-small",width:3},{layoutClassName:"vjs-layout-small",width:4},{layoutClassName:"defaults",width:5}]},d=function(e){var
t=e.offsetWidth,n=getComputedStyle(e);return
t+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10)},c=function(e){return
parseInt(getComputedStyle(e).width,10)},y=function(e){return
e.offsetWidth>0||e.offsetHeight>0},h=function w(){var e=function(e){var
t=e.player.el(),n=e.options.layoutMap[e.currentLayout_];"defaults"!==n.layoutClassName&&l["default"].addClass(t,n.layoutClassName),e.options.layoutMap.forEach(function(n,o){o!==e.currentLayout_&&"defaults"!==n.layoutClassName&&l["default"].removeClass(t,n.layoutClassName)})},t=function(t,n,o,i){var
r=t.options.layoutMap;o>n&&t.currentLayout_>0?(t.currentLayout_--,e(t),window.setTimeout(w.bind(t),1)):t.currentLayout_<r.length-1&&n>=r[t.currentLayout_+1].width*i&&(t.currentLayout_++,e(t),window.setTimeout(w.bind(t),1))};if(this.el&&!this.player.usingNativeControls()&&y(this.el.querySelectorAll(".vjs-control-bar")[0])){var
n=this.getPlayerWidth(),o=this.getControlWidth(),i=this.getControlBarWidth();this.options.calculateLayout?this.options.calculateLayout(this,n,i,o):t(this,n,i,o)}},p=function(){function
e(t,n){r(this,e),this.player_=t,this.options_=n,this.currentLayout_=n.layoutMap.length-1,this.debouncedCheckSize_=s(n.debounceDelay,h)}return
u(e,[{key:"ready",value:function(){var
e=this;this.player.addClass("vjs-responsive-layout"),this.windowResizeListener_=window.addEventListener("resize",function(){return
e.debouncedCheckSize_()}),this.player.on(["play","resize"],function(){return
e.debouncedCheckSize_()}),this.player.on("dispose",function(){window.removeEventListener("resize",this.windowResizeListener_)}),this.player.trigger("resize")}},{key:"getControlWidth",value:function(){return
d(this.el.querySelectorAll(".vjs-play-control")[0])}},{key:"getControlBarWidth",value:function(){var
e=0,t=this.el.querySelectorAll(".vjs-control-bar > *");return
Array.from(t).forEach(function(t){y(t)&&(e+=d(t))}),e}},{key:"getPlayerWidth",value:function(){return
c(this.el)}},{key:"player",get:function(){return
this.player_}},{key:"el",get:function(){return
this.player_.el()}},{key:"options",get:function(){return
this.options_}}],[{key:"getElementOuterWidth",value:function(e){return
d(e)}},{key:"getElementWidth",value:function(e){return
c(e)}},{key:"isElementVisible",value:function(e){return
y(e)}}]),e}(),v=function(e){var t=new
p(this,l["default"].mergeOptions(f,e));this.ready(function(){t.ready()})};l["default"].plugin("responsiveLayout",v),n["default"]=v,t.exports=n["default"]}).call(this,"undefined"!=typeof
global?global:"undefined"!=typeof self?self:"undefined"!=typeof
window?window:{})},{"throttle-debounce":3}]},{},[5])(5)});
\ No newline at end of file
--
To view, visit https://gerrit.wikimedia.org/r/320092
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifdbec9bdea0bf85f2e8f338f40b1dd44f5e0156f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TimedMediaHandler
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits