-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use NudeUI
<meter-discrete>
for rating
We get the same UX in all browsers
- Loading branch information
1 parent
22f4fc3
commit 1af8850
Showing
2 changed files
with
4 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,9 @@ | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/themes/light.css" /> | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/shoelace-autoloader.js"></script> | ||
|
||
<!-- NudeUI --> | ||
<script src="https://nudeui.com/elements/meter-discrete/meter-discrete.js" type="module"></script> | ||
|
||
<link rel="stylesheet prefetch" href="css/style.css" /> | ||
<link rel="icon" href='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">🧠</text></svg>' /> | ||
<title>Memory Game</title> | ||
|
@@ -58,7 +61,7 @@ <h2> | |
|
||
<main> | ||
<section mv-app="gameState"> | ||
<meter value="[game.rating]" max="3"></meter> | ||
<meter-discrete value="[game.rating]" max="3"></meter-discrete> | ||
|
||
<div id="moves-counter" mv-value="[pluralize(game.move, 'move', 'moves')]">0 moves</div> | ||
|
||
|