mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
mobile fiddling
This commit is contained in:
@@ -79,7 +79,7 @@ function plainTextOnClick(id) {
|
||||
}
|
||||
|
||||
function hideTOC() {
|
||||
var toc = '<span>‣</span> <a href="javascript:showTOC()">show table of contents</a>';
|
||||
var toc = '<span class=nm>‣</span> <a href="javascript:showTOC()">show table of contents</a>';
|
||||
$("#toc").html(toc);
|
||||
}
|
||||
|
||||
@@ -100,6 +100,6 @@ function showTOC() {
|
||||
toc += '</ol>';
|
||||
level -= 1;
|
||||
}
|
||||
toc = '<span>▾</span> <a href="javascript:hideTOC()">hide table of contents</a><ol start=0><li><a href=table-of-contents.html><span>↑</span> Full table of contents</a></li>' + toc.substring(4);
|
||||
toc = '<span class=nm>▾</span> <a href="javascript:hideTOC()">hide table of contents</a><ol start=0><li><a href=table-of-contents.html><span>↑</span> Full table of contents</a></li>' + toc.substring(4);
|
||||
$("#toc").html(toc);
|
||||
}
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ h2:before{counter-increment:h2;content:counter(h1) "." counter(h2) ". "}
|
||||
h3:before{counter-increment:h3;content:counter(h1) "." counter(h2) "." counter(h3) ". "}
|
||||
|
||||
/* overrides */
|
||||
.nm,.w,aside,form,form + p,.note span,ol li li{display:none}
|
||||
.nm,.w,aside,form,form + p,.note span,ol li li,.q span{display:none}
|
||||
ol{padding-left:24px}
|
||||
ul{list-style:none;margin:0;padding:0}
|
||||
dd{margin:0 0 0 1.75em}
|
||||
|
||||
Reference in New Issue
Block a user