forked from Reimar/popup-timer
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 903dc3d288 | |||
| 8029e220c3 |
@ -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";
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user