hdoc-tools 0.7.5 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ui/index.html +3 -3
- package/ui/js/doc.hornbill.js +7 -2
package/package.json
CHANGED
package/ui/index.html
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<style>
|
|
22
22
|
.hb-hidden
|
|
23
23
|
{
|
|
24
|
-
visibility:hidden;
|
|
24
|
+
visibility:hidden !important;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
</style>
|
|
@@ -155,10 +155,10 @@
|
|
|
155
155
|
</div>
|
|
156
156
|
|
|
157
157
|
<!-- 100% horizontal col below toolbar and auto adjust vertical to take rest of avail height -->
|
|
158
|
-
<div class="main-layout hb-container-horizontal hb-container-expand">
|
|
158
|
+
<div class="main-layout hb-container-horizontal hb-container-expand hb-hidden">
|
|
159
159
|
|
|
160
160
|
<!-- the left hand nav col -->
|
|
161
|
-
<aside class="DocSidebar hb-container-vertical">
|
|
161
|
+
<aside class="DocSidebar hb-container-vertical hb-hidden">
|
|
162
162
|
|
|
163
163
|
<nav class="nav hb-container-expand" id="DocSidebarNav" aria-labelledby="sidebar-aria-label" tabindex="-1">
|
|
164
164
|
<div v-for="(navSection,index) in docApp.navSections" v-bind:class="{'group':navSection.items, 'nogrouplink':!navSection.items}">
|
package/ui/js/doc.hornbill.js
CHANGED
|
@@ -491,24 +491,29 @@ async function intialiseApp() {
|
|
|
491
491
|
//-- now render out the nav menu
|
|
492
492
|
view.renderNavigation();
|
|
493
493
|
|
|
494
|
-
$("#vDocDevApp").removeClass("hb-hidden");
|
|
495
494
|
|
|
496
495
|
setTimeout(function()
|
|
497
|
-
{
|
|
496
|
+
{
|
|
498
497
|
listenForHrefClicks();
|
|
499
498
|
|
|
500
499
|
//-- check if url is not root - in which case we need to load content for url
|
|
501
500
|
var initialLoadContentHref = window.location.href.replace(window.location.origin+"/","");
|
|
502
501
|
initialLoadContentHref = findFirstClickableBookLink(initialLoadContentHref);
|
|
502
|
+
|
|
503
503
|
if(initialLoadContentHref)
|
|
504
504
|
{
|
|
505
505
|
//-- find the link we are going to show and make sure parent/s are set to .expand=true
|
|
506
506
|
loadContentUrl(initialLoadContentHref,true,false);
|
|
507
|
+
|
|
508
|
+
|
|
507
509
|
}
|
|
508
510
|
else
|
|
509
511
|
{
|
|
510
512
|
console.log("initial first view link to laod is not present");
|
|
511
513
|
}
|
|
514
|
+
|
|
515
|
+
$(".hb-hidden").removeClass("hb-hidden");
|
|
516
|
+
|
|
512
517
|
},200);
|
|
513
518
|
});
|
|
514
519
|
});
|