Skip to content

Commit

Permalink
fix: avoid using duplicated id in offcanvas menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticLampyrid committed Apr 16, 2022
1 parent cd6c5c5 commit b4118c1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion source/css/kratosr.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion source/js/kratosr.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/maps/kratosr.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion source/maps/kratosr.min.js.map

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions src/js/kratosr.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ window.cancelIdleCallback = window.cancelIdleCallback || function(id) {
$clone.attr({
'id':'offcanvas-menu'
});
$clone.filter('> ul').attr({
'class':'ul-me',
$clone.find('> ul').attr({
'id':''
});
}).addClass('ul-me');
$('#kratos-page').prepend($clone);
$('.js-kratos-nav-toggle').on('click',()=>{
if($('.nav-toggle').hasClass('toon')){
Expand Down
Loading

0 comments on commit b4118c1

Please sign in to comment.