From f81f60a125b82cc33d3721691ba9d6912de58038 Mon Sep 17 00:00:00 2001
From: akrherz
Date: Tue, 25 Feb 2025 08:13:53 -0600
Subject: [PATCH 1/4] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Update=20eslint?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 050adbfa1..ce6b12a21 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -2,7 +2,7 @@ ci:
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: 'v9.20.1'
+ rev: 'v9.21.0'
hooks:
- id: eslint
- repo: https://github.com/astral-sh/ruff-pre-commit
From 077ee5ac7ab4f92fd5cb60c9ee73bf501acebec9 Mon Sep 17 00:00:00 2001
From: akrherz
Date: Tue, 25 Feb 2025 09:16:54 -0600
Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=8E=A8=20Separate=20out=20js?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
htdocs/sites/hist.js | 5 +++++
htdocs/sites/hist.phtml | 16 +++++-----------
2 files changed, 10 insertions(+), 11 deletions(-)
create mode 100644 htdocs/sites/hist.js
diff --git a/htdocs/sites/hist.js b/htdocs/sites/hist.js
new file mode 100644
index 000000000..52fe2e2f8
--- /dev/null
+++ b/htdocs/sites/hist.js
@@ -0,0 +1,5 @@
+/* global $ */
+
+$(document).ready(() => {
+ $("#thetable").DataTable();
+});
\ No newline at end of file
diff --git a/htdocs/sites/hist.phtml b/htdocs/sites/hist.phtml
index df855e94d..a0feb02ea 100644
--- a/htdocs/sites/hist.phtml
+++ b/htdocs/sites/hist.phtml
@@ -1,5 +1,4 @@
{$lstr} | {$title} |
{$nstr} |
Sunday | Monday | Tuesday | Wednesday |
Thursday | Friday | Saturday |
-EOF;
+EOM;
// Handle the first week
$now = $sts;
@@ -322,12 +321,12 @@ $htmlout .= <<< EOM
exists as well.
EOM;
-$content = <<