Skip to content

Commit

Permalink
- Issue #83 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Sep 15, 2023
1 parent d1de959 commit 3336ba2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ $(document).ready(function () {
function ChangeMenuTablets(){
var headingtext = $('#content').text()
$('.active').removeClass('active');
$('.bd-links-link:contains("'+ headingtext +'")').addClass('active');
var selectedelement = $('.bd-links-link').filter(function(){ return $(this).text() === headingtext; });
$(selectedelement).addClass('active');
// $('.bd-links-link:contains("'+ headingtext +'")').addClass('active');
}

// tab UI first child auto active
Expand Down

0 comments on commit 3336ba2

Please sign in to comment.