1
0
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:
ruanyf 2014-04-22 08:23:47 +08:00
parent 0d052ac49e
commit efcb935c7e

View File

@ -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