Compare commits

...

2 Commits

Author SHA1 Message Date
SArpnt 5c7379b010
fix bug loading page without song 2024-01-01 17:49:10 -05:00
SArpnt 46873e8c75
remove stop button 2024-01-01 17:48:34 -05:00
4 changed files with 3 additions and 17 deletions

View File

@ -58,10 +58,11 @@ let elements = null; // TODO remove
document.defaultView.addEventListener("resize", () => handleWindowResize(false));
loadSettings();
let urlData: Song | undefined;
if (window.location.hash && globalThis.useUrlData !== false) {
const urlData = await getUrlData();
setSong(urlData, false);
urlData = await getUrlData();
}
setSong(urlData, false);
updateCounterValue();
})();

View File

@ -52,13 +52,6 @@
/>
</span>
<span class="control-group control-time buttons">
<button
title="Stop"
id="control-stop"
onclick="bytebeat.togglePlay(false); bytebeat.resetTime();"
>
&#x23f9;&#xfe0e;
</button>
<button
title="Restart"
id="control-restart"

View File

@ -35,10 +35,6 @@ html(data-embed lang="en")
title="Time value"
)
span.control-group.control-time.buttons
button#control-stop(
onclick="bytebeat.togglePlay(false); bytebeat.resetTime();"
title="Stop"
) ⏹︎
button#control-restart(onclick="bytebeat.resetTime();" title="Restart") ⏮︎
button#control-fr(
onclick="bytebeat.setPlaySpeed(-4); bytebeat.togglePlay(true);"

View File

@ -31,10 +31,6 @@ html(lang="en")
title="Time value"
)
span.control-group.control-time.buttons
button#control-stop(
onclick="bytebeat.togglePlay(false); bytebeat.resetTime();"
title="Stop"
) &#9209;&#65038;
button#control-restart(
onclick="bytebeat.resetTime();"
title="Restart"