mirror of https://github.com/kivy/kivy.git
doc: create anchor link before doing hide header if needed
This commit is contained in:
parent
85abba014c
commit
6dc1eb2536
|
@ -26,6 +26,14 @@ function showheader() {
|
|||
|
||||
$(document).ready(function () {
|
||||
|
||||
$(['div.section[id]', 'dt[id]']).each(function(i1, elem) {
|
||||
$(elem).each(function(i2, e) {
|
||||
var eid = $(e).attr('id');
|
||||
$(e).removeAttr('id');
|
||||
$('<div></div>').attr('id', eid).addClass('anchor').insertBefore(e);
|
||||
});
|
||||
});
|
||||
|
||||
st = $.cookie('kivy.header')
|
||||
if ( st == 'hide' )
|
||||
hideheader();
|
||||
|
@ -38,12 +46,4 @@ $(document).ready(function () {
|
|||
hideheader(true);
|
||||
});
|
||||
|
||||
|
||||
$(['div.section[id]', 'dt[id]']).each(function(i1, elem) {
|
||||
$(elem).each(function(i2, e) {
|
||||
var eid = $(e).attr('id');
|
||||
$(e).removeAttr('id');
|
||||
$('<div></div>').attr('id', eid).addClass('anchor').insertBefore(e);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue