<!doctype html>
<html>
<head>
<title>Mac OS X Quarter Hour Timer via This Supervising Crontab 0,15,30,45 * * * * /usr/sbin/screencapture -Cd -tjpg /Applications/MAMP/htdocs/screen-`date +"\%Y\%m\%d-\%H\%M"`.jpg</title>

<style>
td { vertical-align: top; }
#divmc { background-color: #ffffff; }
p:not(:empty) { border: 1px dotted red; }
</style>

<script type='text/javascript'>

var months=["January","February","March","April","May","June","July","August","September","October","November","December"];
var daysinmonths=[31,28,31,30,31,30,31,31,30,31,30,31];
var daysofweek=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
var OSName = "Win Unknown";
var odiv=null;
var wowo=null;
var nexttableo=null;
var nexttdo=null;
var locthere=false;
var wwwooo=null;
var modus='';
var noask=false;
var lasthm=-1;
var wo=null;
var icalavailable=false;
var icalwo=null;
var qwo=null;
var icald='';
var icalg='';
var popdone=false;
var thatsit=false;
var fifteen="15";
var firstc=true;
var ourdate=new Date();
var dyear=eval(ourdate.getFullYear());
var uselocal=(location.search + ' ').split('uselocal=')[1] ? true : false;
var theyear=location.search.split('year=')[1] ? eval(location.search.split('year=')[1].split('&')[0]) : dyear;
var theopen=location.search.split('close=')[1] ? location.search.split('close=')[1].split('&')[0] : " open";
var thenextyear=eval(1 + theyear);
var yearo=new Date(theyear, 0, 1);
var compyearo=new Date(thenextyear, 0, 1);
//var yearlyo=new Date(theyear, 1, 28);
//var yearlyotwo=new Date(theyear, 2, 1);
var yearstartday=yearo.getDay();
var compyearstartday=compyearo.getDay();
var isLeapYear=false;
//alert(daysofweek[yearstartday]);
var xtowhat='', xdwo='', xnta='';
var cnt=0;
var imois=null;
var pdgh='Personal details go here ';
var pdghce=' contenteditable=true ';
var passwordrequired=false;
var passwordpassed=true;
var iwo=null;
var lastone='#mybod';
var nexttdoid='';
var tdclicklist=[];
var hashto="";
var passwordpassed=true;
var elem=null;
var range=[];
var ydone=false;
var context=null;
var img=null;
var isasnapshottodo=0;
var winois=null;
var sfrom='';
var sto='';
var ims=[], imsi=0;
var clearit=document.URL.indexOf('clear=');
var iimgo=null;
var normok=true;
var isMac = navigator.platform.toUpperCase().indexOf('MAC')>=0; // thanks to http://stackoverflow.com/questions/10527983/best-way-to-detect-mac-os-x-or-windows-computers-with-javascript-or-jquery
var lportbit=getOS(':8888');
var hprefix="http://localhost" + lportbit + "/"; // is same as /Applications/MAMP/htdocs/ for local MAMP on Mac OS X

function andclick() {
document.getElementById('a' + hashto.substring(3)).click();
}

function selbit(tyear) {
var sbit='<select id=syear onchange="location.href=(document.URL.replace(/year/g,' + "'" + 'jhgraey' + "'" + ').split(' + "'" + '#' + "'" + ')[0] + ' + "'" + '&year=' + "'" + ' + this.value).replace(' + "'" + '.html&year=' + "'" + ',' + "'" + '.html?year=' + "'" + ');"></select>';
for (var iy=eval(-150 + eval('' + tyear)); iy<=eval(50 + eval('' + tyear)); iy++) {
if (iy == eval('' + tyear)) {
sbit=sbit.replace('</select>', '<option value=' + iy + ' selected>' + iy + '</option></select>');
} else {
sbit=sbit.replace('</select>', '<option value=' + iy + '>' + iy + '</option></select>');
}
}
return '' + sbit;
}

function makepd(nv, pw) {
if (passwordrequired && passwordpassed && pw == '' && nv.toLowerCase().replace('?password=','/password/').indexOf('/password/') == -1) {
var ppw=vr_cookieVal(' cpersonaldetails');
vr_setCookie('cpersonaldetails', nv + '/password/' + encodeURIComponent(encodeURIComponent(encodeURIComponent(theopen))));
theopen=' open';
} else if (pw != '') {
vr_setCookie('cpersonaldetails', nv + '/password/' + encodeURIComponent(encodeURIComponent(encodeURIComponent(pw))));
//document.title='0:' + nv.split('?password=')[0].split('/password/')[0];
document.getElementById('pd').innerHTML=nv.split('?password=')[0].split('/password/')[0];
} else if (nv.indexOf('?password=') != -1) {
vr_setCookie('cpersonaldetails', nv.split('?password=')[0] + '/password/' + encodeURIComponent(encodeURIComponent(encodeURIComponent(nv.split('?password=')[1]))));
//document.title='00:' + nv.split('?password=')[0].split('/password/')[0];
document.getElementById('pd').innerHTML=nv.split('?password=')[0].split('/password/')[0];
} else if (nv.indexOf('/password/') != -1) {
vr_setCookie('cpersonaldetails', nv.split('/password/')[0] + '/password/' + encodeURIComponent(encodeURIComponent(encodeURIComponent(nv.split('/password/')[1]))));
//document.title='000:' + nv.split('?password=')[0].split('/password/')[0];
document.getElementById('pd').innerHTML=nv.split('?password=')[0].split('/password/')[0];
} else if (!passwordpassed && passwordrequired) {
if (3 == 6) document.title='90000:' + nv.split('?password=')[0].split('/password/')[0];
} else {
vr_setCookie('cpersonaldetails', nv);
//document.title='0000:' + nv.split('?password=')[0].split('/password/')[0];
document.getElementById('pd').innerHTML=nv.split('?password=')[0].split('/password/')[0];
}
}

function makeit(nl, nv) {
vr_setCookie(nl, nv);
}

function alink(aa, bb, dow) {
//alert('<a onclick="ask(' + "'" + 'd' + bb + "','');" + '" style="text-decoration:none;cursor:pointer;" id="a' + bb + '">' + aa + '</a><br><div id=d' + bb + '></div>');
if (clearit != -1) {
vr_deleteCookie('c' + bb);
}
return '<a class=adate title="Click me to enter information for ' + bb + '" onclick="if (!noask) { ask(' + "'" + 'd' + bb + "','" + dow + "',''); } noask=false; " + '" style="text-decoration:none;cursor:pointer;" id="a' + bb + '">' + aa + '</a><br><div id=d' + bb + '>' + getinfo(bb) + '</div>';
}

function getinfo(bb) {
if ((document.URL.split('#')[0] + '&').indexOf('close=&') != -1) theopen='';
var rv='', sparerv='';
rv=vr_cookieVal('c' + bb);
if (rv != '') {
//alert(rv);
sparerv=rv.replace(/\'/g,'`').replace(/\"/g,'`');
while (sparerv.indexOf(String.fromCharCode(10)) != -1) {
sparerv=sparerv.replace(String.fromCharCode(10), ' ');
}
while (sparerv.indexOf('<br>') != -1) {
sparerv=sparerv.replace('<br>', ' ');
}
while (sparerv.indexOf('<div>') != -1) {
sparerv=sparerv.replace('<div>', ' ');
}
while (sparerv.indexOf('</div>') != -1) {
sparerv=sparerv.replace('</div>', ' ');
}
while (sparerv.indexOf(' ') != -1) {
sparerv=sparerv.replace(' ', ' ');
}
return '<details onclick="setTimeout(nothing,600);" title="' + sparerv.split('<')[0] + '" id=dt' + bb + theopen + '><summary onclick="setTimeout(nothing,600);" title="' + sparerv.split('<')[0] + '" id=sy' + bb + '></summary><div onclick="setTimeout(nothing,600);" onblur="makeit(' + "'c" + bb + "',this.innerHTML" + ');" contenteditable="true">' + rv + '</details>';
}
return rv;
}

function populate() {
var vvd=vr_cookieVal('cpersonaldetails');
if (clearit != -1) {
vr_deleteCookie('cpersonaldetails');
}

document.getElementById('mctable').title+='' + theyear;
document.getElementById('thyear').innerHTML="<Year > <a onclick=\"location.href=(document.URL.split('#')[0] + '&aclear=').replace('.html&aclear=','.html?aclear=');\" style=\"text-decoration:none;cursor:pointer;\" title=\"Clear\">--</a> <" + theyear + "> <personal_details>";
var thedayindex=yearstartday;
var mstr="<table style='width:100%' border=1><tbody><tr><th colspan=7></th></tr><tr><td><" + daysofweek[0] + " ></td><td><" + daysofweek[1] + " ></td><td><" + daysofweek[2] + " ></td><td><" + daysofweek[3] + " ></td><td><" + daysofweek[4] + " ></td><td><" + daysofweek[5] + " ></td><td><" + daysofweek[6] + " ></td></tr></tbody></table>";
var moy=0, dmoy=0, tddaystr='' + theyear;
var tdprefix=tddaystr;
var seven=6;
var one=0;
var myearo;

for (moy=0; moy<5; moy++) {
mstr=mstr.replace('</tbody>', '<tr></tr></tbody>');
for (dmoy=one; dmoy<=seven; dmoy++) {
mstr=mstr.replace('</tr></tbody>', '<td title=' + dmoy + '></td></tr></tbody>');
}
seven+=7;
one+=7;
}
var tablestr=mstr;
for (moy=1; moy<=months.length; moy++) {
tddaystr=tdprefix + ("0" + eval(0 + moy)).slice(-2); // + ("0" + eval(0 + dmoy)).slice(-2);
mstr=tablestr;
//alert(tddaystr + ' ... ' + mstr);
if (moy > 1) {
myearo=new Date(theyear, eval(-1 + moy), 1);
thedayindex=myearo.getDay();
}
mstr=mstr.replace('><th colspan=7>', '><th colspan=7 id=th' + tddaystr + '><' + months[eval(-1 + moy)] + ' >');
for (dmoy=1; dmoy<=daysinmonths[eval(-1 + moy)]; dmoy++) {
tddaystr=tdprefix + ("0" + eval(0 + moy)).slice(-2) + ("0" + eval(0 + dmoy)).slice(-2);
//if (mstr.indexOf(' title=' + thedayindex + '>') == -1) alert(' title=' + thedayindex + '> ... ' + mstr);
mstr=mstr.replace(' title=' + thedayindex + '>', ' onclick="tdclick(this);" title=' + thedayindex + ' id=td' + tddaystr + '>' + alink(dmoy, tddaystr, daysofweek[eval(thedayindex % 7)]));
thedayindex++;
thedayindex=eval(thedayindex % 35);
}
document.getElementById('td' + months[eval(-1 + moy)].toLowerCase()).innerHTML=mstr;
}
clearit=-1;
if (parent.document !== document) {
clearit=clearit;
} else {
//var vvd=vr_cookieVal('cpersonaldetails');
if (vvd == '') vvd='Personal Details can Go Here';
if (document.URL.toLowerCase().replace('http://localhost','https://localhost').indexOf('http:') == 0) { // || (!passwordpassed && passwordrequired)) {
pdgh=pdgh.split(' (append ')[0];
//alert(13);
} else {
pdgh=pdgh.split(' (append ')[0] + ' (append with ?password=[yourPassword] to ask for a password to access from here on)';
//alert(14);
}
document.body.innerHTML=document.body.innerHTML.replace('<personal_details>','<div title="' + pdgh + '" onblur=makepd(this.innerHTML,""); id=pd ' + pdghce + '>' + vvd + '</div>').replace('&' + 'lt;' + theyear + '&' + 'gt;', selbit(theyear)).replace(/\<\;/g,'').replace(/\>\;/g,'');
if (document.getElementById('pd')) {
vvd=vvd;
}
}
if (hashto != '') {
location.href=hashto;
document.getElementById(hashto.substring(1)).style.backgroundColor='yellow';
document.getElementById(hashto.substring(1)).style.border='1px solid orange';
if (document.URL.indexOf('clicktoday=') != -1) {
setTimeout(andclick, 2000);
}
}
var tds=document.getElementsByTagName('td');
for (var ia=eval(-1 + tds.length); ia>=0; ia--) {
tds[ia].title='Date range selections can apply clicking here off the date number.';
}
}

function nothing() {
range=[];
tdclicklist=[];
}

function vr_setCookie(thisl, thisg) { // thanks to JavaScript and Ajax by Tom Negrino and Dori Smith
if (thisg != " ") {
if (!passwordpassed && passwordrequired) {
passwordrequired=passwordrequired;
} else {
var expireDate = new Date();
expireDate.setMonth(expireDate.getMonth()+6);
//alert('thisl=' + thisl + ' and thisg=' + thisg);
try {
if (uselocal) {
if (localStorage) {
localStorage.setItem(thisl, encodeURIComponent(thisg));
} else {
document.cookie = "" + thisl + "=" + encodeURIComponent(thisg) + "; expires=" + expireDate.toGMTString();
}
} else {
document.cookie = "" + thisl + "=" + encodeURIComponent(thisg) + "; expires=" + expireDate.toGMTString();
if (vr_cookieVal(thisl) != thisg && localStorage) {
vr_deleteCookie(thisl);
uselocal=true;
localStorage.setItem(thisl, encodeURIComponent(thisg));
}
}
} catch(error) {
try {
if (uselocal) {
document.cookie = "" + thisl + "=" + encodeURIComponent(thisg) + "; expires=" + expireDate.toGMTString();
} else {
if (localStorage) {
localStorage.setItem(thisl, encodeURIComponent(thisg));
} else {
document.cookie = "" + thisl + "=" + encodeURIComponent(thisg) + "; expires=" + expireDate.toGMTString();
}
}
} catch(errortwo) {
}
}
}
}
while (thisg.indexOf('<div>') != -1) {
thisg=thisg.replace('<div>', ' ' + String.fromCharCode(10));
}
while (thisg.indexOf('</div>') != -1) {
thisg=thisg.replace('</div>', '');
}
while (thisg.indexOf(' ') != -1) {
thisg=thisg.replace(' ', ' ');
}
icalpostit(thisl, thisg);
}

function vr_deleteCookie(thisl) { // thanks to JavaScript and Ajax by Tom Negrino and Dori Smith
if (!passwordpassed && passwordrequired) {
passwordrequired=passwordrequired;
} else {
var expireDate = new Date();
expireDate.setMonth(expireDate.getMonth()-6);
if (localStorage) {
var lthere=null;
eval("lthere=localStorage." + thisl);
if (lthere) {
localStorage.removeItem(thisl);
}
}
document.cookie = "" + thisl + "=; expires=" + expireDate.toGMTString();
}
}

function vr_cookieVal(thisl) {
var tCookie, subfor="";
if (localStorage) {
var lthere=null;
eval("lthere=localStorage." + thisl);
if (lthere) {
subfor=thisl + '=' + localStorage.getItem(thisl) + "; ";
//alert(subfor);
tCookie=subfor.split("; ");
}
}
if (subfor != "" || document.cookie != '') {
if (subfor == "") {
tCookie=document.cookie.split("; ");
}
for (var j=0; j<tCookie.length; j++) {
if (("" + thisl.trim()) == tCookie[j].split("=")[0]) {
if (decodeURIComponent(tCookie[j].split("=")[1]).indexOf('/password/') != -1) {
if (firstc && thisl == 'cpersonaldetails') {
firstc=false;
if (document.URL.toLowerCase().replace('http://localhost','https://localhost').indexOf('http:') == 0) { // || passwordrequired) {
firstc=false;
} else {
pdgh+=' (append with ?password=[yourPassword] to ask for a password to access from here on)';
}
passwordrequired=true;
theopen='';
passwordpassed=false;
if (document.URL.toLowerCase().replace('http://localhost','https://localhost').indexOf('http:') == 0) {
location.href='https:' + document.URL.substring(('http:').length);
}
var cp='';
var huh=decodeURIComponent(tCookie[j].split("=")[1]).split('/password/')[0];
if (decodeURIComponent(decodeURIComponent(tCookie[j].split("=")[1]).split('/password/')[1]) != '') {
huh=prompt("What are your personal details immediately followed by correct password. To get this wrong does not stop the web application, just the access to HTTP Cookies to store and restore your entries.", "");
if (huh == null) huh='';
}
if (huh.replace('Personal Details can Go Here','').indexOf(decodeURIComponent(tCookie[j].split("=")[1]).split('/password/')[0].replace('Personal Details can Go Here','')) == 0) {
cp=decodeURIComponent(decodeURIComponent(tCookie[j].split("=")[1]).split('/password/')[1]);
//alert(cp);
if (huh.replace('Personal Details can Go Here','') == (decodeURIComponent(tCookie[j].split("=")[1]).split('/password/')[0].replace('Personal Details can Go Here','') + cp)) {
//document.getElementById('pd').innerHTML=decodeURIComponent(tCookie[j].split("=")[1]).split('/password/')[0];
passwordpassed=true;
theopen=' open';
//alert('ok');
} else {
//alert(cp);
passwordrequired=true;
theopen='';
//document.body.innerHTML='Sorry ... No can do.';
}
} else {
//alert(decodeURIComponent(tCookie[j].split("=")[1]).split('/password/')[0] + ' bAd ' + cp);
passwordrequired=true;
theopen='';
//document.body.innerHTML='Sorry ... no can do.';
}
if (document.URL.toLowerCase().replace('http://localhost','https://localhost').indexOf('http:') == 0 || (!passwordpassed && passwordrequired)) {
pdgh=pdgh.split(' (append ')[0];
} else {
pdgh=pdgh.split(' (append ')[0] + ' (append with ?password=[yourPassword] to ask for a password to access from here on)';
}
} else {
if (firstc && thisl == 'cpersonaldetails') {
//document.title='1' + thisl;
//alert(1);
firstc=false;
if (thisl == 'cpersonaldetails') {
// alert(2);
//document.title='11';
if (document.URL.toLowerCase().replace('http://localhost','https://localhost').indexOf('http:') == 0) { // || (!passwordpassed && passwordrequired)) {
pdgh=pdgh.split(' (append ')[0];
//document.title='111';
//alert(3);
} else {
pdgh=pdgh.split(' (append ')[0] + ' (append with ?password=[yourPassword] to ask for a password to access from here on)';
//document.title='1111';
//alert(4);
}
}
}
if (thisl == ' cpersonaldetails') theopen=decodeURIComponent(decodeURIComponent(tCookie[j].split("=")[1]).split('/password/')[1]);
//alert('bad ' + cp);
//passwordrequired=true;
//theopen='';
}
}
if (!passwordpassed && passwordrequired) pdgh='Personal details go here ';
if (!passwordpassed && passwordrequired) pdghce=' ';
if (!passwordpassed && passwordrequired) clearit=false;
if (!passwordpassed && passwordrequired) return " ";
return decodeURIComponent(tCookie[j].split("=")[1]).split('/password/')[0];
}
}
}
if (firstc && thisl == 'cpersonaldetails') {
//document.title='0' + thisl;
//alert(11);
firstc=false;
if (thisl == 'cpersonaldetails') {
//document.title='00';
//alert(12);
if (document.URL.toLowerCase().replace('http://localhost','https://localhost').indexOf('http:') == 0) { // || (!passwordpassed && passwordrequired)) {
pdgh=pdgh.split(' (append ')[0];
//document.title='000';
//alert(13);
} else {
pdgh=pdgh.split(' (append ')[0] + ' (append with ?password=[yourPassword] to ask for a password to access from here on)';
//document.title='0000';
//alert(14);
}
}
}
return '';
}

function qt(twp, suggestion) {
var dateo;
if (tdclicklist.length == 1) {
var towhat=tdclicklist[0];
range=[];
var tds=document.getElementsByTagName('a');
for (var ia=eval(-1 + tds.length); ia>=0; ia--) {
if (tds[ia].id.substring(1).length == towhat.substring(1).length && tds[ia].id.substring(1) >= towhat.substring(1) && tds[ia].id.substring(1) <= twp) {
//alert(tds[ia].id.substring(1).substring(0,4) + ' ... ' + tds[ia].id.substring(1).substring(4,6) + ' ... ' + tds[ia].id.substring(1).substring(6,8));
dateo=new Date(eval(tds[ia].id.substring(1).substring(0,4)), eval(-1 + eval(tds[ia].id.substring(1).substring(4,6))), eval(tds[ia].id.substring(1).substring(6,8)));
range.push('d' + tds[ia].id.substring(1) + ',' + daysofweek[dateo.getDay()]);
}
}
//alert('range=' + range);
tdclicklist=[];
if (range.length == 0) return suggestion;
appendmode=false;
return 'date range from date ' + range[eval(-1 + range.length)].split(',')[1] + ', ' + towhat.substring(1).substring(6) + ' ' + months[eval(-1 + eval(towhat.substring(1).substring(4,6)))] + ' ' + towhat.substring(1).substring(0,4) + ' to ' + suggestion + ' (prefix by + to append what is said here to any pre-existing chronicles)';
}
return suggestion;
}

function ouralert(insc) {
var isok=true;
if (ims.length == 0) {
ims.push(insc);
setTimeout(dostuff, 5000);
} else {
if (ims[eval(-1 + ims.length)] != insc) {
for (var iiu=0; iiu<ims.length; iiu++) {
if (ims[iiu] == insc) { isok=false; }
}
if (isok) { ims.push(insc); }
}
}
}

function dostuff() {
ims.sort();
for (var iiu=0; iiu<ims.length; iiu++) {
if (iiu == imsi) {
if (imsi == 0) {
//alert(ims.length);
//alert('./quarter_hour_timer.php?myta=&itd_' + ims[iiu].split('screen-')[1].split('.')[0].replace('-','_') + '=');
document.getElementById('ylocit').src='./quarter_hour_timer.php?myta=&itd_' + ims[iiu].split('screen-')[1].split('.')[0].replace('-','_') + '=';
imsi++;
if (imsi == ims.length && document.URL.indexOf('localhost') != -1 && window.opener) { setTimeout(poststuff,3000); }
setTimeout(dostuff, 1000);
} else if (document.getElementById('itd_' + ims[eval(-1 + iiu)].split('screen-')[1].split('.')[0].replace('-','_')).title != ' ') {
//alert('./quarter_hour_timer.php ?myta=&itd_' + ims[iiu].split('screen-')[1].split('.')[0].replace('-','_') + '=?');
document.getElementById('ylocit').src='./quarter_hour_timer.php?myta=&itd_' + ims[iiu].split('screen-')[1].split('.')[0].replace('-','_') + '=';
imsi++;
if (imsi == ims.length && document.URL.indexOf('localhost') != -1 && window.opener) { setTimeout(poststuff,3000); }
} else {
setTimeout(dostuff, 1000);
}
}
}
}

function poststuff() {
//alert(document.getElementById('divmc').innerHTML);
if (1 == 1) {
window.opener.document.getElementById('divmc').innerHTML=document.getElementById('divmc').innerHTML;
}
//alert('2:' + document.getElementById('divmc').innerHTML);
}

function closewinois() {
if (winois != null) {
winois.close();
winois=null;
}
if (isasnapshottodo == 1) isasnapshottodo = 2;
}

function aemail(ame) { // thanks to http://www.telerik.com/forums/proper-way-to-do-mailto-and-tel-links(
window.top.location = ame.href;
}

function unoops(imgo) {
//var imgo=document.getElementById(iimgo);
//document.title=imgo.id.replace('i','').replace('_',' ').replace('_',' ');
if (document.getElementById('sfrom').innerHTML.indexOf(imgo.id.replace('i','')) == -1) {
var wasfrom=sfrom;
document.getElementById('sfrom').innerHTML+="<option value='" + imgo.id.replace('i','') + "'>From " + fancy(imgo.id.replace('i','').replace('td_','').replace('_',' ').replace('_',' ')) + "</option>";
document.getElementById('sfrom').value=wasfrom;
}
var xsto=document.getElementById('sto').innerHTML;
if (document.getElementById('sto').innerHTML.indexOf(imgo.id.replace('i','')) == -1) {
var wasto=sto;
document.getElementById('sto').innerHTML=document.getElementById('sto').innerHTML.replace("</option>", "</option><option value='" + imgo.id.replace('i','') + "'>To " + fancy(imgo.id.replace('i','').replace('td_','').replace('_',' ').replace('_',' ')) + "</option>");
document.getElementById('sto').value=wasto;
}
}

function oops(imgo) {
if (document.getElementById(imgo.id.replace('i','').replace('x',''))) {
document.getElementById(imgo.id.replace('i','').replace('x','')).style.display='none';
}
}

function andthenmove() {
if (isasnapshottodo == 0) location.href=lastone;
lastone='#mybod';
if (isasnapshottodo == 2) {
document.getElementById('aemail').click();
isasnapshottodo=0;
document.getElementById('bemail').innerHTML='Email Times';
}
}

function icalw() {
var today = new Date();
if (icalwo) {
icalwo.document.getElementById('datestart').value=icald;
icalwo.document.getElementById('dateend').value=icald;
icalwo.document.getElementById('eventwords').value=icalg.replace(/\<br\>/g, String.fromCharCode(10)).replace(/\<Br\>/g, String.fromCharCode(10)).replace(/\<BR\>/g, String.fromCharCode(10));
if (document.URL.indexOf('localhost') != -1) {
var jcald=icalg.replace(/\<br\>/g, String.fromCharCode(10)).replace(/\<Br\>/g, String.fromCharCode(10)).replace(/\<BR\>/g, String.fromCharCode(10)).replace(/\ \;>/g, ' ');
while (jcald.indexOf(String.fromCharCode(10)) != -1) { jcald=jcald.replace(String.fromCharCode(10),' '); }
icalwo.document.getElementById('title').value=jcald;
} else {
icalwo.document.getElementById('title').value='Calendar event at ' + icald;
}
icalwo.document.getElementById('description').value='Calendar event at ' + icald;
icalwo.document.getElementById('address').value=document.URL.split('?')[0].split('#')[0];
icalwo.document.getElementById('mmdatestart').value=icald.substring(4,6);
icalwo.document.getElementById('mmdateend').value=icald.substring(4,6);
icalwo.document.getElementById('dddatestart').value=icald.substring(6,8);
icalwo.document.getElementById('dddateend').value=icald.substring(6,8);
icalwo.document.getElementById('ssdatestart').value='59';
icalwo.document.getElementById('ssdateend').value='59';
icalwo.document.getElementById('yyyydatestart').value=icald.substring(0,4);
icalwo.document.getElementById('yyyydateend').value=icald.substring(0,4);
if ( ('' + today.getTimezoneOffset()).replace('null','').replace('undefined','') != '' ) {
//alert(('' + eval(eval('' + qd.getTimezoneOffset()) / 60.0)).replace('.00','').replace('.0',''));
icalwo.document.getElementById('tz').value=('' + eval(eval('' + today.getTimezoneOffset()) / 60.0)).replace('.00','').replace('.0','');
}
//icalwo.document.getElementById('pform').onsubmit=function() { window.opener.document.getElementById('icalstatus').innerHTML=' '; return true; };
}
}

function icalpostit(tl, tg) {
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
var hh = today.getHours();
var minm = today.getMinutes(); //January is 0!
//if (icalavailable) { alert('is ' + ('' + yyyy + ('00' + mm).slice(-2) + ('00' + dd).slice(-2) ) + ' >= ' + tl.substring(1)); }
if ((document.getElementById('yics').value.indexOf('all') != -1 || tl.substring(1) >= ('' + yyyy + ('00' + mm).slice(-2) + ('00' + dd).slice(-2) )) && icalavailable && document.getElementById('yics').value != '') {
if (document.getElementById('yics').value.indexOf('nw') != -1) {
icald=tl.substring(1) + ':' + ('00' + hh).slice(-2) + ('00' + minm).slice(-2) + '59';
icalg=tg;
if (icalwo != null) { icalwo.close(); icalwo=null; }
icalwo=window.open('../PHP/ics_attachment.php','_blank','top=100,left=100,width=740,height=800');
if (1 == 1) {
setTimeout(icalw, 3000);
} else {
icalwo.document.getElementById('datestart').value=icald;
icalwo.document.getElementById('dateend').value=icald;
icalwo.document.getElementById('eventwords').value=icalg.replace(/\<br\>/g, String.fromCharCode(10)).replace(/\<Br\>/g, String.fromCharCode(10)).replace(/\<BR\>/g, String.fromCharCode(10));
if (document.URL.indexOf('localhost') != -1) {
var jcald=icalg.replace(/\<br\>/g, String.fromCharCode(10)).replace(/\<Br\>/g, String.fromCharCode(10)).replace(/\<BR\>/g, String.fromCharCode(10)).replace(/\ \;>/g, ' ');
while (jcald.indexOf(String.fromCharCode(10)) != -1) { jcald=jcald.replace(String.fromCharCode(10),' '); }
icalwo.document.getElementById('title').value=jcald;
} else {
icalwo.document.getElementById('title').value='Calendar event at ' + icald;
}
icalwo.document.getElementById('description').value='Calendar event at ' + icald;
icalwo.document.getElementById('address').value=document.URL.split('?')[0].split('#')[0];
icalwo.document.getElementById('mmdatestart').value=icald.substring(4,6);
icalwo.document.getElementById('mmdateend').value=icald.substring(4,6);
icalwo.document.getElementById('dddatestart').value=icald.substring(6,8);
icalwo.document.getElementById('dddateend').value=icald.substring(6,8);
icalwo.document.getElementById('ssdatestart').value='59';
icalwo.document.getElementById('ssdateend').value='59';
icalwo.document.getElementById('yyyydatestart').value=icald.substring(0,4);
icalwo.document.getElementById('yyyydateend').value=icald.substring(0,4);
if ( ('' + today.getTimezoneOffset()).replace('null','').replace('undefined','') != '' ) {
//alert(('' + eval(eval('' + qd.getTimezoneOffset()) / 60.0)).replace('.00','').replace('.0',''));
icalwo.document.getElementById('tz').value=('' + eval(eval('' + today.getTimezoneOffset()) / 60.0)).replace('.00','').replace('.0','');
}
//icalwo.document.getElementById('pform').onsubmit=function() { window.opener.document.getElementById('icalstatus').innerHTML=' '; return true; };

}
} else if (document.getElementById('yics').value.indexOf('if') != -1) {
icald=tl.substring(1) + ':' + ('00' + hh).slice(-2) + ('00' + minm).slice(-2) + '59';
icalg=tg;
document.getElementById('divics').style.display='block';
document.getElementById('divics').style.width='100%';
document.getElementById('divics').style.height='1000px';
document.getElementById('icslocit').style.display='block';
document.getElementById('icslocit').style.width='100%';
document.getElementById('icslocit').style.height='1000px';
document.getElementById('icslocit').src='../PHP/ics_attachment.php?rand=' + Math.floor(Math.random() * 19876564);
} else {
var xzhr = new XMLHttpRequest();
var xform=new FormData();
xform.append('icald',tl.substring(1) + ':' + ('00' + hh).slice(-2) + ('00' + minm).slice(-2) + '59');
xform.append('icalc',tg);
xzhr.open('post','./quarter_hour_timer.php',true);
//alert('xform');
xzhr.send(xform);
}
}
}

function repostit(ih) {
var ihis=(ih.innerText || ih.contentWindow || ih.contentDocument);
var pathpart=ih.id;
if (ihis != '') {
var xzhr = new XMLHttpRequest();
var xform=new FormData();
xform.append('myta',ihis);
xform.append(pathpart.split('.')[0].replace('ip_','screen-').replace('_','-'),'');
//alert('zform');
xzhr.open('post','./quarter_hour_timer.php',true);
xzhr.send(xform);
}
}

function fillinmywork(xdd, xmm, xyyyy, xhh, xmi) {
//alert(document.URL);
var ih, iqh;
//alert(870);
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
var blank=true;
var hh = today.getHours();
var minm = today.getMinutes(); //January is 0!
if (('' + xdd) != '') {
normok=false;
blank=false;
dd=xdd;
mm=xmm;
yyyy=xyyyy;
hh=xhh;
minm=xmi;
}
var ss = 0; //today.getSeconds();
var thirtythousand=30000;


if (("" + ("00" + hh).slice(-2) + "" + ("00" + minm).slice(-2)) == "0000" || !normok) {
thirtythousand=60000;
odiv=null;
cnt++;
}
if (odiv == null) {
if (cnt == 0) {
if (!isMac) {
document.getElementById('myh1').innerHTML=document.getElementById('myh1').innerHTML.replace('Mac OS X ','');
document.getElementById('myh1').innerHTML=document.getElementById('myh1').innerHTML.replace(' Crontab ',' Screen Capture Creator ');
document.getElementById('myh1').innerHTML=document.getElementById('myh1').innerHTML.replace('Ideally suited for MAMP, and left running', 'Ideally suited to being left running');
document.getElementById('myh3').style.display='none';
document.title=document.title.replace('Mac OS X ','');
document.title=document.title.replace(' Crontab ',' Screen Capture Creator ');
document.title=document.title.replace('Ideally suited for MAMP, and left running', 'Ideally suited to being left running');
} else {
document.getElementById('myh1').innerHTML=document.getElementById('myh1').innerHTML.replace('Mac OS X Quarter Hour Timer via This Supervising Crontab ','<span id=macoss onclick=forceissue(); title=" or Mac OS X">macOS</span> <span id=qhspan title="Double click macOS for forced entry outside quarter hour marks">' + modus + 'Quarter Hour</span><span style=display:none;> Timer via This Supervising Crontab</span> ');
}
elem = document.getElementById('canvaselement');
context = elem.getContext("2d");
//context.drawImage(img,0,0);
fifteen=(location.search + '&').split('fifteen=')[1] ? location.search.split('fifteen=')[1].split('&')[0] : fifteen;
//alert(document.URL);
hprefix=(location.search + '&').split('localplace=')[1] ? location.search.split('localplace=')[1].split('&')[0] : hprefix;
if (hprefix != "http://localhost" + lportbit + "/") {
document.getElementById('myh3').innerHTML=document.getElementById('myh3').innerHTML.replace('/Applications/MAMP/htdocs/',hprefix).replace("C:\\MAMP\\htdocs\\",hprefix);
} else if (document.URL.indexOf('file:/') == 0) {
hprefix=(document.URL + '/?').substring(7).replace('quarter_hour_timer.html','').replace('//?','/?').split('?')[0];
if (hprefix != "http://localhost" + lportbit + "/" && hprefix != "/Applications/MAMP/htdocs/" && hprefix != "C:\\MAMP\\htdocs\\") {
//alert(hprefix);
document.getElementById('myh3').innerHTML=document.getElementById('myh3').innerHTML.replace('/Applications/MAMP/htdocs/',hprefix).replace("C:\\MAMP\\htdocs\\",hprefix);
}
} //else {
//alert(document.URL);
//}
if (hprefix.indexOf(':') == -1) hprefix='file://' + hprefix;
if (hprefix.indexOf('localhost' + lportbit + '') == -1) {
document.getElementById('myh1').innerHTML=document.getElementById('myh1').innerHTML.replace('Ideally suited for MAMP, and left running', 'Ideally suited to being left running');
}
}
odiv=document.getElementById('mywork' + cnt);
} //else if (nexttdo != null) {
//alert(87000 + " " + ("" + hh + "" + minm) + " " + odiv.innerHTML.indexOf('</td>') + "isnot-1? zero=" + eval(eval("" + minm), eval(fifteen)) + "? " + nexttdo.id);
//}
//alert(8700);
//alert(87000);
var itableo = "table_" + yyyy + "" + mm + "" + dd;
var thisdatebit = "Quarter Hour Activities for " + dd + "/" + mm + "/" + yyyy;
//alert(thisdatebit);
var thistimefilename = hprefix + "screen-" + yyyy + "" + ("00" + mm).slice(-2) + "" + ("00" + dd).slice(-2) + "-" + ("00" + hh).slice(-2) + "" + ("00" + minm).slice(-2) + ".jpg";
var thistimebit = "td_" + yyyy + "" + ("00" + mm).slice(-2) + "" + ("00" + dd).slice(-2) + "_" + ("00" + hh).slice(-2) + "" + ("00" + minm).slice(-2);
var vstimefilename; // = hprefix + "screen-" + yyyy + "" + mm + "" + dd + "-" + hh + "" + minm + ".jpg";
var vstimebit; // = hprefix + "screen-" + yyyy + "" + mm + "" + dd + "-" + hh + "" + minm + ".jpg";
//alert(870000 + " " + odiv.innerHTML + " " + ("" + hh + "" + minm));
var ifteen=fifteen;
if (!normok) { ifteen=1; }
if ((blank && (odiv.innerHTML.indexOf('</td>') != -1 && eval(eval("" + minm) % eval(ifteen)) == 0 && nexttdo != null))) {
//alert(870000 + " " + odiv.innerHTML + " " + ("" + hh + "" + minm));
//alert(nexttdo.id);
thatsit=false;
for (ih=0; ih<24; ih++) {
for (iqh=0; iqh<=eval(eval(fifteen) * 3); iqh+=eval(fifteen)) {
vstimefilename = hprefix + "screen-" + yyyy + "" + ("00" + mm).slice(-2) + "" + ("00" + dd).slice(-2) + "-" + ("00" + ih).slice(-2) + "" + ("00" + iqh).slice(-2) + ".jpg";
vstimebit = "td_" + yyyy + "" + ("00" + mm).slice(-2) + "" + ("00" + dd).slice(-2) + "_" + ("00" + ih).slice(-2) + "" + ("00" + iqh).slice(-2);
if (!thatsit) {
if (vstimebit < thistimebit) {
//alert(nexttdo.id + " ... " + vstimefilename + " < " + thistimefilename);
vstimefilename=vstimefilename;
} else if (nexttdo == null) {
//alert("nexttdo.id = null");
nexttdoid=vstimebit;
nexttdo=document.getElementById(vstimebit);
//alert(nexttdo.id + " = " + vstimefilename);
if (normok) { thatsit=true; }
} else if (vstimebit == nexttdoid) {
//alert(nexttdo.id + " === " + vstimebit + " ... " + dd + "/" + mm + "/" + yyyy + " " + ("00" + ih).slice(-2) + ":" + ("00" + iqh).slice(-2) + "<br>" + "<img name='i" + vstimebit + "' id='i" + vstimebit + "' onerror='oops(this);' onclick='if (wo != null) { wo.close(); wo=null; } wo=window.open(\"" + vstimefilename + "\",\"" + dd + "/" + mm + "/" + yyyy + " " + ("00" + ih).slice(-2) + ":" + ("00" + iqh).slice(-2) + "\",\"top=50,left=50,width=600,height=600\");' style='width:150px;' src='" + vstimefilename + "'></img><br><textarea style='background-color:#f0f0f0;' rows=5 cols=20></textarea>");
lastone='#' + vstimebit;
nexttdo=document.getElementById(vstimebit);
if (sfrom != '' && sto != '') {
if (vstimebit < sfrom || vstimebit < sto) {
//alert('OOPs');
sfrom=sfrom;
} else {
nexttdo.innerHTML="" + dd + "/" + mm + "/" + yyyy + "<a id=x" + vstimebit + " onclick=oops(this); style=text-decoration:none; title=Delete><strike>-</strike></a>" + ("00" + ih).slice(-2) + ":" + ("00" + iqh).slice(-2) + "<br>" + "<form action=./quarter_hour_timer.php method=POST target=zlocit><input style=display:none; type=submit id=myqsubmit" + vstimebit.replace('td_','screen-').replace('_','-') + " value=Submit name='" + vstimebit.replace('td_','screen-').replace('_','-') + "'></input><img id='i" + vstimebit + "' onerror='oops(this);' onload='unoops(this);' onclick='if (wo != null) { wo.close(); wo=null; } wo=window.open(\"" + vstimefilename + "\",\"" + dd + "/" + mm + "/" + yyyy + " " + ("00" + ih).slice(-2) + ":" + ("00" + iqh).slice(-2) + "\",\"top=50,left=50,width=600,height=600\");' style='width:150px;' src='" + vstimefilename + "'></img><br><textarea name=myta onblur=\"if (this.value.length != 0) { document.getElementById('myqsubmit" + vstimebit.replace('td_','screen-').replace('_','-') + "').click(); }\" style='background-color:#f0f0f0;' rows=5 cols=20></textarea></form>";
}
} else if (sfrom != '') {
if (vstimebit < sfrom) {
//alert('OOps');
sfrom=sfrom;
} else {
nexttdo.innerHTML="" + dd + "/" + mm + "/" + yyyy + "<a id=x" + vstimebit + " onclick=oops(this); style=text-decoration:none; title=Delete><strike>-</strike></a>" + ("00" + ih).slice(-2) + ":" + ("00" + iqh).slice(-2) + "<br>" + "<form action=./quarter_hour_timer.php method=POST target=zlocit><input style=display:none; type=submit id=myqsubmit" + vstimebit.replace('td_','screen-').replace('_','-') + " value=Submit name='" + vstimebit.replace('td_','screen-').replace('_','-') + "'></input><img id='i" + vstimebit + "' onerror='oops(this);' onload='unoops(this);' onclick='if (wo != null) { wo.close(); wo=null; } wo=window.open(\"" + vstimefilename + "\",\"" + dd + "/" + mm + "/" + yyyy + " " + ("00" + ih).slice(-2) + ":" + ("00" + iqh).slice(-2) + "\",\"top=50,left=50,width=600,height=600\");' style='width:150px;' src='" + vstimefilename + "'></img><br><textarea name=myta onblur=\"if (this.value.length != 0) { document.getElementById('myqsubmit" + vstimebit.replace('td_','screen-').replace('_','-') + "').click(); }\" style='background-color:#f0f0f0;' rows=5 cols=20></textarea></form>";
}
} else if (sto != '') {
if (vstimebit > sto) {
//alert('oops');
sfrom=sfrom;
} else {
nexttdo.innerHTML="" + dd + "/" + mm + "/" + yyyy + "<a id=x" + vstimebit + " onclick=oops(this); style=text-decoration:none; title=Delete><strike>-</strike></a>" + ("00" + ih).slice(-2) + ":" + ("00" + iqh).slice(-2) + "<br>" + "<form action=./quarter_hour_timer.php method=POST target=zlocit><input style=display:none; type=submit id=myqsubmit" + vstimebit.replace('td_','screen-').replace('_','-') + " value=Submit name='" + vstimebit.replace('td_','screen-').replace('_','-') + "'></input><img id='i" + vstimebit + "' onerror='oops(this);' onload='unoops(this);' onclick='if (wo != null) { wo.close(); wo=null; } wo=window.open(\"" + vstimefilename + "\",\"" + dd + "/" + mm + "/" + yyyy + " " + ("00" + ih).slice(-2) + ":" + ("00" + iqh).slice(-2) + "\",\"top=50,left=50,width=600,height=600\");' style='width:150px;' src='" + vstimefilename + "'></img><br><textarea name=myta onblur=\"if (this.value.length != 0) { document.getElementById('myqsubmit" + vstimebit.replace('td_','screen-').replace('_','-') + "').click(); }\" style='background-color:#f0f0f0;' rows=5 cols=20></textarea></form>";
}
} else if (nexttdo) {
nexttdo.innerHTML="" + dd + "/" + mm + "/" + yyyy + "<a id=x" + vstimebit + " onclick=oops(this); style=text-decoration:none; title=Delete><strike>-</strike></a>" + ("00" + ih).slice(-2) + ":" + ("00" + iqh).slice(-2) + "<br>" + "<form action=./quarter_hour_timer.php method=POST target=zlocit><input style=display:none; type=submit id=myqsubmit" + vstimebit.replace('td_','screen-').replace('_','-') + " value=Submit name='" + vstimebit.replace('td_','screen-').replace('_','-') + "'></input><img id='i" + vstimebit + "' onerror='oops(this);' onload='unoops(this);' onclick='if (wo != null) { wo.close(); wo=null; } wo=window.open(\"" + vstimefilename + "\",\"" + dd + "/" + mm + "/" + yyyy + " " + ("00" + ih).slice(-2) + ":" + ("00" + iqh).slice(-2) + "\",\"top=50,left=50,width=600,height=600\");' style='width:150px;' src='" + vstimefilename + "'></img><br><textarea name=myta onblur=\"if (this.value.length != 0) { document.getElementById('myqsubmit" + vstimebit.replace('td_','screen-').replace('_','-') + "').click(); }\" style='background-color:#f0f0f0;' rows=5 cols=20></textarea></form>";
}
thirtythousand=60000;
if (isasnapshottodo == 1) {
document.getElementById('myimage').src=vstimefilename;
}
setTimeout(andthenmove, 15000);
//alert(nexttdo.id + " =+= " + vstimebit);
nexttdo=null;
}
}
}
}
} else if ((!blank || (odiv.innerHTML == "" || ("" + ("00" + hh).slice(-2) + "" + ("00" + minm).slice(-2)) == "0000" || !normok))) {
odiv.innerHTML += "<div id='mywork" + eval(cnt + 1) + "' style='text-align:center; width:100%;'></div><br><h2 id=htwoeight style='text-align:center; width:100%;'>" + thisdatebit + "</h2><table id='" + itableo + "' style='background-color:pink;text-align:center; width:100%;'><tr><tbody><th id=theight colspan=8>" + thisdatebit + "</th></tr></tbody></table>";
//alert('Huh?');
nexttableo=document.getElementById(itableo);
nexttdo=null;
for (ih=0; ih<24; ih++) {
if (eval(ih % 2) == 0) nexttableo.innerHTML=nexttableo.innerHTML.replace("</tbody>", "<tr></tr></tbody>");
var ffv=45;
var ffi=15;
//if (!normok) { ffv=59; ffi=1; }
for (iqh=0; iqh<=ffv; iqh+=ffi) {
vstimefilename = hprefix + "screen-" + yyyy + "" + ("00" + mm).slice(-2) + "" + ("00" + dd).slice(-2) + "-" + ("00" + ih).slice(-2) + "" + ("00" + iqh).slice(-2) + ".jpg";
vstimebit = "td_" + yyyy + "" + ("00" + mm).slice(-2) + "" + ("00" + dd).slice(-2) + "_" + ("00" + ih).slice(-2) + "" + ("00" + iqh).slice(-2);
//alert(vstimefilename + ' ... ' + vstimebit);
if (!normok && blank) {
vstimefilename = hprefix + "screen-" + yyyy + "" + ("00" + mm).slice(-2) + "" + ("00" + dd).slice(-2) + "-" + ("00" + hh).slice(-2) + "" + ("00" + minm).slice(-2) + ".jpg";
vstimebit = "td_" + yyyy + "" + ("00" + mm).slice(-2) + "" + ("00" + dd).slice(-2) + "_" + ("00" + hh).slice(-2) + "" + ("00" + minm).slice(-2);
//alert('674 ' + nexttableo.innerHTML);
nexttableo.innerHTML=nexttableo.innerHTML.replace("</tr></tbody>", "<td id='" + thistimebit + "'>" + dd + "/" + mm + "/" + yyyy + "<a id=x" + thistimebit + " onclick=oops(this); style=text-decoration:none; title=Delete><strike>-</strike></a>" + ("00" + hh).slice(-2) + ":" + ("00" + minm).slice(-2) + "<br>" + "<form action=./quarter_hour_timer.php method=POST target=zlocit><input style=display:none; type=submit id=myqsubmit" + thistimebit.replace('td_','screen-').replace('_','-') + " value=Submit name='" + thistimebit.replace('td_','screen-').replace('_','-') + "'></input><img title=' ' onload=ouralert(this.src); id='i" + thistimebit + "' onerror='oops(this);' onload='unoops(this);' onclick='if (wo != null) { wo.close(); wo=null; } wo=window.open(\"" + vstimefilename + "\",\"" + dd + "/" + mm + "/" + yyyy + " " + ("00" + hh).slice(-2) + ":" + ("00" + minm).slice(-2) + "\",\"top=50,left=50,width=600,height=600\");' style='width:150px;' src='" + vstimefilename + "'></img><br><textarea name=myta onblur=\"if (this.value.length != 0) { document.getElementById('myqsubmit" + thistimebit.replace('td_','screen-').replace('_','-') + "').click(); }\" style='background-color:#f0f0f0;' rows=5 cols=20 id='ta" + thistimebit + "'></textarea></form></td></tr></tbody>");
setTimeout(andthenmove, 15000);
normok=true;
//alert('675 ' + nexttableo.innerHTML);
return;
} else if (vstimebit < thistimebit) {
//alert('Oops');
nexttableo.innerHTML=nexttableo.innerHTML.replace("</tr></tbody>", "<td id='" + vstimebit + "'>" + dd + "/" + mm + "/" + yyyy + "<a id=x" + vstimebit + " onclick=oops(this); style=text-decoration:none; title=Delete><strike>-</strike></a>" + ("00" + ih).slice(-2) + ":" + ("00" + iqh).slice(-2) + "<br>" + "<form action=./quarter_hour_timer.php method=POST target=zlocit><input style=display:none; type=submit id=myqsubmit" + vstimebit.replace('td_','screen-').replace('_','-') + " value=Submit name='" + vstimebit.replace('td_','screen-').replace('_','-') + "'></input><img title=' ' onload=ouralert(this.src); id='i" + vstimebit + "' onerror='oops(this);' onload='unoops(this);' onclick='if (wo != null) { wo.close(); wo=null; } wo=window.open(\"" + vstimefilename + "\",\"" + dd + "/" + mm + "/" + yyyy + " " + ("00" + ih).slice(-2) + ":" + ("00" + iqh).slice(-2) + "\",\"top=50,left=50,width=600,height=600\");' style='width:150px;' src='" + vstimefilename + "'></img><br><textarea name=myta onblur=\"if (this.value.length != 0) { document.getElementById('myqsubmit" + vstimebit.replace('td_','screen-').replace('_','-') + "').click(); }\" style='background-color:#f0f0f0;' rows=5 cols=20 id='ta" + vstimebit + "'></textarea></form></td></tr></tbody>");
lastone='#' + vstimebit;
} else if (vstimebit == thistimebit) {
//alert('oOps');
lastone='#' + vstimebit;
nexttableo.innerHTML=nexttableo.innerHTML.replace("</tr></tbody>", "<td id='" + vstimebit + "'>" + dd + "/" + mm + "/" + yyyy + "<a id=x" + vstimebit + " onclick=oops(this); style=text-decoration:none; title=Delete><strike>-</strike></a>" + ("00" + ih).slice(-2) + ":" + ("00" + iqh).slice(-2) + "<br>" + "<form action=./quarter_hour_timer.php method=POST target=zlocit><input style=display:none; type=submit id=myqsubmit" + vstimebit.replace('td_','screen-').replace('_','-') + " value=Submit name='" + vstimebit.replace('td_','screen-').replace('_','-') + "'></input><img title=' ' onload=ouralert(this.src); id='i" + vstimebit + "' onerror='oops(this);' onload='unoops(this);' onclick='if (wo != null) { wo.close(); wo=null; } wo=window.open(\"" + vstimefilename + "\",\"" + dd + "/" + mm + "/" + yyyy + " " + ("00" + ih).slice(-2) + ":" + ("00" + iqh).slice(-2) + "\",\"top=50,left=50,width=600,height=600\");' style='width:150px;' src='" + vstimefilename + "'></img><br><textarea name=myta onblur=\"if (this.value.length != 0) { document.getElementById('myqsubmit" + vstimebit.replace('td_','screen-').replace('_','-') + "').click(); }\" style='background-color:#f0f0f0;' rows=5 cols=20 id='ta" + vstimebit + "'></textarea></form></td></tr></tbody>");
} else if (nexttdo == null) {
//alert('ooPs');
nexttableo.innerHTML=nexttableo.innerHTML.replace("</tr></tbody>", "<td id='" + vstimebit + "'></td></tr></tbody>");
nexttdoid=vstimebit;
nexttdo=document.getElementById(vstimebit);
//alert(nexttdo.id + ' has innerHTML=' + nexttdo.innerHTML);
} else {
//alert('oopS');
nexttableo.innerHTML=nexttableo.innerHTML.replace("</tr></tbody>", "<td id='" + vstimebit + "'></td></tr></tbody>");
}
}
}
setTimeout(andthenmove, 15000);
} //else {
//document.title=nexttdoid;
//}

if (normok) { setTimeout(ofillinmywork, thirtythousand); }
normok=true;
}

function ofillinmywork() {
fillinmywork('', '', '', '', '');
}

function fancy(inc) {
return inc.substring(6,8) + "/" + inc.substring(4,6) + "/" + inc.substring(0,4) + "-" + inc.slice(-4).substring(0,2) + ":" + inc.slice(-2);
}

function ionload(ithis) {
img=ithis; //document.getElementById('myimage');
elem = document.getElementById('canvaselement');
context = elem.getContext("2d");
elem.style.display='block';
context.drawImage(img,0,0);
var canvuri = elem.toDataURL("image/png",0);
elem.style.display='none';
alert('When new window with screen capture opens after this ... Command-A or Ctrl-A (for Select All) and Command-C or Ctrl-C (for Copy) ... new window will close in 5 seconds');
winois=window.open('','_blank','top=3,left=3,width=1600,height=1200');
winois.document.write('<html><body><img src=' + canvuri + '></img></body></html>');
setTimeout(closewinois, 5000);
}

function showhowevermany() {
if (sfrom != '' || sto != '') {
var tds=document.getElementsByTagName('td');
for (var itds=0; itds<tds.length; itds++) {
if (sfrom != '' && sto != '') {
if (tds[itds].id != '') {
if (tds[itds].id < sfrom || tds[itds].id > sto) {
tds[itds].style.display='none';
}
}
} else if (sfrom != '') {
if (tds[itds].id != '') {
if (tds[itds].id < sfrom) {
tds[itds].style.display='none';
}
}
} else if (sto != '') {
if (tds[itds].id != '') {
if (tds[itds].id > sto) {
tds[itds].style.display='none';
}
}
}
}
}
}

var imgn='imgm' + Math.floor(Math.random() * 1987656453) + '.gif';
var tryit='HTTP://localhost' + lportbit + '/' + imgn;
var thatone='', thattwo='';
var wowowo=null;

function getOS(inlp) {
OSName = "Win Unknown";
if (window.navigator.userAgent.indexOf("Windows NT 11.0")!= -1) OSName="Windows 11";
if (window.navigator.userAgent.indexOf("Windows NT 10.0")!= -1) OSName="Windows 10";
if (window.navigator.userAgent.indexOf("Windows NT 6.3") != -1) OSName="Windows 8.1";
if (window.navigator.userAgent.indexOf("Windows NT 6.2") != -1) OSName="Windows 8";
if (window.navigator.userAgent.indexOf("Windows NT 6.1") != -1) OSName="Windows 7";
if (window.navigator.userAgent.indexOf("Windows NT 6.0") != -1) OSName="Windows Vista";
if (window.navigator.userAgent.indexOf("Windows NT 5.1") != -1) OSName="Windows XP";
if (window.navigator.userAgent.indexOf("Windows NT 5.0") != -1) OSName="Windows 2000";
if (window.navigator.userAgent.indexOf("Mac") != -1) OSName="Mac/iOS";
if (window.navigator.userAgent.indexOf("X11") != -1) OSName="UNIX";
if (window.navigator.userAgent.indexOf("Linux") != -1) OSName="Linux";
if (OSName.substring(0,3).toLowerCase() == 'win') { inlp=''; }
return inlp;
}

function calledlater() {
if (tryit != '') {
if (!inIframe() && document.URL.indexOf('https:') == 0 && document.URL.indexOf('localhost') == -1 && navigator.userAgent.toLowerCase().indexOf('safari/') > -1) {
//if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
//alert('why');
location.href=document.URL.replace('https:','http:');
//} //else {
//alert('mobile');
//}
}
}
}

function windowopen(theone, thetwo) {
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
var asu=('&' + document.URL.replace(document.URL.split('?')[0],'').replace('?','')).replace(/^\&$/g,'');
wowowo=window.open('HTTP://localhost' + lportbit + '/HTMLCSS/quarter_hour_timer.html?imgname=' + imgn + asu,'xxlocit');
document.getElementById('xxlocit').style.display='block';
document.getElementById('xxlocit').style.width='100%';
document.getElementById('xxlocit').style.height='1000px';
//document.getElementById('myh1').style.display='none';
//document.getElementById('myh3').style.display='none';
//document.body.style.backgroundColor='orange';
//wowowo.postMessage('here now','http://localhost' + lportbit);
//wowowo.addEventListener('load', myFunction, false);
thatone=theone;
thattwo=thetwo;
setTimeout(postwo, 4000);
}
}

function postwo() {
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (tryit.trim() == tryit) {
return null;
}
wowo=window.open(thatone, thattwo);
//if (document.URL.indexOf('rjmprogramming.com.au') != -1 && wowo) {
// document.getElementById('premywork0').innerHTML='<iframe name=iwork0 id=iwork0 style=width:1600px;height:1200px;display:none; src=""></iframe>';
// qwo=window.open("HTTP://localhost" + lportbit + "/quarter_hour_timer.php?overall=" + encodeURIComponent('' + Math.floor(Math.random() * 198767545) + ' ' + Intl.DateTimeFormat().resolvedOptions().timeZone),"iwork0");
//}
}
}

function inIframe() { // thanks to https://stackoverflow.com/questions/326069/how-to-identify-if-a-webpage-is-being-loaded-inside-an-iframe-or-directly-into-t
try {
return window.self !== window.top;
} catch (e) {
return true;
}
}

function mamptry() {
if (!inIframe()) { if (document.URL.indexOf('httJUNKp:') == 0) { wowo=window.open('HTTP:/localhost' + lportbit + '/HTMLCSS/quarter_hour_timer.html','mamptry'); document.getElementById('mamptry').style.display='block'; } else if (document.URL.indexOf('localhost') == -1 && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { windowopen('HTTP:/localhost' + lportbit + '/HTMLCSS/quarter_hour_timer.html','blank'); } }
}

function bthen() {
document.getElementById('myh1').style.display='none';
document.getElementById('myh3').style.display='none';
document.body.style.backgroundColor='lightblue';
if (inIframe()) { getOS(''); modus=OSName + ' Client '; if (document.getElementById('qhspan')) { if (document.getElementById('qhspan').innerHTML.indexOf(modus) == -1) { document.getElementById('qhspan').innerHTML=modus + document.getElementById('qhspan').innerHTML; } }
if (document.getElementById('htwoeight')) { if (document.getElementById('htwoeight').innerHTML.indexOf(modus) == -1) { document.getElementById('htwoeight').innerHTML=modus + document.getElementById('htwoeight').innerHTML; } }
if (document.getElementById('theight')) { if (document.getElementById('theight').innerHTML.indexOf(modus) == -1) { document.getElementById('theight').innerHTML=modus + document.getElementById('theight').innerHTML; } }
}
}


if ((location.search.split('imgname=')[1] ? (decodeURIComponent(location.search.split('imgname=')[1]).split('&')[0]) : '')) {
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
setTimeout(bthen, 2000);
//document.getElementById('myh1').style.display='none';
//document.getElementById('myh3').style.display='none';
//document.body.style.backgroundColor='orange';
//window.opener.document.getElementById('xxlocit').style.display='block';
//window.opener.document.getElementById('xxlocit').style.width='100%';
//window.opener.document.getElementById('xxlocit').style.height='1000px';
var asu=((document.URL.replace(document.URL.split('?')[0],'')).replace('?','').replace('&','?') + '?');
asu=('?' + asu.split('?')[1]).replace(/^\?$/g,'');
var topl='_blank'; //'_self';
if (inIframe()) { topl='_blank'; }
if (document.URL.indexOf('localhost') != -1) { wwwooo=window.open(document.URL.split('?')[0] + asu,topl); window.opener.document.body.onclick=function() { wwwooo.focus(); } }
}
}

function forceissue() {
var d1 = new Date();
if (document.URL.indexOf('localhost') != -1 && d1.toUTCString().replace(':15:',':00:').replace(':30:',':00:').replace(':45:',':00:').replace(':07 ',':08 ').replace(':09 ',':08 ').indexOf(':00:08 ') != -1) {
//alert(65);
document.getElementById('xxxxlocit').src=document.URL.replace('.html','.php').replace('.htm','.php').split('?')[0] + '?tz=' + encodeURIComponent('' + Intl.DateTimeFormat().resolvedOptions().timeZone);
} else {
//alert(665);
document.getElementById('xxxxlocit').src=document.URL.replace('.html','.php').replace('.htm','.php').split('?')[0] + '?tz=' + encodeURIComponent('' + Intl.DateTimeFormat().resolvedOptions().timeZone);
normok=false;
ofillinmywork();
}
}

function lookforfifteen() {
var d1 = new Date();
if (document.URL.indexOf('localhost') != -1 && d1.toUTCString().replace(':15:',':00:').replace(':30:',':00:').replace(':45:',':00:').replace(':07 ',':08 ').replace(':09 ',':08 ').indexOf(':00:08 ') != -1) {
forceissue(); // document.getElementById('xxxxlocit').src=document.URL.replace('.html','.php').replace('.htm','.php').split('?')[0] + '?rand=' + Math.floor(Math.random() * 1987656432);
setTimeout(lookforfifteen, 5000);
} else {
setTimeout(lookforfifteen, 1000);
}
}

function mc(iois) {
if (iois != null) {
if (iois.src.indexOf('monthly_chronicler.htm') != -1) {
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
document.getElementById('divmc').innerHTML=aconto.body.innerHTML + '<br>';
if (!popdone) {
popdone=true;
//alert('prepop');
populate();
//alert('postpop');
}
}
}
}
}
}

function myFunction(evt) {
//alert('maybe');
var iois=evt.target;
if (iois != null) {
//if (('' + iois.src).indexOf('rjmprogramming.com.au') == -1) { alert('YeS/no ' + iois.src); }
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
if (('' + iois.src).indexOf('rjmprogramming.com.au') == -1) { if (1 == 2) { alert('yeS ' + iois.src); } }
}
}
}
}

function xxonl(iois) {
if (iois != null) {
//if (('' + iois.src).indexOf('rjmprogramming.com.au') == -1) { alert('Yes/no ' + iois.src); }
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
if (('' + iois.src).indexOf('rjmprogramming.com.au') == -1) { //} && document.URL.indexOf('rjmprogramming.com.au') != -1) {
locthere=true;
//alert('YeS');
}
}
}
}
}

function ics(iois) {
if (iois != null) {
if (iois.src.indexOf('ics_attachment.php') != -1) {
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
if (icalavailable) {
var qd=new Date();
//alert(Intl.DateTimeFormat().resolvedOptions().timeZone);
//alert(qd.getTimezoneOffset());
aconto.getElementById('datestart').value=icald;
aconto.getElementById('dateend').value=icald;
aconto.getElementById('mmdatestart').value=icald.substring(4,6);
aconto.getElementById('mmdateend').value=icald.substring(4,6);
aconto.getElementById('dddatestart').value=icald.substring(6,8);
aconto.getElementById('dddateend').value=icald.substring(6,8);
aconto.getElementById('ssdatestart').value='59';
aconto.getElementById('ssdateend').value='59';
aconto.getElementById('yyyydatestart').value=icald.substring(0,4);
aconto.getElementById('yyyydateend').value=icald.substring(0,4);
aconto.getElementById('eventwords').value=icalg.replace(/\<br\>/g, String.fromCharCode(10)).replace(/\<Br\>/g, String.fromCharCode(10)).replace(/\<BR\>/g, String.fromCharCode(10));
if (document.URL.indexOf('localhost') != -1) {
var jcald=icalg.replace(/\<br\>/g, String.fromCharCode(10)).replace(/\<Br\>/g, String.fromCharCode(10)).replace(/\<BR\>/g, String.fromCharCode(10)).replace(/\ \;>/g, ' ');
while (jcald.indexOf(String.fromCharCode(10)) != -1) { jcald=jcald.replace(String.fromCharCode(10),' '); }
aconto.getElementById('title').value=jcald;
} else {
aconto.getElementById('title').value='Calendar event at ' + icald;
}
aconto.getElementById('description').value='Calendar event at ' + icald;
aconto.getElementById('address').value=document.URL.split('?')[0].split('#')[0];
aconto.getElementById('pform').onsubmit=function() { parent.document.getElementById('icalstatus').innerHTML=' '; return true; };
if ( ('' + qd.getTimezoneOffset()).replace('null','').replace('undefined','') != '' ) {
//alert(('' + eval(eval('' + qd.getTimezoneOffset()) / 60.0)).replace('.00','').replace('.0',''));
aconto.getElementById('tz').value=('' + eval(eval('' + qd.getTimezoneOffset()) / 60.0)).replace('.00','').replace('.0','');
}
} else {
//alert('yes');
icalavailable=true;
document.getElementById('fics').style.display='inline-block';
}
}
}
}
}
}

function ask(towhat, dwo, nta) {
xtowhat=towhat;
xdwo=dwo;
var retval=document.getElementById(towhat).innerHTML.split('</div></details>')[0].split('</details>')[0].split('</div>')[0];
if (retval.indexOf('</summary>') != -1) {
retval=retval.split('</summary>')[1];
if (retval.indexOf('">') != -1) {
retval=retval.replace(retval.split('">')[0] + '">','');
while (retval.indexOf(String.fromCharCode(10)) != -1) {
retval=retval.replace(String.fromCharCode(10), ' ');
}
while (retval.indexOf('<br>') != -1) {
retval=retval.replace('<br>', ' ');
}
while (retval.indexOf('<div>') != -1) {
retval=retval.replace('<div>', ' ');
}
while (retval.indexOf('</div>') != -1) {
retval=retval.replace('</div>', ' ');
}
while (retval.indexOf(' ') != -1) {
retval=retval.replace(' ', ' ');
}
}
} else if (retval.indexOf('<div') != -1 && retval.indexOf('">') != -1) {
retval=retval.replace(retval.split('">')[0] + '">','');
while (retval.indexOf(String.fromCharCode(10)) != -1) {
retval=retval.replace(String.fromCharCode(10), ' ');
}
while (retval.indexOf('<br>') != -1) {
retval=retval.replace('<br>', ' ');
}
while (retval.indexOf('<div>') != -1) {
retval=retval.replace('<div>', ' ');
}
while (retval.indexOf('</div>') != -1) {
retval=retval.replace('</div>', ' ');
}
while (retval.indexOf(' ') != -1) {
retval=retval.replace(' ', ' ');
}
}
var newretval;
if (nta.trim() != '') {
if (appendmode && retval != '') {
newretval=retval + ' <br>' + nta;
} else {
newretval=nta;
}
} else {
if (document.URL.toLowerCase().replace('http://localhost','https://localhost').indexOf('http:') == 0 || (!passwordpassed && passwordrequired)) {
newretval=prompt('What do you want to chronicle for ' + qt(towhat.substring(1), 'date ' + dwo + ', ' + towhat.substring(1).substring(6) + ' ' + months[eval(-1 + eval(towhat.substring(1).substring(4,6)))] + ' ' + towhat.substring(1).substring(0,4)) + '? (NB: <br> is line feed)', retval);
} else {
newretval=prompt('What do you want to chronicle for ' + qt(towhat.substring(1), 'date ' + dwo + ', ' + towhat.substring(1).substring(6) + ' ' + months[eval(-1 + eval(towhat.substring(1).substring(4,6)))] + ' ' + towhat.substring(1).substring(0,4)) + '? (NB: <br> is line feed) (append with ?password=[yourPassword] to ask for a password to access from here on)', retval);
}
}
if (newretval == null) {
return retval;
} else if (nta == '' && newretval != '') {
if (newretval.substring(0,1) == '+') {
appendmode=true;
if (retval != '') {
if (newretval != '') xnta=newretval.substring(1);
var xnewretval=retval + ' <br>' + newretval.substring(1);
newretval=xnewretval;
} else {
if (newretval != '') xnta=newretval.substring(1);
newretval=newretval.substring(1);
}
} else {
xnta=newretval;
}
}
if (newretval.indexOf('?password=') != -1) {
//document.getElementById('pd').innerHTML=newretval.split('?password=')[0];
makepd(document.getElementById('pd').innerHTML, newretval.split('?password=')[1]);
}
if (newretval.indexOf('/password/') != -1) {
//document.getElementById('pd').innerHTML=newretval.split('/password/')[0];
makepd(document.getElementById('pd').innerHTML, newretval.split('/password/')[1]);
}
if (newretval.split('?password=')[0].split('/password/')[0] != retval) {
vr_setCookie('c' + towhat.substring(1), newretval.split('?password=')[0].split('/password/')[0]);
}
document.getElementById(towhat).innerHTML='<div onblur="makeit(' + "'c" + towhat.substring(1) + "',this.innerHTML" + ');" contenteditable="true">' + newretval + '</div>';
if (range.length == 1) {
range=[];
tdclicklist=[];
} else if (range.length > 1) {
document.getElementById('t' + towhat).style.backgroundColor='yellow';
range.shift();
if (range.length >= 1) {
xdwo=range[0].split(',')[1];
xtowhat=range[0].split(',')[0];
setTimeout(preask, 500);
}
} else {
range=[];
tdclicklist=[];
setTimeout(nothing, 600);
}
return newretval;
}


function tdclick(tdo) {
if (tdclicklist.length == 1) {
document.getElementById('a' + tdo.id.substring(2)).click();
} else {
tdclicklist.push('a' + tdo.id.replace('td',''));
}
//alert('tdclicklist=' + tdclicklist);
//xnta='';
}

function wopen(event,overvsout) {
if (!overvsout) {
noask=true;
if (imois == event.target) {
imois=null;
} return;
}
noask=false;
imois=event.target;
setTimeout(postwopen, 4000);
}

function postwopen() { //pois) {
if (imois) {
var pois=imois;
if (pois.outerHTML.indexOf('URL(') != -1) {
if (iwo) { iwo.close(); iwo=null; }
iwo=window.open(pois.outerHTML.split('URL(')[1].split(')')[0].replace(String.fromCharCode(34),'').replace(String.fromCharCode(34),''),'_blank','top=50,left=50,width=600,height=600');
}
}
}

function infillforearlier() {
var todayis = new Date();
var wyyyy = todayis.getFullYear();
var wdd = todayis.getDate();
var wmm = todayis.getMonth()+1; //January is 0!
if (!ydone) {
ydone=true;
//alert(89);
document.getElementById('yylocit').src='./quarter_hour_timer.php?yourta=&itd_' + wyyyy + '0101_0000=' + ('00' + wmm).slice(-2) + ('00' + wdd).slice(-2);
}
}

function infillforearlierextra() {
var todayis = new Date();
var wyyyy = todayis.getFullYear();
var wdd = todayis.getDate();
var wmm = todayis.getMonth()+1; //January is 0!
if (!ydone || 1 == 1) {
ydone=true;
document.getElementById('yylocit').src='./quarter_hour_timer.php?yourta=' + encodeURIComponent(' ') + '&itd_' + wyyyy + '0101_0000=' + ('00' + wmm).slice(-2) + ('00' + wdd).slice(-2);
}
}

function thyearit(tv) {
if (tv.trim() != '' && document.getElementById('thyear')) {
document.getElementById('thyear').innerHTML=document.getElementById('thyear').innerHTML.replace('<personal_details>', tv).replace('<personal_details>', tv);
}
}

function icalscheck() {
//if (locthere) {
// alert(('' + document.body.onclick));
//}
var xcz='';
if (document.getElementById('icalstatus')) {
xcz=document.getElementById('icalstatus').innerHTML;
}
if (xcz == ' ') {
document.getElementById('icalstatus').innerHTML='';
if (document.getElementById('yics').value.indexOf('nw') != -1) {
if (icalwo != null) { icalwo.close(); icalwo=null; }
} else if (document.getElementById('yics').value.indexOf('if') != -1) {
document.getElementById('divics').style.display='none';
//document.getElementById('divics').style.width='100%';
//document.getElementById('divics').style.height='1000px';
document.getElementById('icslocit').style.display='none';
//document.getElementById('icslocit').style.width='100%';
//document.getElementById('icslocit').style.height='1000px';
}
}
}

setTimeout(calledlater, 2000);
setTimeout(lookforfifteen, 1000);

setInterval(icalscheck, 5000);

if (document.URL.indexOf('localhost') == -1) {
window.addEventListener("message", function(event) {
if (event.origin != 'http://www.rjmprogramming.com.au') {
// something from an unknown domain, let's ignore it
return;
}

console.log( "received: " + event.data );

// can message back using event.source.postMessage(...)
});
} else {
window.addEventListener("message", function(event) {
if (event.origin != 'http://localhost' + lportbit) {
// something from an unknown domain, let's ignore it
return;
}

console.log( "Received: " + event.data );

// can message back using event.source.postMessage(...)
});
}
</script>

</head>
<body id='mybod' onload=" if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) { ofillinmywork(); setTimeout(mamptry,9000); } " style='background-color:yellow;'>
<h1 id='myh1' style='text-align:center; width:100%;'>Mac OS X Quarter Hour Timer via This Supervising Crontab (Ideally suited for MAMP, and left running) - RJM Programming - June, 2016</h1>
<h3 id='myh3' style='text-align:center; width:100%;visibility:hidden;' title='Old crontab ideas'>$ sudo crontab -e</br>/usr/bin/php /Applications/MAMP/htdocs/HTMLCSS/quarter_hour_timer.php # 0,15,30,45 * * * * /usr/sbin/screencapture -Cd -tjpg /Applications/MAMP/htdocs/screen-`date +"\%Y\%m\%d-\%H\%M"`.jpg</h3>
<h4 id='myh4' style='text-align:center; width:100%;'>Optionally fill in your Name: <input onblur=thyearit(this.value); style='width:20%;' type='text' id='yourname' value=''></input> <a id="bemail" onclick=" isasnapshottodo=true; alert('Please be back here at ' + fancy(nexttdoid.replace('td_','').replace('_',':')) + ' and have showing whatever you want to email and you will be directed on how to select copy and paste this screencapture into an email.'); this.innerHTML='Email Times back here at ' + fancy(nexttdoid.replace('td_','').replace('_',':')); " style=' text-decoration:underline; '>Email Times</a> <select id=sfrom onchange=" sfrom=this.value; document.getElementById('myshow').style.display='inline'; "><option value=''>From Earliest Below ...</option></select> <select id=sto onchange=" sto=this.value; document.getElementById('myshow').style.display='inline'; "><option value=''>To Latest Below ...</option></select> <input onclick=showhowevermany(); type=button id=myshow value=Show style=display:none;></input></h4>
<details onclick='setTimeout(infillforearlier,20);'><summary style=background-color:orange;>Yearly Report Calendar <input type=button onclick='setTimeout(infillforearlier,200);' value='Infill Earlier Days Just Annotated Screenshots'></input> <input type=button onclick='setTimeout(infillforearlierextra,200);' value='Infill Earlier Days All Screenshots'></input> <div id=fics style=display:none;><select id=yics><option value=if>Future Calendar Entries via Iframe</option><option value=nw>Future Calendar Entries via Popup</option><option value=''>No Future Calendar Entries</option><option value=allif>All Calendar Entries via Iframe</option><option value=allnw>All Calendar Entries via Popup</option></select></div></summary><div id=divics style=display:none;><iframe onload=ics(this); name=icslocit id=icslocit style='display:none;' src=../PHP/ics_attachment.php></iframe></div><div id=divmc style=display:block;></div></details><div id='premywork0'></div><div id='mywork0' style='text-align:center; width:100%;'></div>
<form id='iemail' src='http://www.rjmprogramming.com.au/HTMLCSS/quarter_hour_timer.php' method='POST' style='display:none;'>
<input type='submit' id='mysubmitemail' value='Email' style='display:none;'></input>
</form>
<canvas id="canvaselement" width=1600 height=1200 style="position: absolute; top:0; left:0; display:none; "></canvas>
<a id='aemail' onclick=' if (navigator.userAgent.match(/Android/i)) { aemail(this); } ' href='mailto:fillin@email.to?subject=My%20Times%20as%20Image%20Below' title='Email' style='display:none;'></a>
<img id='myimage' onload='ionload(this);' src='' onerror=' lastone=lastone; ' style='display:none; z-index:4; ' crossOrigin="Anonymous"></img>
<iframe style=display:none;width:100%;height:900px; name=mamptry id=mamptry src=></iframe><iframe onload=xxonl(this); name=xxlocit id=xxlocit style='display:none;' src=></iframe><iframe name=xxxxlocit id=xxxxlocit style='display:none;' src=></iframe><iframe name=zlocit id=zlocit style='display:none;' src=></iframe><iframe name=ylocit id=ylocit style='display:none;' src=></iframe><iframe name=yylocit id=yylocit style='display:none;' src=></iframe><iframe onload=mc(this); name=mclocit id=mclocit style='display:none;' src=./monthly_chronicler.html></iframe>
<div id=icalstatus style=display:none;></div>
</body>
</html>