mirror of
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way.git
synced 2025-12-26 18:14:58 +08:00
add original history
This commit is contained in:
parent
467fce2d37
commit
0c9d08bccb
3 changed files with 37 additions and 9 deletions
2
toc.js
2
toc.js
|
|
@ -5,7 +5,7 @@
|
|||
var url = document.URL,
|
||||
headers = jQuery("article :header"),
|
||||
result;
|
||||
for (var i = 2; i < headers.length; i++) {
|
||||
for (var i = 3; i < headers.length; i++) { //skip H1, history, and toc
|
||||
var header = headers[i],
|
||||
headerText = header.textContent.trim(),
|
||||
hIndex = parseInt(header.nodeName.substring(1)) - 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue