mirror of
https://github.com/sdiehl/wiwinwlh.git
synced 2024-09-11 12:05:25 +03:00
* Fix scrolling and some other minor goodies * Add document title and version at beginning * Fix rest of overflowing tables * Automatically wrap tables
22 lines
410 B
JavaScript
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>');
|
|
});
|
|
|
|
});
|