PageSourceSearch

https://www.cab-solange-beauchamp.com/client_file/themes/default/javascript/javascript.js?rand=653587

js cab-solange-beauchamp.com collected 2026-10-04 13:39:04 UTC 13,129 bytes, 384 lines download raw bytes

1$(document).ready(function(){
2
3    //Augmenter/diminuer la taille du texte                          accueil
4    var fontsize = 100;
5
6    $("#TextTransform #BigText").click(function(){
7        fontsize = fontsize+15;
8        $('.container_content').css("font-size", fontsize+"%", "!important");
9        $('.container_content p').css("font-size", fontsize+"%", "!important");
10        $('.container_content a').css("font-size", fontsize+"%", "!important");
11        $('.container_content h1').css("font-size", fontsize+"%", "!important");
12        $('.container_content h2').css("font-size", fontsize+"%", "!important");
13        $('.container_content h3').css("font-size", fontsize+"%", "!important");
14        $('.container_content h4').css("font-size", fontsize+"%", "!important");
15        $('.container_content h5').css("font-size", fontsize+"%", "!important");
16        $('.container_content h6').css("font-size", fontsize+"%", "!important");
17
18        $('#accueil').css("font-size", fontsize+"%", "!important");
19        $('#accueil p').css("font-size", fontsize+"%", "!important");
20        $('#accueil a').css("font-size", fontsize+"%", "!important");
21        $('#accueil h1').css("font-size", fontsize+"%", "!important");
22        $('#accueil h2').css("font-size", fontsize+"%", "!important");
23        $('#accueil h3').css("font-size", fontsize+"%", "!important");
24        $('#accueil h4').css("font-size", fontsize+"%", "!important");
25        $('#accueil h5').css("font-size", fontsize+"%", "!important");
26        $('#accueil h6').css("font-size", fontsize+"%", "!important");
27    });
28     
29    $("#TextTransform #SmallText").click(function(){
30        fontsize = fontsize-15;
31        $('.container_content').css("font-size", fontsize+"%", "!important");
32        $('.container_content p').css("font-size", fontsize+"%", "!important");
33        $('.container_content a').css("font-size", fontsize+"%", "!important");
34        $('.container_content h1').css("font-size", fontsize+"%", "!important");
35        $('.container_content h2').css("font-size", fontsize+"%", "!important");
36        $('.container_content h3').css("font-size", fontsize+"%", "!important");
37        $('.container_content h4').css("font-size", fontsize+"%", "!important");
38        $('.container_content h5').css("font-size", fontsize+"%", "!important");
39        $('.container_content h6').css("font-size", fontsize+"%", "!important");
40
41        $('#accueil').css("font-size", fontsize+"%", "!important");
42        $('#accueil p').css("font-size", fontsize+"%", "!important");
43        $('#accueil a').css("font-size", fontsize+"%", "!important");
44        $('#accueil h1').css("font-size", fontsize+"%", "!important");
45        $('#accueil h2').css("font-size", fontsize+"%", "!important");
46        $('#accueil h3').css("font-size", fontsize+"%", "!important");
47        $('#accueil h4').css("font-size", fontsize+"%", "!important");
48        $('#accueil h5').css("font-size", fontsize+"%", "!important");
49        $('#accueil h6').css("font-size", fontsize+"%", "!important");
50    });
51
52    // Formulaire de contact flottant
53    $("#contactUs-tab").click(function() {
54        $("#request-contactUs").toggleClass("visible");
55    });
56
57    $(".contactUs-close").click(function() {
58        $("#request-contactUs").removeClass("visible");
59    });
60
61	//validate required checkbox
62	$('#jq_validate_checkbox').click(function() {
63	      checked = $("input.required_checkbox:checkbox:checked").length;
64
65	      if(!checked) {
66	        alert("Cochez les cases obligatoire.");
67	        return false;
68	      }
69	});
70
71    /*
72    $("a[rel^='prettyPhoto']").prettyPhoto({
73        animationSpeed: 'normal',
74        opacity: 0.80,
75        deeplinking: false,
76        allow_resize: true, /* Resize the photos bigger than viewport. true/false */
77       /* default_width: 500,
78        default_height: 344,
79        showTitle: true,
80        social_tools: ''
81   });
82    */
83        /*------------------PAGINATION----------------*/
84    var show_per_page = 10;
85    var number_of_items = $('#wrapper_list_cab').children('.list_cab').size();
86    var number_of_pages = Math.ceil(number_of_items / show_per_page);
87
88    $('#current_page').val(0);
89    $('#show_per_page').val(show_per_page);
90
91    var navigation_html = '<a class="prev" onclick="previous()">Précedent</a>';
92    var current_link = 0;
93    while (number_of_pages > current_link) {
94        navigation_html += '<a class="page" onclick="go_to_page(' + current_link + ')" longdesc="' + current_link + '">' + (current_link + 1) + '</a>';
95        current_link++;
96    }
97    navigation_html += '<a class="next" onclick="next()">Suivant</a>';
98
99    $('.controls_pagination').html(navigation_html);
100    $('.controls_pagination .page:first').addClass('active');
101
102    $('#wrapper_list_cab').children().css('display', 'none');
103    $('#wrapper_list_cab').children().slice(0, show_per_page).css('display', 'block');    
104    
105
106    
107        
108    $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) {
109		event.preventDefault(); 
110		event.stopPropagation(); 
111		$(this).parent().siblings().removeClass('open');
112		$(this).parent().toggleClass('open');
113	});    
114    $("#mobile_spc_menu_btn").click(function(e){
115        $(this).toggleClass("Active");
116        $("#menu_spc").slideToggle("fast");
117        e.preventDefault();
118    });   
119
120    /*
121    $("#main_slider").owlCarousel({
122        autoPlay : 6000,
123        stopOnHover : true,
124        navigation:true,
125        pagination:false,
126        paginationSpeed : 1000,
127        goToFirstSpeed : 2000,
128        singleItem : true,
129        autoHeight : true,
130        navigationText: [
131           "<i class='fa fa-chevron-left'></i>",
132           "<i class='fa fa-chevron-right'></i>"
133        ],
134        transitionStyle:"fade"
135    });
136
137
138    $("#partenaire_slider").owlCarousel({
139        autoPlay: 6000,
140        stopOnHover : true,
141        navigation: true,
142        pagination: false,
143        paginationSpeed: 2000,
144        goToFirstSpeed: 3000,
145        singleItem : false,
146        autoHeight : false,
147        items: 5,
148        itemsDesktop : [1200, 5],
149        itemsTablet: [1000, 3],
150        navigationText: [
151           "<i class='fa fa-chevron-left'></i>",
152           "<i class='fa fa-chevron-right'></i>"
153        ],
154        transitionStyle:"fade"
155    });
156    */
157    $("#partenaire_slider2").owlCarousel({
158        autoPlay: 6000,
159        stopOnHover: true,
160        navigation: true,
161        pagination: false,
162        paginationSpeed : 1000,
163        goToFirstSpeed : 2000,
164        singleItem : false,
165        autoHeight : true,
166        items:4,
167        navigationText: [
168           "<i class='fa fa-chevron-left'></i>",
169           "<i class='fa fa-chevron-right'></i>"
170        ],
171        transitionStyle:"fade"
172    });
173
174    $("#videos_slider").owlCarousel({
175        autoPlay : 6000,
176        stopOnHover : true,
177        navigation:true,
178        pagination:false,
179        paginationSpeed : 1000,
180        goToFirstSpeed : 2000,
181        singleItem : false,
182        items: 5,
183        autoHeight : true,
184        navigationText: [
185           "<i class='fa fa-chevron-left'></i>",
186           "<i class='fa fa-chevron-right'></i>"
187        ],
188        transitionStyle:"fade"
189    });
190
191	/* ================ Show Login box. ================ */
192	$('.login-btn').prepend('<b class="tri hidden"></b>');
193	$('.login-btn').click(function(e){	    
194		e.preventDefault();
195        $(this).toggleClass('active_hd');
196		$('.login-box').slideToggle();
197		$('.login-btn').find('.tri').toggleClass('visible');
198		$('.close-login').click(function(e){
199			e.preventDefault();
200            $('.login-btn').toggleClass('active_hd');
201			$('.login-box').slideUp();
202			$('.login-btn').find('.tri').removeClass('visible');
203		});
204	}); 
205    
206     
207	/* ================ Back to top button. ================ */
208	var winScroll = $(window).scrollTop();
209	if (winScroll > 1) {
210		$('#to-top').css({bottom:"10px"});
211	} else {
212		$('#to-top').css({bottom:"-100px"});
213	}
214	$(window).on("scroll",function(){
215		winScroll = $(window).scrollTop();
216		
217		// PARALLAX background Animation.
218		var y = parseInt($('.parallax').css('background-position-y'));
219		var newY = -(winScroll * 0.05) + 'px';
220		$('.parallax').css("background-position-y",newY);
221
222		
223		//  Show Hide back to top button.
224		if (winScroll > 1) {
225			$('#to-top').css({opacity:1,bottom:"10px"});
226		} else {
227			$('#to-top').css({opacity:0,bottom:"-100px"});
228		}
229	});
230    
231    
232	$('#to-top').click(function(){
233		$('html, body').animate({scrollTop: '0px'}, 800);
234		return false;
235	});
236    
237    
238    
239    
240    	/* ================ Show Hide Search box. ================ */
241        /*
242        	$('.top-search a').click(function(){
243        		if($(this).parent().find('.search-box').is(':visible')){
244        			$('.search-box').fadeOut(300);
245        			$(this).parent().removeClass('selected');
246        			return false;
247        		}else{
248        			$('.search-box').fadeIn(300);
249        			$(this).parent().addClass('selected');
250        			return false;
251        		}
252        	});
253        	$(document).mouseup(function(e){
254        		if($('.search-box').is(':visible')){
255        			var targ = $(".search-box");
256        			if (!targ.is(e.target) && targ.has(e.target).length === 0){
257        			$('.search-box').fadeOut(300);
258        			$('.top-search').removeClass('selected');
259        			}
260        		}
261        	});
262        */
263    /*
264    $( function() {
265        $( ".accordion" ).accordion({
266          heightStyle: "content",
267          collapsible: true,
268          active: false
269        });
270      } );
271    */
272
273    
274    	/* ================ Album Photos ================ */
275    $(".filter-button").click(function(){
276        var value = $(this).attr('data-filter');
277        
278        if(value == "all")
279        {
280            //$('.filter').removeClass('hidden');
281            $('.filter').show('1000');
282        }
283        else
284        {
285        //  $('.filter[filter-item="'+value+'"]').removeClass('hidden');
286        //  $(".filter").not('.filter[filter-item="'+value+'"]').addClass('hidden');
287            $(".filter").not('.'+value).hide('3000');
288            $('.filter').filter('.'+value).show('3000');
289            
290        }
291    });
292    
293    if ($(".filter-button").removeClass("active")) {
294        $(this).removeClass("active");
295    }
296    $(this).addClass("active");
297
298    /*animation load*/
299    new WOW().init(); 
300    
301
302    //Sticky Nav
303    // When the user scrolls the page, execute stickyNav
304
305
306    // Get the navbar
307    var navbar = document.getElementById("menu_principal");
308    if(navbar) {
309        window.onscroll = function() {stickyNav()};
310        var logo = document.getElementById("logo_sticky_nav");
311        var change_lang = document.getElementById("changeLang_sticky_nav");
312        // Get the offset position of the navbar
313        var sticky = navbar.offsetTop;
314    }
315
316    // Add the sticky class to the navbar when you reach its scroll position.
317    // Remove "sticky" when you leave the scroll position
318    function stickyNav() {
319        if (window.pageYOffset >= sticky) {
320            navbar.classList.add("sticky");
321            logo.classList.add("sticky_nav_logo");
322
323            if (logo.style.display === "none"){
324                logo.style.display = "table-cell";
325            }
326
327            /*if (change_lang.style.display === "none"){
328                change_lang.style.display = "table-cell";
329            }*/
330        } else {
331            navbar.classList.remove("sticky");
332            logo.classList.remove("sticky_nav_logo");
333
334            if (logo.style.display === "table-cell"){
335                logo.style.display = "none";
336            }
337
338            if (change_lang.style.display === "table-cell"){
339                change_lang.style.display = "none";
340            }
341        }
342    }
343        
344});
345
346
347
348function go_to_page(page_num) {
349    var show_per_page = parseInt($('#show_per_page').val(), 0);
350    start_from = page_num * show_per_page;
351    end_on = start_from + show_per_page;
352    $('#wrapper_list_cab').children().css('display', 'none').slice(start_from, end_on).css('display', 'block');
353    $('.page[longdesc=' + page_num + ']').addClass('active').siblings('.active').removeClass('active');
354    $('#current_page').val(page_num);
355}
356function previous() {
357    new_page = parseInt($('#current_page').val(), 0) - 1;
358    //if there is an item before the current active link run the function
359    if ($('.active').prev('.page').length == true) {
360        go_to_page(new_page);
361    }
362}
363function next() {
364    new_page = parseInt($('#current_page').val(), 0) + 1;
365    //if there is an item after the current active link run the function
366    if ($('.active').next('.page').length == true) {
367        go_to_page(new_page);
368    }
369}
370
371function toggle_tuile(tuile_id){
372	$('.fix_tuile_height').removeClass('tuile_active');
373	$('#tuile_'+tuile_id).addClass('tuile_active');
374	$('.tuile_detail').hide("fade");
375	$('#tuile_detail_'+tuile_id).show("fade");
376}
377
378jQuery(function($){
379    //$("#date").mask("99/99/9999");
380    $(".mask_phone_full").inputmask("(999) 999-9999 #9999");
381    $(".mask_phone").inputmask("(999) 999-9999");
382    $(".mask_postcode").inputmask("a9a 9a9");
383    //$(".mask_courriel").mask("999-99-9999");
384});

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.