Skip to content

Commit

Permalink
ditch the mobile nav for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jszobody authored Aug 22, 2023
1 parent bf27d9d commit 6916d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ document.addEventListener('DOMContentLoaded', function() {
$.get($(".nav .active a")[0].href, function(data) {
$(".nav .active").append("<ul class='subnav-list'>" + $(data).find('.articleList').html() + "</ul>");
$('a[href="' + location.pathname + '"]').parent().addClass('active');
$('.nav-collapse').append('<ul class="mobile-nav-list">'+$('ul.nav-list').html()+"</ul>");
// $('.nav-collapse').append('<ul class="mobile-nav-list">'+$('ul.nav-list').html()+"</ul>");
});
} else if(self.location.href.includes('category')) {
$('#main-content').prepend("<div class='breadcrumbs'><a href='/'>Home</a>");
$(".nav .active").append("<ul class='subnav-list'>" + $('.articleList').html() + "</ul>");
$('a[href="' + location.pathname + '"]').parent().addClass('active');
$('.nav-collapse').append('<ul class="mobile-nav-list">'+$('ul.nav-list').html()+"</ul>");
// $('.nav-collapse').append('<ul class="mobile-nav-list">'+$('ul.nav-list').html()+"</ul>");
}

// Add anchor and links to all H2s on the page
Expand Down

0 comments on commit 6916d99

Please sign in to comment.