a little further along in strings chapter

This commit is contained in:
Mark Pilgrim
2009-03-21 13:09:06 -04:00
parent ec31ba38a5
commit e871e69319
4 changed files with 118 additions and 53 deletions
+4 -2
View File
@@ -84,7 +84,8 @@ function plainTextOnClick(id) {
}
function hideTOC() {
$("#toc").html('<span>&#8227;</span> <a href="javascript:showTOC()">show table of contents</a>');
var toc = '<span>&#8227;</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>&#9662;</span> <a href="javascript:hideTOC()">hide table of contents</a>' + toc);
toc = '<span>&#9662;</span> <a href="javascript:hideTOC()">hide table of contents</a>' + toc;
$("#toc").html(toc);
}