3 ms·
What gets me worse is dynamically changing the page title to catch your eye. Ex. something like: let documentTitle = document.title; let documentTitleWithN
by otras 7y ago
What gets me worse is dynamically changing the page title to catch your eye. Ex. something like:
let documentTitle = document.title;
let documentTitleWithNotification = "(1) " + documentTitle;
let timeDelay = 1000;
function makePlainTitle() {
document.title = documentTitle;
setTimeout(makeNotificationTitle, timeDelay);
}
function makeNotificationTitle() {
document.title = documentTitleWithNotification;
setTimeout(makePlainTitle, timeDelay);
}
makeNotificationTitle();
My peripheral vision is a sucker for motion.