Sha256: c638863ac4eabbb641f874c8a519ce0ce8813159e2d3ef0faa3b6771752e6eb5
Contents?: true
Size: 646 Bytes
Versions: 11
Compression:
Stored size: 646 Bytes
Contents
$(document).ready(function(){ // responsive nav var responsiveNav = $('#toggle-nav'); var navBar = $('.nav-bar'); responsiveNav.on('click',function(e){ e.preventDefault(); console.log(navBar); navBar.toggleClass('active') }); // pseudo active if($('#docs').length){ var sidenav = $('ul.side-nav').find('a'); var url = window.location.pathname.split( '/' ); var url = url[url.length-1]; sidenav.each(function(i,e){ var active = $(e).attr('href'); if(active === url){ $(e).parent('li').addClass('active'); return false; } }); } }); hljs.configure({tabReplace: ' '}); hljs.initHighlightingOnLoad();
Version data entries
11 entries across 11 versions & 1 rubygems