1$(document).ready(function(){ 2 3 //Scroll anchor 4 $( "a.scrollLink" ).click(function( event ) { 5 event.preventDefault(); 6 $("html, body").animate({ scrollTop: $($(this).attr("href")).offset().top }, 1000); 7 }); 8 9 //Scroll to top 10 $("a[href='#top']").click(function() { 11 $("html, body").animate({ scrollTop: 0 }, "slow"); 12 return false; 13 }); 14 15 //Menu left 16 $('.menu-open').click(function(){ 17 classie.toggle( this, 'active' ); 18 classie.toggle( document.getElementById( 'cbp-spmenu' ), 'cbp-spmenu-open' ); 19 }); 20 $('#close-menu').click(function(){ 21 classie.toggle( document.getElementsByClassName( 'menu-open')[0] , 'active' ); 22 classie.toggle( document.getElementById( 'cbp-spmenu' ), 'cbp-spmenu-open' ); 23 }); 24 25 //Taille hr verticale slider / page 26 $('#entete-page hr.verticale').css('height', $('#entete-page').height() - $('.titre-page').height() - $('.logo').height() - 100).css('top', $('.logo').height() + 20); 27 $('#carousel hr.verticale').css('height', $('#carousel').height() - $('.carousel-caption').height() - $('.logo').height() - 100).css('top', $('.logo').height() + 20); 28 29 //Banner lien mobile app 30 if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { 31 $('.app-banner').each(function() { 32 var $this = $(this); 33 var closeButton = $this.find('.close'); 34 var appleLink = $this.data('link-apple'); 35 var googleLink = $this.data('link-google'); 36 $('body').css('padding-top','84px'); 37 38 closeButton.on('click', function(event) { 39 event.stopPropagation(); // Stop event propagation to prevent triggering the parent's click event 40 $this.removeClass('d-flex'); 41 $('body').css('padding-top','0px'); 42 $this.hide(); 43 }); 44 45 $this.on('click', function() { 46 var userAgent = navigator.userAgent || navigator.vendor || window.opera; 47 var appLink; 48 49 if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) { 50 appLink = appleLink; 51 } else { 52 appLink = googleLink; 53 } 54 55 if (appLink) { 56 window.location.href = appLink; 57 } 58 }); 59 }); 60 } 61 62 63 64}); 65 66$( window ).resize(function() { 67 $('#entete-page hr.verticale').css('height', $('#entete-page').height() - $('.titre-page').height() - $('.logo').height() - 100).css('top', $('.logo').height() + 20); 68 $('#carousel hr.verticale').css('height', $('#carousel').height() - $('.carousel-caption').height() - $('.logo').height() - 100).css('top', $('.logo').height() + 20); 69}); 70 71//Scroll to top 72$(window).scroll(function(){ 73 if($(window).scrollTop()<500){ 74 $('.toptop').fadeOut(); 75 } else{ 76 $('.toptop').fadeIn(); 77 } 78}); 79 80//Parallax sur images 81var images = document.getElementsByClassName('img-parallax'); 82if (images.length > 0) { 83 new simpleParallax(images); 84} 85$("figure.img-parallax, ul.img-parallax").each(function() { 86 var $this = $(this); 87 var image = $this.find('img').addClass('img-parallax'); 88 if (image.length > 0) { 89 new simpleParallax(image); 90 } 91}); 92
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.