mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
a little further along in strings chapter
This commit is contained in:
@@ -84,7 +84,8 @@ function plainTextOnClick(id) {
|
||||
}
|
||||
|
||||
function hideTOC() {
|
||||
$("#toc").html('<span>‣</span> <a href="javascript:showTOC()">show table of contents</a>');
|
||||
var toc = '<span>‣</span> <a href="javascript:showTOC()">show table of contents</a>';
|
||||
$("#toc").html(toc);
|
||||
}
|
||||
|
||||
function showTOC() {
|
||||
@@ -104,5 +105,6 @@ function showTOC() {
|
||||
toc += '</ol>';
|
||||
level -= 1;
|
||||
}
|
||||
$("#toc").html('<span>▾</span> <a href="javascript:hideTOC()">hide table of contents</a>' + toc);
|
||||
toc = '<span>▾</span> <a href="javascript:hideTOC()">hide table of contents</a>' + toc;
|
||||
$("#toc").html(toc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user