1$(document).ready(function(){ 2 3 4 5 6 /* Comportement Rollover avec class="rollover" */ 7 $(".rollover").each(function(){ 8 attachRollOverEvent(this); 9 }); 10 11 $.mlp ={x:0,y:0};function documentHandler(){var $current =this=== document ? $(this): $(this).contents(); $current.mousemove(function(e){jQuery.mlp ={x:e.pageX,y:e.pageY}}); $current.find("iframe").load(documentHandler);}$(documentHandler); $.fn.ismouseover =function(overThis){var result =false;this.eq(0).each(function(){var $current = $(this).is("iframe")? $(this).contents().find("body"): $(this);var offset = $current.offset(); result 12 13 result = offset.left<=$.mlp.x && offset.left + $current.outerWidth()> $.mlp.x && offset.top<=$.mlp.y && offset.top + $current.outerHeight()> $.mlp.y;});return result;}; 14 15 16 /* Fancybox Propriétés */ 17 $("a.fancy").fancybox({ 'overlayShow': true, 'overlayOpacity': 0.70, 'hideOnContentClick': true }); 18 $("a#fenetre").fancybox({ 'overlayShow': true, 'zoomSpeedOut':0, 'zoomSpeedIn':0, 'overlayOpacity': 0.70, 'hideOnContentClick': true }); 19 20 /* SCRIPT GESTION LOGIN ACCUEIL */ 21 22 $("#navAccess a.launch").bind("click",function(e){ 23 if(!$(this).hasClass(".launchActif")){ 24 25 if($(this).hasClass("l-compta")){ 26 $("#zonePaie").fadeOut("fast",function(){$("#zoneComptabilite").fadeIn("fast");}); 27 $("#navAccess a.launch").removeClass("launchActif"); 28 $(this).addClass("launchActif"); 29 }else{ 30 $("#zoneComptabilite").fadeOut("fast",function(){$("#zonePaie").fadeIn("fast");}); 31 $("#navAccess a.launch").removeClass("launchActif"); 32 $(this).addClass("launchActif"); 33 } 34 35 } 36 e.preventDefault(); 37 }) 38 39 40 /* ------ FIN GESTION LOGIN ACCUEIL ------ */ 41 42 43 /* GESTION DU MENU MOBILE */ 44 45 var deplieMM=false; 46 47 $('#launchMenuMobile').bind("click",function(e){ 48 if(deplieMM==false){ 49 $("#contentMenuMobile").show(); 50 $("#encaps").css('width',$("#encaps").width()); 51 $("#contentMenuMobile").css('height',$("#encaps").height()); 52 $("#encaps").animate({left: "90%"}, 300); 53 deplieMM=true; 54 }else{ 55 $("#contentMenuMobile").css('border-left','none'); 56 $("#encaps").css('width','100%'); 57 $("#encaps").animate({left: "0"}, 300); 58 $("#contentMenuMobile").hide(); 59 deplieMM=false; 60 } 61 e.preventDefault(); 62 }); 63 64 $('#closemm').bind('click',function(e){ 65 $("#encaps").css('width','100%'); 66 $("#encaps").animate({left: "0"}, 300); 67 deplieMM=false; 68 $("#contentMenuMobile").hide(); 69 e.preventDefault(); 70 }); 71 72 /* sous menus nav */ 73 74 $("#contentMenuMobile div.dev:not(.actif)").hide(); 75 $("#contentMenuMobile a.titre").bind('click',function(e){ 76 $(this).next().toggle(); 77 $(this).toggleClass('titreActif'); 78 e.preventDefault(); 79 }); 80 81 /* ------------------------- */ 82 83 $('#body table tr:odd').addClass("odd"); 84 85 $('input#search_header').bind('click',function(){ 86 if($(this).val()=='Recherche par mot clé')$(this).val(''); 87 }).bind("blur",function() { 88 if($(this).val()=='')$(this).val('Recherche par mot clé'); 89 }); 90 91 if($("span#fixResponsive").width()>=4){ 92 $( "#coordmob" ).append( $( "#linksHeader a" ) ); 93 $( "#coordmob" ).append( $( "#linksHeader form" ) ); 94 } 95 96 $( window ).resize(function() { 97 if($("span#fixResponsive").width()>=4){ 98 $( "#coordmob" ).append( $( "#linksHeader a" ) ); 99 } 100 if($("span#fixResponsive").width()<4){ 101 $( "#linksHeader" ).append( $( "#coordmob a" ) ); 102 } 103 }); 104 105 106}); /* fin doc ready */ 107 108 109/* ======== Fonctions ========================================================================== */ 110 111/* Comportement Rollover avec class="rollover" */ 112attachRollOverEvent = function(imageId){ 113 $(imageId).mouseover( function(){ $(this).attr("src", $(this).attr("src").replace('.','_roll.')) } ); 114 $(imageId).mouseout( function(){ $(this).attr("src", $(this).attr("src").replace('_roll','')) } ); 115} 116 117 118 119/* Impression des documents */ 120function imprimer(){ 121 if(window.print) window.print(); 122 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'"); 123} 124 125/* Ajouter aux favoris */ 126 127function favoris() { 128if ( navigator.appName != 'Microsoft Internet Explorer' )
129{ window.sidebar.addPanel("le nom du site","http://www.tonsite.com",""); } 130else { 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.