early dark mode support using #dark

This commit is contained in:
2022-12-02 21:38:05 -05:00
parent 7dc7c10f61
commit 596065b7c8
2 changed files with 14 additions and 4 deletions

View File

@ -22,6 +22,11 @@
$(function () {
// set dark mode
if (window.location.hash == '#dark') {
$('textarea').addClass('dark');
}
var timer = null;
let ignoredKeyCodes = [17, 18, 20, 27, 37, 38, 39, 40, 91];