Skip to content

Commit 7abd79d

Browse files
author
rakeshAlgo
committed
Hide left navigation on top level of page
1 parent a61bb6c commit 7abd79d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/js/01-nav.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@
134134
setTimeout(function () {
135135
if (nav.innerText === '') {
136136
nav.classList.add('hide-nav')
137+
} else {
138+
nav.classList.add('show-nav')
137139
}
138-
}, 100)
140+
}, 2000)
139141
// has children in li
140142
// $('ul.nav-list li.nav-item ul.nav-list .nav-item').has('ul.nav-list').addClass('has-children')
141143
function concealEvent (e) {

0 commit comments

Comments
 (0)