<html>
<head>
<title>Select Palette - RJM Programming - May, 2025</title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<meta name="viewport" content="initial-scale=1.0 , minimum-scale=1.0 , maximum-scale=1.0" />
<script type='text/javascript' src='/ytaudioonly.js?rand=2433434421413446532434343444423444604344451313142358'></script>
<style>
#mysel {
width: 100%;
height: 97%;
font-color: transparent;
background-color: yellow !important;
z-index: -9;
}
textarea {
background-color: #f0f0f0;
}
</style>
<script type=text/javascript>
var doutf8=true;
var linesofcontent=[];
var linesofbcss=[], stylebit='';
var xis=20, yis=10;
var prmptstr="To share on today's Bulletin Board enter a username (within which any emojis can identify this person) and/or contact string (prepend space to hide contact information and another prepended space to hide Speech Bubble to anyone but Group Talk list, and append space to remember, append another space to apply to all other Speech Bubbles, and a comma separated list represents a Group Talk list that should start with your own details and which might allow for invitational communications) eg. " + String.fromCharCode(10) + "Robert 🥌 Metcalfe[rmetcalfe15@gmail.com],RJ⛳️M[rmetcalfe@rjmprogramming.com.au] ";
var woois=null, woodone=false;
var gtaval='', ista=false, xgtaval='', lastghuh='', lastnumlines=0;
var isthefirst=true;
var taar=[];
var preadd=0, csidone=false;
var windowuser='', windowcontact='', windowotheruser='', windowothercontact='', windowask=true, suffix='';
var zhr=null, zform=null, rawhtml='', startedsi=false, zwo=null, zlen=-9, reallyopen=false, laterdo='', laterdos='', lastincs='', filters='', mfilters='';
var bcol='0,0,255', bord='', amrecipient=false, amsender=false, sivdone=false, fixwhodone=false;
var youremoji='', outhtmlentities='', nonouthtmlentities='', invitetrue=true;
var applyprivacy=(('' + document.URL).indexOf('privacy=') == -1 ? (('' + document.URL).indexOf(encodeURIComponent('privacy=')) == -1 ? 'n' : ('' + document.URL).split(encodeURIComponent('privacy='))[1].substring(0,1)) : ('' + document.URL).split('privacy=')[1].substring(0,1));
var apprivurl=('&privacy=' + applyprivacy).replace('&privacy=n','');
var prfind='', gprfind='';
var firstx=null, firsty=null, pos3=-3, pos4=-3, nextx=null, nexty=null, slowitdown=false, isok=true, oktoemail=false, oktosms=false;
var wow=-1, woh=-1, wiw=-1, wih=-1;
var firstone=true, atendc=false, ninety=90, butnotif=false;
var therestis='', thehoster='dcont', allowed=true;
/**
* Convert a string to HTML entities ... Thanks to https://zditect.com/code/javascript/easy-solution-to-encode-html-entities-in-javascript.html
*/
String.prototype.toHtmlEntities = function() {
return this.replace(/./gm, function(s) {
return (s.match(/[a-z0-9" . "\\" . "s]+/i)) ? s : '' + s.charCodeAt(0) + ';';
});
};
/**
* Create string from HTML entities
*/
String.fromHtmlEntities = function(string) {
return (string+'').replace(/" . "\\" . "d+;/gm,function(s) {
return String.fromCharCode(s.match(/" . "\\" . "d+/gm)[0]);
})
};
// Thanks to https://stackoverflow.com/questions/45576748/how-can-i-detect-rendering-support-for-emoji-in-javascript ... below ...
/** Check if browser probably supports native emoji rendering
* @param {string} emoji - which emoji to use to test; a multicharacter emoji (grapheme
* cluster) will have lower chance of false positives; common emojis (smiley face),
* sometimes have unicode alternatives the browser will render
* @returns {boolean}
*/
function supports_emoji(emoji="🤦🏼♂️"){
const el = document.createElement("div");
el.style = "position:absolute;visibility:hidden;";
el.textContent = emoji;
document.body.appendChild(el);
const size = el.getBoundingClientRect();
el.remove();
// expecting a roughly square emoji; incorrectly rendered grapheme clusters will be
// rendered as multiple characters (width > height), while single character emojis are
// usually rendered as a thinner rectangle (height > width)
const square = Math.abs(1-size.width/size.height);
// tune this for more/less leeway in detection
return square < .09;
}
//function audioytlook() {
//}
function notallowed() {
allowed=false;
setTimeout(function(){ allowed=true; }, 1000);
}
function maybelegit(ineleven, iflegit) {
if (eval('' + ineleven.length) != 11) {
return iflegit.replace('tube','tuJUNKbe');
} else if (ineleven.slice(-1).replace('A','').replace('E','').replace('I','').replace('M','').replace('Q','').replace('U','').replace('Y','').replace('c','').replace('g','').replace('k','').replace('o','').replace('s','').replace('w','').replace('0','').replace('4','').replace('8','') != '') {
return iflegit.replace('tube','tuJUNKbe');
}
for (var ijk=0; ijk<ineleven.length; ijk++) {
if (ineleven.substring(ijk).substring(0,1) >= 'a' && ineleven.substring(ijk).substring(0,1) <= 'z') {
ijk=ijk;
} else if (ineleven.substring(ijk).substring(0,1) >= 'A' && ineleven.substring(ijk).substring(0,1) <= 'Z') {
ijk=ijk;
} else if (ineleven.substring(ijk).substring(0,1) >= '0' && ineleven.substring(ijk).substring(0,1) <= '9') {
ijk=ijk;
} else if (ineleven.substring(ijk).substring(0,1) == '/' || ineleven.substring(ijk).substring(0,1) == '+') {
ijk=ijk;
} else if (ineleven.substring(ijk).substring(0,1) == '-' || ineleven.substring(ijk).substring(0,1) == '_') {
ijk=ijk;
} else {
return iflegit.replace('tube','tuJUNKbe');
}
}
return iflegit;
}
function elevenize(whatwords) {
var outwords=whatwords;
if (!butnotif) {
var klines=0, kwords=0
var otherlines=whatwords.split(String.fromCharCode(10));
var otherwords=[];
for (klines=0; klines<otherlines.length; klines++) {
otherwords=otherlines[klines].split(' ');
for (kwords=0; kwords<otherwords.length; kwords++) {
otherwords[kwords]=otherwords[kwords].split('</')[0];
if (otherwords[kwords].indexOf('@') > 0 && otherwords[kwords].indexOf('.') > 0 && otherwords[kwords].indexOf('[') == -1 && otherwords[kwords].indexOf('<') == -1 && otherwords[kwords].indexOf('>') == -1 && otherwords[kwords].indexOf('data-to=') == -1) {
if (otherlines[klines].toLowerCase().indexOf('to:') == -1) {
outwords=outwords.replace(otherwords[kwords], '<a onmousedown="event.stopPropagation();" ontouchdown="event.stopPropagation();" onclick="event.stopPropagation();" target="_top" href="mailto:' + otherwords[kwords] + '?subject=My%20Speech%20Bubble%20thoughts%20...' + '"><tspan data-to="' + otherwords[kwords] + '" data-onclick="document.getElementById(' + "'mymailto'" + ').href=' + "'mailto:'" + ' + event.target.getAttribute(' + "'data-to'" + ') + ' + "'?subject=My%20Speech%20Bubble%20thoughts%20...'" + '; document.getElementById(' + "'mymailto'" + ').click(); ">' + otherwords[kwords] + '</tspan></a> ');
}
} else if (otherwords[kwords].replace(/^\+(9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*(\d{1,2})$/g,'') != otherwords[kwords]) { // thanks to https://stackoverflow.com/questions/2113908/what-regular-expression-will-match-valid-international-phone-numbers
if (otherlines[klines].toLowerCase().indexOf('to:') == -1) {
outwords=outwords.replace(otherwords[kwords], '<a onmousedown="event.stopPropagation();" ontouchdown="event.stopPropagation();" onclick="event.stopPropagation();" target="_top" href="sms:' + otherwords[kwords] + '' + '"><tspan data-to="' + otherwords[kwords] + '" data-onclick="document.getElementById(' + "'mymailto'" + ').href=' + "'sms:'" + ' + event.target.getAttribute(' + "'data-to'" + ') + ' + "''" + '; document.getElementById(' + "'mymailto'" + ').click(); ">' + otherwords[kwords] + '</tspan></a> ');
}
} else if (eval('' + otherwords[kwords].length) == 11) {
outwords=outwords.replace(otherwords[kwords], '<tspan class="' + maybelegit(otherwords[kwords],'tubeaudioyou') + '">' + otherwords[kwords] + '</tspan> ');
}
}
}
}
return outwords;
}
function taappriv(htis) {
var outht=htis;
var delprfind='';
var slines=htis.split(String.fromCharCode(10)), klines=0;
var thisttl='', wasoutht='';
var wasappflag=applyprivacy;
prfind='';
//alert('len=' + slines.length);
if (applyprivacy == 'y' && eval('' + slines.length) > 1) {
//alert(1);
for (klines=0; klines<slines.length; klines++) {
if (slines[klines].indexOf('To:') != -1) {
if (prfind == '') {
prfind=slines[klines].split('To:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind='To:' + prfind;
//treg(null, prfind);
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
} else if (slines[klines].indexOf(' to:') != -1) {
if (prfind == '') {
prfind=slines[klines].split(' to:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind=' to:' + prfind;
//treg(null, prfind);
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
} else if (slines[klines].indexOf(' TO:') != -1) {
if (prfind == '') {
prfind=slines[klines].split(' TO:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind=' TO:' + prfind;
//treg(null, prfind);
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
}
}
} else if (applyprivacy == 'Y' && eval('' + slines.length) > 1) {
//alert(11);
for (klines=0; klines<slines.length; klines++) {
if (slines[klines].indexOf('To:') != -1) {
if (prfind == '') {
prfind=slines[klines].split('To:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind='To:' + prfind;
//treg(null, prfind);
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
} else if (slines[klines].indexOf(' to:') != -1) {
if (prfind == '') {
prfind=slines[klines].split(' to:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind=' to:' + prfind;
//treg(null, prfind);
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
} else if (slines[klines].indexOf(' TO:') != -1) {
if (prfind == '') {
prfind=slines[klines].split(' TO:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind=' TO:' + prfind;
//treg(null, prfind);
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
}
}
} else {
//alert(111);
for (klines=0; klines<slines.length; klines++) {
//alert('slines[klines]=' + slines[klines]);
if (slines[klines].indexOf('To:') != -1) {
if (prfind == '') {
prfind=slines[klines].split('To:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind='To:' + prfind;
if (delprfind.indexOf('To: ') != -1) {
applyprivacy='Y';
apprivurl='&privacy=Y';
} else if (delprfind.indexOf('To: ') != -1) {
applyprivacy='y';
apprivurl='&privacy=y';
} else {
applyprivacy='n';
apprivurl='';
}
//treg(null, prfind);
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
} else if (slines[klines].indexOf(' to:') != -1) {
alert('Here');
if (prfind == '') {
prfind=slines[klines].split(' to:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind=' to:' + prfind;
if (delprfind.indexOf(' to: ') != -1) {
applyprivacy='Y';
apprivurl='&privacy=Y';
} else if (delprfind.indexOf(' to: ') != -1) {
applyprivacy='y';
apprivurl='&privacy=y';
} else {
applyprivacy='n';
apprivurl='';
}
//treg(null, prfind);
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
} else if (slines[klines].indexOf(' TO:') != -1) {
if (prfind == '') {
prfind=slines[klines].split(' TO:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind=' TO:' + prfind;
if (delprfind.indexOf(' TO: ') != -1) {
applyprivacy='Y';
apprivurl='&privacy=Y';
} else if (delprfind.indexOf(' TO: ') != -1) {
applyprivacy='y';
apprivurl='&privacy=y';
} else {
applyprivacy='n';
apprivurl='';
}
//treg(null, prfind);
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
}
if (wasoutht != '') {
outht=wasoutht;
}
}
}
//if (prfind != '') {
// setTimeout(pretreg, 1000);
//}
if (wasappflag != applyprivacy || applyprivacy != 'n') {
gprfind=prfind;
setTimeout(preapp, 300); //return appriv(outht);
}
return outht;
}
function preapp() {
appriv('');
}
function appriv(htis) {
var outht=htis;
var delprfind='';
var wascont=document.getElementById('dcont').innerHTML;
var slines=document.getElementById('dcont').innerHTML.split('<svg '), klines=0;
var thisttl='', wasoutht='';
var wasappflag=applyprivacy;
prfind=gprfind;
gprfind='';
if (applyprivacy == 'y' && eval('' + slines.length) > 1) {
for (klines=1; klines<slines.length; klines++) {
if (slines[klines].indexOf(' data-applyprivacy="n"') != -1) {
outht=outht.replace(slines[klines], slines[klines].replace(' data-applyprivacy="n"', ' data-applyprivacy="y"'));
slines[klines]=slines[klines].replace(' data-applyprivacy="n"', ' data-applyprivacy="y"');
} else if (slines[klines].indexOf(' data-applyprivacy="Y"') != -1) {
outht=outht.replace(slines[klines], slines[klines].replace(' data-applyprivacy="Y"', ' data-applyprivacy="y"'));
slines[klines]=slines[klines].replace(' data-applyprivacy="Y"', ' data-applyprivacy="y"');
}
if (slines[klines].indexOf('</title>') != -1) {
thisttl=slines[klines].split('</title>')[0].split('>')[eval(-1 + slines[klines].split('</title>')[0].split('>').length)];
if (thisttl.indexOf('[') != -1 && thisttl.indexOf(']') != -1 && thisttl.indexOf('[]') == -1) {
outht=outht.replace('[' + thisttl.split('[')[1].split(']')[0] + ']', '');
}
}
if (slines[klines].indexOf('To:') != -1) {
if (prfind == '') {
prfind=slines[klines].split('To:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind='To:' + prfind;
//treg(null, prfind);
while (document.getElementById('dcont').innerHTML.indexOf(delprfind) != -1) {
document.getElementById('dcont').innerHTML=document.getElementById('dcont').innerHTML.replace(delprfind, '');
}
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
} else if (slines[klines].indexOf(' to:') != -1) {
if (prfind == '') {
prfind=slines[klines].split(' to:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind=' to:' + prfind;
//treg(null, prfind);
while (document.getElementById('dcont').innerHTML.indexOf(delprfind) != -1) {
document.getElementById('dcont').innerHTML=document.getElementById('dcont').innerHTML.replace(delprfind, '');
}
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
} else if (slines[klines].indexOf(' TO:') != -1) {
if (prfind == '') {
prfind=slines[klines].split(' TO:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind=' TO:' + prfind;
//treg(null, prfind);
while (document.getElementById('dcont').innerHTML.indexOf(delprfind) != -1) {
document.getElementById('dcont').innerHTML=document.getElementById('dcont').innerHTML.replace(delprfind, '');
}
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
}
}
} else if (applyprivacy == 'Y' && eval('' + slines.length) > 1) {
for (klines=1; klines<slines.length; klines++) {
if (slines[klines].indexOf(' data-applyprivacy="n"') != -1) {
outht=outht.replace(slines[klines], slines[klines].replace(' data-applyprivacy="n"', ' data-applyprivacy="Y"'));
slines[klines]=slines[klines].replace(' data-applyprivacy="n"', ' data-applyprivacy="Y"');
} else if (slines[klines].indexOf(' data-applyprivacy="y"') != -1) {
outht=outht.replace(slines[klines], slines[klines].replace(' data-applyprivacy="y"', ' data-applyprivacy="Y"'));
slines[klines]=slines[klines].replace(' data-applyprivacy="y"', ' data-applyprivacy="Y"');
}
if (slines[klines].indexOf('To:') != -1) {
if (prfind == '') {
prfind=slines[klines].split('To:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind='To:' + prfind;
//treg(null, prfind);
while (document.getElementById('dcont').innerHTML.indexOf(delprfind) != -1) {
document.getElementById('dcont').innerHTML=document.getElementById('dcont').innerHTML.replace(delprfind, '');
}
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
} else if (slines[klines].indexOf(' to:') != -1) {
if (prfind == '') {
prfind=slines[klines].split(' to:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind=' to:' + prfind;
//treg(null, prfind);
while (document.getElementById('dcont').innerHTML.indexOf(delprfind) != -1) {
document.getElementById('dcont').innerHTML=document.getElementById('dcont').innerHTML.replace(delprfind, '');
}
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
} else if (slines[klines].indexOf(' TO:') != -1) {
if (prfind == '') {
prfind=slines[klines].split(' TO:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind=' TO:' + prfind;
//treg(null, prfind);
while (document.getElementById('dcont').innerHTML.indexOf(delprfind) != -1) {
document.getElementById('dcont').innerHTML=document.getElementById('dcont').innerHTML.replace(delprfind, '');
}
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
}
}
} else {
for (klines=1; klines<slines.length; klines++) {
wasoutht=outht;
if (!amsender && !amrecipient && slines[klines].indexOf(' data-applyprivacy="Y"') != -1) {
wasoutht=wasoutht.replace('<svg ' + slines[klines].split('</svg>')[0] + '</svg>', '');
} else {
wasoutht='';
}
if (slines[klines].indexOf('To:') != -1) {
if (prfind == '') {
prfind=slines[klines].split('To:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind='To:' + prfind;
if (delprfind.indexOf('To: ') != -1) {
applyprivacy='Y';
apprivurl='&privacy=Y';
} else if (delprfind.indexOf('To: ') != -1) {
applyprivacy='y';
apprivurl='&privacy=y';
} else {
applyprivacy='n';
apprivurl='';
}
//treg(null, prfind);
while (document.getElementById('dcont').innerHTML.indexOf(delprfind) != -1) {
document.getElementById('dcont').innerHTML=document.getElementById('dcont').innerHTML.replace(delprfind, '');
}
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
} else if (slines[klines].indexOf(' to:') != -1) {
//alert('Here');
if (prfind == '') {
prfind=slines[klines].split(' to:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind=' to:' + prfind;
if (delprfind.indexOf(' to: ') != -1) {
applyprivacy='Y';
apprivurl='&privacy=Y';
} else if (delprfind.indexOf(' to: ') != -1) {
applyprivacy='y';
apprivurl='&privacy=y';
} else {
applyprivacy='n';
apprivurl='';
}
//treg(null, prfind);
while (document.getElementById('dcont').innerHTML.indexOf(delprfind) != -1) {
document.getElementById('dcont').innerHTML=document.getElementById('dcont').innerHTML.replace(delprfind, '');
}
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
} else if (slines[klines].indexOf(' TO:') != -1) {
if (prfind == '') {
prfind=slines[klines].split(' TO:')[1].split('<')[0].split(String.fromCharCode(10))[0];
delprfind=' TO:' + prfind;
if (delprfind.indexOf(' TO: ') != -1) {
applyprivacy='Y';
apprivurl='&privacy=Y';
} else if (delprfind.indexOf(' TO: ') != -1) {
applyprivacy='y';
apprivurl='&privacy=y';
} else {
applyprivacy='n';
apprivurl='';
}
//treg(null, prfind);
while (document.getElementById('dcont').innerHTML.indexOf(delprfind) != -1) {
document.getElementById('dcont').innerHTML=document.getElementById('dcont').innerHTML.replace(delprfind, '');
}
while (outht.indexOf(delprfind) != -1) {
outht=outht.replace(delprfind, '');
}
}
}
if (wasoutht != '') {
outht=wasoutht;
}
}
}
if (prfind != '') {
//alert('9:' + prfind);
gctown(prfind.trim());
if (windowuser != '') {
document.getElementById('dcont').innerHTML=document.getElementById('dcont').innerHTML.replace(/\ data\-owner\=\"\"/g, ' data-owner="' + windowuser + '"');
}
if (windowcontact != '') {
document.getElementById('dcont').innerHTML=document.getElementById('dcont').innerHTML.replace(/\ data\-contact\=\"\"/g, ' data-contact="' + windowcontact + '"');
}
if (windowotheruser != '') {
if (windowuser != '') {
document.getElementById('dcont').innerHTML=document.getElementById('dcont').innerHTML.replace(/\ data\-otherowner\=\"\"/g, ' data-otherowner="' + windowotheruser + ',' + windowuser + '"');
} else {
document.getElementById('dcont').innerHTML=document.getElementById('dcont').innerHTML.replace(/\ data\-otherowner\=\"\"/g, ' data-otherowner="' + windowotheruser + '"');
}
}
if (windowothercontact != '') {
if (windowcontact != '') {
document.getElementById('dcont').innerHTML=document.getElementById('dcont').innerHTML.replace(/\ data\-othercontact\=\"\"/g, ' data-othercontact="' + windowothercontact + ',' + windowcontact + '"');
} else {
document.getElementById('dcont').innerHTML=document.getElementById('dcont').innerHTML.replace(/\ data\-othercontact\=\"\"/g, ' data-othercontact="' + windowothercontact + '"');
}
}
//alert('99:' + document.getElementById('dcont').innerHTML);
amsender=true;
//alert('apprivurl=' + apprivurl + ' and applyprivacy=' + applyprivacy);
invitesmaybe(true, prfind);
//setTimeout(pretreg, 1000);
ajaxit();
}
if (wasappflag != applyprivacy) {
return appriv(outht);
}
if (wascont != document.getElementById('dcont').innerHTML) {
var svgs=document.getElementsByTagName('svg');
for (var ibn=0; ibn<svgs.length; ibn++) {
if (ibn == 0) {
treg(svgs[ibn], null);
}
}
}
return outht;
}
function maybeemoji(insvg) {
var outthing='', newoutthing='', jb=0;
var outsvg=insvg;
//alert('0:' + outsvg);
if (outsvg.indexOf(' data-otherc') != -1 && outsvg.indexOf(' data-ip') != -1) {
//alert('was outsvg=' + outsvg);
outsvg=outsvg.replace(outsvg.split(' data-otherc')[1].split(' data-ip')[0],'').split('97%')[0];
//alert('becomes outsvg=' + outsvg);
}
//alert(outsvg);
outhtmlentities='';
nonouthtmlentities='';
var nonencodeds=outsvg.split('');
for (jb=1; jb<nonencodeds.length; jb++) {
if (eval('' + nonencodeds[jb].split(';')[0]) >= 1000 && nonouthtmlentities == '') {
outhtmlentities+=''+nonencodeds[jb].split(';')[0]+';';
newoutthing+=String.fromCodePoint(eval('' + nonencodeds[jb].split(';')[0]));
if (nonencodeds[jb] != (nonencodeds[jb].split(';')[0] + ';')) {
nonouthtmlentities=' ';
}
} else if (outhtmlentities != '') {
nonouthtmlentities+=''+nonencodeds[jb].split(';')[0]+';';
}
}
if (outhtmlentities != '') { outthing=outhtmlentities; }
if (outhtmlentities == '') {
if (outsvg.toHtmlEntities().replace(/\&\#[0-9][0-9][0-9]\;/g,' ').replace(/\&\#[0-9][0-9]\;/g,' ').replace(/\&\#[0-9]\;/g,' ').indexOf('') >= 0) {
//alert('2987:' + outsvg.toHtmlEntities().replace(/\&\#[0-9][0-9][0-9]\;/g,' ').replace(/\&\#[0-9][0-9]\;/g,' ').replace(/\&\#[0-9]\;/g,' '));
nonencodeds=outsvg.toHtmlEntities().replace(/\&\#[0-9][0-9][0-9]\;/g,' ').replace(/\&\#[0-9][0-9]\;/g,' ').replace(/\&\#[0-9]\;/g,' ').split('')
for (jb=1; jb<nonencodeds.length; jb++) {
if (eval('' + nonencodeds[jb].split(';')[0]) >= 1000 && nonouthtmlentities == '') {
outhtmlentities+=''+nonencodeds[jb].split(';')[0]+';';
newoutthing+=String.fromCodePoint(eval('' + nonencodeds[jb].split(';')[0]));
if (nonencodeds[jb] != (nonencodeds[jb].split(';')[0] + ';')) {
nonouthtmlentities=' ';
}
} else if (outhtmlentities != '') {
nonouthtmlentities+=''+nonencodeds[jb].split(';')[0]+';';
}
}
if (outhtmlentities != '') { outthing=outhtmlentities; }
}
}
if (outhtmlentities == '') {
//alert(987);
var encodedStr=outsvg.replace(/[\u00A0-\u9999<>\&]/g, function(i) {
if (eval('' + i.charCodeAt(0)) >= 1000 && nonouthtmlentities == '') {
outhtmlentities+=''+i.charCodeAt(0)+';';
newoutthing+=String.fromCodePoint(eval('' + i.charCodeAt(0)));
} else if (outhtmlentities != '') {
nonouthtmlentities+=''+i.charCodeAt(0)+';';
}
return ''+i.charCodeAt(0)+';';
});
}
if (outhtmlentities != '') { outthing=outhtmlentities; }
if (outhtmlentities == '') {
if (document.getElementById('myip').value != '' && insvg.replace(/\'/g,'"').indexOf(' data-owner="') != -1 && insvg.replace(/\'/g,'"').indexOf(' data-contact="') != -1) {
var basisstr=insvg.replace(/\'/g,'"').split(' data-owner="')[1].split('"')[0] + insvg.replace(/\'/g,'"').split(' data-contact="')[1].split('"')[0] + document.getElementById('myip').value;
var bcnt=999, koffset=0;
for (var ib=0; ib<basisstr.length; ib++) {
//if (bcnt == 999) { bcnt=129293; }
//bcnt+=eval('' + basisstr.substring(ib).charCodeAt(0));
koffset+=eval('' + basisstr.substring(ib).charCodeAt(0));
}
if (koffset > 0) {
bcnt+=Math.round(eval(eval('' + koffset) / 10));
var itries=0;
if (4 == 5) { bcnt=129293; }
while (supports_emoji(String.fromCodePoint(eval('' + bcnt)))) {
bcnt++;
itries++;
if (itries >= 230) { bcnt=129293; }
}
//alert(bcnt);
outthing='' + bcnt + ';';
newoutthing+=String.fromCodePoint(eval('' + bcnt));
}
}
}
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) || 'totherightgood' == 'totherightgood') {
if (document.getElementById('dcont').innerHTML.indexOf('<table') != -1) {
return insvg.replace('></text>', '>' + newoutthing + '</text>').replace(" data-emoji=''", " data-emoji='" + newoutthing + "'").replace(' data-emoji=""', ' data-emoji="' + newoutthing + '"');
}
thehoster='tdleft';
return '<table><tr><td id=tdleft style=vertical-align:top;>' + insvg.replace('></text>', '>' + newoutthing + '</text>').replace(" data-emoji=''", " data-emoji='" + newoutthing + "'").replace(' data-emoji=""', ' data-emoji="' + newoutthing + '"') + '</td><td id=tdnothing style=vertical-align:top; onmousedown="notallowed(); event.stopPropagation();" ontouchdown="notallowed(); event.stopPropagation();" onclick="event.stopPropagation();"><a onmousedown="notallowed(); event.stopPropagation();" ontouchdown="notallowed(); event.stopPropagation();" onclick="notallowed(); event.stopPropagation();" href=#tdleft title="Speech Bubble ... can contain YouTube 11 character video IDs or email address or international SMS number linking">💬</a><br><a onmousedown="notallowed(); event.stopPropagation();" ontouchdown="notallowed(); event.stopPropagation();" onclick="notallowed(); event.stopPropagation();" href=#tdnothing title="YouTube">📹</a></td><td id=tdright style=vertical-align:top; onmousedown="notallowed(); event.stopPropagation();" ontouchdown="notallowed(); event.stopPropagation();" onclick="event.stopPropagation();"><iframe style=display:none;width:900px;height:800px; id=rightif name=rightif src="/HTMLCSS/karaoke_youtube_api.htm?youtubeid=&theaNOid=&theifrNOameid=&thebuttoNOnwording=&justaJUNKudio=&youtube_duration=22223.000&email=&emoji=on&c0=on&i0=0&j0=22223&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29="></iframe></td><td id=tdmiddle style=vertical-align:top; onmousedown="notallowed(); event.stopPropagation();" ontouchdown="notallowed(); event.stopPropagation();" onclick="notallowed(); event.stopPropagation();"><a onclick="event.stopPropagation();" href=#tdleft title="Speech Bubble ... can contain YouTube 11 character video IDs or email address or international SMS number linking">💬</a><br><a onmousedown="notallowed(); event.stopPropagation();" ontouchdown="notallowed(); event.stopPropagation();" onclick="notallowed(); event.stopPropagation();" href=#tdnothing title="YouTube">📹</a></td></tr></table>';
}
return insvg.replace('></text>', '>' + newoutthing + '</text>').replace(" data-emoji=''", " data-emoji='" + newoutthing + "'").replace(' data-emoji=""', ' data-emoji="' + newoutthing + '"');
}
function getlast(inl) {
return inl;
}
function postowr() {
if (applyprivacy.replace('n','') != '' || apprivurl != '') {
if (apprivurl.indexOf('privacy=') != -1) { applyprivacy=apprivurl.split('privacy=')[1].substring(0,1); }
return encodeURIComponent(apprivurl);
}
return '';
}
function owr(incs) {
var xfilters='&me=' + encodeURIComponent(incs.trim());
var jjncs=incs.split(';');
if (eval('' + jjncs.length) < 3) {
xfilters='&me=' + encodeURIComponent(incs.trim());
} else if (jjncs[2].trim() != '') {
if (jjncs[eval(-1 + jjncs.length)].trim() != '' && jjncs[eval(-1 + jjncs.length)].trim() != jjncs[2].trim()) {
xfilters='&me=' + encodeURIComponent(jjncs[2].split(',')[0] + ';' + jjncs[eval(-1 + jjncs.length)].split(',')[0] + ';' + jjncs[0].trim() + jjncs[2].replace(getlast(jjncs[2]).split(',')[0],'') + ';' + jjncs[1].trim() + jjncs[eval(-1 + jjncs.length)].replace(getlast(jjncs[eval(-1 + jjncs.length)]).split(',')[0],''));
} else {
xfilters='&me=' + encodeURIComponent(jjncs[2].split(',')[0] + ';' + jjncs[1].trim() + ';' + jjncs[0].trim() + jjncs[2].replace(getlast(jjncs[2]).split(',')[0],'') + ';' + jjncs[eval(-1 + jjncs.length)]);
}
} else if (jjncs[eval(-1 + jjncs.length)].trim() != '') {
xfilters='&me=' + encodeURIComponent(jjncs[2].split(',')[0] + ';' + jjncs[eval(-1 + jjncs.length)].split(',')[0] + ';' + jjncs[0].trim() + jjncs[2].replace(getlast(jjncs[2]).split(',')[0],'') + ';' + jjncs[1].trim() + jjncs[eval(-1 + jjncs.length)].replace(getlast(jjncs[eval(-1 + jjncs.length)]).split(',')[0],''));
} else {
xfilters='&me=' + encodeURIComponent(incs.trim());
}
return decodeURIComponent(xfilters.replace('&me=',''));
}
function checksi() {
var rectone=null;
console.log('checksi ' + ('' + new Date()) + ' !' + document.getElementById('totop').value + '!');
if (document.getElementById('totop').value != '') { document.getElementById('totop').value=''; window.scrollTo(0,0); }
reallyopen=false;
csidone=true;
if (zwo) {
if (!zwo.closed) {
reallyopen=true;
}
}
if (zlen > 0 && reallyopen && document.getElementById('publicreport').innerHTML.indexOf('<svg ') != -1) {
//alert(4);
if (eval('' + document.getElementById('publicreport').innerHTML.replace(/none\;/g,'block;').length) != zlen) {
//alert(44);
document.getElementById('sumpublicreport').innerHTML='Your public Bulletin Board ... ' + ('' + new Date()) + ' ... ';
zwo.document.body.innerHTML=appriv(document.getElementById('dtlpublicreport').outerHTML.replace(/none\;/g, 'block;'));
//} else {
//alert(444);
}
} else if (document.getElementById('publicreport').innerHTML.indexOf('<svg ') != -1) {
//alert(5);
document.getElementById('sumpublicreport').innerHTML='Your public Bulletin Board ... ' + ('' + new Date()) + ' ... ';
if (!startedsi || amrecipient) {
//alert(55);
if (reallyopen && amrecipient) {
zwo.close();
}
//alert(23);
zwo=window.open('', '_blank', 'top=350,left=20,width=' + eval(-40 + eval('' + screen.width)) + ',height=400');
zwo.document.write(appriv(document.getElementById('dtlpublicreport').outerHTML.replace(/none\;/g, 'block;')));
setTimeout(function(){ zwo.document.title='Your relevant parts of the Bulletin Board today ...'; }, 3000);
zlen=eval('' + zwo.document.body.innerHTML.length);
if (amrecipient) {
document.getElementById('hrpublicreport').style.marginTop='80px';
document.getElementById('hrpublicreport').style.display='block';
document.getElementById('hrpublictworeport').style.display='block';
document.getElementById('dtlpublicreport').style.display='block';
if (sivdone && (amrecipient || amsender)) {
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (window.opener) { window.opener.document.getElementById('totop').value='y'; window.opener.scrollTo(0, 0); } else {
window.scrollTo(0, 0); }
}
}
if (!sivdone) {
sivdone=true;
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.getElementById('hrpublicreport').scrollIntoView();
} else {
rectone=document.getElementById('hrpublicreport').getBoundingClientRect();
window.scrollTo(0, eval(-190 + eval('' + rectone.top)));
}
}
}
} else {
document.getElementById('hrpublicreport').style.marginTop='80px';
document.getElementById('hrpublicreport').style.display='block';
document.getElementById('hrpublictworeport').style.display='block';
document.getElementById('dtlpublicreport').style.display='block';
if (sivdone && (amrecipient || amsender)) {
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (window.opener) { window.opener.document.getElementById('totop').value='y'; window.opener.scrollTo(0, 0); } else {
window.scrollTo(0, 0); }
}
}
if (!sivdone) {
sivdone=true;
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.getElementById('hrpublicreport').scrollIntoView();
} else {
rectone=document.getElementById('hrpublicreport').getBoundingClientRect();
window.scrollTo(0, eval(-190 + eval('' + rectone.top)));
}
}
//}
}
startedsi=true;
setInterval(startsi, 5000); //document.getElementById('ifpublicreport').src='./select_palette.php?extract=' + Math.floor(Math.random() * 19897675) + apprivurl;
}
}
function dolater() {
if (laterdo != '') {
if (1 == 1) {
alert('65:' + applyprivacy + ' ' + apprivurl + ' ' + postowr());
document.getElementById('dstyle').innerHTML+='<a onclick="this.style.display=' + "'none'" + ';" target=_top href="' + 'mailto:' + laterdo + '?subject=' + encodeURIComponent('Bulletin Board Group Talk member has logged in ...') + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '#sharedss=' + encodeURIComponent(owr(lastincs))) + postowr() + '">Please Email this invitation ...</a>';
} else {
anchor = document.createElement('a');
anchor.href = 'mailto:' + laterdo + '?subject=' + encodeURIComponent('Bulletin Board Group Talk member has logged in ...') + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '#sharedss=' + encodeURIComponent(owr(lastincs)) + postowr());
laterdo='';
anchor.style.display='none';
anchor.innerHTML='Email';
anchor.target='_top';
alert('Sending email now ...');
anchor.click();
}
}
if (laterdos != '') {
if (1 == 1) {
alert('66:' + applyprivacy + ' ' + apprivurl + ' ' + postowr());
document.getElementById('dstyle').innerHTML+=' <a onclick="this.style.display=' + "'none'" + ';" target=_top href="' + 'sms:' + laterdos + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '#sharedss=' + encodeURIComponent(owr(lastincs)) + postowr()) + '">Please SMS this invitation ...</a>';
} else {
anchor = document.createElement('a');
anchor.href = 'sms:' + laterdos + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '#sharedss=' + encodeURIComponent(owr(lastincs)) + postowr());
laterdos='';
anchor.style.display='none';
anchor.innerHTML='SMS';
anchor.target='_top';
alert('Sending SMS now ...');
anchor.click();
}
}
}
function trueifrec() {
return amrecipient;
}
function invitesmaybe(dosends, incs) {
filters='';
//alert(8);
if (lastincs == incs || incs.trim() == '') { return incs; }
//alert(88);
if (window.opener) {
if (!amrecipient) {
amrecipient=window.opener.trueifrec();
if (amrecipient) { fixwho(); }
}
}
//alert(888);
if (amrecipient) { return incs; }
//alert(8888);
lastincs=incs;
//alert('here with ' + incs);
var elist='', slist='', anchor=null;
var jjncs=incs.split(';');
var jncs=incs.replace(/\,/g,';').split(';');
for (var kn=0; kn<jncs.length; kn++) {
//alert('in:' + jncs[kn]);
if (jncs[kn].indexOf('[') != -1 && jncs[kn].indexOf(']') != -1) { jncs[kn]=jncs[kn].split('[')[1].split(']')[0].replace(/\ /g,'-'); }
if (jncs[kn].indexOf('@') != -1) {
if (elist == '') {
elist=jncs[kn];
} else if ((',' + elist + ',').toLowerCase().indexOf(',' + jncs[kn] + ',') == -1) {
elist+=',' + jncs[kn];
}
} else if (jncs[kn].trim() != '' && jncs[kn].replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'') == '') {
if (slist == '') {
slist=jncs[kn];
} else if ((',' + slist + ',').toLowerCase().indexOf(',' + jncs[kn] + ',') == -1) {
slist+=',' + jncs[kn];
}
} else if (jncs[kn].replace(/^\+(9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*(\d{1,2})$/g,'') == '') { // thanks to https://stackoverflow.com/questions/2113908/what-regular-expression-will-match-valid-international-phone-numbers
if (slist == '') {
slist=jncs[kn];
} else if ((',' + slist + ',').toLowerCase().indexOf(',' + jncs[kn] + ',') == -1) {
slist+=',' + jncs[kn];
}
}
//alert('out:' + elist + ' ... ' + slist);
}
if (elist != '' && slist != '') {
laterdos=slist;
//alert('maybe');
if (eval('' + jjncs.length) < 3) {
filters='&me=' + encodeURIComponent(incs);
} else if (jjncs[2].trim() != '') {
if (jjncs[eval(-1 + jjncs.length)].trim() != '' && jjncs[eval(-1 + jjncs.length)].trim() != jjncs[2].trim()) {
filters='&me=' + encodeURIComponent(jjncs[2].split(',')[0] + ';' + jjncs[eval(-1 + jjncs.length)].split(',')[0] + ';' + jjncs[0].trim() + jjncs[2].replace(getlast(jjncs[2]).split(',')[0],'') + ';' + jjncs[1].trim() + jjncs[eval(-1 + jjncs.length)].replace(getlast(jjncs[eval(-1 + jjncs.length)]).split(',')[0],''));
} else {
filters='&me=' + encodeURIComponent(jjncs[2].split(',')[0] + ';' + jjncs[1].trim() + ';' + jjncs[0].trim() + jjncs[2].replace(getlast(jjncs[2]).split(',')[0],'') + ';' + jjncs[eval(-1 + jjncs.length)]);
}
} else if (jjncs[eval(-1 + jjncs.length)].trim() != '') {
filters='&me=' + encodeURIComponent(jjncs[2].split(',')[0] + ';' + jjncs[eval(-1 + jjncs.length)].split(',')[0] + ';' + jjncs[0].trim() + jjncs[2].replace(getlast(jjncs[2]).split(',')[0],'') + ';' + jjncs[1].trim() + jjncs[eval(-1 + jjncs.length)].replace(getlast(jjncs[eval(-1 + jjncs.length)]).split(',')[0],''));
} else {
filters='&me=' + encodeURIComponent(incs);
}
if (dosends) {
//alert('not maybe');
amsender=true;
laterdo=elist;
setTimeout(dolater, 15000);
anchor = document.createElement('a');
anchor.href = 'sms:' + slist + '&body=' + encodeURIComponent('Bulletin Board Group Talk member has logged in ...' + String.fromCharCode(10) + document.URL.split('?')[0].split('#')[0] + '#sharedss=' + encodeURIComponent(owr(incs)) + postowr());
anchor.style.display='none';
anchor.innerHTML='SMS';
anchor.target='_top';
anchor.click();
} else { // comes in via email or SMS
if (('' + window.sessionStorage.getItem('select_palette_rememberings')).replace(/^undefined/g,'').replace(/^null/g,'') == '') {
//alert('email ss ' + incs);
window.sessionStorage.setItem('select_palette_rememberings', incs);
}
if (!windowask && (windowuser != '' || windowcontact != '')) {
//alert('email But');
windowask=windowask;
} else {
amrecipient=true;
fixwho();
//alert('email Process ' + incs);
windowask=false;
windowuser=incs.split(';')[0];
if (eval('' + incs.split(';').length) > 1) { windowcontact=incs.split(';')[1]; }
if (eval('' + incs.split(';').length) > 2) { windowotheruser=incs.split(';')[2]; }
if (eval('' + incs.split(';').length) > 3) { windowothercontact=incs.split(';')[3]; }
if (!startedsi) {
startedsi=true;
var huhc=(document.URL.split('/select_palette')[0] + '/select_palette.php?extract=' + Math.floor(Math.random() * 19897675) + '&me=' + (('' + location.hash).replace('#sharedss=','')).split('&')[0] + apprivurl);
if (huhc.indexOf('%26privacy%3D') != -1) { huhc=huhc.replace('&privacy=','&dummy=').replace('%26privacy%3D','&privacy='); }
//alert('will try ' + huhc); //'./select_palette.php?extract=' + Math.floor(Math.random() * 19897675) + '&me=' + (('' + location.hash).replace('#sharedss=','')).split('&')[0] + apprivurl);
document.getElementById('ifpublicreport').src=huhc;
if (apprivurl.indexOf('&me=') == -1) { apprivurl='&me=' + (('' + location.hash).replace('#sharedss=','')).split('&')[0] + apprivurl; }
setInterval(startsi, 5000);
setTimeout(function(){
var xrectone=document.getElementById('hrpublicreport').getBoundingClientRect();
window.scrollTo(0, eval(-190 + eval('' + xrectone.top)));
}, 3000);
}
}
}
} else if (elist.indexOf(',') != -1) {
laterdo=elist;
if (eval('' + jjncs.length) < 3) {
filters='&me=' + encodeURIComponent(incs);
} else if (jjncs[2].trim() != '') {
if (jjncs[eval(-1 + jjncs.length)].trim() != '' && jjncs[eval(-1 + jjncs.length)].trim() != jjncs[2].trim()) {
filters='&me=' + encodeURIComponent(jjncs[2].split(',')[0] + ';' + jjncs[eval(-1 + jjncs.length)].split(',')[0] + ';' + jjncs[0].trim() + jjncs[2].replace(getlast(jjncs[2]).split(',')[0],'') + ';' + jjncs[1].trim() + jjncs[eval(-1 + jjncs.length)].replace(getlast(jjncs[eval(-1 + jjncs.length)]).split(',')[0],''));
} else {
filters='&me=' + encodeURIComponent(jjncs[2].split(',')[0] + ';' + jjncs[1].trim() + ';' + jjncs[0].trim() + jjncs[2].replace(getlast(jjncs[2]).split(',')[0],'') + ';' + jjncs[eval(-1 + jjncs.length)]);
}
} else if (jjncs[eval(-1 + jjncs.length)].trim() != '') {
filters='&me=' + encodeURIComponent(jjncs[2].split(',')[0] + ';' + jjncs[eval(-1 + jjncs.length)].split(',')[0] + ';' + jjncs[0].trim() + jjncs[2].replace(getlast(jjncs[2]).split(',')[0],'') + ';' + jjncs[1].trim() + jjncs[eval(-1 + jjncs.length)].replace(getlast(jjncs[eval(-1 + jjncs.length)]).split(',')[0],''));
} else {
filters='&me=' + encodeURIComponent(incs);
}
if (dosends) {
amsender=true;
anchor = document.createElement('a');
//alert('68:' + postowr());
anchor.href = 'mailto:' + elist + '?subject=' + encodeURIComponent('Bulletin Board Group Talk member has logged in ...') + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '#sharedss=' + encodeURIComponent(owr(incs)) + postowr());
anchor.style.display='none';
anchor.innerHTML='Email';
anchor.target='_top';
setTimeout(dolater, 15000);
anchor.click();
} else { // comes in via email or SMS
if (('' + window.sessionStorage.getItem('select_palette_rememberings')).replace(/^undefined/g,'').replace(/^null/g,'') == '') {
//alert('email ss');
window.sessionStorage.setItem('select_palette_rememberings', incs);
}
if (!windowask && (windowuser != '' || windowcontact != '')) {
//alert('email bUt');
windowask=windowask;
} else {
amrecipient=true;
fixwho();
//alert('email proCess ' + incs);
windowask=false;
windowuser=incs.split(';')[0];
if (eval('' + incs.split(';').length) > 1) { windowcontact=incs.split(';')[1]; }
if (eval('' + incs.split(';').length) > 2) { windowotheruser=incs.split(';')[2]; }
if (eval('' + incs.split(';').length) > 3) { windowothercontact=incs.split(';')[3]; }
}
}
} else if (slist.indexOf(',') != -1) {
laterdos=slist;
if (eval('' + jjncs.length) < 3) {
filters='&me=' + encodeURIComponent(incs);
} else if (jjncs[2].trim() != '') {
if (jjncs[eval(-1 + jjncs.length)].trim() != '' && jjncs[eval(-1 + jjncs.length)].trim() != jjncs[2].trim()) {
filters='&me=' + encodeURIComponent(jjncs[2].split(',')[0] + ';' + jjncs[eval(-1 + jjncs.length)].split(',')[0] + ';' + jjncs[0].trim() + jjncs[2].replace(getlast(jjncs[2]).split(',')[0],'') + ';' + jjncs[1].trim() + jjncs[eval(-1 + jjncs.length)].replace(getlast(jjncs[eval(-1 + jjncs.length)]).split(',')[0],''));
} else {
filters='&me=' + encodeURIComponent(jjncs[2].split(',')[0] + ';' + jjncs[1].trim() + ';' + jjncs[0].trim() + jjncs[2].replace(getlast(jjncs[2]).split(',')[0],'') + ';' + jjncs[eval(-1 + jjncs.length)]);
}
} else if (jjncs[eval(-1 + jjncs.length)].trim() != '') {
filters='&me=' + encodeURIComponent(jjncs[2].split(',')[0] + ';' + jjncs[eval(-1 + jjncs.length)].split(',')[0] + ';' + jjncs[0].trim() + jjncs[2].replace(getlast(jjncs[2]).split(',')[0],'') + ';' + jjncs[1].trim() + jjncs[eval(-1 + jjncs.length)].replace(getlast(jjncs[eval(-1 + jjncs.length)]).split(',')[0],''));
} else {
filters='&me=' + encodeURIComponent(incs);
}
if (dosends) {
amsender=true;
anchor = document.createElement('a');
anchor.href = 'sms:' + slist + '&body=' + encodeURIComponent('Bulletin Board Group Talk member has logged in ...' + String.fromCharCode(10) + document.URL.split('?')[0].split('#')[0] + '#sharedss=' + encodeURIComponent(owr(incs)) + postowr());
anchor.style.display='none';
anchor.innerHTML='SMS';
anchor.target='_top';
setTimeout(dolater, 15000);
anchor.click();
} else { // comes in via email or SMS
if (('' + window.sessionStorage.getItem('select_palette_rememberings')).replace(/^undefined/g,'').replace(/^null/g,'') == '') {
//alert('email ss');
window.sessionStorage.setItem('select_palette_rememberings', incs);
}
if (!windowask && (windowuser != '' || windowcontact != '')) {
//alert('email buT');
windowask=windowask;
} else {
amrecipient=true;
fixwho();
//alert('email procesS ' + incs);
windowask=false;
windowuser=incs.split(';')[0];
if (eval('' + incs.split(';').length) > 1) { windowcontact=incs.split(';')[1]; }
if (eval('' + incs.split(';').length) > 2) { windowotheruser=incs.split(';')[2]; }
if (eval('' + incs.split(';').length) > 3) { windowothercontact=incs.split(';')[3]; }
}
}
}
//alert('filters=' + filters);
return incs;
}
function startsi() {
reallyopen=false;
console.log('startsi ' + ('' + new Date()) + ' !' + document.getElementById('totop').value + '!');
if (document.getElementById('totop').value != '') { document.getElementById('totop').value=''; window.scrollTo(0,0); }
if (zwo) {
if (!zwo.closed) {
reallyopen=true;
}
}
if (('' + document.URL + location.hash).indexOf('sharedss=') != -1) {
invitesmaybe(false,decodeURIComponent(('' + document.URL + location.hash).split('sharedss=')[1].split('&')[0].split('#')[0]));
document.getElementById('ifpublicreport').src='./select_palette.php?extract=' + Math.floor(Math.random() * 19897675) + filters + apprivurl + '&from=' + encodeURIComponent(document.getElementById('myip').innerHTML);
if (!startedsi) {
setInterval(checksi, 5000);
}
} else if (invitesmaybe(invitetrue,('' + window.sessionStorage.getItem('select_palette_rememberings')).replace(/^undefined/g,'').replace(/^null/g,'')) != '') {
invitetrue=false;
document.getElementById('ifpublicreport').src='./select_palette.php?extract=' + Math.floor(Math.random() * 19897675) + filters + apprivurl + '&from=' + encodeURIComponent(document.getElementById('myip').innerHTML);
if (!startedsi) {
setInterval(checksi, 5000);
}
}
}
function stateChanged() {
reallyopen=false;
if (zwo) {
if (!zwo.closed) {
reallyopen=true;
}
}
if (zhr.readyState == 4) {
if (zhr.status == 200) {
rawhtml = zhr.response;
//alert('here with ' + rawhtml.length + ' ' + rawhtml.indexOf('<svg '));
if (!startedsi && rawhtml.indexOf('<svg ') != -1) {
//alert('there with ' + rawhtml.length);
startedsi=true;
document.getElementById('sumpublicreport').innerHTML='Your public Bulletin Board ... ' + ('' + new Date()) + ' ... ';
if (reallyopen) {
zwo.document.body.innerHTML=document.getElementById('dtlpublicreport').outerHTML.replace(/none\;/g, 'block;');
} else {
document.getElementById('hrpublicreport').style.marginTop='80px';
document.getElementById('hrpublicreport').style.display='block';
document.getElementById('hrpublictworeport').style.display='block';
document.getElementById('dtlpublicreport').style.display='block';
if ((amrecipient || amsender)) {
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
window.scrollTo(0, 0);
}
}
}
setInterval(startsi, 5000); //document.getElementById('ifpublicreport').src='./select_palette.php?extract=' + Math.floor(Math.random() * 19897675) + mfilters + apprivurl + '&from=' + encodeURIComponent(document.getElementById('myip').innerHTML);
} else if (reallyopen && rawhtml.indexOf('<svg ') != -1) {
//alert('where with ' + rawhtml.length);
zwo.document.body.innerHTML=document.getElementById('dtlpublicreport').outerHTML.replace(/none\;/g, 'block;');
} else if (filters != '') {
document.getElementById('ifpublicreport').src='./select_palette.php?extract=' + Math.floor(Math.random() * 19897675) + filters + apprivurl + '&from=' + encodeURIComponent(document.getElementById('myip').innerHTML);
if (!csidone) {
csidone=true;
setInterval(checksi, 5000);
}
} else if (filters == '') {
document.getElementById('ifpublicreport').src='./select_palette.php?extract=' + Math.floor(Math.random() * 19897675) + filters + apprivurl + '&from=' + encodeURIComponent(document.getElementById('myip').innerHTML);
if (!csidone) {
csidone=true;
setInterval(checksi, 5000);
}
}
}
}
}
function ajaxit() {
//alert('here at ajaxit ' + document.getElementById('dcont').innerHTML);
if (amrecipient && ('' + location.hash).indexOf('sharedss=') != -1) {
document.getElementById('me').value=('' + location.hash).split('sharedss=')[1].split('&')[0].split('#')[0];
document.getElementById('indata').value=document.getElementById('dcont').innerHTML;
document.getElementById('subpost').click();
if (!startedsi) {
setInterval(checksi, 5000);
}
} else {
//alert('Here at ajaxit ' + document.getElementById('dcont').innerHTML);
zhr = new XMLHttpRequest();
zform = new FormData();
zform.append('indata', '' + document.getElementById('dcont').innerHTML);
if (('' + location.hash).indexOf('sharedss=') != -1) {
zform.append('me', '' + ('' + location.hash).split('sharedss=')[1].split('&')[0].split('#')[0]);
}
if (applyprivacy != 'n') { // amsender || amrecipient) {
//alert('heRe at ajaxit ' + document.getElementById('dcont').innerHTML);
zform.append('privacy', 'y');
}
zhr.onreadystatechange=stateChanged;
zhr.open('post', './select_palette.php', true);
zhr.send(zform);
}
}
function doemail() {
var anchor=null;
if (woois) {
if (!woois.closed) {
if (woois.document.getElementById('myta').outerHTML.indexOf(' data-done="y"') == -1) {
if (woois.document.getElementById('myta').value.trim() != '') {
woois.document.getElementById('myta').setAttribute('data-done', 'y');
setTimeout(doemail, 6000);
return '';
}
} else if (woois.document.getElementById('myta').value.trim() != '') {
setTimeout(doemail, 6000);
return '';
}
woois.close();
woois=null;
setTimeout(doemail, 6000);
return '';
}
}
var emis=prompt('Please enter email address to send to.', '');
if (emis == null) { emis=''; }
if (emis.indexOf('@') != -1) {
anchor = document.createElement('a');
anchor.href = 'mailto:' + emis.trim() + '?subject=My%20Speech%20Bubble%20data&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?rand=' + Math.floor(Math.random() * 19897865) + '#bodyih=' + encodeURIComponent(document.body.innerHTML));
anchor.style.display='none';
document.body.appendChild(anchor);
anchor.innerHTML='Email';
anchor.target='_top';
anchor.click();
} else if (emis.trim() != '' && emis.trim().replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'') == '') {
anchor = document.createElement('a');
anchor.href = 'sms:' + emis.trim() + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?rand=' + Math.floor(Math.random() * 19897865) + '#bodyih=' + encodeURIComponent(document.body.innerHTML));
anchor.style.display='none';
anchor.innerHTML='SMS';
anchor.target='_top';
anchor.click();
} else if (emis.replace(/^\+(9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*(\d{1,2})$/g,'') == '') { // thanks to https://stackoverflow.com/questions/2113908/what-regular-expression-will-match-valid-international-phone-numbers
emis=emis.replace(/\ /g,'-');
anchor = document.createElement('a');
anchor.href = 'sms:' + emis.trim() + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?rand=' + Math.floor(Math.random() * 19897865) + '#bodyih=' + encodeURIComponent(document.body.innerHTML));
anchor.style.display='none';
anchor.innerHTML='SMS';
anchor.target='_top';
anchor.click();
}
}
function dosms() {
var anchor=null;
if (woois) {
if (!woois.closed) {
if (woois.document.getElementById('myta').outerHTML.indexOf(' data-done="y"') == -1) {
if (woois.document.getElementById('myta').value.trim() != '') {
woois.document.getElementById('myta').setAttribute('data-done', 'y');
setTimeout(dosms, 6000);
return '';
}
} else if (woois.document.getElementById('myta').value.trim() != '') {
setTimeout(dosms, 6000);
return '';
}
woois.close();
woois=null;
setTimeout(dosms, 6000);
return '';
}
}
var emis=prompt('Please enter SMS number to send to.', '');
if (emis == null) { emis=''; }
if (emis.indexOf('@') != -1) {
anchor = document.createElement('a');
anchor.href = 'mailto:' + emis.trim() + '?subject=My%20Speech%20Bubble%20data&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?rand=' + Math.floor(Math.random() * 19897865) + '#bodyih=' + encodeURIComponent(document.body.innerHTML));
anchor.style.display='none';
document.body.appendChild(anchor);
anchor.innerHTML='Email';
anchor.target='_top';
anchor.click();
} else if (emis.trim() != '' && emis.trim().replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'') == '') {
anchor = document.createElement('a');
anchor.href = 'sms:' + emis.trim() + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?rand=' + Math.floor(Math.random() * 19897865) + '#bodyih=' + encodeURIComponent(document.body.innerHTML));
anchor.style.display='none';
anchor.innerHTML='SMS';
anchor.target='_top';
anchor.click();
} else if (emis.replace(/^\+(9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*(\d{1,2})$/g,'') == '') { // thanks to https://stackoverflow.com/questions/2113908/what-regular-expression-will-match-valid-international-phone-numbers
emis=emis.replace(/\ /g,'-');
anchor = document.createElement('a');
anchor.href = 'sms:' + emis.trim() + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?rand=' + Math.floor(Math.random() * 19897865) + '#bodyih=' + encodeURIComponent(document.body.innerHTML));
anchor.style.display='none';
anchor.innerHTML='SMS';
anchor.target='_top';
anchor.click();
}
}
function dotdotdotten() {
var preta='', anotherdata='', locationhash=('' + location.hash).replace(/^undefined/g,'').replace(/^null/g,'').split('#td')[0].replace(/^\#/g,'');
document.body.title=document.title + ' ... swipe from top right down and left for email and swipe from bottom up for SMS ... click/tap to manage Speech Bubble(s) or Lines of Text display here. Speech Bubbles may occur when there are line feeds entered by the user, and note, then, that the content can contain YouTube 11 character video IDs (optionally linkable to) or email address or international SMS number linking.';
if (window.opener) {
var wodiv=window.opener.document.getElementById('dcont').innerHTML;
var wasrec=amrecipient;
amrecipient=window.opener.trueifrec();
if (amrecipient && !wasrec) { fixwho(); }
//alert(amrecipient);
if (wodiv.indexOf('<svg') != -1) {
anotherdata=' data-notfirst=y ';
locationhash='';
preta='<details id=wodt open><summary id=wosm>Speech Bubble(s) so far ...</summary>' + window.opener.document.getElementById('dcont').innerHTML + '</details><hr><br>';
}
if (oktoemail && !oktosms) {
document.body.innerHTML=preta + '<textarea placeholder="Add your next bit of content (where ~~ on a single record of data can be line feed(s))." id=myta style=width:100%;height:50%; ' + anotherdata + ' data-done="n" onblur=" if (oktoemail) { if (!oktosms) { document.getElementById(' + "'butsms'" + ').disabled=true; } setTimeout(function(){ document.getElementById(' + "'butemail'" + ').click(); }, 3200); } if (oktosms) { if (!oktoemail) { document.getElementById(' + "'butemail'" + ').disabled=true; } setTimeout(function(){ document.getElementById(' + "'butsms'" + ').click(); }, 3400); } this.style.cursor=' + "'progress'" + '; setTimeout(function(){ document.getElementById(' + "'myta'" + ').setAttribute(' + "'data-done','y'" + '); }, 5000);">' + decodeURIComponent(('' + locationhash).replace(/^\#/g,'')).replace(/\<br\>/g, String.fromCharCode(10)) + '</textarea><br><br><button onclick="setTimeout(function(){ window.opener.doemail(); }, 2000);" id="butemail">Email 📧</button> <button onclick="setTimeout(function(){ window.opener.dosms(); }, 2000);" id="butsms" disabled>SMS 📟</button>';
} else if (!oktoemail && oktosms) {
document.body.innerHTML=preta + '<textarea placeholder="Add your next bit of content (where ~~ on a single record of data can be line feed(s))." id=myta style=width:100%;height:50%; ' + anotherdata + ' data-done="n" onblur=" if (oktoemail) { if (!oktosms) { document.getElementById(' + "'butsms'" + ').disabled=true; } setTimeout(function(){ document.getElementById(' + "'butemail'" + ').click(); }, 3200); } if (oktosms) { if (!oktoemail) { document.getElementById(' + "'butemail'" + ').disabled=true; } setTimeout(function(){ document.getElementById(' + "'butsms'" + ').click(); }, 3400); } this.style.cursor=' + "'progress'" + '; setTimeout(function(){ document.getElementById(' + "'myta'" + ').setAttribute(' + "'data-done','y'" + '); }, 5000);">' + decodeURIComponent(('' + locationhash).replace(/^\#/g,'')).replace(/\<br\>/g, String.fromCharCode(10)) + '</textarea><br><br><button onclick="setTimeout(function(){ window.opener.doemail(); }, 2000);" id="butemail" disabled>Email 📧</button> <button onclick="setTimeout(function(){ window.opener.dosms(); }, 2000);" id="butsms">SMS 📟</button>';
} else {
document.body.innerHTML=preta + '<textarea placeholder="Add your next bit of content (where ~~ on a single record of data can be line feed(s))." id=myta style=width:100%;height:50%; ' + anotherdata + ' data-done="n" onblur=" if (oktoemail) { if (!oktosms) { document.getElementById(' + "'butsms'" + ').disabled=true; } setTimeout(function(){ document.getElementById(' + "'butemail'" + ').click(); }, 3200); } if (oktosms) { if (!oktoemail) { document.getElementById(' + "'butemail'" + ').disabled=true; } setTimeout(function(){ document.getElementById(' + "'butsms'" + ').click(); }, 3400); } this.style.cursor=' + "'progress'" + '; setTimeout(function(){ document.getElementById(' + "'myta'" + ').setAttribute(' + "'data-done','y'" + '); }, 5000);">' + decodeURIComponent(('' + locationhash).replace(/^\#/g,'')).replace(/\<br\>/g, String.fromCharCode(10)) + '</textarea><br><br><button onclick="setTimeout(function(){ window.opener.doemail(); }, 2000);" id="butemail">Email 📧</button> <button onclick="setTimeout(function(){ window.opener.dosms(); }, 2000);" id="butsms">SMS 📟</button>';
}
document.getElementById('myta').placeholder+=' ' + String.fromCharCode(10) + 'Real textarea line feed usage can help you start creating speech bubble(s). ' + String.fromCharCode(10) + 'Lines of data that are just ~~ separate your entry of multiple speech bubbles. ' + String.fromCharCode(10) + 'Starting with a ~~ line of data starts afresh with all data.' + String.fromCharCode(10) + 'Speech Bubbles may occur when there are line feeds entered by the user, and note, then, that the content can contain YouTube 11 character video IDs (optionally linkable to) or email address or international SMS number linking.';
document.getElementById('myta').placeholder+=' ' + String.fromCharCode(10) + String.fromCharCode(10) + String.fromCharCode(10) + prmptstr.replace("To share on today's Bulletin Board enter a username ", "You can append username/contact details to the end of a line here with To: (then optional privacy space(s)) for Group Talk definition with or without privacy ").replace(", and append space to remember, append another space to apply to all other Speech Bubbles", " applies to all Speech Bubbles");
} else {
if (decodeURIComponent(('#' + location.hash)).indexOf('#bodyih=') != -1) {
document.body.innerHTML=decodeURIComponent(('#' + location.hash)).split('#bodyih=')[1];
}
butnotif=true;
addcontents(document.getElementById('mysel').title.replace(/\.\.\./g, '... ~~'));
butnotif=false;
document.getElementById('mysel').title=document.getElementById('mysel').title.replace(/\.\.\./g, '... ' + String.fromCharCode(10));
linesofcontent=[];
linesofbcss=[];
stylebit='';
//document.getElementById('mysel').readonly=true;
//document.getElementById('mysel').disabled=true;
}
}
function preaddcontents() {
addcontents('');
return false;
}
function bfta() {
var taval='', ita=0, ioffset=0;
taar=[];
if (woois) {
if (!woois.closed) {
if (woois.document.getElementById('myta').outerHTML.indexOf(' data-done="y"') != -1) {
if ((amsender || amrecipient) && woois.document.getElementById('myta').value.indexOf(String.fromCharCode(10) + '~~' + String.fromCharCode(10)) == -1 && woois.document.getElementById('myta').value.trim() != '') {
woois.document.getElementById('myta').value+=String.fromCharCode(10) + '~~' + String.fromCharCode(10);
ioffset=-1;
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
setTimeout(function(){ document.getElementById('totop').value=' '; }, 8000);
}
} else if ((amsender || amrecipient) && woois.document.getElementById('myta').value.trim() != '') {
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
setTimeout(function(){ document.getElementById('totop').value=' '; }, 8000);
}
}
if (woois.document.getElementById('myta').outerHTML.indexOf(' data-notfirst=') != -1) {
taar=[' '];
if (('' + woois.document.getElementById('myta').value + String.fromCharCode(10)).indexOf('~~' + String.fromCharCode(10)) == 0) {
woois.document.getElementById('myta').value=woois.document.getElementById('myta').value.replace('~~','');
gtaval='';
xgtaval='';
lastghuh='';
lastnumlines=0;
isthefirst=true;
} else {
isthefirst=false;
}
} else {
isthefirst=true;
}
//alert('THere');
taval=taappriv(woois.document.getElementById('myta').value);
if (taval.indexOf(String.fromCharCode(10) + '~~' + String.fromCharCode(10)) != -1) {
taar=taval.split(String.fromCharCode(10) + '~~' + String.fromCharCode(10));
butnotif=false;
for (ita=0; ita<eval(ioffset + eval('' + taar.length)); ita++) {
if (ita == 0) {
setTimeout(audioytlook, 8000);
} else if (ita < 0) {
setTimeout(detecttspan, 8000);
}
linesofcontent=[];
ista=true;
addcontents(taar[ita]);
ista=false;
isthefirst=false;
}
} else {
//alert('taval=' + taval);
linesofcontent=[];
ista=true;
if (eval('' + taval.split(String.fromCharCode(10)).length) > 1) {
if (0 == 0) {
setTimeout(audioytlook, 8000);
} else if (0 < 0) {
setTimeout(detecttspan, 8000);
}
butnotif=false;
} else {
butnotif=true;
}
addcontents(taval);
butnotif=false;
ista=false;
}
woois.close();
woois=null;
}
}
}
}
function detecttspan() {
var tsrect=null;
var tss=document.getElementsByTagName('tspan');
for (var itss=0; itss<tss.length; itss++) {
tsrect=tss[itss].getBoundingClientRect();
//alert('' + tss[itss].outerHTML + ' left:' + tsrect.left + ' top:' + tsrect.top);
}
}
function ourprompt(theblurb, thedef) {
if (!woodone) {
woodone=true;
setInterval(bfta, 2000);
}
if (woois) {
if (!woois.closed) {
woois.close();
woois=null;
}
}
if (amrecipient || amsender) {
setTimeout(function(){
if (oktoemail) {
woois=window.open('./select_palette.html?oktoemail=y#' + encodeURIComponent(gtaval), '_blank', 'top=50,left=50,width=' + eval(-100 + eval('' + screen.width)) + ',height=550');
firstx=null;
firsty=null;
nextx=null;
nexty=null;
} else if (oktosms) {
woois=window.open('./select_palette.html?oktosms=y#' + encodeURIComponent(gtaval), '_blank', 'top=50,left=50,width=' + eval(-100 + eval('' + screen.width)) + ',height=550');
firstx=null;
firsty=null;
nextx=null;
nexty=null;
} else {
woois=window.open('./select_palette.html#' + encodeURIComponent(gtaval), '_blank', 'top=50,left=50,width=' + eval(-100 + eval('' + screen.width)) + ',height=550');
}
setTimeout(function(){ woois.document.title='Your communications ...'; }, 3000);
}, 1000);
} else {
setTimeout(function(){
if (oktoemail) {
woois=window.open('./select_palette.html?oktoemail=y#' + encodeURIComponent(gtaval), '_blank', 'top=50,left=50,width=' + eval(-100 + eval('' + screen.width)) + ',height=600');
firstx=null;
firsty=null;
nextx=null;
nexty=null;
} else if (oktosms) {
woois=window.open('./select_palette.html?oktosms=y#' + encodeURIComponent(gtaval), '_blank', 'top=50,left=50,width=' + eval(-100 + eval('' + screen.width)) + ',height=600');
firstx=null;
firsty=null;
nextx=null;
nexty=null;
} else {
woois=window.open('./select_palette.html#' + encodeURIComponent(gtaval), '_blank', 'top=50,left=50,width=' + eval(-100 + eval('' + screen.width)) + ',height=600');
firstx=null;
firsty=null;
nextx=null;
nexty=null;
}
setTimeout(function(){ woois.document.title='Your communications ...'; }, 3000);
}, 1000);
}
return '';
}
function defwuwc(inwindowuser,inwindowcontact) {
if ((inwindowuser + inwindowcontact) == '') { return ''; }
if (inwindowuser != '' && inwindowcontact != '') { return inwindowuser + '[' + inwindowcontact + ']'; }
if (inwindowuser != '' && inwindowcontact == '') { return inwindowuser; }
return inwindowcontact;
}
function restuser(ctown) {
if (ctown.indexOf('[') != -1 && ctown.indexOf(']') != -1) {
while (ctown.indexOf('[') != -1) {
ctown=ctown.replace('[' + ctown.split('[')[1].split(']')[0] + ']', '').replace('[' + ctown.split('[')[1].split(']')[0] + '', '');
}
}
return ctown;
}
function restcontact(ctown) {
var outoftown=ctown.replace(/\ /g,'-'), thatone='';;
if (ctown.indexOf('[') != -1 && ctown.indexOf(']') != -1) {
ctown='';
while (outoftown.indexOf('[') != -1) {
thatone=outoftown.split('[')[1].split(']')[0].replace(/\ /g,'-');
if (ctown == '') {
ctown=thatone;
} else if ((',' + ctown.replace(/\ /g,'-').toLowerCase() + ',').indexOf(',' + thatone.toLowerCase() + ',') == -1) {
ctown+=',' + thatone;
}
outoftown=outoftown.replace('[' + thatone + ']', '').replace('[' + thatone + '', '');
}
} else if (ctown.indexOf('@') != -1) {
return ctown;
} else if (('' + ctown.trim()) != '' && ('' + ctown.trim()).replace(/\,/g,'').replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'') == '') {
return ctown;
} else if (('' + ctown.trim()) != '' && ('' + ctown.trim()).replace(/\,/g,'').replace(/^\+(9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*(\d{1,2})$/g,'') == '') { // thanks to https://stackoverflow.com/questions/2113908/what-regular-expression-will-match-valid-international-phone-numbers
ctown=ctown.replace(/\ /g,'-');
return ctown;
} else {
return '';
}
return ctown;
}
function topthings(theone, thetwo) {
filters=theone;
mfilters=thetwo;
}
function gctown(ctown) {
var dotherest=false, towtt='<title></title>', towttout='<title></title>';
var ourwindowask=windowask;
//alert('ctown=' + ctown);
if (ctown.indexOf('[') > 0 && ctown.indexOf(']') != -1) {
if (ctown.indexOf(',') != -1) {
windowotheruser=restuser(ctown.replace(ctown.split(',')[0] + ',','')); //.split(',')[1].split('[')[0];
windowothercontact=restcontact(ctown.replace(ctown.split(',')[0] + ',','')); //(ctown + '[]').split(',')[1].split('[')[1].split(']')[0];
//alert('Ctown=' + ctown + ' windowotheruser=' + windowotheruser + ' and windowothercontact=' + windowothercontact);
}
windowuser=ctown.split('[')[0];
windowcontact=ctown.split('[')[1].split(']')[0].replace(/\ /g,'-');
filters='&me=' + encodeURIComponent(windowuser + ';' + windowcontact + ';' + windowotheruser + ';' + windowothercontact);
mfilters=filters;
if (window.opener) {
window.opener.topthings(filters, mfilters);
}
if (apprivurl.indexOf('&me=') == -1) { apprivurl=mfilters + apprivurl; }
} else if (ctown.indexOf('[') == 0 && ctown.indexOf(']') != -1) {
if (ctown.indexOf(',') != -1) {
windowotheruser=restuser(ctown.replace(ctown.split(',')[0] + ',','')); //ctown.split(',')[1].split('[')[0];
windowothercontact=restcontact(ctown.replace(ctown.split(',')[0] + ',','')); //(ctown + '[]').split(',')[1].split('[')[1].split(']')[0];
//alert('CtowN=' + ctown + ' windowotheruser=' + windowotheruser + ' and windowothercontact=' + windowothercontact);
}
windowcontact=ctown.split('[')[1].split(']')[0].replace(/\ /g,'-');
windowuser=windowcontact;
filters='&me=' + encodeURIComponent(windowuser + ';' + windowcontact + ';' + windowotheruser + ';' + windowothercontact);
mfilters=filters;
if (window.opener) {
window.opener.topthings(filters, mfilters);
}
if (apprivurl.indexOf('&me=') == -1) { apprivurl=mfilters + apprivurl; }
} else {
if (ctown.indexOf(',') != -1) {
windowotheruser=restuser(ctown.replace(ctown.split(',')[0] + ',','')); //ctown.split(',')[1].split('[')[0];
windowothercontact=restcontact(ctown.replace(ctown.split(',')[0] + ',','')); //(ctown + '[]').split(',')[1].split('[')[1].split(']')[0];
//alert('CtoWn=' + ctown + ' windowotheruser=' + windowotheruser + ' and windowothercontact=' + windowothercontact);
}
windowuser=ctown;
windowcontact='';
filters='&me=' + encodeURIComponent(windowuser + ';' + windowcontact + ';' + windowotheruser + ';' + windowothercontact);
mfilters=filters;
if (window.opener) {
window.opener.topthings(filters, mfilters);
}
if (apprivurl.indexOf('&me=') == -1) { apprivurl=mfilters + apprivurl; }
}
}
function pretreg() {
return treg(null, prfind);
}
function treg(ttis, vs) {
var dotherest=false, towtt='<title></title>', towttout='<title></title>';
var ctown=defwuwc(windowuser,windowcontact);
var ourwindowask=windowask;
var gvs='';
if (!vs) {
gvs=gvs;
} else if (document.getElementById('publicreport').outerHTML.indexOf(' data-public=') != -1) {
gvs='' + vs;
ttis=document.getElementById('publicreport');
}
preadd=1;
if (gvs != '' || ttis.outerHTML.indexOf(' data-public=') != -1) {
if (windowuser == '' && windowcontact == '' && windowask) {
if (gvs != '') {
ctown=gvs;
} else {
ctown=prompt(prmptstr, defwuwc(windowuser,windowcontact));
}
}
//alert('ctown=' + ctown);
if (ctown == null) { ctown=''; }
if (ctown != ctown.replace(/^\ /g,'')) {
if (ctown != ctown.replace(/^\ \ /g,'')) {
applyprivacy='Y';
} else {
applyprivacy='y';
}
while (ctown != ctown.replace(/^\ /g,'')) {
ctown=ctown.substring(1);
}
} else {
applyprivacy='n';
}
if (ctown != ctown.replace(/\ \ $/g,'')) {
windowask=false;
dotherest=true;
ctown=ctown.trim();
} else if (ctown != ctown.replace(/\ $/g,'')) {
windowask=false;
ctown=ctown.trim();
}
if (ctown.indexOf('[') > 0 && ctown.indexOf(']') != -1) {
if (ctown.indexOf(',') != -1) {
windowotheruser=restuser(ctown.replace(ctown.split(',')[0] + ',','')); //.split(',')[1].split('[')[0];
windowothercontact=restcontact(ctown.replace(ctown.split(',')[0] + ',','')); //(ctown + '[]').split(',')[1].split('[')[1].split(']')[0];
}
windowuser=ctown.split('[')[0];
windowcontact=ctown.split('[')[1].split(']')[0].replace(/\ /g,'-');
} else if (ctown.indexOf('[') == 0 && ctown.indexOf(']') != -1) {
if (ctown.indexOf(',') != -1) {
windowotheruser=restuser(ctown.replace(ctown.split(',')[0] + ',','')); //ctown.split(',')[1].split('[')[0];
windowothercontact=restcontact(ctown.replace(ctown.split(',')[0] + ',','')); //(ctown + '[]').split(',')[1].split('[')[1].split(']')[0];
}
windowcontact=ctown.split('[')[1].split(']')[0].replace(/\ /g,'-');
windowuser=windowcontact;
} else {
if (ctown.indexOf(',') != -1) {
windowotheruser=restuser(ctown.replace(ctown.split(',')[0] + ',','')); //ctown.split(',')[1].split('[')[0];
windowothercontact=restcontact(ctown.replace(ctown.split(',')[0] + ',','')); //(ctown + '[]').split(',')[1].split('[')[1].split(']')[0];
}
windowuser=ctown;
windowcontact='';
}
if (windowcontact != '') {
ttis.setAttribute('data-contact', windowcontact);
if (windowuser == '') { towttout='<title>' + windowcontact + '</title>'; }
}
if (windowuser != '') {
ttis.setAttribute('data-owner', windowuser);
towttout='<title>' + defwuwc(windowuser, windowcontact) + '</title>';
}
if (windowuser != '' || windowcontact != '') {
ttis.setAttribute('data-public', 'y');
ttis.setAttribute('data-otherowner', windowotheruser);
ttis.setAttribute('data-othercontact', windowothercontact);
window.sessionStorage.setItem('select_palette_rememberings', invitesmaybe(true, windowuser + ';' + windowcontact + ';' + windowotheruser + ';' + windowothercontact));
ttis.innerHTML=ttis.innerHTML.replace(/\<text\ /g,'<text stroke="blue" ').replace(towtt, towttout.replace('</title>', ' ... ' + ttis.getAttribute('data-dts') + '</title>'));
if (dotherest) {
var svgs=document.getElementsByTagName('svg');
for (var isvgs=0; isvgs<svgs.length; isvgs++) {
if (svgs[isvgs].outerHTML.indexOf(' stroke=') == -1) {
if (('' + svgs[isvgs].id) != ('' + ttis.id)) {
if (windowcontact != '') {
svgs[isvgs].setAttribute('data-contact', windowcontact);
if (windowuser == '') { svgs[isvgs].title=windowcontact; }
}
if (windowuser != '') {
svgs[isvgs].setAttribute('data-owner', windowuser);
svgs[isvgs].title=defwuwc(windowuser, windowcontact);
}
if (windowuser != '' || windowcontact != '') {
svgs[isvgs].setAttribute('data-public', 'y');
}
svgs[isvgs].setAttribute('data-otherowner', windowotheruser);
svgs[isvgs].setAttribute('data-othercontact', windowothercontact);
svgs[isvgs].innerHTML=svgs[isvgs].innerHTML.replace(/\<text\ /g,'<text stroke="blue" ').replace(towtt, towttout.replace('</title>', ' ... ' + svgs[isvgs].getAttribute('data-dts') + '</title>'));
}
}
}
}
} else {
windowask=ourwindowask;
}
}
if (windowuser != '' || windowcontact != '') {
ajaxit();
}
//alert(ttis.outerHTML);
setTimeout(function(){ preadd=0; }, 5000);
}
function preaddcontents() {
if (preadd == 0) {
return addcontents('');
}
return false;
}
function addcontents(inboc) {
//alert(98);
if (!allowed) {
allowed=true;
return false;
}
var nboc='', seventeen="17", zero=0, numlines=1, one=1, grest='', ghuh='', wasfound=false, jnew=0;
var dts=('' + new Date());
var gts=('' + new Date().toLocaleString('en-AU',{timeZone:'UTC', hour12:false}).replace(',',''));
if (eval('' + gts.split('/').length) == 3 && eval('' + gts.split(':').length) >= 3) {
var xgts=gts;
gts=xgts.split('/')[2].replace(' ',':').split(':')[0] + xgts.split('/')[1] + xgts.split('/')[0] + xgts.split(':')[eval(-3 + xgts.split(':').length)].split(' ')[eval(-1 + xgts.split(':')[eval(-3 + xgts.split(':').length)].split(' ').length)] + xgts.split(':')[eval(-2 + xgts.split(':').length)] + xgts.split(':')[eval(-1 + xgts.split(':').length)];
}
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
zero="-60";
}
if (inboc == '') {
nboc=ourprompt('Add your next bit of content (where ~~ can be line feed).', '');
} else {
nboc=inboc;
if (!ista) { seventeen="12"; }
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
zero="80";
} else {
zero="-60";
}
}
if (!nboc) { nboc=''; }
var dct='';
var dow='';
var tow='';
var sco=''
var dp=',';
if (!windowask && (windowuser != '' || windowcontact != '')) {
//alert('good sign');
dp='y';
sco=' stroke="blue"';
if (windowcontact != '') {
if (windowuser == '') {
dct=windowcontact;
tow=defwuwc(windowuser, windowcontact) + ' ... ' + dts;
} else {
dct=windowcontact;
}
}
if (windowuser != '') {
dow=windowuser;
tow=defwuwc(windowuser, windowcontact) + ' ... ' + dts;
}
}
if (nboc != ' ') {
var newlines=nboc.split('~~');
if (eval('' + newlines.length) == 1) {
newlines=inboc.split(String.fromCharCode(10));
} else {
ista=false;
}
if (ista) {
numlines=eval('' + newlines.length);
one=numlines;
//alert(seventeen + ' ... ' + one);
if (one == 1 && eval('' + taar.length) == 0) { ista=false; }
}
gtaval='';
xgtaval='';
for (var inew=0; inew<newlines.length; inew++) {
linesofcontent.push(newlines[inew]);
if (seventeen == "17") {
if (gtaval == '' || (lastghuh != '' && lastghuh == gtaval) || (lastghuh != '' && lastghuh.replace(/\<br\>$/g, '') == gtaval)) {
if (gtaval != '' && numlines > lastnumlines && ista) {
numlines-=lastnumlines;
one=numlines;
wasfound=true;
jnew=inew;
}
gtaval=newlines[inew];
xgtaval=gtaval;
} else {
gtaval+='<br>' + newlines[inew];
xgtaval+="</text><text" + sco + " x='5%' y='" + eval(eval(1 + inew - jnew) * eval(90 / numlines)) + "%' xml:space='preserve'>" + elevenize(newlines[inew]);
}
}
}
//alert('gtaval=' + gtaval);
linesofbcss=[];
stylebit='<style> #mysel { background: ; } </style>';
xis=20;
yis=10;
for (var jnew=0; jnew<linesofcontent.length; jnew+=one) {
if (jnew == 0) {
if (ista) {
// Wed May 14 2025 11:18:37 GMT+1000 (Australian Eastern Standard Time)
if (wasfound || (lastghuh != '' && gtaval.indexOf(lastghuh) == 0 && lastghuh != gtaval)) {
document.getElementById(thehoster).innerHTML+=maybeemoji("<br><br><br><svg name=\"" + gts + "\" data-public=\"" + dp + "\" data-contact='" + dct + "' data-owner='" + dow + "' data-emoji='" + youremoji + "' data-applyprivacy='" + applyprivacy + "' data-othercontact='" + windowothercontact + "' data-otherowner='" + windowotheruser + "' data-ip='" + document.getElementById('myip').innerHTML + "' data-dts='" + dts + "' onmousedown=\" event.stopPropagation(); event.preventDefault(); preadd=0; setTimeout(preaddcontents,2000); \" ontouchdown=\" event.stopPropagation(); event.preventDefault(); preadd=0; setTimeout(preaddcontents,2000); \" id='" + dts.replace(/\:/g,'!').replace(/\(/g,'-').replace(/\)/g,'|').replace(/\ /g,'_') + suffix + "' ontouchmove='preswipecheck(event);' ontouchend='treg(this,null);' oncontextmenu='treg(this,null);' xmlns='http://www.w3.org/2000/svg' width='" + eval(" + zero + " + eval(eval('' + screen.width) * 1.0)) + "' height='" + eval(48 * numlines) + "' viewport='0 0 100 100' style='border-top-left-radius:35px;border-bottom-right-radius:35px;border-top-right-radius:35px;" + bord + "background-color:rgba(" + bcol + ",0.3);fill:black;font-family:Verdana;font-size:" + seventeen + "px;'><title>" + tow + "</title><text" + sco + " x='5%' y='" + eval(90 / numlines) + "%' xml:space='preserve'>" + elevenize(xgtaval.replace(/\<br\>/g, String.fromCharCode(10))) + "</text><text x='0%' y='97%'></text></svg>") + therestis;
therestis='';
} else if (!isthefirst) {
document.getElementById(thehoster).innerHTML+=maybeemoji("<br><br><br><svg name=\"" + gts + "\" data-public=\"" + dp + "\" data-contact='" + dct + "' data-owner='" + dow + "' data-emoji='" + youremoji + "' data-applyprivacy='" + applyprivacy + "' data-othercontact='" + windowothercontact + "' data-otherowner='" + windowotheruser + "' data-ip='" + document.getElementById('myip').innerHTML + "' data-dts='" + dts + "' onmousedown=\" event.stopPropagation(); event.preventDefault(); preadd=0; setTimeout(preaddcontents,2000); \" ontouchdown=\" event.stopPropagation(); event.preventDefault(); preadd=0; setTimeout(preaddcontents,2000); \" id='" + dts.replace(/\:/g,'!').replace(/\(/g,'-').replace(/\)/g,'|').replace(/\ /g,'_') + suffix + "' ontouchmove='preswipecheck(event);' ontouchend='treg(this,null);' oncontextmenu='treg(this,null);' xmlns='http://www.w3.org/2000/svg' width='" + eval(" + zero + " + eval(eval('' + screen.width) * 1.0)) + "' height='" + eval(48 * numlines) + "' viewport='0 0 100 100' style='border-top-left-radius:35px;border-bottom-right-radius:35px;border-top-right-radius:35px;" + bord + "background-color:rgba(" + bcol + ",0.3);fill:black;font-family:Verdana;font-size:" + seventeen + "px;'><title>" + tow + "</title><text" + sco + " x='5%' y='" + eval(90 / numlines) + "%' xml:space='preserve'>" + elevenize(xgtaval.replace(/\<br\>/g, String.fromCharCode(10))) + "</text><text x='0%' y='97%'></text></svg>") + therestis;
therestis='';
} else {
document.getElementById(thehoster).innerHTML=maybeemoji("<svg name=\"" + gts + "\" data-public=\"" + dp + "\" data-contact='" + dct + "' data-owner='" + dow + "' data-emoji='" + youremoji + "' data-applyprivacy='" + applyprivacy + "' data-othercontact='" + windowothercontact + "' data-otherowner='" + windowotheruser + "' data-ip='" + document.getElementById('myip').innerHTML + "' data-dts='" + dts + "' onmousedown=\" event.stopPropagation(); event.preventDefault(); preadd=0; setTimeout(preaddcontents,2000); \" ontouchdown=\" event.stopPropagation(); event.preventDefault(); preadd=0; setTimeout(preaddcontents,2000); \" id='" + dts.replace(/\:/g,'!').replace(/\(/g,'-').replace(/\)/g,'|').replace(/\ /g,'_') + suffix + "' ontouchmove='preswipecheck(event);' ontouchend='treg(this,null);' oncontextmenu='treg(this,null);' xmlns='http://www.w3.org/2000/svg' width='" + eval(" + zero + " + eval(eval('' + screen.width) * 1.0)) + "' height='" + eval(48 * numlines) + "' viewport='0 0 100 100' style='border-top-left-radius:35px;border-bottom-right-radius:35px;border-top-right-radius:35px;" + bord + "background-color:rgba(" + bcol + ",0.3);fill:black;font-family:Verdana;font-size:" + seventeen + "px;'><title>" + tow + "</title><text" + sco + " x='5%' y='" + eval(90 / numlines) + "%' xml:space='preserve'>" + elevenize(xgtaval.replace(/\<br\>/g, String.fromCharCode(10))) + "</text><text x='0%' y='97%'></text></svg>") + therestis;
therestis='';
}
suffix+='_';
//stylebit=stylebit.replace('; ', "url(\"data:image/svg+xml;base64," + window.btoa("<svg xmlns='http://www.w3.org/2000/svg' width='" + eval(" + zero + " + eval('' + screen.width)) + "' height='" + eval(48 * numlines) + "' viewport='0 0 100 100' style='border-radius:15px;background-color:rgba(" + bcol + ",0.3);fill:black;font-family:Verdana;font-size:" + seventeen + "px;'><text x='5%' y='60%' xml:space='preserve'>" + elevenize(gtaval) + "</text></svg>") + "\") no-repeat " + xis + "px " + yis + "px ; ");
if (wasfound) {
gtaval=lastghuh + gtaval;
if ((gtaval + '~~').indexOf('<br>~~') == -1) { gtaval+='<br>'; }
numlines+=lastnumlines;
//alert(numlines + ' ... ' + gtaval);
}
lastghuh=gtaval;
lastnumlines=numlines;
if (windowuser != '' || windowcontact != '') {
ajaxit();
}
} else {
try {
if (doutf8) {
stylebit=stylebit.replace('; ', "url(\"data:image/svg+xml;utf8," + ((("<svg xmlns='http://www.w3.org/2000/svg' width='" + eval(" + zero + " + eval('' + screen.width)) + "' height='" + eval(48 * numlines) + "' viewport='0 0 100 100' style='border-radius:15px;background-color:rgba(" + bcol + ",0.3);fill:black;font-family:Verdana;font-size:" + seventeen + "px;'><text x='5%' y='60%' xml:space='preserve'>" + elevenize(linesofcontent[jnew]) + "</text></svg>") + "\") no-repeat " + xis + "px " + yis + "px ; ")));
} else {
stylebit=stylebit.replace('; ', "url(\"data:image/svg+xml;base64," + window.btoa((("<svg xmlns='http://www.w3.org/2000/svg' width='" + eval(" + zero + " + eval('' + screen.width)) + "' height='" + eval(48 * numlines) + "' viewport='0 0 100 100' style='border-radius:15px;background-color:rgba(" + bcol + ",0.3);fill:black;font-family:Verdana;font-size:" + seventeen + "px;'><text x='5%' y='60%' xml:space='preserve'>" + elevenize(linesofcontent[jnew]) + "</text></svg>") + "\") no-repeat " + xis + "px " + yis + "px ; ")));
}
//alert('Ok ' + window.btoa(linesofcontent[jnew]));
} catch (nogo) {
//alert('Bad');
stylebit=stylebit.replace('; ', "url(\"data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' width='" + eval(" + zero + " + eval('' + screen.width)) + "' height='" + eval(48 * numlines) + "' viewport='0 0 100 100' style='border-radius:15px;background-color:rgba(" + bcol + ",0.3);fill:black;font-family:Verdana;font-size:" + seventeen + "px;'><text x='5%' y='60%' xml:space='preserve'>" + elevenize(linesofcontent[jnew]) + "</text></svg>") + "\") no-repeat " + xis + "px " + yis + "px ; ")));
}
}
} else {
try {
if (doutf8) {
stylebit=stylebit.replace('; ', ",url(\"data:image/svg+xml;utf8," + ((("<svg xmlns='http://www.w3.org/2000/svg' width='" + eval(" + zero + " + eval('' + screen.width)) + "' height='" + eval(48 * numlines) + "' viewport='0 0 100 100' style='border-radius:15px;background-color:rgba(" + bcol + ",0.3);fill:black;font-family:Verdana;font-size:" + seventeen + "px;'><text x='5%' y='60%' xml:space='preserve'>" + elevenize(linesofcontent[jnew]) + "</text></svg>") + "\") no-repeat " + xis + "px " + yis + "px ; ")));
} else {
stylebit=stylebit.replace('; ', ",url(\"data:image/svg+xml;base64," + window.btoa((("<svg xmlns='http://www.w3.org/2000/svg' width='" + eval(" + zero + " + eval('' + screen.width)) + "' height='" + eval(48 * numlines) + "' viewport='0 0 100 100' style='border-radius:15px;background-color:rgba(" + bcol + ",0.3);fill:black;font-family:Verdana;font-size:" + seventeen + "px;'><text x='5%' y='60%' xml:space='preserve'>" + elevenize(linesofcontent[jnew]) + "</text></svg>") + "\") no-repeat " + xis + "px " + yis + "px ; ")));
}
//alert('ok ' + window.btoa(linesofcontent[jnew]));
} catch (nogo) {
//alert('bad');
stylebit=stylebit.replace('; ', ",url(\"data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' width='" + eval(" + zero + " + eval('' + screen.width)) + "' height='" + eval(48 * numlines) + "' viewport='0 0 100 100' style='border-radius:15px;background-color:rgba(" + bcol + ",0.3);fill:black;font-family:Verdana;font-size:" + seventeen + "px;'><text x='5%' y='60%' xml:space='preserve'>" + elevenize(linesofcontent[jnew]) + "</text></svg>") + "\") no-repeat " + xis + "px " + yis + "px ; ")));
}
}
yis+=50;
}
document.getElementById('dstyle').innerHTML+=stylebit;
}
//doutf8=false;
//alert(564);
return false;
}
function bcolis(what) {
var wsa=what.split(',');
if (eval('' + wsa.length) == 3) {
bcol=what;
document.getElementById('myip').title=what;
bord='border-top:1px solid rgb(' + eval(wsa[eval(-1 + wsa.length)] % 256) + ',' + eval(wsa[eval(-1 + wsa.length)] % 256) + ',' + eval(wsa[eval(-1 + wsa.length)] % 256) + ');';
bord+='border-bottom:1px solid rgb(' + eval(wsa[0] % 256) + ',' + eval(wsa[0] % 256) + ',' + eval(wsa[0] % 256) + ');';
bord+='border-left:2px solid rgb(' + eval(wsa[1] % 256) + ',' + eval(wsa[1] % 256) + ',' + eval(wsa[1] % 256) + ');';
bord+='border-right:2px solid rgb(' + eval(wsa[2] % 256) + ',' + eval(wsa[2] % 256) + ',' + eval(wsa[2] % 256) + ');';
}
}
function fixwho() {
if (document.getElementById('iwindowuser').value != '') {
if (windowotheruser.indexOf(document.getElementById('iwindowuser').value) != -1) {
windowotheruser=windowotheruser.replace(document.getElementById('iwindowuser').value, windowuser);
}
windowuser=document.getElementById('iwindowuser').value;
document.getElementById('iwindowuser').value='';
}
if (document.getElementById('iwindowcontact').value != '') {
if (windowothercontact.indexOf(document.getElementById('iwindowcontact').value) != -1) {
windowothercontact=windowothercontact.replace(document.getElementById('iwindowcontact').value, windowcontact);
}
windowcontact=document.getElementById('iwindowcontact').value;
document.getElementById('iwindowcontact').value='';
}
if (document.getElementById('iwindowotheruser').value != '') {
windowotheruser=document.getElementById('iwindowotheruser').value;
document.getElementById('iwindowotheruser').value='';
}
if (document.getElementById('iwindowothercontact').value != '') {
windowothercontact=document.getElementById('iwindowothercontact').value;
document.getElementById('iwindowothercontact').value='';
}
if (!fixwhodone) {
setInterval(fixwho, 2000);
}
fixwhodone=true;
}
function controlisok() {
isok=true;
}
function preswipecheck(ev) {
ninety=50;
atendc=true;
swipecheck(ev);
}
function swipecheck(ev) {
if (!window.opener && isok) {
if (ev.touches) {
if (ev.touches[0].pageX) {
pos3 = ev.touches[0].pageX;
pos4 = ev.touches[0].pageY;
} else {
pos3 = ev.touches[0].clientX;
pos4 = ev.touches[0].clientY;
}
console.log('pos3 = ' + pos3 + ',pos4 = ' + pos4);
} else if (ev.clientX || ev.clientY) {
pos3 = ev.clientX;
pos4 = ev.clientY;
console.log('pos3 = ' + pos3 + ' ,pos4 = ' + pos4);
} else {
pos3 = ev.pageX;
pos4 = ev.pageY;
console.log('pos3 = ' + pos3 + ', pos4 = ' + pos4);
}
if (pos3 >= 0 && pos4 >= 0) {
if (firstx == null) {
firstx=pos3;
firsty=pos4;
slowitdown=true;
isok=false;
setTimeout(controlisok, 400);
} else if (pos3 != firstx || pos4 != firsty) {
nextx=pos3;
nexty=pos4;
// Swipe down left from top right
if (nextx < firstx && nexty > firsty && pos3 > eval(document.documentElement.clientWidth / 2) && pos4 < eval(document.documentElement.clientHeight / 2)) {
if (firstone) {
if (eval(firstx - nextx) > 5 && eval(nexty - firsty) > 5 && eval(window.innerWidth - firstx) < 90 && eval(firsty) < ninety) {
firstone=false;
//alert('firstx=' + firstx + ' and firsty=' + firsty + ' and left irrelevant diff=' + eval(firstx - nextx) + ' and top irrelevant diff=' + eval(nexty - firsty) + ' and diff left=' + eval(window.innerWidth - firstx) + ' and diff top=' + eval(firsty) + ' and window height diff=' + eval(getwoh() - getwih()) + ' and window.outerHeight,window.innerHeight,document.documentElement.clientHeight=' + getwoh() + ',' + getwih() + ',' + document.documentElement.clientHeight + ' and window.opener=' + window.opener);
shapetodoemail(); // alert('firstx=' + firstx + ' and firsty=' + firsty + ' and left irrelevant diff=' + eval(firstx - nextx) + ' and top irrelevant diff=' + eval(nexty - firsty) + ' and diff left=' + eval(window.innerWidth - firstx) + ' and diff top=' + eval(firsty) + ' and window height diff=' + eval(getwoh() - getwih()) + ' and window.outerHeight,window.innerHeight,document.documentElement.clientHeight=' + getwoh() + ',' + getwih() + ',' + document.documentElement.clientHeight + ' and window.opener=' + window.opener);
if (atendc || 1 == 1) { document.getElementById('dcont').click(); }
setTimeout(function(){
firstx=null;
firsty=null;
nextx=null;
nexty=null;
}, 15000);
//} else {
//alert('Firstx=' + firstx + ' and firsty=' + firsty + ' and left irrelevant diff=' + eval(firstx - nextx) + ' and top irrelevant diff=' + eval(nexty - firsty) + ' and diff left=' + eval(window.innerWidth - firstx) + ' and diff top=' + eval(firsty) + ' and window height diff=' + eval(getwoh() - getwih()) + ' and window.outerHeight,window.innerHeight,document.documentElement.clientHeight=' + getwoh() + ',' + getwih() + ',' + document.documentElement.clientHeight + ' and window.opener=' + window.opener);
}
}
// ... else swipe up from bottom
} else if (nexty < firsty && firsty > eval(document.documentElement.clientHeight / 2) && pos4 > eval(document.documentElement.clientHeight / 2)) {
if (firstone) {
if (eval(firstx - nextx) < 5 && eval(nexty - firsty) < 5 && eval(firsty) > eval(document.documentElement.clientHeight / 2)) {
firstone=false;
//alert('firstx=' + firstx + ' and firsty=' + firsty + ' and left irrelevant diff=' + eval(firstx - nextx) + ' and top irrelevant diff=' + eval(nexty - firsty) + ' and diff left=' + eval(window.innerWidth - firstx) + ' and diff top=' + eval(firsty) + ' and window height diff=' + eval(getwoh() - getwih()) + ' and window.outerHeight,window.innerHeight,document.documentElement.clientHeight=' + getwoh() + ',' + getwih() + ',' + document.documentElement.clientHeight + ' and window.opener=' + window.opener);
shapetodosms(); // alert('firstx=' + firstx + ' and firsty=' + firsty + ' and left irrelevant diff=' + eval(firstx - nextx) + ' and top irrelevant diff=' + eval(nexty - firsty) + ' and diff left=' + eval(window.innerWidth - firstx) + ' and diff top=' + eval(firsty) + ' and window height diff=' + eval(getwoh() - getwih()) + ' and window.outerHeight,window.innerHeight,document.documentElement.clientHeight=' + getwoh() + ',' + getwih() + ',' + document.documentElement.clientHeight + ' and window.opener=' + window.opener);
setTimeout(function(){
firstx=null;
firsty=null;
nextx=null;
nexty=null;
}, 15000);
if (atendc || 1 == 1) { document.getElementById('dcont').click(); }
}
}
} else if (pos3 <= eval(document.documentElement.clientWidth / 2) || pos4 >= eval(document.documentElement.clientHeight / 2)) {
firstx=null;
firsty=null;
nextx=null;
nexty=null;
}
}
}
}
atendc=false;
ninety=90;
}
function gettodoemail() {
return oktoemail;
}
function settodoemail(towhat) {
oktoemail=towhat;
if (!towhat) {
firstx=null;
firsty=null;
nextx=null;
nexty=null;
}
}
function shapetodoemail() {
oktoemail=true;
setTimeout(trytodoemail, 5000);
}
function trytodoemail() {
if (oktoemail) {
doemail();
}
setTimeout(function(){ oktoemail=false; }, 8000);
}
function gettodosms() {
return oktosms;
}
function settodosms(towhat) {
oktosms=towhat;
if (!towhat) {
firstx=null;
firsty=null;
nextx=null;
nexty=null;
}
}
function shapetodosms() {
oktosms=true;
setTimeout(trytodosms, 5000);
}
function trytodosms() {
if (oktosms) {
dosms();
}
setTimeout(function(){ oktosms=false; }, 8000);
}
function shapetodosms() {
oktosms=true;
setTimeout(trytodosms, 5000);
}
function gwow() {
return wow;
}
function gwiw() {
return wiw;
}
function gwoh() {
return woh;
}
function gwih() {
return wih;
}
function getwow() {
if (window.opener) {
return window.opener.gwow();
} else {
return wow;
}
}
function getwoh() {
if (window.opener) {
return window.opener.gwoh();
} else {
return woh;
}
}
function getwiw() {
if (window.opener) {
return window.opener.gwiw();
} else {
return wiw;
}
}
function getwih() {
if (window.opener) {
return window.opener.gwih();
} else {
return wih;
}
}
function atstart() {
document.body.style.zoom = 1.0
var scale = 'scale(1)';
document.body.style.webkitTransform = scale; // Chrome, Opera, Safari
document.body.style.msTransform = scale; // IE 9
document.body.style.transform = scale; // General
wow=eval(window.outerWidth);
woh=eval(window.outerHeight);
wiw=eval(window.innerWidth);
wih=eval(window.innerHeight);
//alert('' + wih + ' vs ' + woh);
if (window.opener) {
firstone=false;
if (document.URL.indexOf('oktoemail=') != -1) {
oktoemail=true;
window.opener.settodoemail(false);
} else if (document.URL.indexOf('oktosms=') != -1) {
oktosms=true;
window.opener.settodosms(false);
} else {
setTimeout(function(){
oktoemail=window.opener.gettodoemail();
oktosms=window.opener.gettodosms();
window.opener.settodoemail(false);
window.opener.settodosms(false);
}, 2000);
}
}
}
if (!window.screenLeft) {
window.screenLeft = window.screenX;
window.screenTop = window.screenY;
}
</script>
</head>
<body onload="atstart(); startsi(); setTimeout(dotdotdotten, 1100);" data-ontouchmove="swipecheck(event);" onmousemove="swipecheck(event);">
<!--table style=width:100%;height:100%;><tr><td id=tdleft-->
<div ontouchmove="preswipecheck(event);" data-onmousemove="swipecheck(event);" id=dcont onmousedown=" event.stopPropagation(); event.preventDefault(); return addcontents(''); " ontouchdown=" event.stopPropagation(); event.preventDefault(); return addcontents(''); ">
<select title='Select Palette - RJM Programming - May, 2025 ... ... Click to fill with your speech bubble feeling prose or poetry (eg. haiku).' id=mysel multiple></select>
</div>
<!--/td><td id=tdright-->
<hr id=hrpublicreport style=display:none;></hr>
<hr id=hrpublictworeport style=display:none;></hr>
<details style=display:none; id=dtlpublicreport open><summary id=sumpublicreport></summary>
<div id=publicreport></div>
</details>
<form id=formpost method=POST target=postif action='./select_palette.php' style=display:none;>
<textarea style=display:none; name=indata id=indata value=''></textarea><input type=hidden name=me id=me value=''></input><input type=submit style=display:none; id=subpost></input>
</form>
<iframe name=postif style=display:none; id=ifpublicreport src='./select_palette.php'></iframe>
<!--/td></tr></table-->
<div id=dstyle></div>
<div id=myip title='0,0,255' style=display:none;></div>
<input type=hidden id=iwindowuser value=''></input>
<input type=hidden id=iwindowcontact value=''></input>
<input type=hidden id=iwindowotheruser value=''></input>
<input type=hidden id=iwindowothercontact value=''></input>
<input type=hidden id=totop value=''></input>
<div id=doverlay></div>
<a target=_top style=display:none; id=mymailto href='mailto:?subject=My%20Speech%20Buggle%20thoughts%20...'>Email</a>
</body>
</html>