about summary refs log tree commit diff stats
path: root/js
diff options
context:
space:
mode:
authorelioat <hi@eli.li>2024-01-26 15:17:37 -0500
committerelioat <hi@eli.li>2024-01-26 15:17:37 -0500
commit7bb0173d1d21027af71a7a462ba3c6852705d193 (patch)
treecbb660b37dff3012ca1095afdefbfc2c599686dd /js
parent9da4db69888af6b1f833d1a509b8885590bd842d (diff)
downloadtour-7bb0173d1d21027af71a7a462ba3c6852705d193.tar.gz
Underline on hover
Diffstat (limited to 'js')
-rw-r--r--js/toadmode/index.html3
-rw-r--r--js/toadmode/toad.js1
2 files changed, 4 insertions, 0 deletions
diff --git a/js/toadmode/index.html b/js/toadmode/index.html
index a1327b4..993c55e 100644
--- a/js/toadmode/index.html
+++ b/js/toadmode/index.html
@@ -19,6 +19,9 @@
         canvas {
             display: block;
         }
+        .context-menu-item:hover {
+            text-decoration: underline;
+        }
     </style>
 </head>
 <body>
diff --git a/js/toadmode/toad.js b/js/toadmode/toad.js
index 7e9822b..ab83653 100644
--- a/js/toadmode/toad.js
+++ b/js/toadmode/toad.js
@@ -99,6 +99,7 @@ contextMenu.style.border = '1px solid black';
 
 ['Square', 'Triangle', 'Circle', 'Octagon', 'Pentagon', 'Diamond', 'Nope'].forEach(shape => {
     const option = createContextMenuOption(shape);
+    option.className = 'context-menu-item';
     contextMenu.appendChild(option);
 }); // I mean, realistically shape should be label, but I got this far...so Nope is gonna be a shape