mylloon.fr/static/js/web3.js
Mylloon de2b9bb45a
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending
WIP: Web3 files
2023-04-14 17:57:10 +02:00

15 lines
347 B
JavaScript

window.addEventListener("load", () => main());
const main = () => {
// Handle change of focus
const title = document.title;
const blurMessage = "Hey.. come back!";
window.addEventListener("blur", function () {
document.title = blurMessage;
});
window.addEventListener("focus", function () {
document.title = title;
});
};