25c25 <   --- > 31,33d30 < var every=-1; < var fromnow=-1, fromfirst; < var everytext=''; 36d32 < var tdl='To do list'; 40,43d35 < } else if (document.URL.indexOf('?scheduledblurb=') != -1 && document.URL.indexOf('&') == -1) { < sle='scheduledblurb='; < hie='scheduledblurb='; < tdl=''; 113,114c105,106 < if (text.trim() != '' && (location.search.split('subject=')[1] ? decodeURIComponent(location.search.split('subject=')[1].split('&')[0]).replace(/\+/g,' ').replace(/\ \ \ /g,' + ') : tdl).trim() != '') { < const notification = new Notification((location.search.split('subject=')[1] ? decodeURIComponent(location.search.split('subject=')[1].split('&')[0]).replace(/\+/g,' ').replace(/\ \ \ /g,' + ') : tdl), { body: text, icon: img }); --- > if (text.trim() != '' && (location.search.split('subject=')[1] ? decodeURIComponent(location.search.split('subject=')[1].split('&')[0]).replace(/\+/g,' ').replace(/\ \ \ /g,' + ') : 'To do list').trim() != '') { > const notification = new Notification((location.search.split('subject=')[1] ? decodeURIComponent(location.search.split('subject=')[1].split('&')[0]).replace(/\+/g,' ').replace(/\ \ \ /g,' + ') : 'To do list'), { body: text, icon: img }); 192,216c184,185 < if (document.URL.indexOf('&repeats=1&subject=&') != -1 && document.URL.indexOf('&songtext=&') != -1 && 1 == 1) { < setTimeout(woclose,2000); //window.close(); //document.getElementById('bhi').click(); < } else if (document.URL.indexOf('?scheduledblurb=') != -1 && document.URL.indexOf('&') == -1 && 1 == 1) { < setTimeout(woclose,2000); //window.close(); //window.open('','_self').close(); //document.getElementById('bhi').click(); < } < < function woclose() { < window.close(); < } < < function evstrwso() { < fromfirst='' + new Date(); < if (fromfirst.indexOf(':' + ('0' + every).slice(-2) + ':') != -1) { < if (fromnow == -1) { < //document.title=' yes ' + fromfirst + ' ' + every; < setTimeout(evstrwso, 59800); < } else { < //document.title=' Yes ' + fromfirst + ' ' + every; < setTimeout(strwso, fromnow); < } < window.open('https://www.rjmprogramming.com.au/HTMLCSS/notifications_ideas.html?scheduledblurb=' + encodeURIComponent(everytext), '_blank', 'top=500,left=500,width=200,height=200'); < } else { < //document.title=' no ' + fromfirst + ' ' + every; < setTimeout(evstrwso, 59800); < } --- > if (document.URL.indexOf('&repeats=1&subject=&') != -1 && document.URL.indexOf('&songtext=&') != -1 && 1 == 7) { > document.getElementById('bhi').click(); 218,243d186 < < function strwso() { < setTimeout(strwso, fromnow); < window.open('https://www.rjmprogramming.com.au/HTMLCSS/notifications_ideas.html?scheduledblurb=' + encodeURIComponent(everytext), '_blank', 'top=500,left=500,width=200,height=200'); < } < < function rwso() { < everytext=prompt('What text goes onto notification?', ''); < if (everytext == null) { everytext=''; } < if (everytext.trim() != '') { < var tt=prompt('How often to do in minutes (where + prefix means do it with that exact minute every hour)? Optionally comma separate a starting at minute value', ''); < if (tt == null) { tt=''; } else if (tt == '+') { tt=''; } < if (tt.trim().indexOf('+') == 0) { < every=eval('' + tt.trim().substring(1)); < setTimeout(evstrwso, 59800); < } else if (tt.trim().indexOf(',') != -1) { < every=eval(('' + tt.trim()).split(',')[1]); < fromnow=eval(eval(('' + tt.trim()).split(',')[0]) * 60000); < setTimeout(evstrwso, 59800); < } else if (tt.trim() != '') { < fromnow=eval(eval(('' + tt.trim()).split(',')[0]) * 60000); < setTimeout(strwso, fromnow); < } < } < } <