Home
Random
Recent changes
Special pages
Community portal
Settings
About ElWiki
Disclaimers
Elwiki
Search
User menu
Create account
Log in
MediaWiki:Common.js: Difference between revisions
Message
Discussion
← Older edit
Newer edit →
MediaWiki:Common.js
(view source)
Revision as of 03:24, 5 March 2015
465 bytes removed
,
5 March 2015
m
no edit summary
Revision as of 03:01, 5 March 2015
(
view source
)
Boxsnake
(
talk
|
contribs
)
m
No edit summary
← Older edit
Revision as of 03:24, 5 March 2015
(
view source
)
Boxsnake
(
talk
|
contribs
)
m
No edit summary
Newer edit →
Line 497:
Line 497:
/**** Persist Header H2 ****/
/**** Persist Header H2 ****/
$(function(){
$('h2').each(function(){
var $h2 = $(this),
$h2Clone = $h2.clone().addClass('persistHeader');
$h2.after($h2Clone);
$(window).scroll(function(){
if($h2.offset().top < $h2Clone.offset().top){
$('.persistHeader.visible').removeClass('visible');
$h2Clone.addClass('visible');
}
else{
$h2Clone.removeClass('visible');
}
});
});
});
Boxsnake
ElEditors,
Interface administrators
,
Administrators
85,546
edits