var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); function makeTitle(slug) { var words = slug.split('-'); for(var i = 0; i < words.length; i++) { var word = words[i]; words[i] = word.charAt(0).toUpperCase() + word.slice(1); } return words.join(' '); } jQuery(document).ready(function(){ "use strict"; //Touch devices if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { jQuery('body').addClass('is-touch-device'); } //Lightbox text if( typeof lightbox !== null && typeof lightbox !== "undefined" ){ lightbox.option({ 'albumLabel': stack_data.lightbox_text }); } //Horizontal Filters if( jQuery('body').hasClass('filters-horizontal') ){ jQuery('.masonry-filter-holder').addClass('masonry-filters--horizontal'); } //WordPress Tweaks jQuery('.sidebar select, .product select, .wpb_text_column select, .gform_wrapper select').attr('style', '').wrap('
'); jQuery('.wpb_text_column > div > div > label, .wpb_text_column > div > div >.input-select + br').remove(); jQuery('button[type="submit"][value]:not(.wpforms-submit)').not('.tinvwl-table-manage-list button').each(function(){ jQuery(this).text(jQuery(this).attr('value')); }); //Gravity Forms jQuery('.gform_body .button').addClass('btn btn--primary btn--small type--uppercase'); //Accordions if(!( jQuery('body').hasClass('no-active-tabs') )){ jQuery('.tabs:not(.no-active) > li:first-child').addClass('active'); } if(!( jQuery('body').hasClass('no-active-accordions') )){ jQuery('.accordion:not(.no-active) > li:first-child').addClass('active'); } //Btn inners jQuery('a.btn:not(:has(>span))').wrapInner(''); //Scrolling links jQuery('a[href^="#"]:not(a[href="#"]):not(.vc_tta a)').addClass('inner-link').click(function(){ jQuery('.hamburger-toggle.toggled-class').trigger('click'); }); jQuery('p:empty, li:empty').remove(); //Video Backgrounds jQuery('video[data-src-mp4]').each(function(){ var $this = jQuery(this), $mp4 = $this.attr('data-src-mp4'), $webm = $this.attr('data-src-webm'); jQuery('source[type="video/mp4"]', $this).attr('src', $mp4); jQuery('source[type="video/webm"]', $this).attr('src', $webm); $this[0].load(); }); //Lightbox gallery & carousel titles jQuery('a[data-title]').each(function(){ var $this = jQuery(this), $textBox = $this.next(), $h4 = ( jQuery( 'h4', $textBox ).length ) ? jQuery( 'h4', $textBox ).text() : '', $p = ( jQuery( 'p', $textBox ).length ) ? jQuery( 'p', $textBox ).text() : '', $string = ''; if(!( '' == $h4 )){ $string += $h4 } if(!( '' == $p )){ $string += ' - ' + $p } $this.attr( 'data-title', $string ); }); //In page navigator if( jQuery('.page-navigator').length && !jQuery('body').hasClass('variant-active') ){ jQuery('.page-navigator').prependTo('body'); if( jQuery('body').hasClass('variant-content') ){ jQuery('.in-page-link').each(function(){ var $this = jQuery(this), $id = $this.attr('id'); if(!( '' == $id )){ var content = '
  • '; jQuery('.page-navigator ul').append(content); jQuery(this).next('section').attr('id', $id.trim()); $this.remove(); } }); } else { jQuery('.main-container > div[id], .main-container section[id]').each(function(){ if(!( '' == jQuery(this).attr('id') )){ var content = '
  • '; jQuery('.page-navigator ul').append(content); } }); } } //Login form jQuery('#loginform input').each(function(){ var $this = jQuery(this); if( 'user_pass' == $this.attr('id') || 'user_login' == $this.attr('id') ){ $this.attr('placeholder', $this.prev().text()); } }); //Mega Menu jQuery('.add-h4 li').addClass('h4'); jQuery('.input-checkbox input[type="checkbox"], .input-radio input[type="radio"]').each(function(index){ var input = jQuery(this), label = input.siblings('label'), id = "input-assigned-"+index; if(typeof input.attr('id') === typeof undefined || input.attr('id') === ""){ input.attr('id', id); label.attr('for', id); }else{ id = input.attr('id'); label.attr('for', id); } input.after(label); }); //WordPress Category Widget jQuery('#cat').on('change', function(){ jQuery(this).parents('form').submit(); }); //Variant stuff if( jQuery('body').hasClass('variant-active') ){ if(!_.isUndefined(mr.sliders.draggable)) mr.sliders.draggable = false; jQuery(window).on("load", function(){ if(window.mr_parallax !== undefined){ window.mr_parallax.callback = function(element){ window.mr_parallax.profileParallaxElements(); console.log("ParallaxCallback element: "+element) if( (!jQuery(element).hasClass('parallax')) && jQuery(element).is('section:nth-of-type(1), header:nth-of-type(1)')){ jQuery(element).find('.background-image-holder').each(function(){ jQuery(this).css('top','0px'); window.mr_parallax.mr_setTranslate3DTransform(jQuery(this).get(0), 0); }); }else if(jQuery(element).hasClass('parallax') && jQuery(element).is('section:nth-of-type(1), header:nth-of-type(1)')){ if(jQuery('.viu nav').css('position') !== 'fixed') { jQuery(element).find('.background-image-holder').css('top', -(jQuery('.viu nav').outerHeight(true))); if(jQuery(element).outerHeight(true) == jQuery(window).height()){ jQuery(element).find('.background-image-holder').css('height', jQuery(window).height() + jQuery('.viu nav').outerHeight(true)); } } else{ jQuery(element).find('.background-image-holder').css('top', 0); } }else if(!jQuery(element).hasClass('parallax') && !jQuery(element).is('section:nth-of-type(1), header:nth-of-type(1)')){ jQuery(element).find('.background-image-holder').each(function(){ jQuery(this).css('top','0px'); window.mr_parallax.mr_setTranslate3DTransform(jQuery(this).get(0), 0); }); }else if(jQuery(element).hasClass('parallax') && !jQuery(element).is('section:nth-of-type(1), header:nth-of-type(1)')){ jQuery(element).find('.background-image-holder').each(function(){ jQuery(this).css('top','0px'); window.mr_parallax.mr_setTranslate3DTransform(jQuery(this).get(0), 0); }); } }; } }); } }); } /* FILE ARCHIVED ON 04:00:52 Mar 15, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 10:57:16 Oct 04, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.567 exclusion.robots: 0.028 exclusion.robots.policy: 0.016 esindex: 0.007 cdx.remote: 30.94 LoadShardBlock: 278.839 (3) PetaboxLoader3.datanode: 285.421 (4) load_resource: 127.469 PetaboxLoader3.resolve: 59.91 */