1/** 2 * Ajouter une classe au menu pour le réduire 3 */ 4jQuery(function($){ 5 $(window).scroll(function(){ 6 if ($(this).scrollTop() > $("#ancre-contenu").offset().top ){ // quand la div #ancre-contenu arrive en haut, alors la classe menu réduit s'ajoute 7 $("#header").addClass("menu-reduit"); 8 } 9 10 if ($(this).scrollTop() == 0 ){ 11 $("#header").removeClass("menu-reduit"); 12 } 13 }); 14});
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.