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 opens = _____WB$wombat$assign$function_____("opens"); !function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict"; /*! * MoveTo - A lightweight scroll animation javascript library without any dependency. * Version 1.8.2 (28-06-2019 14:30) * Licensed under MIT * Copyright 2019 Hasan Aydoğdu */var o=function(){var e={tolerance:0,duration:800,easing:"easeOutQuart",container:window,callback:function(){}};function t(e,t,n,o){return e/=o,-n*(--e*e*e*e-1)+t}function n(e,t){var n={};return Object.keys(e).forEach((function(t){n[t]=e[t]})),Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function o(e){return e instanceof HTMLElement?e.scrollTop:e.pageYOffset}function i(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options=n(e,o),this.easeFunctions=n({easeOutQuart:t},i)}return i.prototype.registerTrigger=function(e,t){var o=this;if(e){var i=e.getAttribute("href")||e.getAttribute("data-target"),r=i&&"#"!==i?document.getElementById(i.substring(1)):document.body,a=n(this.options,function(e,t){var n={};return Object.keys(t).forEach((function(t){var o=e.getAttribute("data-mt-".concat(t.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))));o&&(n[t]=isNaN(o)?o:parseInt(o,10))})),n}(e,this.options));"function"==typeof t&&(a.callback=t);var s=function(e){e.preventDefault(),o.move(r,a)};return e.addEventListener("click",s,!1),function(){return e.removeEventListener("click",s,!1)}}},i.prototype.move=function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===e||e){i=n(this.options,i);var r,a="number"==typeof e?e:e.getBoundingClientRect().top,s=o(i.container),c=null;a-=i.tolerance;var l=function n(l){var u=o(t.options.container);c||(c=l-1);var d=l-c;if(r&&(a>0&&r>u||a<0&&r300?a(".top").addClass("is-visible"):a(".top").removeClass("is-visible"),a(this).scrollTop()>1200?a(".top").addClass("fade-out"):a(".top").removeClass("fade-out")})),a((function(){var e=new i.a,t=document.getElementById("target");e.move(t);var n=document.getElementsByClassName("js-trigger")[0];e.registerTrigger(n)}))},function(e,t){/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",(function(){var e,t=location.hash.substring(1);/^[A-z0-9_-]+$/.test(t)&&(e=document.getElementById(t))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())}),!1)},function(e,t){var n,o,i;n=jQuery,i=0,n(window).scroll((function(e){o=!0,n(window).scrollTop()>=157?n(".nav-container, .site-content").addClass("nav-container-sticky"):n(".nav-container, .site-content").removeClass("nav-container-sticky")})),setInterval((function(){o&&(function(){var e=n(this).scrollTop();Math.abs(i-e)<=0||(e>i&&e>700?n(".nav-container").removeClass("scrolling-up").addClass("scrolling-down"):e+n(window).height() 0 || rect.width > 0) && rect.bottom >= 0 && rect.right >= 0 && rect.top <= (window.innerHeight || document.documentElement.clientHeight) && rect.left <= (window.innerWidth || document.documentElement.clientWidth) ) } jQuery(window).load(function($){ /* scroll 1px to trigger sticky */ setTimeout(function(){ var y = jQuery(window).scrollTop(); jQuery("html, body").animate({ scrollTop: y+2 }); }, 100); }); /* update to show real total of items - doesn't work well - should be php */ function realTotal(){ $ = jQuery; var itemquantity = 0; $('.rpress-sidebar-cart .rpress-cart-item-qty.qty-class').each(function(){ itemquantity += parseInt($(this).text(), 10); }); $('.rpress-cart-quantity').text(itemquantity); localStorage.setItem('tug_bg_cartCount', itemquantity); } jQuery(document).ready(function($){ /* hack to make a cart count */ //localStorage.setItem('tug_bg_cartCount', $('.rpress-cart-badge.rpress-cart-quantity').text()); /* $('.menu-item:last-child a').append(' ('+localStorage.getItem('tug_bg_cartCount')+')'); $('body').on('DOMSubtreeModified', '.rpress-cart-badge.rpress-cart-quantity', function(){ localStorage.setItem('tug_bg_cartCount', $(this).text()); /* setTimeout(function(){ realTotal(); }, 2000); */ //}); /* $('.rpress-clear-cart').on('click', function(){ localStorage.setItem('tug_bg_cartCount', 0); $('.menu-item:last-child a .rpress-cart-quantity').text('0'); }); */ /* no widows/orphans */ /* $('.home h2, .home h3, .home h4, .home h5').each(function(){ var string = $(this).html(); string = string.replace(/ ([^ ]*)$/,' $1'); $(this).html(string); }); */ /* simple slideshow */ var image_counter = -1; $(window).load(function() { rotate_images(); setInterval(rotate_images, 4000); }); function rotate_images() { ++image_counter; if (image_counter >= $('.slideshow img').length) { image_counter = 0; } $('.slideshow img').each(function(i, img) { if (i == image_counter) { $(img).css({zIndex : 4}); $(img).animate({ opacity : 1 }, 2000).animate({ zIndex : 5}, 200); } else { $(img).animate({ opacity : 0 }, 2000).animate({ zIndex : 0}, 200); } }); } /* alert message cookie */ var alertcookie = Cookies.get('a98_alert_msg_tug'); $('#alertmessage').hide(); if(!alertcookie){ $('#alertmessage').show(); } $('#alertmessage').on('click', function(e){ e.preventDefault(); $(this).fadeOut(1000); Cookies.set('a98_alert_msg_tug', '1', { expires: .25 }); //('a98_alert_msg_tug', 'set', { expires: .25 }); }); /* popup cookie */ var popupcookie = Cookies.get('q27_popup_msg_tug'); $('.popup').hide(); if(!popupcookie){ $('.popup').show(); } $('.popup-close').on('click', function(e){ e.preventDefault(); $('.popup').fadeOut(1000); //('q27_popup_msg_tug', 'set', { expires: .25 }); Cookies.set('q27_popup_msg_tug', '1', { expires: .25 }); }); $('.popup .cta a').on('click', function(e){ e.preventDefault(); $('.popup').fadeOut(1000); //('q27_popup_msg_tug', 'set', { expires: .25 }); Cookies.set('q27_popup_msg_tug', '1', { expires: .25 }); location.href = $(this).attr('href'); }); /* rotating home text */ setupRotator(); // Populate images from data attributes. var scrolled = $(window).scrollTop() $('.parallax').each(function(index) { var imageSrc = $(this).data('image-src') var imageHeight = $(this).data('height') $(this).css('background-image','url(' + imageSrc + ')') $(this).css('height', imageHeight) // Adjust the background position. var initY = $(this).offset().top var height = $(this).height() var diff = scrolled - initY var ratio = Math.round((diff / height) * 100) $(this).css('background-position','center ' + parseInt(-(ratio * 1.5)) + 'px') }) // Attach scroll event to window. Calculate the scroll ratio of each element // and change the image position with that ratio. // https://codepen.io/lemagus/pen/RWxEYz $(window).scroll(function() { var scrolled = $(window).scrollTop() $('.parallax').each(function(index, element) { var initY = $(this).offset().top var height = $(this).height() var endY = initY + $(this).height() // Check if the element is in the viewport. var visible = isInViewport(this) if(visible) { var diff = scrolled - initY var ratio = Math.round((diff / height) * 100) $(this).css('background-position','center ' + parseInt(-(ratio * 1.5)) + 'px') } }) }); $(window).scroll(function(e) { /* if ($(this).is(':animated')) { alert('scroll happen by animate'); } else if (e.originalEvent) { alert('scroll happen manual scroll'); } else { alert('scroll happen by call'); } */ var divs = $('.fadebox'); $.each(divs, function(i, item) { var bottom_of_object = $(item).offset().top /*+ $(item).outerHeight() */; var bottom_of_window = $(window).scrollTop() + $(window).height(); //alert(bottom_of_object); //alert(bottom_of_window); var rand = Math.floor(100 + Math.random() * 2000); if (bottom_of_window > bottom_of_object){ setTimeout(function() { $(item).animate({'opacity': '1'}, 500); //alert(rand); }, rand + 200); } }); }) }) function killresto(){ //jQuery('.rpress-add-to-cart').remove(); jQuery('.rpress_purchase_submit_wrapper').html('Closed'); } function setupRotator() { if (jQuery('.textItem').length > 1) { jQuery('.textItem:first').addClass('current').fadeIn(1000); setInterval('textRotate()', 2000); } } function textRotate() { var current = jQuery('#quotes > .current'); if (current.next().length == 0) { current.removeClass('current').fadeOut(1000); jQuery('.textItem:first').addClass('current').fadeIn(1000); } else { current.removeClass('current').fadeOut(1000); current.next().addClass('current').fadeIn(1000); } } } /* FILE ARCHIVED ON 03:19:31 Oct 15, 2021 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 20:55:44 Apr 15, 2026. 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): capture_cache.get: 0.295 load_resource: 150.829 PetaboxLoader3.resolve: 54.219 PetaboxLoader3.datanode: 90.859 (2) loaddict: 78.675 */