mirror of
https://github.com/sdiehl/wiwinwlh.git
synced 2024-10-05 16:08:22 +03:00
512e9ce8c0
* 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>');
|
|
});
|
|
|
|
});
|