mylloon.fr/static/js/web3.js

16 lines
347 B
JavaScript
Raw Normal View History

2023-04-14 17:57:10 +02:00
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;
});
};