still have to completely figure out and centralize the currently working JavaScript

This commit is contained in:
Joost Agterhoek 2025-02-18 22:32:59 +01:00
parent 8b0021fcc0
commit 8a18b71dfe

12
static/javascript.js Normal file
View File

@ -0,0 +1,12 @@
$(function() {
$("td[colspan=7]").find("p").hide();
$("table").click(function(event) {
event.stopPropagation();
var $target = $(event.target);
if ( $target.closest("td").attr("colspan") > 1 ) {
$target.slideUp();
} else {
$target.closest("tr").next().find("p").slideToggle();
}
});
});