PageSourceSearch

https://www.thalgo.co.uk/site/templates/defaut/front/javascript/index_index.js?v=1708540609

js thalgo.co.uk collected 2026-10-04 13:32:36 UTC 3,091 bytes, 113 lines download raw bytes

1$(document).ready(function() {
2	// Carrousel Accueil
3	$('.carrousel .owl-carrousel').owlCarousel({
4		loop: false,
5		rewind: true,
6		autoplay : true,
7		lazyLoad : true,
8		items : 1,
9		nav : true,
10		dots : true
11	});
12
13	$('.owl-products-cultes').owlCarousel({
14		loop : $(this).length > 1 ? true : false,
15		autoplay : true,
16		loop: true,
17		nav : false,
18		dots : true,
19	    responsive : {
20	        0 : {
21	            items : 1
22	        },
23	        767 : {
24	            items : 2
25	        },
26	        991 : {
27	            items : 3
28	        },
29	        1199 : {
30	            items : 4
31	        }
32	    }
33	});
34
35	if($(window).width() < 992) {
36
37	var owlculte =  $('.owl-products-cultes');
38	owlculte.on('changed.owl.carousel', function(event) {
39
40			$('.owl-products-cultes .owl-dots .owl-dot.active').find('span').css('background', '#006072');
41			$('.owl-products-cultes .owl-dots .owl-dot.active').prevAll('.owl-dot').find('span').css('background', '#006072');
42			$('.owl-products-cultes .owl-dots .owl-dot.active').nextAll('.owl-dot').find('span').css('background', '#61b0bc');
43
44			$('.owl-products-cultes .owl-nav').empty();
45			$('.owl-products-cultes .owl-nav').removeClass('disabled');
46			$('.owl-products-cultes .owl-nav').css('display', 'block');
47		var avant = $('.owl-products-cultes .owl-dots .owl-dot.active').prevAll('.owl-dot').length + 1;
48		var items = $('.owl-products-cultes .owl-dots .owl-dot').length;
49		$('.owl-products-cultes .owl-nav').html(avant + "/" + items );
50		
51	});
52}
53
54
55
56	// Bannières parralaxes
57	$('.parallax-window').parallax({
58		imageSrc : $(this).data('image-src')
59	});
60
61/*
62	$('.parallax-window').each(function() {
63		$(this).css('background-image', 'url(' + $(this).data('image-src') + ')');
64	});
65*/
66
67  $('.js-modal-btn').css('cursor', 'pointer');
68	$('.js-modal-btn').modalVideo({'autoplay': 1, 'rel': 0});
69	$('.js-vimeo-modal-push').modalVideo({'channel': 'vimeo', 'controls': false, 'autoplay': true,'modalVideoIframeWrap': 'modal-video-movie-wrap-push'});
70
71	$('.nav-marketing').on('click', function() {
72		var clicked = $(this).data('marketing');
73		$('.nav-marketing').removeClass('active');
74		$(this).addClass('active');
75		$('.owl-products-bloc').removeClass('active');
76		$('.owl-products-bloc.' + clicked).addClass('active');
77	});
78
79	if($('#popup_newsletter').length > 0) {
80		console.log('ouiiiiii');
81		var dialog = bootbox.dialog({
82			message: $('#popup_newsletter_contenu').html(),
83			className: "popnews"
84		});
85	}
86	//wait for element click action to be binded
87	onHashChange();
88	$('.nav-marketing.active').click();
89
90	$('.owl-carousel-item > a').on('click', function(e) { 
91		var this_id = $(this).attr("id");
92		var target = $(this).attr("target");
93		if (typeof this_id !== "undefined")
94		{
95		e.preventDefault();	
96		var link = $(this).attr('href');
97		$.ajax({
98			type		: "GET",
99			url			: "/",
100			data	: "carousel_id="+this_id,
101			success		: function(data) {
102				//window.location.replace(link);
103
104				window.open(link, target);
105			},
106		});
107	}
108 });
109
110});
111
112
113

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.