10 lines
292 B
JavaScript
10 lines
292 B
JavaScript
const main = document.querySelector("#main-content");
|
|
|
|
main.addEventListener("animationend", () => {
|
|
const hash = decodeURIComponent(location.hash);
|
|
if (
|
|
["#↑", "#↓", "#←", "#→", "#up", "#down", "#left", "#right"].includes(hash)
|
|
) {
|
|
history.replaceState(null, "", " ");
|
|
}
|
|
});
|