1jQuery(document).ready(function ($) { 2 if ($('body').hasClass('page-template-default')) { 3 $('.nav li.home a, .mobile-nav-content li.home a').addClass('active'); 4 } 5 6 if ($('body').hasClass('page-template-page-about')) { 7 $('.desktop-nav-content ul li.about a, .mobile-nav-content li.about a').addClass('active'); 8 } 9 10 if ($('body').hasClass('page-template-page-timeline')) { 11 $('.desktop-nav-content ul li.timeline a, .mobile-nav-content li.timeline a').addClass('active'); 12 } 13 14 if ($('body').hasClass('page-template-page-scholarships')) { 15 $('.desktop-nav-content ul li.scholarships a, .mobile-nav-content li.scholarships a').addClass('active'); 16 } 17 18 if ( 19 $('body').hasClass('blog') || 20 $('body').hasClass('single') || 21 $('body').hasClass('archive') 22 ) { 23 $('.nav li.blog a, .mobile-nav-content li.blog a').addClass('active'); 24 } 25 26 // Add mobile navigation toggle functionality 27 $('#mobile-nav').on('click', function () { 28 $('nav').removeClass('hidden').addClass('block'); 29 }); 30 31 $('#mobile-close').on('click', function () { 32 $('nav').removeClass('block').addClass('hidden'); 33 }); 34});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.