PATH:
home
/
thebhoeo
/
public_html
/
wp-content
/
themes
/
woodmart
/
js
/
libs
!function(t){t.fn.justifiedGallery=function(i){var e={sizeRangeSuffixes:{lt100:"",lt240:"",lt320:"",lt500:"",lt640:"",lt1024:""},rowHeight:120,maxRowHeight:0,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.75,fixedHeight:!1,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!1,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:100,randomize:!1};function n(t,i){return-1!==t.indexOf(i,t.length-i.length)}function a(i){var e=t(i.currentTarget).find(".caption");i.data.settings.cssAnimation?e.addClass("caption-visible").removeClass("caption-hidden"):e.stop().fadeTo(i.data.settings.captionSettings.animationDuration,i.data.settings.captionSettings.visibleOpacity)}function s(i){var e=t(i.currentTarget).find(".caption");i.data.settings.cssAnimation?e.removeClass("caption-visible").removeClass("caption-hidden"):e.stop().fadeTo(i.data.settings.captionSettings.animationDuration,i.data.settings.captionSettings.nonVisibleOpacity)}function o(t,i,e){e.settings.cssAnimation?(t.addClass("entry-visible"),i()):t.stop().fadeTo(e.settings.imagesAnimationDuration,1,i)}function r(t,i){i.settings.cssAnimation?t.removeClass("entry-visible"):t.stop().fadeTo(0,0)}function g(t){var i=t.find("> img");return 0===i.length&&(i=t.find("> a > img")),i}function l(i,e,r,l,d,f,u){var h=g(i);h.css("width",l),h.css("height",d),h.css("margin-left",-l/2),h.css("margin-top",-d/2),i.width(l),i.height(f),i.css("top",r),i.css("left",e);var c=h.attr("src"),m=function(t,i,e,a){var s,o,r=t.match(a.settings.extension),g=null!=r?r[0]:"",l=t.replace(a.settings.extension,"");return s=l,o=function(t,i){var e=!1;for(var a in i.settings.sizeRangeSuffixes)if(0!==i.settings.sizeRangeSuffixes[a].length){if(n(t,i.settings.sizeRangeSuffixes[a]))return i.settings.sizeRangeSuffixes[a]}else e=!0;if(e)return"";throw"unknown suffix for "+t}(l,a),l=s.substring(0,s.length-o.length),l+=function(t,i,e){var n;return(n=t>i?t:i)<=100?e.settings.sizeRangeSuffixes.lt100:n<=240?e.settings.sizeRangeSuffixes.lt240:n<=320?e.settings.sizeRangeSuffixes.lt320:n<=500?e.settings.sizeRangeSuffixes.lt500:n<=640?e.settings.sizeRangeSuffixes.lt640:e.settings.sizeRangeSuffixes.lt1024}(i,e,a)+g,l}(c,l,d,u);function v(){c!==m&&h.attr("src",m)}h.one("error",function(){h.attr("src",h.data("jg.originalSrc"))}),"skipped"===h.data("jg.loaded")?p(c,function(){o(i,v,u),h.data("jg.loaded",!0)}):o(i,v,u);var w=i.data("jg.captionMouseEvents");if(!0===u.settings.captions){var b=i.find(".caption");if(0===b.length){var y=h.attr("alt");void 0===y&&(y=i.attr("title")),void 0!==y&&(b=t('<div class="caption">'+y+"</div>"),i.append(b))}0!==b.length&&(u.settings.cssAnimation||b.stop().fadeTo(u.settings.imagesAnimationDuration,u.settings.captionSettings.nonVisibleOpacity),void 0===w&&(w={mouseenter:a,mouseleave:s},i.on("mouseenter",void 0,u,w.mouseenter),i.on("mouseleave",void 0,u,w.mouseleave),i.data("jg.captionMouseEvents",w)))}else void 0!==w&&(i.off("mouseenter",void 0,u,w.mouseenter),i.off("mouseleave",void 0,u,w.mouseleave),i.removeData("jg.captionMouseEvents"))}function d(t){t.lastAnalyzedIndex=-1,t.buildingRow.entriesBuff=[],t.buildingRow.aspectRatio=0,t.buildingRow.width=0,t.offY=t.border}function f(t,i){var e,n,a,s,o=t.settings,r=t.border;if(s=function(t,i){var e,n,a,s,o,r,l=t.settings,d=!0,f=0,u=t.galleryWidth-2*t.border-(t.buildingRow.entriesBuff.length-1)*l.margins,h=u/t.buildingRow.aspectRatio,c=t.buildingRow.width/u>l.justifyThreshold;if(i&&"hide"===l.lastRow&&!c){for(e=0;e<t.buildingRow.entriesBuff.length;e++)n=t.buildingRow.entriesBuff[e],l.cssAnimation?n.removeClass("entry-visible"):n.stop().fadeTo(0,0);return-1}for(i&&!c&&"nojustify"===l.lastRow&&(d=!1),e=0;e<t.buildingRow.entriesBuff.length;e++)s=(a=g(t.buildingRow.entriesBuff[e])).data("jg.imgw")/a.data("jg.imgh"),d?(o=e===t.buildingRow.entriesBuff.length-1?u:h*s,r=h):(o=l.rowHeight*s,r=l.rowHeight),u-=Math.round(o),a.data("jg.jimgw",Math.round(o)),a.data("jg.jimgh",Math.ceil(r)),(0===e||f>r)&&(f=r);return l.fixedHeight&&f>l.rowHeight&&(f=l.rowHeight),{minHeight:f,justify:d}}(t,i),a=s.minHeight,i&&"hide"===o.lastRow&&-1===a)return t.buildingRow.entriesBuff=[],t.buildingRow.aspectRatio=0,void(t.buildingRow.width=0);o.maxRowHeight>0&&o.maxRowHeight<a?a=o.maxRowHeight:0===o.maxRowHeight&&1.5*o.rowHeight<a&&(a=1.5*o.rowHeight);for(var d=0;d<t.buildingRow.entriesBuff.length;d++)n=g(e=t.buildingRow.entriesBuff[d]),l(e,r,t.offY,n.data("jg.jimgw"),n.data("jg.jimgh"),a,t),r+=n.data("jg.jimgw")+o.margins;t.$gallery.height(t.offY+a+t.border+(t.spinner.active?t.spinner.$el.innerHeight():0)),(!i||a<=t.settings.rowHeight&&s.justify)&&(t.offY+=a+t.settings.margins,t.buildingRow.entriesBuff=[],t.buildingRow.aspectRatio=0,t.buildingRow.width=0,t.$gallery.trigger("jg.rowflush"))}function u(t){t.yield.flushed=0,null!==t.imgAnalyzerTimeout&&clearTimeout(t.imgAnalyzerTimeout)}function h(t,i){u(t),t.imgAnalyzerTimeout=setTimeout(function(){c(t,i)},.001),c(t,i)}function c(i,e){for(var n,a,s=i.settings,o=i.lastAnalyzedIndex+1;o<i.entries.length;o++){var r=t(i.entries[o]),l=g(r);if(!0===l.data("jg.loaded")||"skipped"===l.data("jg.loaded")){n=o>=i.entries.length-1;var d=i.galleryWidth-2*i.border-(i.buildingRow.entriesBuff.length-1)*s.margins,c=l.data("jg.imgw")/l.data("jg.imgh");if(d/(i.buildingRow.aspectRatio+c)<s.rowHeight&&(f(i,n),++i.yield.flushed>=i.yield.every))return void h(i,e);i.buildingRow.entriesBuff.push(r),i.buildingRow.aspectRatio+=c,i.buildingRow.width+=c*s.rowHeight,i.lastAnalyzedIndex=o}else if("error"!==l.data("jg.loaded"))return}i.buildingRow.entriesBuff.length>0&&f(i,!0),i.spinner.active&&(i.spinner.active=!1,i.$gallery.height(i.$gallery.height()-i.spinner.$el.innerHeight()),i.spinner.$el.detach(),a=i.spinner,clearInterval(a.intervalId),a.intervalId=null),u(i),e?i.$gallery.trigger("jg.resize"):i.$gallery.trigger("jg.complete")}function p(i,e,n){if(e||n){var a=new Image,s=t(a);e&&s.one("load",function(){s.off("load error"),e(a)}),n&&s.one("error",function(){s.off("load error"),n(a)}),a.src=i}}return this.each(function(n,a){var s=t(a);s.addClass("justified-gallery");var o=s.data("jg.context");if(void 0===o){if(null!=i&&"object"!=typeof i)throw"The argument must be an object";var l=t('<div class="spinner"><span></span><span></span><span></span></div>'),f=t.extend({},e,i),u=f.border>=0?f.border:f.margins;o={settings:f,imgAnalyzerTimeout:null,entries:null,buildingRow:{entriesBuff:[],width:0,aspectRatio:0},lastAnalyzedIndex:-1,yield:{every:2,flushed:0},border:u,offY:u,spinner:{active:!1,phase:0,timeslot:150,$el:l,$points:l.find("span"),intervalId:null},checkWidthIntervalId:null,galleryWidth:s.width(),$gallery:s},s.data("jg.context",o)}else if("norewind"===i)for(var c=0;c<o.buildingRow.entriesBuff.length;c++)r(o.buildingRow.entriesBuff[c],o);else o.settings=t.extend({},o.settings,i),o.border=o.settings.border>=0?o.settings.border:o.settings.margins,d(o);if(function(t){var i=t.settings;function e(t){if("string"!=typeof i.sizeRangeSuffixes[t])throw"sizeRangeSuffixes."+t+" must be a string"}function n(t,i){if("string"==typeof t[i]){if(t[i]=parseFloat(t[i],10),isNaN(t[i]))throw"invalid number for "+i}else{if("number"!=typeof t[i])throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i}}if("object"!=typeof i.sizeRangeSuffixes)throw"sizeRangeSuffixes must be defined and must be an object";if(e("lt100"),e("lt240"),e("lt320"),e("lt500"),e("lt640"),e("lt1024"),n(i,"rowHeight"),n(i,"maxRowHeight"),i.maxRowHeight>0&&i.maxRowHeight<i.rowHeight&&(i.maxRowHeight=i.rowHeight),n(i,"margins"),n(i,"border"),"nojustify"!==i.lastRow&&"justify"!==i.lastRow&&"hide"!==i.lastRow)throw'lastRow must be "nojustify", "justify" or "hide"';if(n(i,"justifyThreshold"),i.justifyThreshold<0||i.justifyThreshold>1)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!=typeof i.cssAnimation)throw"cssAnimation must be a boolean";if(n(i.captionSettings,"animationDuration"),n(i,"imagesAnimationDuration"),n(i.captionSettings,"visibleOpacity"),i.captionSettings.visibleOpacity<0||i.captionSettings.visibleOpacity>1)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(n(i.captionSettings,"nonVisibleOpacity"),i.captionSettings.visibleOpacity<0||i.captionSettings.visibleOpacity>1)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if("boolean"!=typeof i.fixedHeight)throw"fixedHeight must be a boolean";if("boolean"!=typeof i.captions)throw"captions must be a boolean";if(n(i,"refreshTime"),"boolean"!=typeof i.randomize)throw"randomize must be a boolean"}(o),o.entries=s.find("> a, > div:not(.spinner)").toArray(),0!==o.entries.length){o.settings.randomize&&(o.entries.sort(function(){return 2*Math.random()-1}),t.each(o.entries,function(){t(this).appendTo(s)}));var m=!1,v=!1;t.each(o.entries,function(i,e){var n,a=t(e),r=g(a);if(a.addClass("jg-entry"),!0!==r.data("jg.loaded")&&"skipped"!==r.data("jg.loaded")){null!==o.settings.rel&&a.attr("rel",o.settings.rel),null!==o.settings.target&&a.attr("target",o.settings.target);var l=void 0!==r.data("safe-src")?r.data("safe-src"):r.attr("src");r.data("jg.originalSrc",l),r.attr("src",l);var d=parseInt(r.attr("width"),10),f=parseInt(r.attr("height"),10);if(!0!==o.settings.waitThumbnailsLoad&&!isNaN(d)&&!isNaN(f))return r.data("jg.imgw",d),r.data("jg.imgh",f),r.data("jg.loaded","skipped"),v=!0,h(o,!1),!0;r.data("jg.loaded",!1),m=!0,!1===o.spinner.active&&(o.spinner.active=!0,s.append(o.spinner.$el),s.height(o.offY+o.spinner.$el.innerHeight()),n=o.spinner,clearInterval(n.intervalId),n.intervalId=setInterval(function(){n.phase<n.$points.length?n.$points.eq(n.phase).fadeTo(n.timeslot,1):n.$points.eq(n.phase-n.$points.length).fadeTo(n.timeslot,0),n.phase=(n.phase+1)%(2*n.$points.length)},n.timeslot)),p(l,function(t){r.data("jg.imgw",t.width),r.data("jg.imgh",t.height),r.data("jg.loaded",!0),h(o,!1)},function(){r.data("jg.loaded","error"),h(o,!1)})}}),m||v||h(o,!1),function(t){t.checkWidthIntervalId=setInterval(function(){var i=parseInt(t.$gallery.width(),10);t.galleryWidth!==i&&(t.galleryWidth=i,d(t),h(t,!0))},t.settings.refreshTime)}(o)}})}}(jQuery);
[-] sticky-kit.min.js
[edit]
[-] magnific-popup.min.js
[edit]
[-] parallax.js
[edit]
[-] countdown-bundle.min.js
[edit]
[-] justifiedGallery.min.js
[edit]
[-] pjax.min.js
[edit]
[-] cookie.min.js
[edit]
[-] tooltips.js
[edit]
[-] combine.min.js
[edit]
[-] countdown-bundle.js
[edit]
[-] parallax.min.js
[edit]
[-] device.js
[edit]
[-] vivus.js
[edit]
[-] maplace.min.js
[edit]
[-] cookie.js
[edit]
[-] waypoints.js
[edit]
[-] combine.js
[edit]
[-] photoswipe-bundle.min.js
[edit]
[-] isotope-bundle.min.js
[edit]
[-] swiper.js
[edit]
[-] tooltips.min.js
[edit]
[-] sticky-kit.js
[edit]
[-] leaflet.js
[edit]
[-] threesixty.js
[edit]
[-] leaflet.min.js
[edit]
[-] magnific-popup.js
[edit]
[-] device.min.js
[edit]
[-] photoswipe-bundle.js
[edit]
[+]
..
[-] justifiedGallery.js
[edit]
[-] autocomplete.min.js
[edit]
[-] panr-parallax-bundle.js
[edit]
[-] panr-parallax-bundle.min.js
[edit]
[-] autocomplete.js
[edit]
[-] pjax.js
[edit]
[-] vivus.min.js
[edit]
[-] vimeo-player.min.js
[edit]
[-] isotope-bundle.js
[edit]
[-] waypoints.min.js
[edit]
[-] swiper.min.js
[edit]
[-] threesixty.min.js
[edit]
[-] parallax-scroll-bundle.js
[edit]
[-] maplace.js
[edit]
[-] vimeo-player.js
[edit]
[-] parallax-scroll-bundle.min.js
[edit]