1
1
mirror of https://github.com/sdiehl/wiwinwlh.git synced 2024-09-11 12:05:25 +03:00
wiwinwlh/js/nav.js
Oskar Wickström 512e9ce8c0 Navigation and scroll fixes (#143)
* Fix scrolling and some other minor goodies

* Add document title and version at beginning

* Fix rest of overflowing tables

* Automatically wrap tables
2016-11-07 06:00:16 -05:00

22 lines
410 B
JavaScript

$(function () {
// NAV
var $sidebar = $('#sidebar-wrapper');
var $toggle = $('#toggle-sidebar');
$toggle.click(function () {
$sidebar.toggleClass('expanded');
});
$sidebar.find('.sidebar-nav a').click(function () {
$sidebar.removeClass('expanded');
});
// TABLES
$('#main table').each(function () {
var $table = $(this).wrap('<div class="overflow-table"></div>');
});
});