PageSourceSearch

https://www.bursi.co.il/wp-content/themes/idstore/js/script.js?ver=4.1.30

js bursi.co.il collected 2026-09-24 13:04:54 UTC 26,295 bytes, 802 lines download raw bytes

1jQuery(document).ready(function(){
2        
3    /* Mobile navigation
4    -------------------------------------------------------------- */
5    
6    var navList = jQuery('div.menu > ul').clone();
7    var etOpener = '<span class="open-child">(open)</span>';
8    navList.removeClass('menu').addClass('et-mobile-menu');
9    
10    
11	navList.find('li:has(ul)',this).each(function() {
12		jQuery(this).prepend(etOpener);
13	})
14    
15    navList.find('.open-child').toggle(function(){
16        jQuery(this).parent().addClass('over').find('>ul').slideDown(200);
17    },function(){
18        jQuery(this).parent().removeClass('over').find('>ul').slideUp(200);
19    });
20    
21    jQuery('.header-bg').after(navList[0]);
22    jQuery('div.menu').after('<span class="et-menu-title"><i class="icon-reorder"></i></span>');
23    
24    jQuery('.et-menu-title').toggle(function(){
25        jQuery('.et-mobile-menu').slideDown(200);
26    },function(){
27        jQuery('.et-mobile-menu').slideUp(200);
28    });
29    
30    /* Fixed menu */
31    
32    jQuery(window).scroll(function(){
33    	var fixedHeader = jQuery('.fixed-header-area');
34    	var scrollTop = jQuery(this).scrollTop();
35    	var headerHeight = jQuery('.header-top').height() + jQuery('.header-bg').height();
36    	
37    	if(scrollTop > headerHeight){
38    		if(!fixedHeader.hasClass('fixed-already')) {
39		    	fixedHeader.stop().addClass('fixed-already');
40    		}
41    	}else{
42    		if(fixedHeader.hasClass('fixed-already')) {
43		    	fixedHeader.stop().removeClass('fixed-already');
44    		}
45    	}
46    });
47    
48    /* Hover intent
49    -------------------------------------------------------------- */
50    jQuery('.shopping-cart-wrapper').hoverIntent(
51        function () {
52            jQuery(".cart-popup").stop().slideDown(100);
53        }, 
54        function () {
55            jQuery(".cart-popup").stop().slideUp(100);
56        }
57    );
58    
59    /* Alerts
60    -------------------------------------------------------------- */
61    
62    jQuery('.woocommerce_message,.woocommerce_error').append('<span class="close-parent">close</span>');
63    
64    /* Tabs
65    -------------------------------------------------------------- */
66    var tabs = jQuery('.tabs');
67    jQuery('.tabs > p > a').unwrap('p');
68    
69    var leftTabs = jQuery('.left-tabs');
70	var newTitles;
71    
72    leftTabs.each(function(){
73    	var currTab = jQuery(this);
74	    //currTab.find('> a.tab-title').each(function(){
75		    newTitles = currTab.find('> a.tab-title').clone().removeClass('tab-title').addClass('tab-title-left');
76	    //});
77	    
78	    var newHtml = newTitles;
79	    
80	    var tabNewTitles = jQuery('<div class="left-titles"></div>').prependTo(currTab);
81	    tabNewTitles.html(newTitles);
82    });
83    
84    
85    tabs.each(function(){
86    	var currTab = jQuery(this);
87	    currTab.find('.tab-title, .tab-title-left').click(function(e){
88	    	
89	    	e.preventDefault();
90	    	
91	    	var tabId = jQuery(this).attr('id');
92	    
93	        if(jQuery(this).hasClass('opened')){
94	            jQuery(this).removeClass('opened');
95	            jQuery('#content_'+tabId).hide();
96	        }else{
97	            currTab.find('.tab-title, .tab-title-left').each(function(){
98	            	var tabId = jQuery(this).attr('id');
99	                jQuery(this).removeClass('opened');
100		            jQuery('#content_'+tabId).hide();
101	            });
102	            jQuery('#content_'+tabId).show();
103	            jQuery(this).addClass('opened');
104	        }
105	    });
106    });
107    
108    
109    
110
111    
112    /* Checkout accordion
113    -------------------------------------------------------------- */
114    var chtAccord = jQuery('.checkout-accordion');
115    var tabRegister = jQuery('.register-tab-content');
116    var regCheckbox = jQuery('#createaccount');
117    var btnNext = jQuery('.checkout-cont');
118    
119    if(chtAccord.children().first().hasClass('tab-title')){
120        chtAccord.children().first().addClass('opened').next().show();
121    }else{
122        chtAccord.children().first().children().first().addClass('opened').next().show();
123    }
124    
125    btnNext.click(function(){
126        if(jQuery(this).hasClass('checkout-cont1')){
127            var nextTab = jQuery(this).parent().parent().parent().hide().prev().removeClass('opened').next().next().children().first();
128            if(nextTab.hasClass('skipTab')){
129                nextTab.next().next().addClass('opened').next().show();
130            }else{
131                nextTab.addClass('opened').next().show();
132            }
133            
134        }else{
135            jQuery(this).parent().hide().prev().removeClass('opened')
136            .next().next().addClass('opened').next().show();
137        }
138    });
139    
140    jQuery('input[name="method"]').change(function(){
141        if(jQuery(this).val() == 1) {
142            tabRegister.addClass('skipTab').hide();
143            regCheckbox.attr('checked', false);
144        }else{
145            tabRegister.removeClass('skipTab').show();
146            regCheckbox.attr('checked', true);
147        }
148    });
149    
150    
151    /* Accordion
152    -------------------------------------------------------------- */
153	var $container = jQuery('.acc-container'),
154		$trigger   = jQuery('.acc-trigger');
155
156	$container.hide();
157	$trigger.first().addClass('active').next().show();
158
159	var fullWidth = $container.outerWidth(true);
160	$trigger.css('width', fullWidth);
161	$container.css('width', fullWidth);
162	
163	$trigger.on('click', function(e) {
164		if( jQuery(this).next().is(':hidden') ) {
165			$trigger.removeClass('active').next().slideUp(300);
166			jQuery(this).toggleClass('active').next().slideDown(300);
167		}
168		e.preventDefault();
169	});
170
171	// Resize
172	jQuery(window).on('resize', function() {
173		fullWidth = $container.outerWidth(true)
174		$trigger.css('width', $trigger.parent().width() );
175		$container.css('width', $container.parent().width() );
176	});
177  
178    
179    /* Checkout
180    -------------------------------------------------------------- */
181    jQuery("a#checkout-next").click(function(){
182        jQuery("#shopping-cart-form").fadeIn();
183        var checkoutWidth = jQuery("#shopping-cart").width() + 30;
184        jQuery("#checkout-bar-in").animate({width:'+=50%'});
185        jQuery("#checkout-slider").animate({marginLeft:'-=' + checkoutWidth}, 800, function() {
186			jQuery('body,html').animate({
187				scrollTop: 0
188			}, 800);
189		});
190		return false;		
191    });
192    
193    jQuery("a#checkout-back,a.checkout-back").click(function(){
194        jQuery("#shopping-cart-form").fadeOut();
195        var checkoutWidth = jQuery("#shopping-cart").width() + 30;
196        jQuery("#checkout-bar-in").animate({width:'-=50%'});
197        jQuery("#checkout-slider").animate({marginLeft:'+=' + checkoutWidth}, 800, function() {
198			jQuery('body,html').animate({
199				scrollTop: 0
200			}, 800);
201		});
202		return false;		
203    });
204    
205
206    
207    /* "Top" button
208    -------------------------------------------------------------- */
209
210    var scroll_timer;
211    var displayed = false;
212    var $message = jQuery('#back-to-top');
213    var $window = jQuery(window);
214    
215    $window.scroll(function () {
216        window.clearTimeout(scroll_timer);
217        scroll_timer = window.setTimeout(function () { 
218        if($window.scrollTop() <= 0) 
219        {
220            displayed = false;
221            $message.fadeOut(500);
222        }
223        else if(displayed == false) 
224        {
225            displayed = true;
226            $message.stop(true, true).fadeIn(500).click(function () { $message.fadeOut(500); });
227        }
228        }, 400);
229    });
230    
231    jQuery('#top-link').click(function(e) {
232            jQuery('html, body').animate({scrollTop:0}, 1000);
233            return false;
234    });
235    
236    /* Accordion Navigation
237    -------------------------------------------------------------- */
238    jQuery(function(){
239        if(!nav_accordion){
240            jQuery('.categories-group .wpsc_category_title .btn-show ').hide();
241        }else{
242            jQuery('.block.cats').addClass('acc_enabled');
243            jQuery('.categories-group').each(function(){
244                jQuery(this).has('.wpsc_top_level_categories').addClass('has-subnav');
245                jQuery(this).has('.current-cat').addClass('current-parent opened');
246            });
247            
248            
249            var nav_section = jQuery('.categories-group .wpsc_top_level_categories');
250            var nav_toggle_element = jQuery('.categories-group .wpsc_category_title .btn-show ');
251            var nav_speed = 150;
252            
253            
254            nav_toggle_element.click(function(){
255                if(jQuery(this).parent().parent().hasClass('opened')){
256                    hideActiveSection();
257                }else{
258                    showNext(jQuery(this));
259                }
260            });
261            
262            if(jQuery('.categories-group.opened').length > 0) {
263                //jQuery('.categories-group.has-subnav').addClass('opened');
264            }else{
265                // If doesnt exitst opened point
266                jQuery('.categories-group.has-subnav:first').addClass('opened').find('ul').show();
267            }
268            
269            function showNext(element) {
270                hideActiveSection();
271                element.parent().parent().addClass('opened');
272                element.parent().next().show(nav_speed);
273            }
274            
275            function hideActiveSection(){
276                jQuery('.categories-group.opened').removeClass('opened').find('.wpsc_top_level_categories').hide(nav_speed);
277            }
278        }
279    }); 
280    /* ethemeContactForm
281    -------------------------------------------------------------- */
282    var ethemeContactForm = jQuery('#ethemeContactForm');
283    
284    var spinner = jQuery('.contactSpinner');
285    
286    jQuery('.required-field').focus(function(){
287        jQuery(this).removeClass('validation-failed');
288    });
289    
290    ethemeContactForm.find('button.button').click(function(e){
291        jQuery('#contactsMsgs').html('');
292        e.preventDefault();
293        spinner.show();
294        
295        var errmsg;
296        errmsg = '';
297        
298        ethemeContactForm.find('.required-field').each(function(){
299            if(jQuery(this).val() == '') {            
300                    errmsg = isRequired;
301                    jQuery(this).addClass('validation-failed');
302                }
303        });
304        
305        if(errmsg){
306            jQuery('#contactsMsgs').html('<p class="error">' + errmsg + '</p>');
307            spinner.hide();
308        }else{
309            
310            url = ethemeContactForm.attr('action');
311            
312            data = ethemeContactForm.serialize();
313            data += '&contactSubmit=true';
314                   
315            jQuery.ajax({
316                url: url,
317                method: 'GET',
318                data: data,
319                error: function() {
320                    jQuery('#contactsMsgs').html('<p class="error">' + someerrmsg + '</p>');
321                    spinner.hide();
322                },
323                success : function(){
324                    jQuery('#contactsMsgs').html('<p class="success">' + succmsg + '</p>');
325                    spinner.hide();
326                    ethemeContactForm.find("input[type=text], textarea").val("");
327                }
328            });
329            
330        }
331    });
332    /* ethemeCommentForm
333    -------------------------------------------------------------- */
334    var ethemeCommentForm = jQuery('#commentform');
335    
336    
337    ethemeCommentForm.find('#submit').click(function(e){
338        jQuery('#commentsMsgs').html('');
339        var errmsg;
340        errmsg = '';
341        
342        ethemeCommentForm.find('.required-field').each(function(){
343            if(jQuery(this).val() == '') { 
344                errmsg = isRequired;
345                jQuery(this).addClass('validation-failed');;
346            }
347        });
348        
349        if(errmsg){
350            e.preventDefault();
351            jQuery('#commentsMsgs').html('<p class="error">' + errmsg + '</p>');
352        }
353    });
354    /* "Close parent" button
355    -------------------------------------------------------------- */
356    var closeParentBtn = jQuery('.close-parent');
357    
358    
359    closeParentBtn.click(function(e){
360        closeParent(this);
361    });
362
363    
364    /* sf-with-ul */
365    
366    jQuery('.menu > ul li').each(function(){
367        jQuery(this).has('ul').find('>a').addClass('sf-with-ul');
368    });
369    
370    
371    /* Icons Preview
372    ----------------------------------------------------------------*/
373    
374    var modalDiv = jQuery('#iconModal');
375    
376    jQuery('.the-icons li').click(function(){
377        var name = jQuery(this).find('i').attr('class');
378        
379        modalDiv.find('i').each(function(){
380            jQuery(this).attr('class',name);
381        });
382        
383        modalDiv.find('#myModalLabel').text(name);
384        
385        modalDiv.modal();
386    });
387    
388    //jQuery('[rel="tooltip"]').tooltip();
389    
390    /* Woo
391    -------------------------------------------------------------- */
392
393	// Ajax add to cart
394	jQuery('.etheme-simple-product').live('click', function() {
395		// AJAX add to cart request
396		var $thisbutton = jQuery(this);
397		
398		if ($thisbutton.is('.etheme-simple-product, .product_type_downloadable, .product_type_virtual')) {
399            
400			showPopup();
401            
402            jQuery('#top-cart').addClass('updating');
403            
404            popupOverlay = jQuery('.etheme-popup-overlay');
405            
406            popupWindow = jQuery('.etheme-popup');
407            
408			formAction = jQuery('#simple-product-form').attr('action');
409            
410			var data = {
411                quantity: jQuery('input[name=quantity]').val()
412			};
413            
414			// Trigger event
415			jQuery('body').trigger('adding_to_cart');
416			
417			// Ajax action
418            jQuery.ajax({
419                url: formAction,
420                data: data,
421                method: 'POST',
422                timeout: 10000,
423                dataType: 'text',
424                success: function(data) {                    
425                    jQuery('#top-cart').html(jQuery(data).find('#top-cart').html());                    
426                    productImageSrc = jQuery('.main-image img').attr('src');                    
427                    productImage = '<img width="72" src="'+productImageSrc+'" />';                    
428                    productName = jQuery('.product_description_mainblock > h1').text();                    
429                    cartHref = jQuery('#top-cart > a').attr('href');                    
430                    popupHtml = productImage + '<em>'+productName+'</em> <br> ' + successfullyAdded2;
431                    popupWindow.find('.etheme-popup-content').css('backgroundImage','none').html(popupHtml);                    
432                    jQuery('.cont-shop').one('click',function(){
433                        hidePopup(popupOverlay,popupWindow);
434                    });                    
435                },
436                error: function(data) {
437                    popupWindow.find('.etheme-popup-content').css('backgroundImage','none').text('Something wrong');
438                }
439            });
440			
441			return false;
442		
443		} else {
444			return true;
445		}
446		
447	});
448	
449	
450	// Ajax add to cart (on list page)
451	jQuery('.etheme_add_to_cart_button').live('click', function() {
452		
453		// AJAX add to cart request
454		var $thisbutton = jQuery(this);
455
456		if ($thisbutton.is('.product_type_simple, .product_type_downloadable, .product_type_virtual')) {
457
458			if (!$thisbutton.attr('data-product_id')) return true;
459
460			$thisbutton.removeClass('added');
461			$thisbutton.parent().parent().parent().parent().addClass('loading');
462			$thisbutton.after('<div id="floatingCirclesG"><div class="f_circleG" id="frotateG_01"></div><div class="f_circleG" id="frotateG_02"></div><div class="f_circleG" id="frotateG_03"></div><div class="f_circleG" id="frotateG_04"></div><div class="f_circleG" id="frotateG_05"></div><div class="f_circleG" id="frotateG_06"></div><div class="f_circleG" id="frotateG_07"></div><div class="f_circleG" id="frotateG_08"></div></div>');
463
464			var data = {
465				action: 		'woocommerce_add_to_cart',
466				product_id: 	$thisbutton.data('product_id'),
467				quantity:       $thisbutton.data('quantity'),
468			};
469
470			// Trigger event
471			jQuery('body').trigger( 'adding_to_cart', [ $thisbutton, data ] );
472
473			// Ajax action
474			jQuery.post( woocommerce_params.ajax_url, data, function( response ) {
475
476				if ( ! response )
477					return;
478
479				var this_page = window.location.toString();
480
481				this_page = this_page.replace( 'add-to-cart', 'added-to-cart' );
482
483				if ( response.error && response.product_url ) {
484					window.location = response.product_url;
485					return;
486				}
487
488				// Redirect to cart option
489				if ( woocommerce_params.cart_redirect_after_add == 'yes' ) {
490
491					window.location = woocommerce_params.cart_url;
492					return;
493
494				} else {
495
496					$thisbutton.parent().find('#floatingCirclesG').remove();
497
498					fragments = response.fragments;
499					cart_hash = response.cart_hash;
500
501					// Block fragments class
502					if ( fragments ) {
503						jQuery.each(fragments, function(key, value) {
504							jQuery(key).addClass('updating');
505						});
506					}
507				jQuery('.widget_shopping_cart, .shop_table.cart, .updating, .cart_totals').fadeTo('400', '0.6').block({message: null, overlayCSS: {background: 'transparent url(' + woocommerce_params.ajax_loader_url + ') no-repeat center', opacity: 0.6 } } );
508					// Changes button classes
509					$thisbutton.addClass('added').parent().parent().parent().after('<p class="added-text">' + successfullyAdded + '</p>');
510					
511					setTimeout(function() { 
512						$thisbutton.parent().parent().parent().parent().removeClass('loading');
513						$thisbutton.removeClass('added');
514						jQuery('.added-text').fadeOut(300);
515					}, 3000)
516					
517					// Replace fragments
518					if ( fragments ) {
519						jQuery.each(fragments, function(key, value) {
520							jQuery(key).replaceWith(value);
521						});
522					}
523
524					// Unblock
525					jQuery('.widget_shopping_cart, .updating').stop(true).css('opacity', '1').unblock();
526					
527					// Cart widget load
528    				if (jQuery('.widget_shopping_cart').size()>0) {
529    					jQuery('.widget_shopping_cart:eq(0)').load( this_page + ' .widget_shopping_cart:eq(0) > *', function() {
530    
531    						// Replace fragments
532    						if (fragments) {
533    							jQuery.each(fragments, function(key, value) {
534    								jQuery(key).replaceWith(value);
535    							});
536    						}
537    						
538    						// Unblock
539    						jQuery('.widget_shopping_cart, .updating').stop(true).css('opacity', '1').unblock();
540    						
541    						jQuery('body').trigger('cart_widget_refreshed');
542    					} );
543    				}
544    				
545					// Cart page elements
546					jQuery('.shop_table.cart').load( this_page + ' .shop_table.cart:eq(0) > *', function() {
547
548						jQuery("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass('buttons_added').append('<input type="button" value="+" id="add1" class="plus" />').prepend('<input type="button" value="-" id="minus1" class="minus" />');
549
550						jQuery('.shop_table.cart').stop(true).css('opacity', '1').unblock();
551
552						jQuery('body').trigger('cart_page_refreshed');
553					});
554
555					jQuery('.cart_totals').load( this_page + ' .cart_totals:eq(0) > *', function() {
556						jQuery('.cart_totals').stop(true).css('opacity', '1').unblock();
557					});
558
559					// Trigger event so themes can refresh other areas
560					jQuery('body').trigger( 'added_to_cart', [ fragments, cart_hash ] );
561				}
562			});
563
564			return false;
565
566		} else {
567			return true;
568		}
569		
570	});
571	
572	/* Ajax Filter */
573	
574	function ajaxProductLoad(url,blockId) {
575		jQuery.ajax({
576			url: url,
577			method: 'GET',
578			timeout: 10000,
579			dataType: 'text',
580			success: function(data) {
581				productLoaded(data,blockId);
582				
583			},
584			error: function(data) {
585				alert('Error loading ajax content!');
586				window.location.reload();
587			}
588		});
589	}
590	
591	function productLoaded(data,blockId) {
592		//hide spinner
593		jQuery('.grid_pagination_block').html(jQuery(data).find('.grid_pagination_block').html());
594		jQuery('#'+blockId).html(jQuery(data).find('#'+blockId).html());
595		jQuery('#default_products_page_container').html(jQuery(data).find('#default_products_page_container').html());
596		jQuery('*').css({'cursor':'auto'});
597		jQuery('.product-grid').removeClass('loading').find('#floatingCirclesG').remove();
598        
599        productHover();
600        check_view_mod();
601        listSwitcher();
602        
603	}
604	
605	if(ajaxFilterEnabled == 1) {
606		jQuery('.widget_layered_nav a, .grid_pagination_block .grid_pagination a').live('click', function(event) {
607			var url = jQuery(this).attr('href');
608			if (url == '') {
609				url = jQuery(this).attr('value');
610			}
611            
612            blockId = jQuery(this).parent().parent().parent().attr('id');
613			
614			jQuery('*').css({'cursor':'progress'});
615			jQuery('#default_products_page_container .product-grid').addClass('loading').prepend('<div id="floatingCirclesG"><div class="f_circleG" id="frotateG_01"></div><div class="f_circleG" id="frotateG_02"></div><div class="f_circleG" id="frotateG_03"></div><div class="f_circleG" id="frotateG_04"></div><div class="f_circleG" id="frotateG_05"></div><div class="f_circleG" id="frotateG_06"></div><div class="f_circleG" id="frotateG_07"></div><div class="f_circleG" id="frotateG_08"></div></div>');
616		
617			ajaxProductLoad(url,blockId);
618			event.stopPropagation();
619			return false;
620		});
621	}
622	
623	/* Testimonials Gallery */
624	
625	jQuery('.testimonials-slider').cbpQTRotator();
626	
627	/* Loader */			
628	
629	jQuery("#loader-status").fadeOut().remove(); 
630	jQuery("#loader").delay(300).fadeOut("slow").remove(); 
631	
632	/* ----------------------------------------------------------------------------- */
633
634    jQuery('.more-views-arrow').on("mousedown", function() {event.preventDefault();});
635    
636    /* banners on low resolutions */
637    
638    if (window.innerWidth <= 480) {
639        jQuery('.banner-transform').on("click", function() {
640            console.log('clicked on banner!'); return false;
641        });
642        //    .on("click",function() {jQuery('.banner-transform .mask')})
643    }
644    
645    jQuery('.cloud-zoom').click(function(e){
646	    e.preventDefault();
647    });
648    
649    /* Isotope */
650    
651    $portfolio = jQuery('.masonry');
652    
653
654	
655		$portfolio.isotope({ 
656			itemSelector: '.portfolio-item'
657		});
658    /*jQuery(window).smartresize(function(){
659	});*/
660	
661	jQuery('.portfolio-filters a').click(function(){
662		var selector = jQuery(this).attr('data-filter');
663		jQuery('.portfolio-filters a').removeClass('selected');
664		if(!jQuery(this).hasClass('selected')) {
665			jQuery(this).addClass('selected');
666		}
667		$portfolio.isotope({ filter: selector });
668		return false;
669	});
670	
671	
672	setTimeout(function(){
673		jQuery('.portfolio').addClass('with-transition');
674		jQuery('.portfolio-item').addClass('with-transition');
675	},500);
676    
677	
678    /* Load in view */
679    
680    var progressBars = jQuery('.progress-bar');
681    
682	progressBars.bind('inview', function (event, visible) {
683	  if (visible == true) {
684			
685		  	i = 0;
686			progressBars.each(function () {
687				i++;
688				
689				var el = jQuery(this);
690				var width = jQuery(this).data('width');
691				setTimeout(function(){
692					el.find('div').animate({
693						'width' : width + '%'
694					},300);
695					el.find('span').css({
696						'opacity' : 1
697					});
698				},i*150, "easeOutCirc");
699			
700			});
701	  }
702	});
703    
704    
705}); // End Ready
706/* Product Hover
707-------------------------------------------------------------- */
708
709function showPopup(){
710    html = '<div class="etheme-popup-overlay"></div><div class="etheme-popup"><div class="etheme-popup-content"></div></div>'
711    jQuery('body').prepend(html);
712    popupOverlay = jQuery('.etheme-popup-overlay');
713    popupWindow = jQuery('.etheme-popup');
714    popupOverlay.one('click',function(){
715        hidePopup(popupOverlay,popupWindow);
716    });
717}
718function hidePopup(popupOverlay,popupWindow){
719    popupOverlay.fadeOut(400);
720    popupWindow.fadeOut(400).html('');
721}
722
723function closeParent(el) {
724    jQuery(el).parent().slideUp(100);
725}
726
727function productHover(){
728    jQuery('.img-hided').hover(function(){
729	    if (window.innerWidth > 979) {
730		    jQuery(this).animate({
731			    'opacity' : 1
732		    },200);
733	    }
734    }, function(){
735	    if (window.innerWidth > 979) {
736		    jQuery(this).animate({
737			    'opacity' : 0
738		    },200);
739	    }
740    });
741    imageTooltip(jQuery('.imageTooltip'));
742}
743    
744function check_view_mod(){
745    var activeClass = 'switcher-active';
746    if(jQuery.cookie('products_page') == 'grid') {
747        jQuery('#products-grid').removeClass('products-list').addClass('products-grid');
748        jQuery('.switchToGrid').addClass(activeClass);
749    }else if(jQuery.cookie('products_page') == 'list') {
750        jQuery('#products-grid').removeClass('products-grid').addClass('products-list');
751        jQuery('.switchToList').addClass(activeClass);
752    }else{
753        if(view_mode_default == 'list_grid' || view_mode_default == 'list') {
754            jQuery('.switchToList').addClass(activeClass);
755        }else{
756            jQuery('.switchToGrid').addClass(activeClass);
757        }
758    }
759}
760
761function listSwitcher() {
762    /* Listswitcher
763    -------------------------------------------------------------- */
764    var activeClass = 'switcher-active';
765    var gridClass = 'products-grid';
766    var listClass = 'products-list';
767    jQuery('.switchToList').click(function(){
768        if(!jQuery.cookie('products_page') || jQuery.cookie('products_page') == 'grid'){
769            switchToList();
770        }
771    });
772    jQuery('.switchToGrid').click(function(){
773        if(!jQuery.cookie('products_page') || jQuery.cookie('products_page') == 'list'){
774            switchToGrid();
775        }
776    });
777    
778    function switchToList(){
779        jQuery('.switchToList').addClass(activeClass);
780        jQuery('.switchToGrid').removeClass(activeClass);
781        jQuery('#products-grid').fadeOut(300,function(){
782            jQuery(this).removeClass(gridClass).addClass(listClass).fadeIn(300);
783            jQuery.cookie('products_page', 'list');
784        });
785    }
786    
787    function switchToGrid(){
788        jQuery('.switchToGrid').addClass(activeClass);
789        jQuery('.switchToList').removeClass(activeClass);
790        jQuery('#products-grid').fadeOut(300,function(){
791            jQuery(this).removeClass(listClass).addClass(gridClass).fadeIn(300);
792            jQuery.cookie('products_page', 'grid');
793        }); 
794    }
795}
796
797function hideLightbox(){
798	setTimeout(function(){
799		jQuery('.pp_woocommerce').remove();
800		jQuery('.pp_overlay').remove();
801	}, 1);	
802}

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.