From 0aa2204c4edf9ec483f7aeffc2fc24b52375e0d5 Mon Sep 17 00:00:00 2001 From: elioat Date: Fri, 12 Jan 2024 22:20:19 -0500 Subject: * --- js/inknswitch/index.html | 6 +++--- js/inknswitch/ink.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'js/inknswitch') diff --git a/js/inknswitch/index.html b/js/inknswitch/index.html index 4fa3356..030735f 100644 --- a/js/inknswitch/index.html +++ b/js/inknswitch/index.html @@ -27,7 +27,7 @@ margin: 0 auto; display: block; } - /* + #toggleButton { border: 1px solid black; background-color: transparent; @@ -40,11 +40,11 @@ #toggleButton:hover { cursor: pointer; } - */ + - + diff --git a/js/inknswitch/ink.js b/js/inknswitch/ink.js index 73f16e5..110a052 100644 --- a/js/inknswitch/ink.js +++ b/js/inknswitch/ink.js @@ -121,7 +121,7 @@ const toggle = () => { } }; -/* + const toggleButton = document.getElementById('toggleButton'); toggleButton.style.pointerEvents = 'auto'; toggleButton.addEventListener('click', toggleMode); @@ -130,7 +130,7 @@ toggleButton.addEventListener('touchend', toggleMode); function toggleMode() { toggle(); } -*/ + document.addEventListener('keydown', (e) => { // Cmd or Ctrl and D key to toggle modes -- cgit 1.4.1-2-gfad0