mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-22 09:31:08 -05:00
- Implemented font color configuration based on numeric values in various sections. - Added resizing functionality for input fields to accommodate text length. - Initialized filters on document ready for improved user interaction. - Created visualization for profile data using fetched dot format. - Enhanced SQL detail page with click event handling for row navigation. - Ensured consistent highlighting for code blocks across multiple pages.
16 lines
439 B
JavaScript
16 lines
439 B
JavaScript
function initFilterButton() {
|
|
$('#filter-button').click(function () {
|
|
$(this).toggleClass('active');
|
|
$('body').toggleClass('cbp-spmenu-push-toleft');
|
|
$('#cbp-spmenu-s2').toggleClass('cbp-spmenu-open');
|
|
initFilters();
|
|
});
|
|
}
|
|
function submitFilters() {
|
|
$('#filter-form2').submit();
|
|
}
|
|
function submitEmptyFilters() {
|
|
$('#cbp-spmenu-s2 :input:not([type=hidden])').val('');
|
|
submitFilters();
|
|
}
|