PageSourceSearch

https://boutique.classequine.com/themes/classic-rocket-child/assets/js/custom.js?v=

js classequine.com collected 2026-10-02 11:47:47 UTC 5,195 bytes, 191 lines download raw bytes

1/*
2 * Custom code goes here.
3 * A template should always ship with an empty custom.js
4 */
5
6// liens obfusqués 
7$(document).on('click', '[data-link]', function(event){
8
9    if(event.ctrlKey || event.metaKey) { 
10        var newWindow = window.open(decodeURIComponent(window.atob($(this).data('link')), '_blank'));                    
11        newWindow.focus();  
12    }else{
13        window.location.href = decodeURIComponent(window.atob($(this).data('link')));
14    }
15});
16$('body').on('change keyup', '#qquantity_wanted', (e) => {
17            $(e.currentTarget).trigger('touchspin.stopspin');
18            prestashop.emit('updateProduct', {
19                eventType: 'updatedProductQuantity',
20                event: e
21            });
22        });
23$(document).ready(function () {
24	
25if (window.innerWidth < 769   ) {
26	$('.tab-pane').removeClass('open');
27	$('#description').addClass('open');
28	
29	$('.tab-pane .h2').on('click',function(){console.log('test');
30		if($(this).parents('.tab-pane').hasClass('open')){
31			$(this).parents('.tab-pane').removeClass('open');
32			
33		}else{
34			$(this).parents('.tab-pane').addClass('open');
35		}
36	});
37	
38}
39
40$(document).on('click', '#checkout #show-guest-form', function(){ console.log('test');
41        $('#checkout #guest-form-wrapper').removeClass('d-none'); 
42        $('#checkout #customer-form-wrapper').addClass('d-none'); 
43    });
44    if( $('#carousel').length )
45    {
46    $('#carousel').slick({
47	  dots: false,
48	  infinite: true,
49	  speed: 1000,fade: true,
50	   autoplaySpeed: 4000,
51	  slidesToShow: 1,
52	  slidesToScroll: 1,
53	  autoplay:true,	
54	  arrows:true
55	});
56	}
57
58    // DIVIOSEO - 18/05/2021 - AFFICHAGE DU LOGO ONEY
59	if( $('#product .product-actions').length )
60    {
61		if( $('#tf_multiple_product').length )
62		{
63			
64			var enable_oney = false;
65			var oney = $('.payplugOneyCta_wrapper'),
66				oney_btn = $('.payplugOneyCta_button'),
67				price = $('#tf_multiple_product tbody .combination-line .price-value'),
68				declinaisons = price.length;
69			console.log( declinaisons );
70			
71			if( declinaisons == 1)
72			{
73				var str = $.trim($('#tf_multiple_product tbody .combination-line .price-value').text()),
74					str = str.replace(' ', ''),
75					str = str.replace(',', '.'),
76					str = str.replace('€', ''),
77					prix =Number( parseInt(str) );
78				if( prix > 100 ){
79					enable_oney = true; 
80				}else{
81					oney.hide();
82					console.log( 'oney masqué' );
83					return false;
84				}
85			}else{
86				price.each(function( index ) {
87					var str = $.trim($(this).text()),
88						str = str.replace(' ', ''),
89						str = str.replace(',', '.'),
90						str = str.replace('€', ''),
91						prix =Number( parseInt(str) );
92					console.log(declinaisons +' - '+ prix );
93					if( declinaisons == 1 && prix < 100 )
94					{
95						oney.hide();
96						console.log( 'oney masqué' );
97						return false;
98					}
99					else if( declinaisons > 1 && prix > 100 )
100					{
101						enable_oney = true;
102						
103					}
104				});
105			}
106			
107			if( !enable_oney ){ 
108				oney.hide(); 
109				//.addClass('oneyCta_button-disabled');
110				oney_btn.removeClass('oneyCta_button-disabled').addClass('-disabled');
111				console.log( 'oney gris' );
112			
113			}else{  
114				oney_btn.removeClass('-disabled'); 
115				console.log( 'oney vert' );
116			}
117		}else{
118			
119			var str = $.trim($('.product-actions .price').text()),
120				str = str.replace(' ', ''),
121					str = str.replace(',', '.'),
122					str = str.replace('€', ''),
123					prix =Number( parseInt(str) );
124			 if( prix < 100 )
125				{
126					$('.payplugOneyCta_wrapper').hide();
127					console.log( 'oney masqué' );
128					 
129				}else{ 
130				
131					$('.payplugOneyCta_button').removeClass('-disabled'); 
132					console.log( 'oney vert' );
133				}		
134				
135		}
136	}
137		
138}); 
139	function avv_widget_click() {
140        if ($('.netreviews_tab').length) { //prestashop 1.7
141		
142            if ($('#netreviews_tab').length) {
143                $("#netreviews_tab").click();
144                $('html,body').animate({
145                    scrollTop: $("#netreviews_tab").offset().top
146                }, 'slow');
147            } else {
148				
149				
150				var tagclassname_av = $('.netreviews_tab').attr('id');
151					console.log(tagclassname_av);
152					
153	
154				if (window.innerWidth < 769   ) {
155					//$("#" + tagclassname_av + " .h2").trigger('click');
156					
157					if($("#" + tagclassname_av).hasClass('open')){
158						$("#" + tagclassname_av).removeClass('open'); 
159					}else{
160						$("#" + tagclassname_av).addClass('open');
161					}
162					
163				}else{
164					
165					$("a[href='#" + tagclassname_av + "']").click();
166					$('html,body').animate({
167						scrollTop: $("a[href='#" + tagclassname_av + "']").offset().top
168					}, 'slow');
169				}
170            }
171        } else {
172            
173			console.log('av else');
174                
175			
176			$("a[href='#netreviews_reviews_tab']").click();
177            $('html,body').animate({
178                scrollTop: $("#netreviews_reviews_tab").offset().top
179                // scrollTop: $(".avisverifies_tab").offset().top
180            }, 'slow');
181        }
182
183    }
184
185    $(document).ready(function () {
186        $(document).on("click","div.product-additional-info div.skeepers_product__stars", function () {
187			console.log('click');
188           avv_widget_click();
189		   return false;
190        });
191    });

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.