<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Reminders in Session - RJM Programming - December, 2020 ... thanks to https://stackoverflow.com/questions/32326721/pass-parameter-to-settimeout-callback-function/32326935</title>
<script type='text/javascript'>
var myfuncs=[];
var amsg = location.search.split('msg=')[1] ? decodeURIComponent(location.search.split('msg=')[1].split('&')[0]) : '';
var woises=[];
var options=[];
var documenttitle=document.title;
var maxsofar=-1;
var selrf=false;
var fgo=true;
var vsres="";
var newres="";
var tdcount=1, wtdcount=-1;
var wasv='';
var dci=false;
var fbr=null;
var reso=null, lastreso='';
var detailscount=1;
var scriptstuff='';
var pppid=1;
var dsp='', dss='';
var popuphashtag=' <a id=afirst onclick="curf=1; setTimeout(justthis,1000);" href="#popup1" title="Top"><<</a> <a id=aprev onclick="if (curf > 1) { curf--; } setTimeout(justthis,1000);" href="#popup1" title="Prev"><</a> <a id=anext onclick="if (curf < lastf) { curf++; } setTimeout(justthis,1000);" href="#popup1" title="Next">></a> <a id=alast onclick="curf=lastf; setTimeout(justthis,1000);" href="#popup1" title="Bottom">>></a> ';
var htrect=null;
var ourdelim="`"; // ";"
var firstgo=true;
var lastvalue='.html';
var oktosub=true;
var origemail='';
var dres='';
var dd1, dd2;
var thesedates=[];
var thesewords=[];
var theseseconds=[];
var d = new Date();
var h = d.getHours();
var m = d.getMinutes();
var s = d.getSeconds();
var hastobe='', hastobedec='';
var alreadydonelist=',';
var timeaway=0, origtimeaway=0;
var midprefix='';
var viaso=false;
var myfunc = function(x){xx=x;preprewois()};
var x = "test";
var xx="";
var firstgo=true;
var wois=null;
var nextson=1;
var tgsps=[], tgspsop=[];
var attachment='';
var imgd=null, imgh=-1, imgw=-1, altimgw=-1, altimgh=-1, two=2, twotwo=2, wasv='', firstgo=true, ewo=null, ewf=null, prevffs=-11, ffs=-1;
var vtrue=true, twentythousand=20000, altsubject='', prevlastisaved='', prevlastvsaved='', prevlastasaved='', lastvsaved='', lastasaved='', lastisaved='', lastaudioname='', lastresult='';
var vsres='', zhr=null, zform=null, lastacnt=1, tgsps=[], tgspsop=[], newres='', preurl='', tgspsopwhat=[], cvis='', prevsv='', thissv='', haikusuffix='', lastu='';
if (amsg == '') {
window.onbeforeunload = function() {
if (wois) {
if (!wois.closed) {
wois.close();
}
}
return false;
};
//if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
//wois=window.open(document.URL.split('#')[0].split('?')[0] + '?msg=' + encodeURIComponent(' '),'_blank'); //,'top=250,left=800,width=500,height=500');
//} else {
//wois=window.open(document.URL.split('#')[0].split('?')[0] + '?msg=' + encodeURIComponent(' '),'_blank','top=250,left=800,width=500,height=500');
//}
//wois.document.title='Only Minimize Me (or lose Dynamic Timer)';
//setTimeout(myfunc,100,x);
}
if (!String.fromCodePoint) { // thanks to http://xahlee.info/js/js_unicode_code_point.html
// ES6 Unicode Shims 0.1 , © 2012 Steven Levithan , MIT License
String.fromCodePoint = function fromCodePoint () {
var chars = [], point, offset, units, i;
for (i = 0; i < arguments.length; ++i) {
point = arguments[i];
offset = point - 0x10000;
units = point > 0xFFFF ? [0xD800 + (offset >> 10), 0xDC00 + (offset & 0x3FF)] : [point];
chars.push(String.fromCharCode.apply(null, units));
}
return chars.join("");
}
}
function emailit() {
var wordsarenow='';
var ihisnow='';
var tfs=[];
var itd=0;
var dtsz=document.getElementsByTagName('details');
for (itd=0; itd<eval(-1 + dtsz.length); itd++) {
tfs.push(dtsz[itd].open);
dtsz[itd].open=true;
}
wordsarenow=(document.getElementById('divmore').innerText || document.getElementById('divmore').contentWindow || document.getElementById('divmore').contentDocument);
ihisnow=document.getElementById('divmore').innerHTML;
if (wordsarenow == '' && wois) {
wordsarenow(wois.document.body.innerText || wois.document.body.contentWindow || wois.document.body.contentDocument);
ihisnow=wois.document.body.innerHTML;
}
for (itd=0; itd<eval(-1 + dtsz.length); itd++) {
dtsz[itd].open=tfs[itd];
}
if (wordsarenow != '') {
document.getElementById('aemailto').href='mailto:?subject=My%20Reminders%20...&body=' + encodeURIComponent(wordsarenow);
if (!dci && document.getElementById('aemailto').href.length < 900 && ihisnow.indexOf('<img ') == -1 && ihisnow.indexOf('<audio ') == -1 && ihisnow.indexOf('<video ') == -1) {
document.getElementById('aemailto').click();
} else {
var eto=prompt("Email to? In case this is too big to send, we'll also send a client email you can copy images, at least, into.", "");
if (eto == null) { eto=''; }
if (eto.indexOf('@') != -1) {
document.getElementById('aemailto').href='mailto:' + eto + '?subject=My%20Reminders%20...&body=' + encodeURIComponent(wordsarenow);
var xzhr=null; //new XMLHttpRequest();
var xform=null; //new FormData();
xzhr=new XMLHttpRequest();
xform=new FormData();
if (ihisnow.indexOf('<img ') == -1 && ihisnow.indexOf('<audio ') == -1 && ihisnow.indexOf('<video ') == -1) {
xform.append('inline', '');
}
xform.append('to', eto);
xform.append('subject', 'My Reminders');
xform.append('body', '<html><head><meta charset="utf-8"/></head><body>' + formit(ihisnow, eto) + '</body></html>');
xzhr.open('post', '//www.rjmprogramming.com.au/PHP/emailhtml.php', true);
xzhr.send(xform);
document.getElementById('aemailto').click();
}
}
}
}
function smsit() {
var wordsarenow='';
var ihisnow='';
var tfs=[];
var itd=0;
var dtsz=document.getElementsByTagName('details');
for (itd=0; itd<eval(-1 + dtsz.length); itd++) {
tfs.push(dtsz[itd].open);
dtsz[itd].open=true;
}
wordsarenow=(document.getElementById('divmore').innerText || document.getElementById('divmore').contentWindow || document.getElementById('divmore').contentDocument);
ihisnow=document.getElementById('divmore').innerHTML;
if (wordsarenow == '' && wois) {
wordsarenow=(wois.document.body.innerText || wois.document.body.contentWindow || wois.document.body.contentDocument);
ihisnow=wois.document.body.innerHTML;
}
for (itd=0; itd<eval(-1 + dtsz.length); itd++) {
dtsz[itd].open=tfs[itd];
}
if (wordsarenow != '' && ihisnow.indexOf('<img ') == -1 && ihisnow.indexOf('<audio ') == -1 && ihisnow.indexOf('<video ') == -1) {
var sto=prompt('SMS to?', '');
if (sto == null) { sto=''; }
if (sto.trim() != '') {
document.getElementById('asmsto').href='sms:' + sto + '&body=' + encodeURIComponent(wordsarenow);
if (document.getElementById('asmsto').href.length < 900) {
document.getElementById('asmsto').click();
} else {
alert('Sorry, cannot handle this in an SMS, but can in an Email.');
}
}
} else {
alert('Sorry, cannot handle this in an SMS, but can in an Email.');
}
}
function posthtrtop() {
window.scrollTo(0, eval(('' + htrect.top).split('.')[0]));
}
function htrtop() {
if (htrect) {
if (('' + document.getElementById('dmymsr').getAttribute('open')).indexOf('true') == -1) {
document.getElementById('dmymsr').open=true;
}
htrect=document.getElementById('divmymsr').getBoundingClientRect();
if (1 == 1) {
setTimeout(posthtrtop, 2000);
} else {
console.log(htrect);
//alert(htrect.top);
window.scrollTo(0, eval(('' + htrect.top).split('.')[0]));
//location.href='#cbi';
}
}
}
function selch(thisvalue) {
if (lastvalue != '.*') {
while (document.getElementById('outputname').value.indexOf(lastvalue) != -1) {
document.getElementById('outputname').value=document.getElementById('outputname').value.replace(lastvalue, '.*');
}
}
document.getElementById('outputname').value=document.getElementById('outputname').value.replace(/\.\*/g,'.' + thisvalue);
lastvalue='.' + thisvalue;
document.getElementById('cbi').src=document.getElementById('cbi').src.split('#')[0].split('?')[0] + '?totype=' + encodeURIComponent(thisvalue.replace('*','html')) + '&d=' + Math.floor(Math.random() * 19876543);
}
function notwotwo() {
twotwo=33;
vtrue=false;
twentythousand=200;
}
function iswi(awois) {
if (!awois && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
return true;
} else {
return awois;
}
}
function soit(sois) {
var remsare=[], wrems=[], thisdelim=ourdelim;
if (sois.value != '') {
if (sois.value.trim() == '') {
var retso='', retson=1, thisso=' ', preretso='', postretso='', lastgood=1;
if (window.localStorage) {
while (thisso != '') {
thisso='';
if (localStorage.getItem('reminderso' + retson)) {
thisso=decodeURIComponent(localStorage.getItem('reminderso' + retson).replace(/^null$/g,'').replace(/^undefined$/g,'')).replace(/\+/g,' ');
}
if (thisso != '') {
retso+=thisso;
preretso='<option value="">Standing Order</option>';
postretso='<option value=" ">Delete Most Recent Standing Order</option>';
lastgood=retson;
}
retson++;
}
retson--;
if (lastgood == 1) {
localStorage.removeItem('reminderso' + lastgood);
document.getElementById('sorems').innerHTML='';
document.getElementById('sorems').style.display='none';
} else if (lastgood > 1) {
localStorage.removeItem('reminderso' + lastgood);
var optsare=document.getElementById('sorems').innerHTML.split('<option value=');
document.getElementById('sorems').innerHTML=document.getElementById('sorems').innerHTML.replace('<option value=' + optsare[eval(-2 + optsare.length)].split('</option>')[0] + '</option>', '');
}
}
} else {
//alert(sois.value);
if (sois.value.replace(/\;base64/g,'|base64').indexOf((thisdelim + thisdelim)) == -1 && sois.value.replace(/\;base64/g,'|base64').indexOf((";" + ";")) != -1) {
thisdelim=";";
}
remsare=sois.value.replace(/\;base64/g,'|base64').split((thisdelim + thisdelim));
viaso=true;
for (var ire=0; ire<remsare.length; ire++) {
document.getElementById('ih').value=remsare[ire].substring(0,2);
document.getElementById('im').value=remsare[ire].substring(2).substring(0,2);
document.getElementById('is').value=remsare[ire].substring(4).substring(0,2);
wrems=remsare[ire].split(thisdelim);
//alert(remsare[ire].substring(eval(8 + wrems[1].length)));
document.getElementById('rwording').value=remsare[ire].substring(eval(8 + wrems[1].length)).replace(/\|base64/g,';base64');
document.getElementById('go').click();
}
viaso=false;
}
sois.value='';
}
}
function resocheck() {
if (reso.innerHTML != '' && reso.innerHTML != lastreso) {
lastreso=reso.innerHTML;
if (document.getElementById('rwording').value.indexOf(lastreso) == -1) {
if (document.getElementById('rwording').value != '' && document.getElementById('rwording').innerHTML.indexOf('<') == -1) {
var vv=document.getElementById('rwording').value;
document.getElementById('rwording').value='<p>' + vv + '</p><br>';
document.getElementById('rwording').innerHTML='<p>' + vv + '</p><br>';
}
if (lastreso.indexOf('data:image/') != -1) {
document.getElementById('rwording').innerHTML+='<img src=' + lastreso + '></img>';
document.getElementById('rwording').value+='<img src=' + lastreso + '></img>';
} else if (lastreso.indexOf('data:audio/') != -1) {
document.getElementById('rwording').innerHTML+='<audio controls><source type=audio/' + lastreso.split('data:audio/')[1].split(';')[0] + ' src=' + lastreso + '></source></audio>';
document.getElementById('rwording').value+='<audio controls><source type=audio/' + lastreso.split('data:audio/')[1].split(';')[0] + ' src=' + lastreso + '></source></audio>';
} else if (lastreso.indexOf('data:video/') != -1) {
document.getElementById('rwording').innerHTML+='<video controls><source type=video/' + lastreso.split('data:video/')[1].split(';')[0] + ' src=' + lastreso + '></source></video>';
document.getElementById('rwording').value+='<video controls><source type=video/' + lastreso.split('data:video/')[1].split(';')[0] + ' src=' + lastreso + '></source></video>';
}
} else {
alert('?lastreso=' + lastreso);
}
}
setTimeout(resocheck, 2000);
}
function putso() {
var innards='', innardsd='';
if (window.localStorage) {
if (options.length > 0) {
options.sort();
for (var iu=0; iu<options.length; iu++) {
innards+=innardsd + options[iu];
innardsd=(ourdelim + ourdelim); //';;';
}
localStorage.setItem('reminderso' + nextson, encodeURIComponent('<option value="' + innards.replace(/\"/g,'\\"') + '">' + (new Date()) + '</option>'));
}
}
document.getElementById('iorems').style.display='none';
}
function iffour(inf) {
if (inf.length >= 4) {
if (inf.slice(-2) == '00') {
return '.00';
} else if (inf.slice(-2) == '15') {
return '.25';
} else if (inf.slice(-2) == '30') {
return '.50';
} else if (inf.slice(-2) == '45') {
return '.75';
}
} else {
return inf;
}
}
function getso() {
var retso='', retson=1, thisso=' ', preretso='', postretso='';
var xinnards='';
var xi=1;
var tzd=0, tzh=0, tzm=0;
var thish=0, thism=0, thiss=0;
if (window.localStorage) {
while (thisso != '') {
thisso='';
if (localStorage.getItem('reminderso' + retson)) {
thisso=decodeURIComponent(localStorage.getItem('reminderso' + retson).replace(/^null$/g,'').replace(/^undefined$/g,'')).replace(/\+/g,' ');
}
if (thisso != '') {
retso+=thisso;
preretso='<option value="">Standing Order</option>';
postretso='<option value=" ">Delete Most Recent Standing Order</option>';
nextson=eval(1 + eval('' + retson));
}
retson++;
}
}
if (document.getElementById('tacount' + tdcount)) {
while (document.getElementById('tacount' + tdcount)) {
cti='' + (new Date());
if (cti.indexOf(' GMT') != -1 && document.getElementById('dacount' + tdcount).value.indexOf(' GMT') != -1) {
tzd=eval(eval(iffour(cti.replace(' GMT+',' GMT').replace(' GMT ',' GMT').split(' GMT')[1].split(' ')[0])) - eval(iffour(document.getElementById('dacount' + tdcount).value.replace(' GMT+',' GMT').replace(' GMT ',' GMT').split(' GMT')[1].split(' ')[0])));
tzh=eval(('' + tzd).split('.')[0]);
if (('' + tzh).indexOf('-') != -1) {
tzm-=eval(eval('0.' + ('' + tzd + '.00').split('.')[1]) * 60);
} else {
tzm+=eval(eval('0.' + ('' + tzd + '.00').split('.')[1]) * 60);
}
}
// Mon Jan 04 2021 19:54:05 GMT+1100
thish=eval('' + document.getElementById('dacount' + tdcount).value.split(':')[0].split(' ')[eval(-1 + document.getElementById('dacount' + tdcount).value.split(':')[0].split(' ').length)]);
thism=eval('' + document.getElementById('dacount' + tdcount).value.split(':')[1]);
if (eval(thism + tzm) >= 0 && eval(thism + tzm) <= 59) {
thism+=tzm;
if (eval(thish + tzh) >= 0 && eval(thish + tzh) <= 23) {
thish+=tzh;
} else {
thish+=tzh;
thish+=24;
thish=eval(thish % 24);
}
} else if (tzm < 0) {
thism+=tzm;
thism+=60;
thism=eval(thism % 60);
thish--;
thish+=tzh;
thish+=24;
thish=eval(thish % 24);
} else if (tzm > 0) {
thism+=tzm;
thism+=60;
thism=eval(thism % 60);
thish++;
thish+=tzh;
thish+=24;
thish=eval(thish % 24);
}
thiss=eval('' + document.getElementById('dacount' + tdcount).value.split(':')[2].split(' ')[0]);
xinnards=(("0" + thish).slice(-2) + ("0" + thism).slice(-2) + ("0" + thiss).slice(-2) + ourdelim + "-1" + ourdelim + document.getElementById('tacount' + tdcount).value);
thisso=('<option value="' + xinnards.replace(/\"/g,"") + '">' + (new Date()) + ' - ' + ("0" + thish).slice(-2) + ':' + ("0" + thism).slice(-2) + ':' + ("0" + thiss).slice(-2) + ' - ' + xi + ' - As Imported</option>').replace(/\+/g,' ');
xi++;
localStorage.setItem('reminderso' + nextson, encodeURIComponent(thisso));
retso+=thisso;
preretso='<option value="">Standing Order</option>';
postretso='<option value=" ">Delete Most Recent Standing Order</option>';
nextson++;
retson++;
tdcount++;
}
}
return preretso + retso + postretso;
}
function preprewois() {
prewois(xx);
}
function prewois(inv) {
var cb='';
var spare='';
var pprefix='<p>';
var pmiddle='';
var psuffix='</p>';
if ((inv.trim() + ' ').substring(0,1) == '<') {
if (firstgo) {
pprefix='';
} else {
pprefix='<br>';
}
psuffix='';
} else if ((inv.trim() + ' ').indexOf('<') != -1) {
pprefix='<div>';
pmiddle='</div><br><div>';
psuffix='</div>';
}
cb=crbr(inv);
if (iswi(wois) && 1 == 2) {
wois.close();
wois=null;
wois=window.open(document.URL.split('#')[0].split('?')[0] + '?msg=' + encodeURIComponent(inv),'_blank','top=250,left=800,width=500,height=500');
wois.focus();
wois.document.write(scriptstuff.trim() + dsp + pprefix + crbr(inv) + pmiddle + ' ... ' + (new Date()) + psuffix + dss);
//setTimeout(alater,2000);
} else if (iswi(wois)) {
midprefix=String.fromCodePoint(128718) + ' ';
if (document.title.indexOf(' (up to ') == -1) {
document.title=String.fromCodePoint(128718) + ' ' + maybe(document.getElementById('rwording').value,false) + ' ... ' + documenttitle;
timeaway=0;
origtimeaway=timeaway;
document.getElementById('nums').innerHTML='';
} else if (document.title.indexOf(midprefix) != 0) {
spare=document.title;
document.title=String.fromCodePoint(128718) + ' ' + spare;
}
document.getElementById('myh3').innerHTML=document.getElementById('myh3').innerHTML.split(' ... ')[0] + ' ... <span style="max-width:800px;overflow:scroll;" title="Last reminder" id=sglow class=glow>' + maybes(document.getElementById('rwording').value,true) + '</span>';
try {
if (wois) { if (!wois.closed) { wois.focus(); } }
} catch(jhjh) {
}
if (wois) {
try {
//if (!wois.closed) {
wois.document.write(scriptstuff.trim() + dsp + pprefix + cb + pmiddle + ' ... ' + (new Date()) + psuffix + dss);
//}
} catch(fgfhdhjgf) { }
}
}
scriptstuff=" ";
if (1 == 5) {
if (wois) {
wois.focus();
wois.document.write(dsp + pprefix + crbr(inv) + pmiddle + ' ... ' + (new Date()) + psuffix + dss);
wois.focus();
} else {
setTimeout(alater,2000);
}
}
firstgo=false;
}
function alater() {
//wois.document.write(xx);
//wois.focus();
if (xx != '' && wois) {
try {
if (!wois.closed) {
wois.document.title=xx;
}
} catch(hgfjhg) { }
}
}
function clearitis() {
document.getElementById('rwording').innerHTML='';
document.getElementById('rwording').value='';
}
function crbr(inst) {
var brsuff='', prevc='', svalp='', svals='';
var sval=inst + ' ... ' + (new Date());
if (scriptstuff == '') {
scriptstuff='<scr' + 'ipt type="text/javascript"> var curf=1, lastf=1, lastht=-1, pii="popup", idts=0, dts=[], lastih="", thisih=""; ';
scriptstuff+=' function justthis() { if (lastht != curf || 1 == 1) { lastht=curf; location.href="#popup" + curf; spechit(curf); } } ';
scriptstuff+=String.fromCharCode(10);
scriptstuff+=' function spechit(iw) { var iii=1; thisih=""; pii="popup" + iii, dts=document.getElementsByTagName("details"); idts=0; ';
scriptstuff+=' document.getElementById("alast").href="#popup" + lastf; document.getElementById("aprev").href="#popup" + Math.max(1, eval(-1 + curf)); document.getElementById("anext").href="#popup" + Math.min(lastf, eval(1 + curf)); ';
scriptstuff+=' while (document.getElementById(pii)) { if (iw == iii) { dts[idts].open=true; idts++; } else { dts[idts].open=false; idts++; } lastf=iii; thisih=pii; iii++; pii="popup" + iii; } ';
scriptstuff+=' } ';
scriptstuff+=String.fromCharCode(10);
scriptstuff+=' function lhit() { var iii=1; thisih=""; pii="popup" + iii; ';
scriptstuff+=' while (document.getElementById(pii)) { lastf=iii; thisih=pii; iii++; pii="popup" + iii; } ';
scriptstuff+=' pii="popup" + eval(-1 + iii); ';
scriptstuff+=' if (thisih.length > 0 && thisih != lastih) { lastih=thisih; dts=document.getElementsByTagName("details"); ';
scriptstuff+=' for (idts=0; idts<dts.length; idts++) { if (dts[idts].id != thisih) { dts[idts].open=false; } else { curf=eval(1 + idts); document.getElementById("alast").href="#popup" + lastf; document.getElementById("aprev").href="#popup" + Math.max(1, eval(-1 + curf)); document.getElementById("anext").href="#popup" + Math.min(lastf, eval(1 + curf)); } } location.href="#" + thisih; } } setInterval(lhit,1000); </sc' + 'ript>';
scriptstuff+=String.fromCharCode(10);
scriptstuff+='<sty' + 'le> ';
scriptstuff+=' details { width:100%; text-align:center; } ';
scriptstuff+=' summary { ';
scriptstuff+=' background-image: -o-linear-gradient(left top, rgba(205, 205, 205, 1) 0%, rgba(255, 255, 0, 0.2) 50%); ';
scriptstuff+=' background-image: -moz-linear-gradient(left top, rgba(205, 205, 205, 1) 0%, rgba(255, 255, 0, 0.2) 50%); ';
scriptstuff+=' background-image: -webkit-linear-gradient(left top, rgba(205, 205, 205, 1) 0%, rgba(255, 255, 0, 0.2) 50%); ';
scriptstuff+=' background-image: -ms-linear-gradient(left top, rgba(205, 205, 205, 1) 0%, rgba(255, 255, 0, 0.2) 50%); ';
scriptstuff+=' background-image: linear-gradient(to left top, rgba(205, 205, 205, 1) 0%, rgba(255, 255, 0, 0.2) 50%); ';
scriptstuff+='</sty' + 'le> ';
scriptstuff+=String.fromCharCode(10);
}
dsp='<details id=popup' + pppid + ' open><summary>🛎 ' + (new Date()) + popuphashtag + '</summary>';
dss='</details>';
pppid++;
if (sval.indexOf('<') == -1) { svalp='<p>'; svals='</p>'; }
if (1 == 1) {
prevc=document.getElementById('selrems').innerHTML;
document.getElementById('selrems').innerHTML='<option value="' + sval.replace(/\</g,'<').replace(/\>/g,'>').replace(/\"/g,"'") + '">' + sval.replace(/\</g,'<').replace(/\>/g,'>').replace(/\"/g,"'") + '</option>' + prevc;
} else {
document.getElementById('selrems').innerHTML+='<option value="' + sval.replace(/\</g,'<').replace(/\>/g,'>').replace(/\"/g,"'") + '">' + sval.replace(/\</g,'<').replace(/\>/g,'>').replace(/\"/g,"'") + '</option>';
}
prevc='';
document.getElementById('selrems').style.display='inline-block';
document.getElementById('selrems').value=sval.replace(/\</g,'<').replace(/\>/g,'>').replace(/\"/g,"'");
if (detailscount == 1) {
brsuff='<hr>';
document.getElementById('divmore').innerHTML+="<details id=details" + detailscount + " style='width:100%;' open><summary>🛎 " + (new Date()) + " via <a href=#myh1 title=Top>Reminders in Session</a><a onclick=htrtop(); href=#cbi title=Iframe> 🎥</a></summary><br>" + svalp + sval.split(' ... ')[0] + svals + '</details>' + brsuff + "<br>";
} else {
prevc=document.getElementById('divmore').innerHTML.replace(/\<hr\>/g,'').replace(/\ open\>/g,'>').replace(/\ open\=/g,' data-open=') + '<hr>';
//alert(prevc.slice(-200));
//alert(prevc.substring(0,200));
document.getElementById('divmore').innerHTML='<hr>' + "<details id=details" + detailscount + " style='width:100%;' open><summary>🛎 " + (new Date()) + " via <a href=#myh1 title=Top>Reminders in Session</a><a onclick=htrtop(); href=#cbi title=Iframe> 🎥</a></summary><br>" + svalp + sval.split(' ... ')[0] + svals + '</details>' + "<br>" + prevc;
}
detailscount++;
document.getElementById('myh3').title=inst.replace(/\</g,'<').replace(/\>/g,'>').replace(/\"/g,"'");
if (document.getElementById('sglow')) {
//document.getElementById('sglow').innerHTML=inst;
if (document.title.indexOf(' ... ') > document.title.indexOf(' ') && document.title.indexOf(' (up to ') == -1) {
document.title=document.title.replace(document.title.substring(eval(eval('' + document.title.indexOf(' ')) + 1)).split(' ... ')[0], inst);
}
}
while (inst.indexOf(String.fromCharCode(10)) != -1) {
inst=inst.replace(String.fromCharCode(10), '<br>');
}
if (document.getElementById('sglow')) {
document.getElementById('sglow').innerHTML=inst;
}
return inst;
}
function createReminder(what, when) {
var other='', whenvalue='', latestdate=new Date();
if (('' + when.id).indexOf('number') == -1 && hastobedec != '') {
if (what != '') {
if (('' + maxsofar).indexOf('-') != -1 || eval('' + hastobedec) > eval('' + maxsofar)) {
document.title=midprefix + 'Waiting ' + hastobedec + ' (up to ' + hastobedec + ' remaining) seconds from ' + (new Date()) + ' ... ' + documenttitle;
when=document.getElementById('rnumber');
other=hastobedec;
timeaway=eval('' + other);
origtimeaway=timeaway;
dd1=new Date();
document.getElementById('nums').innerHTML='';
document.getElementById('myh3').innerHTML=document.getElementById('myh3').innerHTML.split(' ... ')[0];
}
if (eval('' + hastobedec) > eval('' + maxsofar)) { maxsofar=eval('' + hastobedec); }
}
} else if (('' + whenvalue).indexOf('-') == -1) {
whenvalue=when.value;
if (('' + maxsofar).indexOf('-') != -1 || eval('' + whenvalue) > eval('' + maxsofar)) {
document.title=midprefix + 'Waiting ' + whenvalue + ' (up to ' + whenvalue + ' remaining) seconds from ' + (new Date()) + ' ... ' + documenttitle;
timeaway=eval('' + whenvalue);
origtimeaway=timeaway;
dd1=new Date();
document.getElementById('nums').innerHTML='';
document.getElementById('myh3').innerHTML=document.getElementById('myh3').innerHTML.split(' ... ')[0];
}
if (eval('' + whenvalue) > eval('' + maxsofar)) { maxsofar=eval('' + whenvalue); }
}
if (('' + when.id).indexOf('number') != -1 && what != '') {
myfuncs.push(myfunc);
thesewords.push(what);
latestdate.setTime(latestdate.getTime() + eval(eval('' + timeaway) * 1000))
thesedates.push(latestdate);
if (other != '') {
theseseconds.push(-1);
document.getElementById('iorems').style.display='inline-block';
document.getElementById('aemail').style.display='inline-block';
document.getElementById('asms').style.display='inline-block';
//alert(what);
options.push(("0" + latestdate.getHours()).slice(-2) + ("0" + eval(0 + latestdate.getMinutes())).slice(-2) + ("0" + latestdate.getSeconds()).slice(-2) + ourdelim + "-1" + ourdelim + what);
setTimeout(myfuncs[eval(-1 + myfuncs.length)], eval(1000 * eval('' + other)), what);
} else if (('' + whenvalue).indexOf('-') == -1) {
theseseconds.push(eval('' + whenvalue));
document.getElementById('iorems').style.display='inline-block';
document.getElementById('aemail').style.display='inline-block';
document.getElementById('asms').style.display='inline-block';
//alert(what);
options.push(("0" + latestdate.getHours()).slice(-2) + ("0" + eval(0 + latestdate.getMinutes())).slice(-2) + ("0" + latestdate.getSeconds()).slice(-2) + ourdelim + eval('' + whenvalue) + ourdelim + what);
setTimeout(myfuncs[eval(-1 + myfuncs.length)], eval(1000 * eval('' + whenvalue)), what);
}
}
hastobe='';
hastobedec='';
}
function amc() {
if (amsg != '') {
if ((amsg.trim() + ' ').substring(0,1) == '<') {
document.body.innerHTML=amsg.trim();
} else if ((amsg.trim() + ' ').indexOf('<') != -1) {
document.body.innerHTML='<div>' + crbr(amsg) + '</div>';
} else {
document.body.innerHTML='<p>' + crbr(amsg) + '</p>';
}
} else {
document.getElementById('mydiv').style.display='block';
}
}
function preonl(setit) {
d = new Date();
h = d.getHours();
m = d.getMinutes();
s = d.getSeconds();
if (setit) {
onl();
}
}
function throbbingspans() {
var isps, jsps;
if (tgsps.length == 0) {
var sps=document.getElementsByTagName('span');
for (isps=0; isps<sps.length; isps++) {
if (('' + sps[isps].style.opacity) != '') {
if (eval('' + sps[isps].style.opacity) < 1.0) {
tgsps.push(sps[isps]);
tgspsop.push(eval('' + sps[isps].style.opacity));
tgspsopwhat.push(eval('0.10'));
}
}
}
}
if (tgsps.length != 0) {
for (jsps=0; jsps<tgsps.length; jsps+=2) {
if (tgspsop[jsps] > 0.12 && tgspsop[jsps] < 0.88 && tgspsop[1 + jsps] > 0.12 && tgspsop[1 + jsps] < 0.88) { // && tgspsop[jsps] >= tgspsop[1 + jsps]) {
tgspsop[jsps]+=tgspsopwhat[jsps];
tgspsop[1 + jsps]-=tgspsopwhat[1 + jsps];
tgsps[jsps].style.opacity='' + tgspsop[jsps];
tgsps[1 + jsps].style.opacity='' + tgspsop[1 + jsps];
} else if (tgspsop[jsps] > 0.12 && tgspsop[jsps] < 0.88 && tgspsop[1 + jsps] > 0.12 && tgspsop[1 + jsps] < 0.88) { // && tgspsop[jsps] <= tgspsop[1 + jsps]) {
tgspsop[jsps]-=tgspsopwhat[jsps];
tgspsop[1 + jsps]+=tgspsopwhat[1 + jsps];
tgsps[jsps].style.opacity='' + tgspsop[jsps];
tgsps[1 + jsps].style.opacity='' + tgspsop[1 + jsps];
} else if (tgspsop[jsps] > 0.88) {
tgspsop[jsps]-=0.1;
tgspsop[1 + jsps]+=0.1;
tgsps[jsps].style.opacity='' + tgspsop[jsps];
tgsps[1 + jsps].style.opacity='' + tgspsop[1 + jsps];
tgspsopwhat[jsps]=-tgspsopwhat[jsps];
tgspsopwhat[1 + jsps]=-tgspsopwhat[1 + jsps];
} else if (tgspsop[1 + jsps] > 0.88) {
tgspsop[jsps]+=0.1;
tgspsop[1 + jsps]-=0.1;
tgsps[jsps].style.opacity='' + tgspsop[jsps];
tgsps[1 + jsps].style.opacity='' + tgspsop[1 + jsps];
tgspsopwhat[jsps]=-tgspsopwhat[jsps];
tgspsopwhat[1 + jsps]=-tgspsopwhat[1 + jsps];
} else if (tgspsop[1 + jsps] < 0.12) {
tgspsop[jsps]-=0.1;
tgspsop[1 + jsps]+=0.1;
tgsps[jsps].style.opacity='' + tgspsop[jsps];
tgsps[1 + jsps].style.opacity='' + tgspsop[1 + jsps];
tgspsopwhat[jsps]=-tgspsopwhat[jsps];
tgspsopwhat[1 + jsps]=-tgspsopwhat[1 + jsps];
} else if (tgspsop[jsps] < 0.12) {
tgspsop[jsps]+=0.1;
tgspsop[1 + jsps]-=0.1;
tgsps[jsps].style.opacity='' + tgspsop[jsps];
tgsps[1 + jsps].style.opacity='' + tgspsop[1 + jsps];
tgspsopwhat[jsps]=-tgspsopwhat[jsps];
tgspsopwhat[1 + jsps]=-tgspsopwhat[1 + jsps];
}
}
setTimeout(throbbingspans, 900);
}
}
function onl() {
var rectd=null, rectt=null, cti='', tzd=0;
document.getElementById('ih').value=('0' + h).slice(-2);
document.getElementById('im').value=('0' + m).slice(-2);
document.getElementById('is').value=('0' + s).slice(-2);
if (amsg == '') {
document.getElementById('divmore').innerHTML='<hr>';
document.getElementById('sorems').innerHTML=getso();
//document.getElementById('divmymsr').style.display='block';
//document.getElementById('dmymsr').innerHTML+="<iframe onload=checkrest(this); style='width:100%;height:600px;' src=/macos_say_record.php id=mymsr></iframe>";
}
if (document.getElementById('sorems').innerHTML != '') {
document.getElementById('sorems').style.display='inline-block';
}
if (amsg == '') {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.getElementById('mytdiv').style.width='100%';
document.getElementById('mytdiv').style.textAlign='center';
rectd=document.getElementById('mytdiv').getBoundingClientRect();
rectt=document.getElementById('mytable').getBoundingClientRect();
console.log(rectt);
//alert('' + eval('' + rectd.width) + ' vs ' + eval('' + rectt.right));
if (eval('' + rectt.width) != 0 && eval('' + rectd.width) > eval('' + rectt.right)) {
//alert('1:' + eval(eval(eval('' + rectd.width) - eval('' + rectt.right)) / 2) + 'px');
document.getElementById('mytable').style.marginLeft='' + eval(eval(eval('' + rectd.width) - eval('' + rectt.right)) / 2) + 'px';
} else if (eval('' + rectt.width) == 0 && eval('' + rectd.width) > eval('940')) {
//alert('2:' + eval(eval(eval('' + rectd.width) - eval('800')) / 2) + 'px');
document.getElementById('mytable').style.marginLeft='' + eval(eval(eval('' + rectd.width) - eval('940')) / 2) + 'px';
}
} else if (document.getElementById('rwording').value == '') {
//document.getElementById('mytdiv').style.width='100%';
//document.getElementById('mytdiv').style.textAlign='center';
//rectd=document.getElementById('mytdiv').getBoundingClientRect();
rectd=document.body.getBoundingClientRect();
rectt=document.getElementById('mytable').getBoundingClientRect();
//var rectts=document.getElementById('mytable').getClientRects();
//rectt=rectts[0];
console.log(rectt);
//alert('' + eval('' + rectd.width) + ' vs ' + eval('' + rectt.right));
if (eval('' + rectt.width) != 0 && eval('' + rectd.width) > eval('' + rectt.right)) {
//alert('1:' + eval(eval(eval('' + rectd.width) - eval('' + rectt.right)) / 2) + 'px');
document.getElementById('mytable').style.marginLeft='' + eval(eval(eval('' + rectd.width) - eval('' + rectt.right)) / 2) + 'px';
} else if (eval('' + rectt.width) == 0 && eval('' + rectd.width) > eval('940')) {
//alert('2:' + eval(eval(eval('' + rectd.width) - eval('800')) / 2) + 'px');
document.getElementById('mytable').style.marginLeft='' + eval(eval(eval('' + rectd.width) - eval('940')) / 2) + 'px';
}
setTimeout(flater, 3000);
//document.getElementById('rwording').focus();
}
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) && fgo) {
if (1 == 1) {
document.getElementById('mydiv').style.display='block';
setTimeout(alater, 2000);
} else if (fgo) {
wois=window.open(document.URL.split('#')[0].split('?')[0] + '?msg=' + encodeURIComponent(' '),'_blank'); //,'top=250,left=800,width=500,height=500');
if (wois) {
if (wois.closed) {
wois=null;
}
}
}
} else if (fgo) {
wois=window.open(document.URL.split('#')[0].split('?')[0] + '?msg=' + encodeURIComponent(' '),'_blank','top=250,left=800,width=500,height=500');
if (wois) {
if (wois.closed) {
wois=null;
}
}
}
//wois.document.title='Only Minimize Me (or lose Dynamic Timer)';
//setTimeout(myfunc,100,x);
}
if (amsg == '' && fgo) {
htrect=document.getElementById('divmymsr').getBoundingClientRect();
document.getElementById('divmymsr').style.display='block';
document.getElementById('dmymsr').innerHTML+="<iframe onload=checkrest(this); style='width:100%;height:600px;' src=/macos_say_record.php id=mymsr></iframe>";
throbbingspans();
}
//if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
fgo=false;
//}
}
function alater() {
wois=window.open(document.URL.split('#')[0].split('?')[0] + '?msg=' + encodeURIComponent(' '),'_blank'); //,'top=250,left=800,width=500,height=500');
if (wois) {
if (wois.closed) {
wois=null;
}
}
}
function flater() {
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.getElementById('rwording').focus();
}
}
function precheckfor() {
preonl(0);
var ii=eval(eval(('' + h).slice(-2)) * 3600);
ii+=eval(eval(('' + m).slice(-2)) * 60);
ii+=eval(eval(('' + s).slice(-2)) * 1);
document.getElementById('isecs').value='' + eval(eval('' + hastobedec) - eval('' + ii));
setTimeout(resetit, 1000);
checkfor();
}
function checkfor() {
preonl(0);
if ((('0' + h).slice(-2) + ('0' + m).slice(-2) + ('0' + s).slice(-2)) >= hastobe) {
eval('setTimeout(function() { ' + document.getElementById('jsis').value + ' }, 1)');
preonl(1);
} else {
setTimeout(checkfor, 1000);
}
}
function resetit() {
if (eval('' + document.getElementById('isecs').value) >= 0) {
document.getElementById('isecs').value='' + eval(-1 + eval('' + document.getElementById('isecs').value));
setTimeout(resetit, 1000);
}
}
function go(ob) {
var ansis='', althastobedec=0, latedate=new Date(), laterdate=new Date(), platedate=new Date(), firstdate=new Date(), nextdate, dateone=false;
//if (eval('' + document.getElementById('isecs').value) > -1) {
// eval('setTimeout(function() { ' + document.getElementById('jsis').value + String.fromCharCode(10) + ' document.getElementById("isecs").value="-1"; preonl(1); }, ' + eval(eval('' + document.getElementById('isecs').value) * 1000) + ')');
// setTimeout(resetit, 1000);
//} else {
var xd = new Date();
var xh = xd.getHours();
var xm = xd.getMinutes();
var xs = xd.getSeconds();
var lessseconds=0;
var repeats=0, irepeats=0;
hastobe=document.getElementById('ih').value + document.getElementById('im').value + document.getElementById('is').value;
hastobedec=eval(eval(eval('' + document.getElementById('ih').value) * 3600) - eval(eval('' + xh) * 3600));
hastobedec+=eval(eval(eval('' + document.getElementById('im').value) * 60) - eval(eval('' + xm) * 60));
hastobedec+=eval(eval('' + document.getElementById('is').value) - eval('' + xs));
if (eval('' + hastobedec) > 0) {
try {
if (wois) {
if (!wois.closed) {
wois.focus();
}
}
} catch(aghhr) { }
createReminder(document.getElementById('rwording').value, ob);
//precheckfor(); // setTimeout(checkfor, 1000);
} else {
hastobe='';
if (viaso) {
//alert(3);
althastobedec=hastobedec;
platedate.setTime(platedate.getTime() + eval(eval(eval('' + althastobedec) + eval(24 * 60 * 60)) * 1000));
//alert('is ' + platedate + ' in ' + alreadydonelist);
while (('' + alreadydonelist + hastobedec + ',').indexOf('' + althastobedec) != -1 || ('' + alreadydonelist + hastobedec + ',').indexOf('' + platedate) != -1) {
althastobedec+=eval(24 * 60 * 60);
if (dateone) { platedate.setTime(platedate.getTime() + eval(eval(0 + eval(24 * 60 * 60)) * 1000)); }
dateone=true;
}
hastobedec='';
latedate.setTime(latedate.getTime() + eval(eval('' + althastobedec) * 1000));
ansis=prompt('Can hang around until next unique time at ' + latedate + ' if you leave answer as supplied, else Cancel. The number after decimal point could be number of repeat entries.', '' + althastobedec + '.0');
if (ansis == null) { ansis=''; }
if (ansis.trim() == '') { document.getElementById('rwording').value=''; }
if (ansis.indexOf('.') != -1) { repeats=eval('0' + ansis.split('.')[1]); ansis=ansis.split('.')[0]; }
for (irepeats=0; irepeats<=repeats; irepeats++) {
//firstdate=new Date();
//latedate=new Date();
if (ansis.indexOf('-') == -1 && ansis.trim() != '') {
if (ansis == ('' + althastobedec)) {
alreadydonelist+='' + ('' + althastobedec) + ',' + latedate + ',';
nextdate=new Date();
lessseconds = Math.floor(eval(eval('' + firstdate.getTime()) - eval('' + nextdate.getTime())) / 1000);
//alert('' + eval('' + firstdate.getTime()) + ' vs ' + eval('' + nextdate.getTime()) + ' ... ' + lessseconds);
hastobedec=eval(lessseconds + eval('' + ansis));
alreadydonelist+='' + ('' + hastobedec) + ',';
if (document.getElementById('sorems').title == '') { document.getElementById('sorems').title='Pending ' + latedate; } else {
document.getElementById('sorems').title+=' and ' + latedate; }
document.getElementById('selrems').title=document.getElementById('sorems').title;
} else {
hastobedec=eval('' + ansis);
laterdate.setTime(laterdate.getTime() + eval(eval('' + ansis) * 1000))
alreadydonelist+='' + ('' + ansis) + ',';
if (document.getElementById('sorems').title == '') { document.getElementById('sorems').title='Pending ' + laterdate; } else {
document.getElementById('sorems').title+=' and ' + laterdate; }
document.getElementById('selrems').title=document.getElementById('sorems').title;
}
try {
if (wois) {
if (!wois.closed) {
wois.focus();
}
}
} catch(ewrt) { }
createReminder(document.getElementById('rwording').value, ob);
}
althastobedec+=eval(eval('' + althastobedec) + 24 * 60 * 60);
ansis='' + althastobedec;
latedate.setTime(latedate.getTime() + eval(24 * 60 * 60) * 1000);
}
} else {
hastobedec='';
alert('Sorry, we only look forward into today.');
}
}
//}
}
function diff_seconds(dt2, dt1) { // thanks to https://www.w3resource.com/javascript-exercises/javascript-date-exercise-44.php
var diff =(dt2.getTime() - dt1.getTime()) / 1000;
return Math.abs(Math.round(diff));
}
function dotimeawaytwo() {
setTimeout(dotimeawaytwo, 1000);
dd2=new Date();
if (eval('' + timeaway) > 0) {
var taw='(up to ' + timeaway + ' ';
if (document.title.indexOf(' (up to ') != -1) {
taw='(up to ' + document.title.split(' (up to ')[1].split(' ')[0] + ' ';
}
var absi=eval(-1 + origtimeaway - diff_seconds(dd2,dd1));
document.title=document.title.replace(taw + 'remaining) ', '(up to ' + absi + ' remaining) ');
document.getElementById('nums').innerHTML=' up to ' + absi;
}
}
function rwit(invis) {
if (invis.indexOf('<img ') == 0 && invis.indexOf('data:image/') != -1) {
document.getElementById('rwording').style.backgroundImage='linear-gradient(rgba(255,255,255,0.3),rgba(255,255,255,0.3)),URL(data:image/' + invis.split('data:image/')[1].split('"')[0].split("'")[0].split('>')[0] + ')';
document.getElementById('rwording').style.backgoundRepeat='no-repeat';
document.getElementById('rwording').style.backgoundSize='contain';
} else {
document.getElementById('rwording').style.background='';
}
document.getElementById('rwording').value=invis.split(' ... ')[0]; //.replace(/\</g, '<').replace(/\>/g,'>')
document.getElementById('rwording').innerHTML=invis.split(' ... ')[0].replace(/\</g, '<').replace(/\>/g,'>')
}
function maybes(inid, tenout) {
var preinid='';
if (document.getElementById('myh3').title != '') {
inid=document.getElementById('myh3').title.replace(/\<\;/g,'<').replace(/\>\;/g,'>').replace(/\<img\ /g,'<img style=width:300px; ').replace(/\<audio\ controls/g,'<audio style=width:300px; controls autoplay').replace(/\<video\ controls/g,'<video style=width:300px; controls autoplay');
}
if (tenout && inid.indexOf(String.fromCharCode(10)) != -1) {
preinid='<br><br>';
while (inid.indexOf(String.fromCharCode(10)) != -1) {
inid=inid.replace(String.fromCharCode(10), '<br>');
}
}
return preinid + inid;
}
function maybe(inid, tenout) {
var preinid='';
if (document.getElementById('myh3').title != '') {
inid=document.getElementById('myh3').title;
}
if (tenout && inid.indexOf(String.fromCharCode(10)) != -1) {
preinid='<br><br>';
while (inid.indexOf(String.fromCharCode(10)) != -1) {
inid=inid.replace(String.fromCharCode(10), '<br>');
}
}
return preinid + inid;
}
function selremt() {
if (('' + document.getElementById('selrems').title) != '') {
alert(document.getElementById('selrems').title);
}
}
function dotimeaway() {
if (eval('' + timeaway) > 0) {
timeaway--;
document.getElementById('nums').innerHTML=' up to ' + timeaway;
if (eval('' + timeaway) == 0) {
document.getElementById('myh3').innerHTML=document.getElementById('myh3').innerHTML.split(' ... ')[0] + ' ... <span style="max-width:800px;overflow:scroll;" title="Last reminder" id=sglow class=glow>' + maybe(document.getElementById('rwording').value,true) + '</span>';
midprefix=String.fromCodePoint(128718) + ' ';
if (document.title.indexOf(' (up to ') == -1) {
document.title=String.fromCodePoint(128718) + ' ' + maybe(document.getElementById('rwording').value,false) + ' ... ' + documenttitle;
timeaway=0;
origtimeaway=timeaway;
document.getElementById('nums').innerHTML='';
} else if (document.title.indexOf(midprefix) != 0) {
spare=document.title;
document.title=String.fromCodePoint(128718) + ' ' + spare;
timeaway=0;
origtimeaway=timeaway;
document.getElementById('nums').innerHTML='';
}
document.getElementById('myh3').title='';
document.getElementById('nums').innerHTML='';
d = new Date();
h = d.getHours();
m = d.getMinutes();
s = d.getSeconds();
onl();
}
}
if (document.getElementById('result').innerHTML != '') {
dres=document.getElementById('result').innerHTML;
document.getElementById('result').innerHTML='';
if (dres.indexOf('data:image/') != -1) {
document.getElementById('rwording').value+='<img src=' + dres + '></img>';
document.getElementById('rwording').innerHTML+='<img src=' + dres + '></img>';
} else if (dres.indexOf('data:audio/') != -1) {
document.getElementById('rwording').value+='<audio controls><source type=audio/' + dres.split('data:audio/')[1].split(';')[0] + ' src=' + dres + '></source></audio>';
document.getElementById('rwording').innerHTML+='<audio controls><source type=audio/' + dres.split('data:audio/')[1].split(';')[0] + ' src=' + dres + '></source></audio>';
} else if (dres.indexOf('data:video/') != -1) {
document.getElementById('rwording').value+='<video controls><source type=video/' + dres.split('data:video/')[1].split(';')[0] + ' src=' + dres + '></source></video>';
document.getElementById('rwording').innerHTML+='<video controls><source type=video/' + dres.split('data:video/')[1].split(';')[0] + ' src=' + dres + '></source></video>';
}
} else if (document.getElementById('resultav').innerHTML != '') {
dres=document.getElementById('resultav').innerHTML;
document.getElementById('resultav').innerHTML='';
if (dres.indexOf('data:image/') != -1) {
document.getElementById('rwording').value+='<img src=' + dres + '></img>';
document.getElementById('rwording').innerHTML+='<img src=' + dres + '></img>';
} else if (dres.indexOf('data:audio/') != -1) {
document.getElementById('rwording').value+='<audio controls><source type=audio/' + dres.split('data:audio/')[1].split(';')[0] + ' src=' + dres + '></source></audio>';
document.getElementById('rwording').innerHTML+='<audio controls><source type=audio/' + dres.split('data:audio/')[1].split(';')[0] + ' src=' + dres + '></source></audio>';
} else if (dres.indexOf('data:video/') != -1) {
document.getElementById('rwording').value+='<video controls><source type=video/' + dres.split('data:video/')[1].split(';')[0] + ' src=' + dres + '></source></video>';
document.getElementById('rwording').innerHTML+='<video controls><source type=video/' + dres.split('data:video/')[1].split(';')[0] + ' src=' + dres + '></source></video>';
}
}
}
function checkmedia(iois) {
if (iois != null) {
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
var hs=aconto.getElementsByTagName('h1');
hs[0].style.display='none';
hs=aconto.getElementsByTagName('h3');
hs[0].style.display='none';
console.log(1);
fbr=aconto.getElementById('files');
setTimeout(laterfbr,3000);
aconto.getElementById('files').accept='.pdf,audio/*,video/*,image/*';
console.log(2);
}
}
}
}
function checkrest(iois) {
if (iois != null) {
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
reso=aconto.getElementById('result');
setTimeout(resocheck, 1000);
}
}
}
}
function laterfbr() {
if (fbr) {
console.log(11);
fbr.accept='.pdf,audio/*,video/*,image/*';
console.log(12);
}
}
function lookfvsres() {
fvsres('pointer');
}
function fvsres(inv) {
if (newres == '') {
if (inv == 'progress') {
vsres=document.getElementById('result').innerHTML;
setTimeout(lookfvsres, 2000);
return inv;
} else if (inv == 'pointer') {
if (vsres != document.getElementById('result').innerHTML) {
document.getElementById('inum').innerHTML='1';
document.getElementById('result').style.cursor=inv;
vsres=document.getElementById('result').innerHTML;
} else {
setTimeout(lookfvsres, 2000);
}
}
}
return inv;
}
function formit(instis, peto) {
if (peto != peto.toUpperCase()) { return instis; }
var tacount=1, iou=0, postoutis='', dacount=1;
var btext='';
var odateis='';
var outis=instis;
var dtsare=instis.split('</details>');
for (iou=0; iou<eval(-1 + dtsare.length); iou++) {
btext='';
if (dtsare[iou].split('</summary>')[eval(-1 + dtsare[iou].split('</summary>').length)].replace('<br>','').replace(/\<p\>/g,'').replace(/\<\/p\>/g,'').indexOf('data:image/') != -1) {
btext='style="background:URL(data:image/' + dtsare[iou].split('</summary>')[eval(-1 + dtsare[iou].split('</summary>').length)].replace('<br>','').replace(/\<p\>/g,'').replace(/\<\/p\>/g,'').split('data:image/')[1].split('"')[0].split("'")[0].split('>')[0] + '); background-repeat: no-repeat; background-size:contain;"' + ' ';
}
outis=outis.replace('</summary>' + dtsare[iou].split('</summary>')[eval(-1 + dtsare[iou].split('</summary>').length)] + '</details>', '</summary><textarea ' + btext + 'id=tacount' + tacount + ' name=tacount' + tacount + '>' + dtsare[iou].split('</summary>')[eval(-1 + dtsare[iou].split('</summary>').length)].replace('<br>','').replace(/\<p\>/g,'').replace(/\<\/p\>/g,'') + '</textarea></details>');
tacount++;
}
dtsare=instis.split(' via ');
for (iou=0; iou<eval(-1 + dtsare.length); iou++) {
odateis=dtsare[iou].split('<summary>')[eval(-1 + dtsare[iou].split('<summary>').length)];
odateis=odateis.replace(odateis.split(' ')[0] + ' ','');
postoutis+='<input type=hidden id= id=dacount' + dacount + ' name=dacount' + dacount + ' value="' + odateis + '"></input>';
dacount++;
}
//alert(postoutis);
//alert(outis);
//alert('<form method=POST action=http://www.rjmprogramming.com.au/HTMLCSS/stparam.php>' + outis + '<br><br><input type=submit value=Import></input></form>');
return '<form method=POST action=http://www.rjmprogramming.com.au/HTMLCSS/stparam.php>' + outis + postoutis + '<br><br><input type=submit value="Import Reminders as Standing Orders"></input></form>';
}
if (amsg == '') { setTimeout(amc, 3000); }
if (amsg == '') { setInterval(dotimeaway, 1000); setTimeout(dotimeawaytwo, 900); }
</script>
<style>
td { vertical-align: top; }
textarea { background-color: #f0f0f0; }
select { background-color: pink; }
input[type=number] { background-color: #e0e0e0; }
details { width:100%; text-align:center; }
summary {
background-image: -o-linear-gradient(left top, rgba(205, 205, 205, 1) 0%, rgba(255, 255, 0, 0.2) 50%);
background-image: -moz-linear-gradient(left top, rgba(205, 205, 205, 1) 0%, rgba(255, 255, 0, 0.2) 50%);
background-image: -webkit-linear-gradient(left top, rgba(205, 205, 205, 1) 0%, rgba(255, 255, 0, 0.2) 50%);
background-image: -ms-linear-gradient(left top, rgba(205, 205, 205, 1) 0%, rgba(255, 255, 0, 0.2) 50%);
background-image: linear-gradient(to left top, rgba(205, 205, 205, 1) 0%, rgba(255, 255, 0, 0.2) 50%);
}
#smymsr {
background-image: -o-linear-gradient(left top, rgba(105, 205, 205, 1) 0%, rgba(155, 255, 0, 0.2) 50%);
background-image: -moz-linear-gradient(left top, rgba(105, 205, 205, 1) 0%, rgba(155, 255, 0, 0.2) 50%);
background-image: -webkit-linear-gradient(left top, rgba(105, 205, 205, 1) 0%, rgba(155, 255, 0, 0.2) 50%);
background-image: -ms-linear-gradient(left top, rgba(105, 205, 205, 1) 0%, rgba(155, 255, 0, 0.2) 50%);
background-image: linear-gradient(to left top, rgba(105, 205, 205, 1) 0%, rgba(155, 255, 0, 0.2) 50%);
}
.glow {
-webkit-animation: glow 1s ease-in-out infinite alternate;
-moz-animation: glow 1s ease-in-out infinite alternate;
animation: glow 1s ease-in-out infinite alternate;
}
/* Thanks to https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_glowing_text */
@-webkit-keyframes glow {
from {
box-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 37px #e60073, 0 0 9px #e60073, 0 0 11px #e60073, 0 0 13px #e60073, 0 0 15px #e60073;
}
to {
box-shadow: 0 0 24px #fff, 0 0 6px #ff4da6, 0 0 8px #ff4da6, 0 0 10px #ff4da6, 0 0 12px #ff4da6, 0 0 14px #ff4da6, 0 0 16px #ff4da6;
}
}
</style>
</head>
<body onload='onl();'>
<div id=mydiv style='display:none;'>
<h1 id=myh1 style='padding-bottom:5px;background-color:yellow;outline:2px solid rgba(255,0,0,0.5);text-align:center;'><select title='' onchange=soit(this); style='margin-left:12px;margin-right:10px;display:none;width:120px;' onfocus="this.style.width='230px';" id=sorems></select><input onclick=putso(); id=iorems style='margin-left:12px;margin-right:10px;display:none;' type=button value='Make a Standing Order'></input> <a id=aemail style=display:none; ondblclick='dci=true; emailit();' onclick='dci=false; emailit();' title='Email ... double click to use PHP mail'>📧</a> <a id=asms style=display:none; onclick=smsit(); title=SMS>📟</a> Reminders <select onchange=rwit(this.value); title='' style='display:none;font-size:8px;max-width:450px;' onmouseover="selrf=true;" onmouseout="selrf=false;" onfocus="if (!selrf || navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { if (this.title.length > 0) { setTimeout(selremt,2000); } }" id=selrems></select> in Session</h1>
<h3 style='text-align:center;' title='' id=myh3>RJM Programming - December, 2020 ... Please only Minimize Popup</h3>
<h4 style='text-align:center;'>Thanks to <a target=_blank title='https://stackoverflow.com/questions/32326721/pass-parameter-to-settimeout-callback-function/32326935' href='https://stackoverflow.com/questions/32326721/pass-parameter-to-settimeout-callback-function/32326935'>https://stackoverflow.com/questions/32326721/pass-parameter-to-settimeout-callback-function/32326935</a></h4>
<div id=mytdiv style='display:inline-block;'>
<table style='display:inline-block;' id=mytable border=20 cellspacing=20 cellpadding=20>
<tr><th>Reminder Wording or <input style="display:inline-block;border:1px solid red;" type=button title='Clear below' onclick=clearitis(); value="🧹"></input> <iframe onload="checkmedia(this);" frameborder="0" id="cbi" data-style="border-top:1px solid black;border-bottom:1px solid black;border-left:2px solid yellow;border-right:1px solid yellow;" style="width:116px;height:28px;margin-top:0px;" onmouseover="vsres=document.getElementById('result').innerHTML; document.getElementById('result').style.cursor=fvsres('progress');" src="client_browsing.htm?gfn=00000220.238.10.100.gif&d=156261280#Most%20people%20recognize%20me%20by%20my%20voice."></iframe> ... at ...</th><th>Reminder Time ... or ...</th><th>Reminder Time Away in<span id=nums></span> Seconds</th></tr>
<tr><td><textarea rows=6 placeholder='Reminder wording ... at ...' id='rwording' value='' style='width:98%;'></textarea></td><td>
At/after this time: <select title="Hours" style="inline-block;" id="ih"><option value="00">00</option><option value="01">01</option><option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
</select>:<select title="Minutes" style="inline-block;" id="im"><option value="00">00</option><option value="01">01</option><option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
<option value="32">32</option>
<option value="33">33</option>
<option value="34">34</option>
<option value="35">35</option>
<option value="36">36</option>
<option value="37">37</option>
<option value="38">38</option>
<option value="39">39</option>
<option value="40">40</option>
<option value="41">41</option>
<option value="42">42</option>
<option value="43">43</option>
<option value="44">44</option>
<option value="45">45</option>
<option value="46">46</option>
<option value="47">47</option>
<option value="48">48</option>
<option value="49">49</option>
<option value="50">50</option>
<option value="51">51</option>
<option value="52">52</option>
<option value="53">53</option>
<option value="54">54</option>
<option value="55">55</option>
<option value="56">56</option>
<option value="57">57</option>
<option value="58">58</option>
<option value="59">59</option></select>:<select title="Seconds" style="inline-block;" id="is"><option value="00">00</option><option value="01">01</option><option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
<option value="32">32</option>
<option value="33">33</option>
<option value="34">34</option>
<option value="35">35</option>
<option value="36">36</option>
<option value="37">37</option>
<option value="38">38</option>
<option value="39">39</option>
<option value="40">40</option>
<option value="41">41</option>
<option value="42">42</option>
<option value="43">43</option>
<option value="44">44</option>
<option value="45">45</option>
<option value="46">46</option>
<option value="47">47</option>
<option value="48">48</option>
<option value="49">49</option>
<option value="50">50</option>
<option value="51">51</option>
<option value="52">52</option>
<option value="53">53</option>
<option value="54">54</option>
<option value="55">55</option>
<option value="56">56</option>
<option value="57">57</option>
<option value="58">58</option>
<option value="59">59</option></select><br><br><br><input id=go style="background-color:yellow;" onclick="go(this);" type="button" value="Go"></td>
</td><td><input onblur=" if (this.value.length > 0 && this.value.indexOf('-') == -1) { if (wois) { if (!wois.closed) { try { wois.focus(); } catch(jhrjh) { } } } createReminder(document.getElementById('rwording').value,this); this.value='-1'; }" placeholder'Seconds Away' type=number id='rnumber' value='-1' style='width:98%;'></input>
</td></tr>
</table>
<span id=myspanis></span>
</div>
<input type=text style='position:absolute;top:-2000px;left:-2000px;' value=''></input>
</div>
<div id=inum style='display:none;'></div>
<input id=audioname style='display:none;' type=hidden value=''></input>
<input id=saysub style='display:none;' type=hidden value=''></input>
<input id=outputname style='display:none;' type=hidden value=''></input>
<input id=path style='display:none;' type=hidden value=''></input>
<input id=opath style='display:none;' type=hidden value=''></input>
<input id=cto style='display:none;' type=hidden value=''></input>
<a target=_blank id=aemailto style='display:none;' href=''>Email</a><a target=_blank id=asmsto style='display:none;' href=''>SMS</a>
<select id=sin style='display:none;position:absolute;left:-500px;top:-500px;'><option style='display:none;' value=''></option></select>
<div id=thewords style='display:none;'></div>
<div id=result style='display:none;'></div>
<div id=resultav style='display:none;'></div>
<div id=topleftx style='display:none;'></div>
<div id=videoag style='display:none;'></div><br>
<div id=divmore></div>
<div id=divmymsr style='display:none;width:100%;height:600px;'>
<details id=dmymsr style='width:100%;height:600px;'><summary id=smymsr>Reminder Voiceover <span title='Animated Emoji' style='opacity: 0.4; font-size: 32px;'>🎥</span><span style='margin-left: -32px; opacity: 0.4; font-size: 32px;'>🗣</span> Ideas via <a href=#myh1 title=Top>Reminders in Session</a><a onclick=htrtop(); href=#cbi title=Iframe> 🎥</a></summary></details>
</div>
</body>
</html>