commit 0e5609d8ab630cc17c8f3a8815f2fcdedb8faa55
parent a988daa874cc5d066ad63ced337e1823d65c0a21
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Wed, 7 Oct 2026 18:01:07 +0530
parent a988daa874cc5d066ad63ced337e1823d65c0a21
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Wed, 7 Oct 2026 18:01:07 +0530
Add demo border alert trigger
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/tva-control-demo.html b/tva-control-demo.html @@ -57,6 +57,7 @@ <button type="button" data-theme="dark" class="is-active">Dark</button> <button type="button" data-theme="light">Light</button> <button type="button" data-theme="auto">Auto</button> + <button type="button" id="demo-border-alert">Test Border Alert</button> </div> <div id="demo-chart" class="tva-control-container" data-tva-theme="dark"><canvas></canvas></div> <script> @@ -277,6 +278,10 @@ if (button) applyDemoTheme(button.dataset.theme); }); + document.getElementById("demo-border-alert").addEventListener("click", () => { + tva.update({ refillSpreadDays: 16 }); + }); + matchMedia("(prefers-color-scheme: light)").addEventListener("change", () => { if ( document
: asapien/superpulse