Compare commits

...

2 Commits

Author SHA1 Message Date
903dc3d288
Add slash 2026-11-22 15:53:11 +01:00
8029e220c3
Fix progress bar when resizing 2026-04-04 16:00:43 +02:00
2 changed files with 10 additions and 1 deletions

View File

@ -297,3 +297,12 @@ function pad(num) {
return ("00" + num).substr(-2);
}
// Fix progress bar when resizing on Firefox
// https://bugzilla.mozilla.org/show_bug.cgi?id=1738925
window.addEventListener("resize", function() {
if (params.type === "timer") {
progressBar.style.animationPlayState = "paused";
progressBar.style.animationPlayState = "running";
}
});

View File

@ -213,7 +213,7 @@ function createLink(type) {
else input.type = "stopwatch";
// Create URL
var url = location.protocol + "//" + location.host + "/" + type + "?type=" + input.type + "&name=" + encodeURIComponent(input.name) + "&autostart=" + input.autostart;
var url = location.protocol + "//" + location.host + "/" + type + "/?type=" + input.type + "&name=" + encodeURIComponent(input.name) + "&autostart=" + input.autostart;
if (input.type === "timer") url += "&h=" + input.hours + "&m=" + input.minutes + "&s=" + input.seconds + "&beep=" + input.beep;
return url;