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 = '