Skip to content

Commit

Permalink
fix: Modal version missing JS
Browse files Browse the repository at this point in the history
  • Loading branch information
oodamien committed Jul 17, 2024
1 parent db519b0 commit ab6901c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/js/01-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@
}
})

var versionsToggle = document.querySelectorAll('.version-toggle')
if (versionsToggle) {
versionsToggle.forEach(function (el) {
var container = el.parentElement.parentElement
el.addEventListener('click', function () {
container.classList.toggle('is-active')
})
})
}

document.querySelector('#browse-version').addEventListener('click', function () {
MicroModal.show('modal-versions', {
disableScroll: true,
Expand Down

0 comments on commit ab6901c

Please sign in to comment.