abhijitkarandikar.com
Open in
urlscan Pro
2606:4700:3036::6815:4049
Public Scan
Submitted URL: http://abhijitkarandikar.com/wp-content/plugins/visual-portfolio/build/assets/js/layout-tiles.js?ver=fe9a48504a63b3092a04
Effective URL: https://abhijitkarandikar.com/wp-content/plugins/visual-portfolio/build/assets/js/layout-tiles.js?ver=fe9a48504a63b3092a04
Submission: On October 31 via api from US — Scanned from GB
Effective URL: https://abhijitkarandikar.com/wp-content/plugins/visual-portfolio/build/assets/js/layout-tiles.js?ver=fe9a48504a63b3092a04
Submission: On October 31 via api from US — Scanned from GB
Form analysis
0 forms found in the DOMText Content
(()=>{"use strict";var t={n:e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},d:(e,o)=>{for(var i in o)t.o(o,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:o[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window.jQuery;var o=t.n(e);const{screenSizes:i}=window.VPData;if(void 0!==window.Isotope&&void 0!==window.Isotope.LayoutMode){const t=window.Isotope.LayoutMode.modes.masonry;if(t){const e=t.prototype.measureColumns;t.prototype.measureColumns=function(){let t=!0;if(!this.columnWidth){const e=o()(this.element).closest('.vp-portfolio[data-vp-layout="tiles"]');if(e.length&&e[0].vpf){this.getContainerWidth();const{vpf:o}=e[0],n=o.getTilesSettings();let s=parseInt(n[0],10)||1,p=s-1,l=Math.min(i.length-1,p);for(;l>=0;l-=1)p>0&&void 0!==i[l]&&window.innerWidth<=i[l]&&(s=p),p-=1;s&&(this.columnWidth=this.containerWidth/s,this.columnWidth+=this.gutter,this.cols=s,t=!1)}}t&&e.call(this)}}}o()(document).on("extendClass.vpf",((t,e)=>{"vpf"===t.namespace&&(e.prototype.getTilesSettings=function(){const t=this.options.tilesType.split(/[:|]/);return void 0===t[t.length-1]||t[t.length-1]||t.pop(),t})})),o()(document).on("initOptions.vpf",((t,e)=>{"vpf"===t.namespace&&(e.defaults.tilesType="3|1,1|",e.options.tilesType||(e.options.tilesType=e.defaults.tilesType))})),o()(document).on("initLayout.vpf",((t,e)=>{if("vpf"!==t.namespace)return;if("tiles"!==e.options.layout)return;const o=e.getTilesSettings(),n=parseInt(o[0],10)||1;if(o.shift(),e.addStyle(".vp-portfolio__item-wrap",{width:100/n+"%"}),o&&o.length)for(let t=0;t<o.length;t+=1){const i=o[t].split(","),s=parseFloat(i[0])||1,p=parseFloat(i[1])||1;let l=".vp-portfolio__item-wrap";o.length>1&&(l+=`:nth-of-type(${o.length}n+${t+1})`),s&&1!==s&&e.addStyle(l,{width:100*s/n+"%"}),e.addStyle(`${l} .vp-portfolio__item-img-wrap::before`,{"padding-top":100*p+"%"})}let s=n-1,p=Math.min(i.length-1,s);for(;p>=0;p-=1)s>0&&void 0!==i[p]&&(e.addStyle(".vp-portfolio__item-wrap",{width:100/s+"%"},`screen and (max-width: ${i[p]}px)`),e.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:100/s+"%"},`screen and (max-width: ${i[p]}px)`)),s-=1}))})();