mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
edit content h1 title
This commit is contained in:
parent
0d052ac49e
commit
efcb935c7e
@ -115,7 +115,7 @@ function create_page_anchors() {
|
|||||||
$('#content h' + i).map(function() {
|
$('#content h' + i).map(function() {
|
||||||
headers.push($(this).text());
|
headers.push($(this).text());
|
||||||
$(this).addClass(replace_symbols($(this).text()));
|
$(this).addClass(replace_symbols($(this).text()));
|
||||||
this.id = 'h'+1+'-'+replace_symbols($(this).text();
|
this.id = 'h'+1+'-'+replace_symbols($(this).text());
|
||||||
});
|
});
|
||||||
|
|
||||||
// parse and set links between li and h2
|
// parse and set links between li and h2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user