Reworked doclet to work with frames

Hash in url bar is page to load for frames
When you click a nav link, it sets the hash
If you go to nav link in new tab, and click home, it will load the same page, but in the frames
This commit is contained in:
Corey
2015-01-23 17:06:37 -05:00
parent bf38f37224
commit 03cc86e159
4 changed files with 52 additions and 20 deletions

9
doclet/resources/nav.js Normal file
View File

@@ -0,0 +1,9 @@
function goToHash(){
if(window.location.hash != ""){
document.getElementById("content-frame").src = window.location.hash.substr(1)
}
}
function setHash(link){
window.parent.location.hash = link.getAttribute("newHash")
}