Skip to content

Commit

Permalink
fix javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
zkamvar committed Dec 5, 2023
1 parent 84702b3 commit 48260c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion inst/pkgdown/assets/assets/scripts.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions source/javascripts/custom/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ $( document ).ready(function() {
}
//change collapse icons depending on context
if (window.innerWidth > 1024) {
ct = $(".collapse-toggle");
collapseToggle = $(".collapse-toggle");
if ( sidebarVisible ) {
ct.html(ct.attr("data-collapse") + feather.icons['chevron-left'].toSvg());
collapseToggle.html(collapseToggle.attr("data-collapse") + feather.icons['chevron-left'].toSvg());
} else {
ct.html(ct.attr("data-episodes") + feather.icons['chevron-right'].toSvg());
collapseToggle.html(collapseToggle.attr("data-episodes") + feather.icons['chevron-right'].toSvg());
}
} else {
ct.html(feather.icons['x'].toSvg());
$(".collapse-toggle").html(feather.icons['x'].toSvg());
}
//show mobile sidebar
$(".navbar-toggler").click(function(){
Expand Down

0 comments on commit 48260c2

Please sign in to comment.