diff --git a/eepytab.js b/eepytab.js new file mode 100644 index 0000000..919299b --- /dev/null +++ b/eepytab.js @@ -0,0 +1,10 @@ +/* i took this from https://dev.to/codepo8/showing-different-titles-depending-if-the-tab-is-active-or-not-hef */ +let activeTitle = 'sneexy dot pages dot gay'; +let inactiveTitle = 'zzz... synth is eepy... - sneexy dot pages dot gay'; +document.title = activeTitle; +window.addEventListener('blur', e => { + document.title = inactiveTitle; +}); +window.addEventListener('focus', e => { + document.title = activeTitle; +}); diff --git a/index.html b/index.html index 2ab856e..b328703 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,7 @@ +