We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7a38de0 + 3562f93 commit b0c91acCopy full SHA for b0c91ac
src/js/01-nav.js
@@ -82,12 +82,12 @@
82
}
83
// Toggle class
84
function toggleActive (e) {
85
- if (this.getAttribute('data-depth') === '1') {
86
- var otherNavs = document.querySelectorAll('.nav-item[data-depth="0"]:not(.is-active)')
87
- for (var i = 0; i < otherNavs.length; i++) {
88
- otherNavs[i].classList.add('is-inactive')
89
- }
90
+ // if (this.getAttribute('data-depth') === '1') {
+ // var otherNavs = document.querySelectorAll('.nav-item[data-depth="0"]:not(.is-active)')
+ // for (var i = 0; i < otherNavs.length; i++) {
+ // otherNavs[i].classList.add('is-inactive')
+ // }
91
this.classList.toggle('open')
92
this.classList.toggle('is-active')
93
0 commit comments