Compare commits
No commits in common. "dc46288e6d3b8efef57025956fdac8af34736964" and "ff5f60f765f1c1e3af0558981b64f56eb24a4348" have entirely different histories.
dc46288e6d
...
ff5f60f765
@ -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 = decodeURIComponent(parseQueryParams().name) + " - Popup Timer";
|
||||
document.title = 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().type.toLowerCase();
|
||||
elem.innerText = parseQueryParams().name.toLowerCase();
|
||||
});
|
||||
|
||||
document.getElementById("open-popup").onclick = function() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
var params = parseQueryParams();
|
||||
|
||||
// Set window title
|
||||
if (params.name) document.title = decodeURIComponent(params.name) + " - Popup Timer";
|
||||
if (params.name) document.title = 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
|
||||
progressBar.style.animationName = "none";
|
||||
progressBar.offsetHeight; // Trigger reflow
|
||||
// TODO
|
||||
progressBar.animationName = "";
|
||||
progressBar.animationName = "progress";
|
||||
|
||||
initTimer();
|
||||
@ -193,6 +193,7 @@ 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