1$(document).ready(function(){ 2 3 /* Comportement Rollover avec class="rollover" */ 4 $("img.rollover").each(function(){ 5 attachRollOverEvent(this); 6 }); 7 8 /* Remplacement image actif avec class="actif" */ 9 $("img.actif").each( function(){ 10 attachActif(this); 11 }); 12 13 /* Fancybox Propriétés */ 14 $("a.fancy").fancybox({ 'overlayShow': true, 'overlayOpacity': 0.70, 'hideOnContentClick': true }); 15 $("a#fenetre").fancybox({ 'overlayShow': true, 'zoomSpeedOut':0, 'zoomSpeedIn':0, 'overlayOpacity': 0.70, 'hideOnContentClick': true }); 16 $("a.fancyCoupon").fancybox({ 'overlayShow': true, 'zoomSpeedOut':0, 'zoomSpeedIn':0, 'overlayOpacity': 0.70, 'hideOnContentClick': true }); 17 $("a.fancyVideo").fancybox({ 'overlayShow': true, 'zoomSpeedOut':0, 'zoomSpeedIn':0, 'overlayOpacity': 0.70, 'hideOnContentClick': true, 'width':850, 'height':641, 'type': 'iframe', 'scrolling' : 'no', 'padding':0 }); 18 $("a.fancy360").fancybox({ 'overlayShow': true, 'zoomSpeedOut':0, 'zoomSpeedIn':0, 'overlayOpacity': 0.70, 'hideOnContentClick': true, 'width':850, 'height':641, 'type': 'iframe', 'scrolling' : 'no', 'padding':0 }); 19 20 21 $("p#langues a").bind("click",function(){ 22 $("#languesPays").slideToggle(); 23 }); 24 25 26 27 /* GESTION DU MENU MOBILE */ 28 29 var deplieMM=false; 30 31 $('#launchMenuMobile').bind("click",function(e){ 32 console.log("click"); 33 if(deplieMM==false){ 34 $("#contentMenuMobile").show(); 35 $("#contentMenuMobile").css('height',$("body").height()); 36 e.preventDefault(); 37 deplieMM=true; 38 }else{ 39 $("#contentMenuMobile").hide(); 40 deplieMM=false; 41 } 42 e.preventDefault(); 43 }); 44 45 $('#closemm').bind('click',function(e){ 46 $("#contentMenuMobile").hide(); 47 deplieMM=false; 48 e.preventDefault(); 49 }); 50 51 $("#menuPrincipal ul li a.decBulle").each(function(){ 52 /*var tempoHover; //tempo pour hover */ 53 $(this).hover(function(){ 54 if($("span#fixResponsive").width()<4)$(this).parent().parent().parent().find('.bulle').eq($(this).parent().index()).show(); 55 if($("span#fixResponsive").width()<4)$(this).addClass("actifDec"); 56 }, 57 function(){ 58 var aDisparaitre = $(this); 59 if($("span#fixResponsive").width()<4) timeObjet = setTimeout(function(){ 60 //console.log("FIN DU TIMER : GONE FOR EVER"); 61 aDisparaitre.removeClass("actifDec"); 62 aDisparaitre.parent().parent().parent().find('.bulle').eq(aDisparaitre.parent().index()).hide(); 63 }, 250); 64 }); 65 }); 66 67 $("img#icone").hover(function(){ 68 $("img#legendeAffiche").show(); 69 },function(){ 70 $("img#legendeAffiche").hide(); 71 }); 72 73 $("div.bulle").each(function(){ 74 $(this).hover(function(){ 75 clearTimeout(timeObjet); 76 }, function(){ 77 $(this).parent().find('ul').find('li').eq($(this).index()).find('a.decBulle').removeClass("actifDec"); 78 $(this).hide(); 79 }); 80 }); 81 82 /* MAGNIFIC POPUP */ 83 $('.zoom-img').magnificPopup({type:'image'}); 84 85 /* ----- GESTION BARRE MENU FIXE AU SCROLL -------- */ 86 87 var tabCarac = document.querySelector("#tabCarac"); 88 89 posMenu = $("#menuPrincipal").position(); 90 if(tabCarac){ 91 posTable = tabCarac.getBoundingClientRect(); 92 posTableTop = posTable.top; 93 } 94 var isDisabledFixedMenu = document.querySelector(".js__disable-fixedMenu"); 95 96 /* GESTION ELEMENTS AU SCROLL */ 97 $(window).scroll(function () { 98 99 newDataScroll = $(window).scrollTop(); 100 101 if(!isDisabledFixedMenu){ 102 103 if(newDataScroll>=posMenu.top&&$("span#fixResponsive").width()<4){ 104 $("body").addClass("glueMenu"); 105 }else{ 106 $("body").removeClass("glueMenu"); 107 } 108 109 }else{ 110 111 if(newDataScroll>=posTableTop&&$("span#fixResponsive").width()<4){ 112 $("body").addClass("glue-fixed-table-menu"); 113 }else{ 114 $("body").removeClass("glue-fixed-table-menu"); 115 } 116 117 } 118 119 120 //console.log("You've scrolled " + $(window).scrollTop() + " pixels"); 121 dataScroll = newDataScroll; 122 123 }); 124 125 126}); /* fin doc ready */ 127 128$(window).load(function(){ 129 $("#pageHC .from-concess img").each(function(){ 130 var widthImg = $(this).width(); 131 if(widthImg>400) $(this).addClass("limitWidth"); 132 }); 133}); 134 135 136 137/* ======== Fonctions ========================================================================== */ 138
139/* Comportement Rollover avec class="rollover" */ 140attachRollOverEvent = function(imageId){ 141 $(imageId).mouseover( function(){ $(this).attr("src", $(this).attr("src").replace('.','_roll.')) } ); 142 $(imageId).mouseout( function(){ $(this).attr("src", $(this).attr("src").replace('_roll','')) } ); 143} 144 145/* Change image pour les "actif" */ 146attachActif = function(imageId){ 147 $(imageId).attr("src", $(imageId).attr("src").replace('.','_roll.')); 148} 149 150/* Impression des documents */ 151function imprimer(){ 152 if(window.print) window.print(); 153 else alert("Désolé mais votre navigateur ne supporte pas cette fonctionnalité. Pour la plupart des navigateurs, vous pouvez imprimer cette page en allant dans le menu 'Fichier' > 'Imprimer'"); 154} 155 156/* Ajouter aux favoris */ 157 158function favoris() { 159if ( navigator.appName != 'Microsoft Internet Explorer' ) 160{ window.sidebar.addPanel("le nom du site","http://www.tonsite.com",""); } 161else { window.external.AddFavorite("http://www.tonsite.com","le nom du site"); } }
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.