summaryrefslogtreecommitdiff
path: root/dist/LightBox.Overlay.min.js
blob: d520769a4e2df7b6c858e2419781ef45bab0ae78 (plain)
1
var LightBox=LightBox||{};LightBox.Overlay=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){n(this,e),this.element=document.createElement("div"),this.element.id="imagelightbox-overlay"}return r(e,[{key:"register",value:function(e){e.addOnStartListener(this.overlayOn.bind(this)),e.addOnEndListener(this.overlayOff.bind(this))}},{key:"overlayOn",value:function(){document.body.appendChild(this.element)}},{key:"overlayOff",value:function(){document.body.removeChild(this.element)}}]),e}();t["default"]=o,e.exports=t["default"]}]);