From 9fbc6fa9c48d14cff48a1cf2fcb309ddcd06316d Mon Sep 17 00:00:00 2001 From: Tony Air Date: Thu, 14 May 2020 02:31:19 +0700 Subject: [PATCH] UI: debug init timer --- dist/js/app.js | 2 +- dist/js/app.js.map | 2 +- src/js/_components/_ui.header-footer.js | 2 +- src/js/_main.js | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dist/js/app.js b/dist/js/app.js index 1700417..280666c 100644 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -1,3 +1,3 @@ /*! For license information please see app.js.LICENSE.txt */ -!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/mnt/data/srv/dist/repositories/webpack-bootstrap-ui-kit/dist",n(n.s="./src/js/app.js")}({"./node_modules/@a2nt/meta-lightbox/src/js/meta-lightbox.js":function(t,e){function n(t){return(n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e,o){var i={effect:"fade",theme:"default",keyboardNav:!0,clickOverlayToClose:!0,onInit:function(){},beforeShowLightbox:function(){},afterShowLightbox:function(t){},beforeHideLightbox:function(){},afterHideLightbox:function(){},onPrev:function(t){},onNext:function(t){},errorMessage:"The requested content cannot be loaded. Please try again later."};function r(e,n){this.options=t.extend({},i,n),this._defaults=i,this._name="metaLightbox",this.init()}r.prototype={init:function(){var e=this,n=t("html");this.ajaxLoaded=!1,o.MetaLightbox=this,n.hasClass("meta-lightbox-notouch")||n.addClass("meta-lightbox-notouch"),"ontouchstart"in o&&n.removeClass("meta-lightbox-notouch"),t(o).on("click",'[data-toggle="lightbox"],[data-lightbox-gallery]',(function(t){return t.preventDefault(),t.stopPropagation(),e.showLightbox(this),!1})),this.options.keyboardNav&&t("body").off("keyup").on("keyup",(function(n){var o=n.keyCode?n.keyCode:n.which;27===o&&e.destructLightbox(),37===o&&t(".meta-lightbox-prev").trigger("click"),39===o&&t(".meta-lightbox-next").trigger("click")})),this.options.onInit.call(this)},showLightbox:function(e){this.el=e,this.$el=t(this.el);var n,o,i,r,s=this;this.options.beforeShowLightbox.call(this),(n=this.constructLightbox())&&(o=n.find(".meta-lightbox-content"))&&(i=this.$el,t("body").addClass("meta-lightbox-body-effect-".concat(this.options.effect)),this.processContent(o,i),this.$el.data("lightbox-gallery")&&(1===(r=t('[data-lightbox-gallery="'.concat(this.$el.data("lightbox-gallery"),'"]'))).length?t(".meta-lightbox-nav").hide():t(".meta-lightbox-nav").show(),t(".meta-lightbox-prev").off("click").on("click",(function(e){e.preventDefault();var n=r.index(i);i=r.eq(n-1),t(i).length||(i=r.last()),s.processContent(o,i),s.options.onPrev.call(this,[i])})),t(".meta-lightbox-next").off("click").on("click",(function(e){e.preventDefault();var n=r.index(i);i=r.eq(n+1),t(i).length||(i=r.first()),s.processContent(o,i),s.options.onNext.call(this,[i])}))),setTimeout((function(){n.addClass("meta-lightbox-open"),s.options.afterShowLightbox.call(this,[n])}),1))},processContent:function(i,r){var s,a,l,c,u,d,h=this;href=r.attr("href"),href||(href=r.data("href")),i.html("").addClass("meta-lightbox-loading"),this.isHidpi()&&r.data("lightbox-hidpi")&&(href=r.data("lightbox-hidpi")),null!=href.match(/\.(jpeg|jpg|gif|png)$/i)?((s=t("",{src:href})).on("load",(function(){var n=t('
'),o=t(".meta-lightbox-content"),r=t('');r.append(s),n.append(r),n.css({"line-height":"".concat(o.height(),"px"),height:"".concat(o.height(),"px")}),t(e).resize((function(){n.css({"line-height":"".concat(o.height(),"px"),height:"".concat(o.height(),"px")})})),"undefined"!==typeof r.zoom&&r.zoom(),i.html(n).removeClass("meta-lightbox-loading"),h.contentLoaded()})),s.on("error",(function(){var e=t('

'.concat(h.options.errorMessage,"

"));i.html(e).removeClass("meta-lightbox-loading"),h.contentLoaded()})),r.data("title")?h.setTitle(r.data("title")):r.attr("title")?h.setTitle(r.attr("title")):t(".meta-lightbox-title-wrap").html(""),"function"===typeof ga&&ga("send","event","meta","Image Click",href)):(a=href.match(/(youtube|youtube-nocookie|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/))?(l="",c="meta-lightbox-video","youtube"==a[1]&&(l="https://www.youtube.com/embed/".concat(a[4]),c="meta-lightbox-youtube"),"youtu"==a[1]&&(l="https://www.youtube.com/embed/".concat(a[3]),c="meta-lightbox-youtube"),"youtube-nocookie"==a[1]&&(l="https://www.youtube-nocookie.com/embed/".concat(a[4]),c="nivo-lightbox-youtube"),"vimeo"==a[1]&&(l="https://player.vimeo.com/video/".concat(a[3]),c="meta-lightbox-vimeo"),l&&(u=t("