* Use a variable instead of repeating document.getElementById("panel")
location.reload();
}, function () {
blockMove = 1000;
- document.getElementById("panel").appendChild(document.createElement("a"));
- document.getElementById("panel").lastChild.href = "#";
- document.getElementById("panel").lastChild.onclick = location.reload.bind(location);
- document.getElementById("panel").lastChild.textContent = _("To continue playing, click here");
+ const panel = document.getElementById("panel");
+ panel.appendChild(document.createElement("a"));
+ panel.lastChild.href = "#";
+ panel.lastChild.onclick = location.reload.bind(location);
+ panel.lastChild.textContent = _("To continue playing, click here");
}
);
}