diff --git a/ts/pages/home.ts b/ts/pages/home.ts index f684535..6603d6a 100644 --- a/ts/pages/home.ts +++ b/ts/pages/home.ts @@ -23,9 +23,11 @@ document.addEventListener("DOMContentLoaded", function () { if (!isRunning) { playPauseBtn.children.item(0)?.classList.remove("d-none"); playPauseBtn.children.item(1)?.classList.add("d-none"); + playPauseBtn.setAttribute('title', String(playPauseBtn.dataset['play'])); } else { playPauseBtn.children.item(0)?.classList.add("d-none"); playPauseBtn.children.item(1)?.classList.remove("d-none"); + playPauseBtn.setAttribute('title', String(playPauseBtn.dataset['stop'])); } }; playPauseBtn.addEventListener("click", () => { diff --git a/views/pages/home.blade.php b/views/pages/home.blade.php index 95a094a..c813da7 100644 --- a/views/pages/home.blade.php +++ b/views/pages/home.blade.php @@ -137,9 +137,11 @@