Compare commits
2 Commits
ff5f60f765
...
dc46288e6d
Author | SHA1 | Date | |
---|---|---|---|
dc46288e6d | |||
82868a6b22 |
@ -2,7 +2,7 @@ var link = location.protocol + "//" + location.host + "/link" + location.search;
|
||||
var popupLink = location.protocol + "//" + location.host + "/popup" + location.search;
|
||||
|
||||
history.replaceState(null, "", link);
|
||||
document.title = parseQueryParams().name + " - Popup Timer";
|
||||
document.title = decodeURIComponent(parseQueryParams().name) + " - Popup Timer";
|
||||
|
||||
if (navigator.platform.match(/Mac/i)) {
|
||||
document.getElementById("win").style.display = "none";
|
||||
@ -10,7 +10,7 @@ if (navigator.platform.match(/Mac/i)) {
|
||||
}
|
||||
|
||||
[].slice.call(document.getElementsByClassName("type")).forEach(function(elem) {
|
||||
elem.innerText = parseQueryParams().name.toLowerCase();
|
||||
elem.innerText = parseQueryParams().type.toLowerCase();
|
||||
});
|
||||
|
||||
document.getElementById("open-popup").onclick = function() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
var params = parseQueryParams();
|
||||
|
||||
// Set window title
|
||||
if (params.name) document.title = params.name + " - Popup Timer";
|
||||
if (params.name) document.title = decodeURIComponent(params.name) + " - Popup Timer";
|
||||
|
||||
var hours, minutes, seconds;
|
||||
var secondsElem = document.getElementById("seconds");
|
||||
@ -49,8 +49,8 @@ document.getElementById("restart").onclick = function() {
|
||||
case "timer":
|
||||
|
||||
// Reset progress bar
|
||||
// TODO
|
||||
progressBar.animationName = "";
|
||||
progressBar.style.animationName = "none";
|
||||
progressBar.offsetHeight; // Trigger reflow
|
||||
progressBar.animationName = "progress";
|
||||
|
||||
initTimer();
|
||||
@ -193,7 +193,6 @@ function timeUp() {
|
||||
[].slice.call(document.querySelectorAll("main > span")).forEach(function(elem) {
|
||||
elem.classList.toggle("red");
|
||||
});
|
||||
//document.querySelector
|
||||
|
||||
// Blink title
|
||||
if (document.title.indexOf(timesUpStr) === -1) document.title = timesUpStr + document.title;
|
||||
|
Loading…
Reference in New Issue
Block a user