From 4d7682a99d8cac58fcad7bc816e608961f9c9bed Mon Sep 17 00:00:00 2001 From: William Baker Date: Sat, 16 Mar 2024 23:52:30 -0400 Subject: [PATCH] Add info on inwards-drifting bikes --- index.css | 9 +++++---- index.html | 3 +++ src/index.civet | 11 ++++++----- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/index.css b/index.css index d3ac872..09b49f1 100644 --- a/index.css +++ b/index.css @@ -27,10 +27,6 @@ menu { } } -.info { - text-decoration: dotted underline; -} - :root { --meter-length: 0; } @@ -82,6 +78,11 @@ menu:empty { margin: 0.25em 0; } +.info::before { + content: "\00fe0e\002139"; + text-decoration: dotted underline; +} + #rivals { margin-top: 0.5em; min-height: 2.5em; diff --git a/index.html b/index.html index 9a75b4d..66e5d51 100644 --- a/index.html +++ b/index.html @@ -237,6 +237,9 @@ +
diff --git a/src/index.civet b/src/index.civet index 4065608..475fe93 100644 --- a/src/index.civet +++ b/src/index.civet @@ -177,13 +177,8 @@ rivalsDiv := document.createElement 'div' rivalInfoString := 'When playing as P1 in a Grand Prix, these characters are guaranteed to be COM characters and should be better than other COMs, unless they are chosen by other players. Not all characters have rivals.' document.createElement 'sup' - ||> .textContent = '\ufe0e\u2139' ||> .className = 'info' ||> .title = rivalInfoString - ||> .addEventListener - 'click' - -> alert rivalInfoString - { +passive } ||> rivalsDiv.appendChild rivalsDiv.append ': ' @@ -327,3 +322,9 @@ document.querySelector 'button[type="reset"]' limitedData = structuredClone data menu.innerHTML = '' currMenu = undefined + +document.querySelectorAll '.info' + .forEach .addEventListener + 'click' + -> alert @title + { +passive }