diff options
author | elioat <hi@eli.li> | 2024-01-26 15:17:37 -0500 |
---|---|---|
committer | elioat <hi@eli.li> | 2024-01-26 15:17:37 -0500 |
commit | 7bb0173d1d21027af71a7a462ba3c6852705d193 (patch) | |
tree | cbb660b37dff3012ca1095afdefbfc2c599686dd | |
parent | 9da4db69888af6b1f833d1a509b8885590bd842d (diff) | |
download | tour-7bb0173d1d21027af71a7a462ba3c6852705d193.tar.gz |
Underline on hover
-rw-r--r-- | js/toadmode/index.html | 3 | ||||
-rw-r--r-- | js/toadmode/toad.js | 1 |
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 |