Skip to content

Commit 380c9f8

Browse files
committed
change the enchant names themselves to links, with underline on hover only
1 parent 57f51b5 commit 380c9f8

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<meta charset="utf-8">
66
<script src="https://code.jquery.com/jquery-3.6.0.slim.min.js" integrity="sha256-u7e5khyithlIdTpu22PHhENmPcRdFiHRjhAuHcs05RI=" crossorigin="anonymous"></script>
77
<script src="data.js?11"></script>
8-
<script src="script.js?17"></script>
9-
<link rel="stylesheet" type="text/css" href="style.css?3">
8+
<script src="script.js?18"></script>
9+
<link rel="stylesheet" type="text/css" href="style.css?4">
1010
<script src="https://unpkg.com/@hungrybluedev/theme-switcher@latest/dist/switch.js" type="module" defer></script>
1111
<link rel="apple-touch-icon" sizes="180x180" href="./icons/apple-touch-icon.png">
1212
<link rel="icon" type="image/png" sizes="32x32" href="./icons/favicon-32x32.png">

script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function buildEnchantList(item_namespace_chosen) {
202202

203203
const enchantment_row = $("<tr>");
204204
enchantment_row.addClass(group_toggle_color ? "group1" : "group2");
205-
const enchantment_cell_content = `${enchantment_name} (<a class="wiki_url" href="${enchantment_wiki_url}">wiki</a>)`
205+
const enchantment_cell_content = `<a class="wiki_url" href="${enchantment_wiki_url}">${enchantment_name}</a>`
206206
enchantment_row.append($("<td>").html(enchantment_cell_content));
207207
for (let enchantment_level = 1; enchantment_level <= enchantment_level_maxmax; enchantment_level++) {
208208
if (enchantment_max_level >= enchantment_level) {

style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,15 @@ summary {
302302
font-size: 12px;
303303
}
304304

305+
#enchants td .wiki_url {
306+
color: var(--table-text);
307+
text-decoration: none;
308+
}
309+
310+
#enchants td .wiki_url:hover {
311+
text-decoration: underline;
312+
}
313+
305314
#enchants button {
306315
background-color: var(--echlevel-bg);
307316
padding: 10px;

0 commit comments

Comments
 (0)