<!– jQuery (necessary for Bootstrap's JavaScript plugins) –> <script src=“ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js”>> <!– Latest compiled and minified JavaScript –> <script src=“maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js” integrity=“sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa” crossorigin=“anonymous”></script> <!– jQuery Custom Scroller CDN –> <script src=“cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.concat.min.js”>> <!– Custom –> <script type=“text/javascript”>

$(document).ready(function () {

  $("#sidebar").mCustomScrollbar({
    theme: "minimal"
  });

  $('#sidebarCollapse').on('click', function () {
    // open or close navbar
    $('#sidebar, #content, #banner').toggleClass('active');
    // close dropdowns
    $('#sidebar.collapse.in').toggleClass('in');
    // and also adjust aria-expanded attributes we use for the open/closed arrows
    // in our CSS
    $('.page-header').toggleClass('active');
    //Custom for entry_title
    $('a[aria-expanded=true]').attr('aria-expanded', 'false');
  });

});

</script>