X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/bd77795ed44d7b642c66b05e0982bff026fdc68f..7c8362694ebd579891ee698bd069ba2ce702b89a:/browser.plp diff --git a/browser.plp b/browser.plp index ea23d0a..ce56bdb 100644 --- a/browser.plp +++ b/browser.plp @@ -146,7 +146,15 @@ for my $id (sort { my $cell = $_ ? lc $_->[0] : '-'; print '', $cell; } - print '', $row->{title}; + print '', map { + sprintf('%s', + "#$id", + sprintf("try { %s; return false } catch(err) { return true }", + "document.getElementById('$id').classList.toggle('target')", + ), + $_, + ); + } $row->{title}; print '
'; s/\.?$/./, print "

$_

" for map { ref $_ ? @$_ : $_ || () } $row->{description}, $row->{notes};