1 line
912 B
JavaScript
1 line
912 B
JavaScript
!function(){"use strict";var n={n:function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},d:function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o:function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}},e=window.jQuery,t=n.n(e);const{ResizeObserver:i}=window;function o(n){n&&n.height>1&&(n.style.width=`${n.height}px`)}const a=new i((n=>{n.forEach((({target:n})=>{n&&o(n)}))}));t()(document).on("init.vpf loadedNewItems.vpf",((n,e)=>{if("vpf"!==n.namespace||"paged"!==e.options.pagination||!e.$pagination.children(".vp-pagination__style-minimal").length)return;const i=e.$pagination.find(".vp-pagination__item-active");let r=i.find("img");r.length||(r=t()('<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="">'),a.observe(r[0]),i.prepend(r),o(r[0]))}))}(); |