diff --git a/index.html b/index.html index 286bd60..21f86a1 100644 --- a/index.html +++ b/index.html @@ -67,7 +67,7 @@
how to say
- + nɪs, nɪsə +
prons
it or they
quantity
2 @@ -90,7 +93,13 @@ window.addEventListener('DOMContentLoaded', () => { let link = document.getElementById('soundlink'); let miku = document.getElementById('miku'); if (typeof miku.play == 'function') { - link.addEventListener('click', e => { miku.play(); e.preventDefault(); }); + function playMiku(e) { + miku.play(); + e.preventDefault(); + } + + link.href = '#'; + link.addEventListener('click', playMiku); } }); diff --git a/style.css b/style.css index 8239be1..8992f09 100644 --- a/style.css +++ b/style.css @@ -140,13 +140,13 @@ dd { } } -a { +a[href] { color: hsl(196deg, 100%, 85%); font-weight: 800; text-decoration: none; transition: color 0.2s ease-in-out; } -a:hover { +a[href]:hover { color: hsl(50deg, 100%, 82%); }