PageSourceSearch

https://www.woodenhottubsale.co.uk/wp-content/litespeed/js/d9de3782dc83a9d1ccc909c869638548.js?ver=d04ae

js woodenhottubsale.co.uk collected 2026-10-04 22:07:05 UTC 17,092 bytes, 33 lines download raw bytes

1function yiw_lightbox(){jQuery('a.thumb.video, a.thumb.img').hover(function(){jQuery('<a class="zoom">zoom</a>').appendTo(this).css({dispay:'block',opacity:0,height:jQuery(this).children('img').height(),width:jQuery(this).children('img').width(),'top':jQuery(this).css('padding-top'),'left':jQuery(this).css('padding-left'),padding:0}).animate({opacity:0.4},500)},function(){jQuery('.zoom').fadeOut(500,function(){jQuery(this).remove()})});jQuery('.blog-elegant-right a, .blog-elegant a, .blog-small a').has('img').attr('rel','prettyPhoto');if(jQuery.fn.prettyPhoto){jQuery("a[rel^='prettyPhoto'], .features-tab-content a[rel^='thumbnails']").prettyPhoto({slideshow:5000,theme:yiw_prettyphoto_style,autoplay_slideshow:!1,deeplinking:!1,show_title:!1})}}
2if(typeof jQuery.fn.live=='undefined'){jQuery.fn.live=function(types,data,fn){jQuery(this.context).on(types,this.selector,data,fn);return this}}
3jQuery(document).ready(function($){$('body').removeClass('no_js').addClass('yes_js');var mobile_menu=function(){if($(window).width()<767&&$('body').hasClass('responsive')){$('#nav > ul, #nav .menu > ul').mobileMenu({subMenuDash:'-'});$('#nav > ul, #nav .menu > ul').hide()}}
4mobile_menu();var show_dropdown=function(){var options;containerWidth=$('#header').width();marginRight=$('#nav ul.level-1 > li').css('margin-right');submenuWidth=$(this).find('ul.sub-menu').outerWidth();offsetMenuRight=$(this).position().left+submenuWidth;leftPos=-18;if(offsetMenuRight>containerWidth)
5options={left:leftPos-(offsetMenuRight-containerWidth)};else options={};$('ul.sub-menu:not(ul.sub-menu li > ul.sub-menu), ul.children:not(ul.children li > ul.children)',this).css(options).stop(!0,!0).fadeIn(300)}
6var hide_dropdown=function(){$('ul.sub-menu:not(ul.sub-menu li > ul.sub-menu), ul.children:not(ul.children li > ul.children)',this).fadeOut(300)}
7$('#nav ul > li').hover(show_dropdown,hide_dropdown);$('#nav ul > li').each(function(){if($('ul',this).length>0)
8$(this).children('a').append('<span class="sf-sub-indicator"> &raquo;</span>').css({paddingRight:parseInt($(this).children('a').css('padding-right'))+16})});$('#nav li:not(.megamenu) ul.sub-menu li, #nav li:not(.megamenu) ul.children li').hover(function(){if($(this).closest('.megamenu').length>0)
9return;var options;containerWidth=$('#header').width();containerOffsetRight=$('#header').offset().left+containerWidth;submenuWidth=$('ul.sub-menu, ul.children',this).parent().width();offsetMenuRight=$(this).offset().left+submenuWidth*2;leftPos=-10;if(offsetMenuRight>containerOffsetRight)
10$(this).addClass('left');$(this).children('ul.sub-menu, ul.children').stop(!0,!0).fadeIn(300)},function(){if($(this).closest('.megamenu').length>0)
11return;$(this).children('ul.sub-menu, ul.children').fadeOut(300)});$('#nav .megamenu').mouseover(function(){var main_container_width=$('.inner').width();var main_container_offset=$('.inner').offset();var parent=$(this);var megamenu=$(this).children('ul.sub-menu');var width_megamenu=megamenu.outerWidth();var position_megamenu=megamenu.offset();var position_parent=parent.position();var position_right_megamenu=position_parent.left+width_megamenu;if(position_right_megamenu>main_container_width){megamenu.offset({top:position_megamenu.top,left:main_container_offset.left+(main_container_width-width_megamenu)})}});if($('body').hasClass('isMobile')&&!$('body').hasClass('iphone')&&!$('body').hasClass('ipad')){$('.menu-item').click(function(e){e.stopPropagation();$('li.megamenu > a, .dropdown > a, .menu-item-has-children > a').attr('href','#');var _submenu=$('.submenu',this);if(_submenu.length){e.preventDefault();if(_submenu.is(':hidden')){show_dropdown(_submenu)}else{hide_dropdown(_submenu)}}})}
12yiw_lightbox();$("a.bookmark, a.bookmark-small").click(function(){var bookmarkUrl=this.href;var bookmarkTitle=this.title;if($.browser.mozilla){window.sidebar.addPanel(bookmarkTitle,bookmarkUrl,"")}else if($.browser.msie||$.browser.webkit){window.external.AddFavorite(bookmarkUrl,bookmarkTitle)}else if($.browser.opera){$(this).attr("href",bookmarkUrl);$(this).attr("title",bookmarkTitle);$(this).attr("rel","sidebar");$(this).click()}else{alert('Please hold CTRL+D and click the link to bookmark it in your browser.')}
13return!1});$elements=$('#header #s, .autoclear, input.autoclear');$elements.each(function(){if($(this).val()!='')
14$(this).prev().css('display','none');});$elements.focus(function(){if($(this).val()=='')
15$(this).prev().css('display','none');});$elements.blur(function(){if($(this).val()=='')
16$(this).prev().css('display','block');});input_newsletter=$('.newsletter-section .text-field');var prev_input_newsletter_val=null;input_newsletter.focus(function(){if($(this).val()!=''){prev_input_newsletter_val=$(this).val();$(this).val('')}
17input_newsletter.blur(function(){if($(this).val()=='')
18$(this).val(prev_input_newsletter_val);})});$('a.socials, a.socials-small').tipsy({fade:!0,gravity:'s'});$('.toggle-content:not(.opened), .content-tab:not(.opened)').hide();$('.tab-index a').click(function(){$(this).parent().next().slideToggle(300,'easeOutExpo');$(this).parent().toggleClass('tab-opened tab-closed');$(this).attr('title',($(this).attr('title')=='Close')?'Open':'Close');return!1});$(".gallery-wrap .internal_page_item .overlay").css({opacity:0}
18);$(".gallery-wrap .internal_page_item").live('mouseover mouseout',function(event){if(event.type=='mouseover')$('.overlay',this).show().stop(!0,!1).animate({opacity:1},"fast");if(event.type=='mouseout')$('.overlay',this).animate({opacity:0},"fast",function(){$(this).hide()})});$('.tabs-container').yiw_tabs({tabNav:'ul.tabs',tabDivs:'.border-box'});$('#slideshow images img').show();$(document).on({mouseenter:function(){if($(this).parent().parent().attr('id')=='logo'||$(this).parent().parent().parent().parent().parent().attr('id')=='slider')
19return;$(this).stop().animate({opacity:0.65},700)},mouseleave:function(){$(this).stop().animate({opacity:1})}},'a img');$('.header-map .tab-label').click(function(){var mapWrap=$('#map-wrap');var text=$(this).text();var label=$(this);var height=$('#map').height();if($(window).height()-100<height)
20height=$(window).height()-100;if($(this).hasClass('closed')){mapWrap.show().animate({height:height},500,function(){label.removeClass('closed').addClass('opened').text(header_map.tab_close)})}else if($(this).hasClass('opened')){mapWrap.animate({height:0},500,function(){$(this).hide();label.removeClass('opened').addClass('closed').text(header_map.tab_open)})}
21return!1});if(!$('body').hasClass('isMobile')){var product_sel='.products.ribbon li, .shop-ribbon .products:not(.traditional) li',product=$(product_sel);var product_animate=function(el){product_reset(el);var product_buttons=$('.buttons',el);var product_add_to_cart=$('.buttons .add-to-cart',el);if(product_add_to_cart.hasClass('added')||product_add_to_cart.hasClass('loading'))return;product_buttons.css({opacity:0}).css({opacity:1});product_add_to_cart.css({top:product_add_to_cart.height()*-1}).stop().animate({top:0},'fast')};var product_reset=function(el){var product_buttons=$('.buttons',el);var product_add_to_cart=$('.buttons .add-to-cart',el);if(product_add_to_cart.hasClass('added')||product_add_to_cart.hasClass('loading'))return;product_buttons.css({opacity:0,'visibility':'visible','overflow':'hidden'}).height(product_add_to_cart.height());product_add_to_cart.stop().css({'position':'relative',top:product_add_to_cart.height()*-1})};product_reset(product);$(document).on('hover',product_sel,function(e){if(e.type=='mouseenter'){product_animate(this)}else if(e.type=='mouseleave'){product_reset(this)}})}
22var add_to_cart_clicked=!1;$(document).on('click','.add-to-cart',function(){if(typeof yiw.loader!='undefined'){$(this).block({message:null,overlayCSS:{background:'#fff url('+yiw.loader+') no-repeat center',opacity:0.3,cursor:'none'}})}else{$(this).block({message:null,overlayCSS:{background:'#fff url('+woocommerce_params.plugin_url+'/assets/images/ajax-loader.gif) no-repeat center',opacity:0.3,cursor:'none'}})}
23add_to_cart_clicked=$(this)});$('body').on('added_to_cart',function(){$('html, body').delay(500).animate({scrollTop:0},'slow')});var product_compare,open_window=!1;$('.product .woo_bt_compare_this').on('click',function(){open_window=!0;product_compare=$(this).parents('.product');if(typeof yiw.loader!='undefined'){product_compare.block({message:null,overlayCSS:{background:'#fff url('+yiw.loader+') no-repeat center',opacity:0.6,cursor:'none'}})}else{product_compare.block({message:null,overlayCSS:{background:'#fff url('+woocommerce_params.plugin_url+'/assets/images/ajax-loader.gif) no-repeat center',opacity:0.6,cursor:'none'}})}});if(typeof woo_comparable_open_compare_type!='undefined'){$('body').on('woo_update_total_compare_list',function(){product_compare.unblock();if(open_window&&woo_comparable_open_compare_type=='window'){$(".woo_compare_button_go").trigger('click')}else if(woo_comparable_open_compare_type=='new_page'){var win=window.open(woo_compare_url,'_blank');win.focus()}});if(woo_comparable_open_compare_type=='new_page'){$('.woo_compare_button_go a').on('click',function(){var win=window.open(woo_compare_url,'_blank');win.woocommerce_output_related_products().focus()})}}});jQuery(window).load(function(){$=jQuery;if(typeof(yiw_slider_type)!='undefined'){if(yiw_slider_type=='elegant'){$("#slider ul").cycle({easing:yiw_slider_elegant_easing,fx:yiw_slider_elegant_fx,speed:yiw_slider_elegant_speed,timeout:yiw_
23slider_elegant_timeout,before:function(currSlideElement,nextSlideElement,options,forwardFlag){var width=parseInt($('.slider-caption',currSlideElement).outerWidth());var height=parseInt($('.slider-caption',currSlideElement).outerHeight());$('.caption-top',currSlideElement).animate({top:height*-1},yiw_slider_elegant_caption_speed);$('.caption-bottom',currSlideElement).animate({bottom:height*-1},yiw_slider_elegant_caption_speed);$('.caption-left',currSlideElement).animate({left:width*-1},yiw_slider_elegant_caption_speed);$('.caption-right',currSlideElement).animate({right:width*-1},yiw_slider_elegant_caption_speed)},after:function(currSlideElement,nextSlideElement,options,forwardFlag){$('.caption-top',nextSlideElement).animate({top:0},yiw_slider_elegant_caption_speed);$('.caption-bottom',nextSlideElement).animate({bottom:0},yiw_slider_elegant_caption_speed);$('.caption-left',nextSlideElement).animate({left:0},yiw_slider_elegant_caption_speed);$('.caption-right',nextSlideElement).animate({right:0},yiw_slider_elegant_caption_speed)}})}else if(yiw_slider_type=='cycle'){$('#slider .images').cycle({fx:yiw_slider_cycle_fx,speed:yiw_slider_cycle_speed,timeout:yiw_slider_cycle_timeout,easing:yiw_slider_cycle_easing,pager:'.pagination',cleartype:!0});$('#slider-pause').show();$('#slider-pause').click(function(){$('#slider .images').cycle('pause');$(this).hide();$('#slider-play').show();return!1});$('#slider-play').click(function(){$('#slider .images').cycle('resume');$(this).hide();$('#slider-pause').show();return!1})}else if(yiw_slider_type=='nivo'){$('#slider .slider-images').nivoSlider({effect:yiw_slider_nivo_effect,pauseTime:yiw_slider_nivo_timeout,animSpeed:yiw_slider_nivo_animspeed,directionNav:!1})}else if(yiw_slider_type=='unoslider'){$('#slider ul').unoslider({width:yiw_slider_unoslider_width,height:yiw_slider_unoslider_height,responsive:yiw_slider_unoslider_responsive,indicator:yiw_slider_unoslider_indicator,navigation:yiw_slider_unoslider_navigation,slideshow:yiw_slider_unoslider_slideshow,animation:yiw_slider_unoslider_animation,preset:yiw_slider_unoslider_preset,order:'random',tooltip:!0})}else if(yiw_slider_type=='thumbnails'){$("#slider .showcase").awShowcase({content_width:yiw_slider_thumbnails_width,content_height:yiw_slider_thumbnails_height+72,show_caption:'onhover',continuous:!0,buttons:!1,auto:!0,thumbnails:!0,transition:yiw_slider_thumbnails_fx,interval:yiw_slider_thumbnails_timeout,transition_speed:yiw_slider_thumbnails_speed,thumbnails_position:'outside-last',thumbnails_direction:'horizontal',thumbnails_slidex:1})}else if(yiw_slider_type=='elastic'){$('#slider.elastic').eislideshow({easing:'easeOutExpo',titleeasing:'easeOutExpo',titlespeed:1200,autoplay:yiw_slider_elastic_autoplay,slideshow_interval:yiw_slider_elastic_timeout,speed:yiw_slider_elastic_speed,animation:yiw_slider_elastic_animation})}}
24if($('body').hasClass('rtl')){if($.fn.jcarousel){jQuery('.products-slider:not(.for-mobile) ul').jcarousel({auto:yiw_product_slider_interval,scroll:1,wrap:'last',rtl:!0})}}else{if($.fn.jcarousel){jQuery('.products-slider:not(.for-mobile) ul').jcarousel({auto:yiw_product_slider_interval,scroll:1,wrap:'last'})}}
25$('.features-tab-container').yiw_features_tab()});(function($){$.fn.yiw_features_tab=function(options){var config={'tabNav':'ul.features-tab-labels','tabDivs':'div.features-tab-wrapper'};if(options)$.extend(config,options);this.each(function(){var tabNav=$(config.tabNav,this);var tabDivs=$(config.tabDivs,this);var labelNumber=tabNav.children('li').length;tabDivs.children('div').hide();var currentDiv=tabDivs.children('div').eq(tabNav.children('li.current-feature').index());currentDiv.show();$('li',tabNav).hover(function(){if(!$(this).hasClass('current-feature')){var currentDiv=tabDivs.children('div').eq($(this).index());tabNav.children('li').removeClass('current-feature');$(this).addClass('current-feature');tabDivs.children('div').hide().removeClass('current-feature');currentDiv.fadeIn('slow')}})})}})(jQuery);(function($){$.fn.yiw_tabs=function(options){var config={'tabNav':'ul.tabs','tabDivs':'.containers','currentClass':'current'};if(options)$.extend(config,options);if(typeof(config.tabNav)=='undefined'){return}
26this.each(function(){var tabNav=$(config.tabNav,this);var tabDivs=$(config.tabDivs,this);var activeTab;var maxHeight=0;if($('li.'+config.currentClass+' a',tabNav).length>0)
27activeTab='#'+$('li.'+config.currentClass+' a',tabNav).attr('href').split('#')[1];else if(window.location.hash)
28activeTab=window.location.hash;else activeTab='#'+$('li:first-child a',tabNav).attr('href').split('#')[1];$(activeTab).show().addClass('showing');$(config.tabDivs).children('div').not('.showing').hide();$('li a[href~="'+activeTab+'"]',tabNav).parents('li').addClass(config.currentClass);$('a',tabNav).click(function(e){e.preventDefault();var id='#'+$(this).attr('href').split('#')[1];var thisLink=$(this);$('li.'+config.currentClass,tabNav).removeClass(config.currentClass);$(this).parents('li').addClass(config.currentClass);$('.showing',tabDivs).fadeOut(200,function(){$(this).removeClass('showing');$(id).fadeIn(200).addClass('showing')});return!1})})}})(jQuery);(function($){$.fn.sorted=function(customOptions){var options={reversed:!1,by:function(a){return a.text()}};$.extend(options,customOptions);$data=jQuery(this);arr=$data.get();arr.sort(function(a,b){var valA=options.by($(a));var valB=options.by($(b));if(options.reversed){return(valA<valB)?1:(valA>valB)?-1:0}else{return(valA<valB)?-1:(valA>valB)?1:0}});return $(arr)}})(jQuery);jQuery(function($){var read_button=function(class_names){var r={selected:!1,type:0};for(var i=0;i<class_names.length;i++){if(class_names[i].indexOf('selected-')==0){r.selected=!0}
29if(class_names[i].indexOf('segment-')==0){r.segment=class_names[i].split('-')[1]}};return r};var determine_sort=function($buttons){var $selected=$buttons.parent().filter('[class*="selected-"]');return $selected.find('a').attr('data-value')};var determine_kind=function($buttons){var $selected=$buttons.parent().filter('[class*="selected-"]');return $selected.find('a').attr('data-value')};var $preferences={duration:500,adjustHeight:'auto'}
30var $list=jQuery('.gallery-wrap');var $data=$list.clone();var $controls=jQuery('.portfolio-categories, .gallery-categories');$controls.each(function(i){var $control=jQuery(this);var $buttons=$control.find('a');var height_list=$list.height();$('li:first-child',$control).addClass('selected');$buttons.bind('click',function(e){var $button=jQuery(this);var $button_container=$button.parent();var button_properties=read_button($button_container.attr('class').split(' '));var selected=button_properties.selected;var button_segment=button_properties.segment;if(!selected){$buttons.parent().removeClass();
30$button_container.addClass('selected selected-'+button_segment).parent().children('li:first-child').addClass('first');var sorting_type=determine_sort($controls.eq(1).find('a'));var sorting_kind=determine_kind($controls.eq(0).find('a'));if(sorting_kind=='all'){var $filtered_data=$data.find('li')}else{var $filtered_data=$data.find('li.'+sorting_kind)}
31var $sorted_data=$filtered_data.sorted({by:function(v){return $(v).find('strong').text().toLowerCase()}});$list.quicksand($sorted_data,$preferences,function(){yiw_lightbox();var postsPerRow=($('.layout-sidebar-right').length>0||$('.layout-sidebar-left').length>0)?3:4;$('.gallery-wrap li').removeClass('group').each(function(i){$(this).find('div').removeClass('internal_page_item_last');if((i%postsPerRow)==0){}else if((i%postsPerRow)==2){$(this).find('div').addClass('internal_page_item_last')}});$('.gallery-wrap:first').css('height',0)})}
32e.preventDefault()})})})
33;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.