Add resources and links. Fix bug where table of contents was not generated if URL had a sectionspecified like /help/blah#anchor

This commit is contained in:
Andrew Manning
2016-11-30 22:24:44 -05:00
parent 41362e2b6e
commit dfaf116449
2 changed files with 8 additions and 1 deletions

View File

@@ -408,7 +408,7 @@
window.console.log($(this).attr('href'));
var url = document.createElement('a');
url.href = window.location;
var pageName = url.href.split('/').pop();
var pageName = url.href.split('/').pop().split('#').shift();
window.console.log('pageName: ' + pageName);
var linkName = $(this).attr('href').split('/').pop();
window.console.log('linkName: ' + linkName);