ElEditors, Interface administrators, Administrators
85,546
edits
mNo edit summary |
mNo edit summary |
||
Line 494: | Line 494: | ||
}); | }); | ||
$('table.odd-strip').css('background-color', 'transparent'); | $('table.odd-strip').css('background-color', 'transparent'); | ||
}); | |||
/**** Persist Header H2 ****/ | |||
$(function(){ | |||
$('h2').each(function(){ | |||
var $h = $(this); | |||
$h.before($h.clone().addClass('persistHeader')); | |||
$h.scroll(function(){ | |||
if($h.scrollTop < 0 && $h.next('h2').scrollTop > 0){ | |||
$h.prev('h2').css('visibility', 'visible'); | |||
} | |||
}); | |||
}); | |||
}); | }); |