<html>
<head>
<title>Dominoes Block Game - RJM Programming - August, 2026</title>
<meta name='viewport' content='width=device-width, initial-scale=1, minimum-scale=0.1, maximum-scale=8, user-scalable=yes' >
<style>
#seven1 img { padding: 3 3 3 3; }
#seven2 img { padding: 3 3 3 3; }
#thstock img { padding: 3 3 3 3; }
button { padding 8 8 8 8; border-radius: 20px; }
img { filter: drop-shadow( 3px 3px 2px rgba(10, 10, 10, .7)); }
button { filter: drop-shadow( 3px 3px 2px rgba(0, 0, 255, .7)); }
#name1 { z-index: 67; padding: 8 8 8 8; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4); background-color: rgb(240,240,240); color: purple; border-radius: 8px; }
#name2 { z-index: 67; padding: 8 8 8 8; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4); background-color: rgb(240,240,240); color: green; border-radius: 8px; }
td,th { border-radius: 6px; }
#seven1 { text-align: right; }
#thstock { text-align: center; }
#reveal1,#reveal2 { margin-top: 3px; gap: 4px; z-index: 76; }
/*
#reveal1:active { background-color: orange; }
#reveal2:active { background-color: orange; }
*/
.right {
text-align: right;
margin-right: 1em;
}
.left {
text-align: left;
margin-left: 1em;
}
.image-wrapper {
position: relative; /* Acts as the anchor point */
display: inline-block;
}
.image-wrapper img {
display: block;
width: 80px; /* Set your desired image width */
height: auto;
opacity:0.2; /* visibility: hidden; */
filter: url('#edge-detection');
}
.disnon span {
display: none;
}
.domr {
position: absolute;
top: -6px; /* Distance from the top edge */
right: 0px; /* Distance from the right edge */
font-size: 45px; /* Adjust emoji size */
pointer-events: none;
/* background-position: center center; */
}
.doml {
position: absolute;
top: -6px; /* Distance from the top edge */
left: 0px; /* Distance from the right edge */
font-size: 45px; /* Adjust emoji size */
border-right: 1px solid black;
pointer-events: none;
/* background-position: 20px 20px; */
}
.dominoes0:after {
content: '\002739';
/*
background-image:url('./camel.png');
background-size:cover;
background-repeat:no-repeat;
color:transparent;
*/
}
.dominoes1:after {
content: '\002737';
}
.dominoes2:after {
content: '\002729';
}
.dominoes3:after {
content: '\002727';
}
.dominoes4:after {
content: '\002719';
}
.dominoes5:after {
content: '\002724';
}
.dominoes6:after {
content: '\002713';
}
</style>
<script type=text/javascript src='/beep.js?iam=song_lyric_faux_pas.html&rand=76576533' data-defer=defer></script>
<script type=text/javascript>
var coverword='cover';
var svgis='<svg xmlns="http://w3.org" style="position: absolute; width: 0; height: 0;" aria-hidden="true"><filter id="edge-detection"><feConvolveMatrix order="3 3" kernelMatrix="-1 -2 -1 0 0 0 1 2 1" preserveAlpha="true" /></filter></svg>';
var shapeis=["\\002739","\\002737","\\002729","\\002727","\\002719","\\002724","\\002713"];
var foodis=["\\01f371","\\01f358","\\01f359","\\01f35a","\\01f35b","\\01f35c","\\01f35d","\\01f360","\\01f362","\\01f363","\\01f364","\\01f365","\\01f361","\\01F366","\\01F367","\\01F368","\\01F369","\\01F36A","\\01F382","\\01F370"];
var animalis=['128028','128018','128030','128029','128012','128040','129408','128060','128027','129413','128044','129445'];
var transportis=["\\002708","\\01F680","\\01F681","\\01F686","\\01F687","\\01F68C","\\01F68F","\\01F5FA"];
var activityis=["\\0026BD","\\01F3C0","\\01F3C2","\\0026BE","\\01F3C1","\\01F3D0","\\01F3C9","\\01F3B1"];
var numberis=["\\000030\\00FE0F\\0020E3","\\000031\\00FE0F\\0020E3","\\000032\\00FE0F\\0020E3","\\000033\\00FE0F\\0020E3","\\000034\\00FE0F\\0020E3","\\000035\\00FE0F\\0020E3","\\000036\\00FE0F\\0020E3","\\000037\\00FE0F\\0020E3","\\000038\\00FE0F\\0020E3","\\000039\\00FE0F\\0020E3"];
var chessis=["\\002654","\\002655","\\002656","\\002657","\\002658","\\002659","\\00265A","\\00265B","\\00265C","\\00265D","\\00265E","\\00265F"];
var astrologyis=["\\002648","\\002649","\\00264A","\\00264B","\\00264C","\\00264D","\\00264E","\\00264F","\\002650","\\002651","\\002652","\\002653"];
var moonis=["\\01F311","\\01F312","\\01F313","\\01F314","\\01F315","\\01F316","\\01F317","\\01F318","\\01F319","\\01F31A","\\01F31B","\\01F31C","\\01F31D","\\00263D","\\00263E"];
var mathematicsis=["\\002200","\\002201","\\002202","\\002203","\\002204","\\002205","\\002206","\\002207","\\002208","\\002209","\\00220A","\\00220B","\\00220C","\\00220D",
"\\00220E","\\00220F","\\002210","\\002211","\\002212","\\002213","\\002214","\\002215","\\002216","\\002217","\\002218","\\002219","\\00221A","\\00221B","\\00221C","\\00221D","\\00221E","\\00221F","\\002220","\\002221","\\002222",
"\\002223","\\002224","\\002225","\\002226","\\002227","\\002228","\\002229","\\00222A","\\00222B","\\00222C","\\00222D","\\00222E","\\00222F","\\002230",
"\\002231","\\002232","\\002233","\\002234","\\002235","\\002236","\\002237","\\002238","\\002239","\\00223A","\\00223B","\\00223C","\\00223D","\\00223E","\\00223F","\\002240","\\002241",
"\\002242","\\002243","\\002244","\\002245","\\002246","\\002247","\\002248","\\002249","\\00224A","\\00224B","\\00224C","\\00224D","\\00224E","\\00224F","\\002250",
"\\002251","\\002252","\\002253","\\002254","\\002255"];
var planetis=['//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Mercury_in_true_color.jpg/960px-Mercury_in_true_color.jpg',
'//upload.wikimedia.org/wikipedia/commons/thumb/0/08/Venus_from_Mariner_10.jpg/960px-Venus_from_Mariner_10.jpg',
'//upload.wikimedia.org/wikipedia/commons/thumb/2/2d/Meteosat-12-fci-march-equinox-2025-noon.jpg/960px-Meteosat-12-fci-march-equinox-2025-noon.jpg',
'//upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Mars_-_August_30_2021_-_Flickr_-_Kevin_M._Gill.png/960px-Mars_-_August_30_2021_-_Flickr_-_Kevin_M._Gill.png',
'//upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Jupiter_OPAL_2024.png/960px-Jupiter_OPAL_2024.png',
'//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Saturn_global_view_from_Cassini%2C_rings_open_Better_Colour.png/960px-Saturn_global_view_from_Cassini%2C_rings_open_Better_Colour.png',
'//upload.wikimedia.org/wikipedia/commons/6/69/Uranus_Voyager2_color_calibrated.png',
'//upload.wikimedia.org/wikipedia/commons/thumb/b/b9/Neptune_Voyager2_color_calibrated.png/960px-Neptune_Voyager2_color_calibrated.png',
'//upload.wikimedia.org/wikipedia/commons/thumb/c/ca/Pluto_in_True_Color_-_High-Res.png/960px-Pluto_in_True_Color_-_High-Res.png'];
var cardis=["/images/02s.gif",
"/images/03s.gif",
"/images/04s.gif",
"/images/05s.gif",
"/images/06s.gif",
"/images/07s.gif",
"/images/08s.gif",
"/images/09s.gif",
"/images/10s.gif",
"/images/11s.gif",
"/images/12s.gif",
"/images/13s.gif",
"/images/01h.gif",
"/images/02h.gif",
"/images/03h.gif",
"/images/04h.gif",
"/images/05h.gif",
"/images/06h.gif",
"/images/07h.gif",
"/images/08h.gif",
"/images/09h.gif",
"/images/10h.gif",
"/images/11h.gif",
"/images/12h.gif",
"/images/13h.gif",
"/images/01d.gif",
"/images/02d.gif",
"/images/03d.gif",
"/images/04d.gif",
"/images/05d.gif",
"/images/06d.gif",
"/images/07d.gif",
"/images/08d.gif",
"/images/09d.gif",
"/images/10d.gif",
"/images/11d.gif",
"/images/12d.gif",
"/images/13d.gif",
"/images/01c.gif",
"/images/02c.gif",
"/images/03c.gif",
"/images/04c.gif",
"/images/05c.gif",
"/images/06c.gif",
"/images/07c.gif",
"/images/08c.gif",
"/images/09c.gif",
"/images/10c.gif",
"/images/11c.gif",
"/images/12c.gif",
"/images/13c.gif"];
var iso=[], cnames=[], flagis=[
"AF:Afghanistan",
"AX:Aland Islands",
"AL:Albania",
"DZ:Algeria",
"AS:American Samoa",
"AD:Andorra",
"AO:Angola",
"AI:Anguilla",
"AQ:Antarctica",
"AG:Antigua and Barbuda",
"AR:Argentina",
"AM:Armenia",
"AW:Aruba",
"AU:Australia",
"AT:Austria",
"AZ:Azerbaijan",
"BS:Bahamas the",
"BH:Bahrain",
"BD:Bangladesh",
"BB:Barbados",
"BY:Belarus",
"BE:Belgium",
"BZ:Belize",
"BJ:Benin",
"BM:Bermuda",
"BT:Bhutan",
"BO:Bolivia",
"BA:Bosnia and Herzegovina",
"BW:Botswana",
"BV:Bouvet Island (Bouvetoya)",
"BR:Brazil",
"IO:British Indian Ocean Territory (Chagos Archipelago)",
"VG:British Virgin Islands",
"BN:Brunei Darussalam",
"BG:Bulgaria",
"BF:Burkina Faso",
"BI:Burundi",
"KH:Cambodia",
"CM:Cameroon",
"CA:Canada",
"CV:Cape Verde",
"KY:Cayman Islands",
"CF:Central African Republic",
"TD:Chad",
"CL:Chile",
"CN:China",
"CX:Christmas Island",
"CC:Cocos (Keeling) Islands",
"CO:Colombia",
"KM:Comoros the",
"CD:Democratic Republic of the Congo",
"CG:Congo (the)",
"CK:Cook Islands",
"CR:Costa Rica",
"CI:Cote d'Ivoire",
"HR:Croatia",
"CU:Cuba",
"CY:Cyprus",
"CZ:Czech Republic",
"DK:Denmark",
"DJ:Djibouti",
"DM:Dominica",
"DO:Dominican Republic",
"EC:Ecuador",
"EG:Egypt",
"SV:El Salvador",
"GQ:Equatorial Guinea",
"ER:Eritrea",
"EE:Estonia",
"ET:Ethiopia",
"FO:Faroe Islands",
"FK:Falkland Islands (Malvinas)",
"FJ:Fiji the Fiji Islands",
"FI:Finland",
"FR:France, French Republic",
"GF:French Guiana",
"PF:French Polynesia",
"TF:French Southern Territories",
"GA:Gabon",
"GM:Gambia the",
"GE:Georgia",
"DE:Germany",
"GH:Ghana",
"GI:Gibraltar",
"GR:Greece",
"GL:Greenland",
"GD:Grenada",
"GP:Guadeloupe",
"GU:Guam",
"GT:Guatemala",
"GG:Guernsey",
"GN:Guinea",
"GW:Guinea-Bissau",
"GY:Guyana",
"HT:Haiti",
"HM:Heard Island and McDonald Islands",
"VA:Vatican City (Holy See)",
"HN:Honduras",
"HK:Hong Kong",
"HU:Hungary",
"IS:Iceland",
"IN:India",
"ID:Indonesia",
"IR:Iran",
"IQ:Iraq",
"IE:Ireland",
"IM:Isle of Man",
"IL:Israel",
"IT:Italy",
"JM:Jamaica",
"JP:Japan",
"JE:Jersey",
"JO:Jordan",
"KZ:Kazakhstan",
"KE:Kenya",
"KI:Kiribati",
"XK:Kosovo",
"KP:North Korea",
"KR:South Korea",
"KW:Kuwait",
"KG:Kyrgyzstan",
"LA:Laos",
"LV:Latvia",
"LB:Lebanon",
"LS:Lesotho",
"LR:Liberia",
"LY:Libyan Arab Jamahiriya",
"LI:Liechtenstein",
"LT:Lithuania",
"LU:Luxembourg",
"MO:Macao",
"MK:Macedonia",
"MG:Madagascar",
"MW:Malawi",
"MY:Malaysia",
"MV:Maldives",
"ML:Mali",
"MT:Malta",
"MH:Marshall Islands",
"MQ:Martinique",
"MR:Mauritania",
"MU:Mauritius",
"YT:Mayotte",
"MX:Mexico",
"FM:Micronesia",
"MD:Moldova",
"MC:Monaco",
"MN:Mongolia",
"ME:Montenegro",
"MS:Montserrat",
"MA:Morocco",
"MZ:Mozambique",
"MM:Myanmar (Burma)",
"NA:Namibia",
"NR:Nauru",
"NP:Nepal",
"AN:Netherlands Antilles",
"NL:Netherlands the",
"NC:New Caledonia",
"NZ:New Zealand",
"NI:Nicaragua",
"NE:Niger",
"NG:Nigeria",
"NU:Niue",
"NF:Norfolk Island",
"MP:Northern Mariana Islands",
"NO:Norway",
"OM:Oman",
"PK:Pakistan",
"PW:Palau",
"PS:Palestine",
"PA:Panama",
"PG:Papua New Guinea",
"PY:Paraguay",
"PE:Peru",
"PH:Philippines",
"PN:Pitcairn Islands",
"PL:Poland",
"PT:Portugal, Portuguese Republic",
"PR:Puerto Rico",
"QA:Qatar",
"RE:Reunion",
"RO:Romania",
"RU:Russian Federation",
"RW:Rwanda",
"BL:Saint Barthelemy",
"SH:Saint Helena",
"KN:Saint Kitts and Nevis",
"LC:Saint Lucia",
"MF:Saint Martin",
"PM:Saint Pierre and Miquelon",
"VC:Saint Vincent and the Grenadines",
"WS:Samoa",
"SM:San Marino",
"ST:Sao Tome and Principe",
"SA:Saudi Arabia",
"SN:Senegal",
"RS:Serbia",
"SC:Seychelles",
"SL:Sierra Leone",
"SG:Singapore",
"SK:Slovakia (Slovak Republic)",
"SI:Slovenia",
"SB:Solomon Islands",
"SO:Somalia, Somali Republic",
"ZA:South Africa",
"GS:South Georgia and the South Sandwich Islands",
"SS:South Sudan",
"ES:Spain",
"LK:Sri Lanka",
"SD:Sudan",
"SR:Suriname",
"SJ:Svalbard & Jan Mayen Islands",
"SZ:Swaziland",
"SE:Sweden",
"CH:Switzerland, Swiss Confederation",
"SY:Syrian Arab Republic",
"TW:Taiwan",
"TJ:Tajikistan",
"TZ:Tanzania",
"TH:Thailand",
"TL:Timor-Leste",
"TG:Togo",
"TK:Tokelau",
"TO:Tonga",
"TT:Trinidad and Tobago",
"TN:Tunisia",
"TR:Turkey",
"TM:Turkmenistan",
"TC:Turks and Caicos Islands",
"TV:Tuvalu",
"UG:Uganda",
"UA:Ukraine",
"AE:United Arab Emirates",
"GB:United Kingdom",
"US:United States of America",
"UM:United States Minor Outlying Islands",
"VI:United States Virgin Islands",
"UY:Uruguay, Eastern Republic of",
"UZ:Uzbekistan",
"VU:Vanuatu",
"VE:Venezuela",
"VN:Vietnam",
"WF:Wallis and Futuna",
"EH:Western Sahara",
"YE:Yemen",
"ZM:Zambia",
"ZW:Zimbabwe"
];
var tocontinueone=' to continue', tocontinuetwo=' to continue';
var rev1='', rev2='', trpl='';
var thetop=0;
var sbutih1='', sbutih2='';
var symbolize='%3Cimg%20onclick%3D%22gostock(this)%3B%22%20style%3D%22width%3A80px%3Bfilter%3Abrightness(0)%3B%22%20class%3D%22stock%22%20id%3D%22';
var symbolis='%7E';
var aconto=null;
var selx=0, sely=0;
var firstplayeris=0, isplayer1go=false, isplayer2go=false;
var dri=['127462','127463','127464','127465','127466','127467','127468','127469','127470','127471','127472','127473','127474','127475','127476','127477','127478','127479','127480','127481','127482','127483','127484','127485','127486','127487'];
var lri='ABCDEFGHIJKLMNOPQRSTUVWXYZ';
var thetilearr=[], player1arr=[], player2arr=[], stockarr=[];
var sofara='', ij=0, was1ih='', was2ih='', hastohave=[];
var pip1cnt=0, pip2cnt=0, winner='', winnerby=0, thescore1=0, thescore2=0;
var bellzero=' ', winnerblurb='', everyfour=-1;
var spanoonedone=false, spanoonedtwo=false;
var yourplaceoh='', yourplacetz='';
var cgostock='gostock';
var oeq='other=';
var iam='', iamcontact='', iamleft=false, youare='', youarecontact='', youareleft=false, allbuthash='', brhuh='';
var speechtotextwo=null, newspano=null, newspanoid='', nestero=null;
var lwds='', alldoneanddusted=false;
var prevlhis='', lhis='', documentURL=document.URL;
var animgprefix='', animgsuffix='', anothertype='', newtypes=[], thisemhe='', thisem='';
var othertype=(location.search.split('type=')[1] ? decodeURIComponent(location.search.split('type=')[1].split('&')[0]).replace(/\ /g,'_').replace(/\+/g,'_') : '');
var anothertype=othertype.toLowerCase() + 'is', numarr=0;
var templateprefix='<span class="image-wrapper">', templatesuffix='<span style="visibility:visible;" class="doml dominoes5"></span><span style="visibility:visible;" class="domr dominoes6"></span></span>';
if (othertype.toLowerCase().replace('dominoes', '') != '') {
if (othertype.toLowerCase() == 'planet') { coverword='contain'; }
//alert(typeof anothertype);
if (typeof anothertype == "string" || typeof anothertype == "array" || document.URL.indexOf('randtz=') != -1) {
if (document.URL.indexOf('randtz=') != -1) {
setTimeout(alat, 5000);
} else {
setTimeout(alat, 3000);
}
animgprefix=templateprefix;
animgsuffix=templatesuffix;
}
}
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i) && eval(String.fromCharCode(32).trim() + navigator.maxTouchPoints) > 0) {
everyfour=4;
}
if ((6 == 6 || (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) && eval(String.fromCharCode(32).trim() + navigator.maxTouchPoints) <= 0)) && document.URL.indexOf('https:') == 0 && (5 == 5 || document.URL.indexOf('?') == -1) && document.URL.indexOf('rjmprogramming.com.au/Games/Dominoes') != -1) {
if (('' + window.navigator.userAgent).toLowerCase().replace('crios','chrome').indexOf('chrom') != -1) {
if (window.parent == window.self) {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) || eval(String.fromCharCode(32).trim() + navigator.maxTouchPoints) > 0) {
setTimeout(function(){
document.getElementById('myh1').innerHTML+=" <a onclick='if (!alldoneanddusted) { abitlater(this); }' style='text-decoration:none;cursor:pointer;border:3px dotted yellow;' href='#preifp' title='Speech to Text eg. 25 will click domino with 2 pips then 5 pips. Orange microphone icon up the top of web browser indicates it is primed to hear you speak. Is opt in via initial tap here for Google Chrome mobile users.'>🎤</a>";
}, 2000);
} else {
alldoneanddusted=true;
setTimeout(function(){
document.getElementById('preifp').style.display='block';
document.getElementById('ifblank').style.display='block';
speechtotextwo=window.open('https://www.rjmprogramming.com.au/PHP/speech_supervisor.php?mode=4&raxnd=' + Math.floor(Math.random() * 1989675), 'ifblank'); //, 'top=0,left=' + eval(-600 + screen.width) + ',width=600,height=' + eval(-100 + screen.height));
document.getElementById('myh1').innerHTML+=" <a style=text-decoration:none;cursor:pointer; href='#preifp' title='Speech to Text eg. 25 will click domino with 2 pips then 5 pips. Orange microphone icon up the top of web browser indicates it is primed to hear you speak.'>🎤</a>";
setTimeout(function(){
document.getElementById('myh1').scrollIntoView(); //window.scrollTo(0,0);
//window.top.scrollTo(0,0);
}, 2000);
}, 3000);
}
}
setInterval(scheckwo, 4000);
}
}
function orflags() { //(thiscc, idx) {
var ccsuff='', ccchar=' ', cde='', thiscc='', iccsuff=0;
for (var idx=0; idx<flagis.length; idx++) {
thiscc=flagis[idx].split(':')[0];
iso.push(thiscc);
cnames.push(flagis[idx].split(':')[1]);
for (iccsuff=0; iccsuff<thiscc.length; iccsuff++) {
ccchar=thiscc.substring(iccsuff, eval(1 + eval('' + iccsuff))).toUpperCase();
ccsuff+='' + dri[eval('' + lri.indexOf(ccchar))]; //'' + dri[eval('' + lri.indexOf(ccchar))] + ';';
cde='.';
if (iccsuff == 0) { ccsuff+='.'; }
}
flagis[idx]=ccsuff;
ccsuff='';
ccchar=' ';
cde='';
}
}
function alat() {
var ccon='', jcc=0;
if (document.URL.indexOf('&other=') != -1) {
document.getElementById('gtype').innerHTML=othertype.replace('_',' ').replace('_',' ').replace('_',' ').replace('_',' ').replace('_',' ');
setTimeout(function(){
document.getElementById('gtype').innerHTML=othertype.replace('_',' ').replace('_',' ').replace('_',' ').replace('_',' ').replace('_',' ');
}, 8000);
} else {
document.getElementById('gtype').innerHTML=othertype.replace('_',' ').replace('_',' ').replace('_',' ').replace('_',' ').replace('_',' ');
}
//alert(document.getElementById('dstyle').innerHTML);
if (anothertype != 'shapeis' && document.getElementById('dstyle').innerHTML.indexOf('.dominoes0') == -1 && (typeof anothertype == "string" || typeof anothertype == "array")) {
eval(' numarr=' + anothertype + '.length');
while (eval('' + newtypes.length) < 7) {
thisemhe=Math.floor(Math.random() * numarr);
while (newtypes.indexOf(thisemhe) != -1) {
thisemhe=Math.floor(Math.random() * numarr);
}
eval(' thisem=' + anothertype + '[' + thisemhe + ']');
if (thisem.indexOf('') == 0) {
thisem=thisem.replace(/\&\#x/g, String.fromCharCode(92) + '00').replace(/\;/g,'');
} else if (thisem.indexOf('') == 0) {
thisem=thisem.replace(/\&\#/g, '').replace(/\;/g,'');
}
if ((thisem.toLowerCase().replace('.tiff','.tif') + '~').replace(/\.png\~$/g,'').replace(/\.tif\~$/g,'').replace(/\.gif\~$/g,'').replace(/\.jpg\~$/g,'').replace(/\.jpeg\~$/g,'').replace(/\.bmp\~$/g,'').replace(/\.heic\~$/g,'') != (thisem.toLowerCase().replace('.tiff','.tif') + '~')) {
document.getElementById('dstyle').innerHTML+='<sty' + 'le> .dominoes' + newtypes.length + ':after { background-image:url(' + thisem + '); background-size:' + coverword + '; background-repeat:no-repeat; color:transparent; } </sty' + 'le>';
newtypes.push(thisemhe);
} else if (thisem.indexOf(String.fromCharCode(92)) != -1) {
//alert(thisem);
document.getElementById('dstyle').innerHTML+='<sty' + 'le> .dominoes' + newtypes.length + ":after { content: '" + thisem + "'; } </sty" + 'le>';
newtypes.push(thisemhe);
} else if (thisem.indexOf('x') != -1) {
//alert('2:' + thisem);
document.getElementById('dstyle').innerHTML+='<sty' + 'le> .dominoes' + newtypes.length + ":after { content: '\\" + ('000000' + ('' + thisem.replace(String.fromCharCode(92),"").replace("0x","").toString(16).padStart(2, '0'))).slice(-6).replace(/\ /g,'0') + "'; } </sty" + 'le>';
newtypes.push(thisemhe);
} else if (thisem.toLowerCase().indexOf('a') != -1 || thisem.toLowerCase().indexOf('b') != -1 || thisem.toLowerCase().indexOf('c') != -1 || thisem.toLowerCase().indexOf('d') != -1 || thisem.toLowerCase().indexOf('e') != -1 || thisem.toLowerCase().indexOf('f') != -1) {
//alert('3:' + thisem);
document.getElementById('dstyle').innerHTML+='<sty' + 'le> .dominoes' + newtypes.length + ":after { content: '\\" + ('000000' + ('' + thisem)).slice(-6).replace(/\ /g,'0') + "'; } </sty" + 'le>';
newtypes.push(thisemhe);
} else {
//alert('4:' + eval(thisem).toString(16).padStart(2, '0'));
if (thisem.indexOf('.') != -1) {
ccon='<sty' + 'le> .dominoes' + newtypes.length + ":after { content: '\\" + ('000000' + eval(thisem.split('.')[0]).toString(16).padStart(2, '0')).slice(-6) + "'; } </sty" + 'le>';
for (jcc=1; jcc<thisem.split('.').length; jcc++) {
ccon=ccon.replace("'; } </sty" + 'le>', "\\" + ('000000' + eval(thisem.split('.')[jcc]).toString(16).padStart(2, '0')).slice(-6) + "'; } </sty" + 'le>');
}
document.getElementById('dstyle').innerHTML+=ccon; //'<sty' + 'le> .dominoes' + newtypes.length + ":after { content: '\\" + ('000000' + eval(thisem.split('.')[0]).toString(16).padStart(2, '0')).slice(-6) + "\\" + ('000000' + eval(thisem.split('.')[1]).toString(16).padStart(2, '0')).slice(-6) + "'; } </sty" + 'le>';
} else {
document.getElementById('dstyle').innerHTML+='<sty' + 'le> .dominoes' + newtypes.length + ":after { content: '\\" + ('000000' + eval(thisem).toString(16).padStart(2, '0')).slice(-6) + "'; } </sty" + 'le>';
}
newtypes.push(thisemhe);
}
}
}
}
function lessen(inthih) {
return inthih.replace(/visible/g, 'hidden');
alert('lessen this ' + inthih + ' to ' + inthih.replace('><img', '--><img').replace('<', '<!--').replace(/<span/g, '<!--span').replace(/<\/span>/g, '</span-->'));
return inthih.replace('><img', '--><img').replace('<', '<!--').replace(/<span/g, '<!--span').replace(/<\/span>/g, '</span-->');
}
function fixdomlr() {
if (newspanoid != '') {
if (document.getElementById('p' + newspanoid)) {
if (document.getElementById('p' + newspanoid).innerHTML.indexOf('(-1)') != -1) {
document.getElementById('p' + newspanoid).innerHTML=document.getElementById('p' + newspanoid).innerHTML.replace('doml ','domR ').replace('domr ','doml ').replace('domR ','domr ');
}
if (document.getElementById(newspanoid)) {
if (document.getElementById('seven1').innerHTML.indexOf(document.getElementById(newspanoid).innerHTML) != -1) {
document.getElementById(newspanoid).style.display='none'; //alert(1);
document.getElementById(newspanoid).className='disnon'; //document.getElementById('dstyle').innerHTML+='<sty' + 'le> #' + newspanoid + ' span { display: none; } </sty' + 'le>';
} else if (document.getElementById('seven2').innerHTML.indexOf(document.getElementById(newspanoid).innerHTML) != -1) {
document.getElementById(newspanoid).style.display='none'; //alert(2);
document.getElementById(newspanoid).className='disnon'; //document.getElementById('dstyle').innerHTML+='<sty' + 'le> #' + newspanoid + ' span { display: none; } </sty' + 'le>';
}
document.getElementById(newspanoid).innerHTML=document.getElementById(newspanoid).innerHTML.replace(/visible/g,'hidden'); //alert('and then ' + document.getElementById(newspanoid).outerHTML);
}
} else if (document.getElementById('s' + newspanoid)) {
if (document.getElementById('s' + newspanoid).innerHTML.indexOf('(-1)') != -1) {
document.getElementById('s' + newspanoid).innerHTML=document.getElementById('s' + newspanoid).innerHTML.replace('doml ','domR ').replace('domr ','doml ').replace('domR ','domr ');
}
if (document.getElementById(newspanoid)) {
if (document.getElementById('seven1').innerHTML.indexOf(document.getElementById(newspanoid).innerHTML) != -1) {
document.getElementById(newspanoid).style.display='none'; //alert(3);
document.getElementById(newspanoid).className='disnon'; //document.getElementById('dstyle').innerHTML+='<sty' + 'le> #' + newspanoid + ' span { display: none; } </sty' + 'le>';
} else if (document.getElementById('seven2').innerHTML.indexOf(document.getElementById(newspanoid).innerHTML) != -1) {
document.getElementById(newspanoid).style.display='none'; //alert(4);
document.getElementById(newspanoid).className='disnon'; //document.getElementById('dstyle').innerHTML+='<sty' + 'le> #' + newspanoid + ' span { display: none; } </sty' + 'le>';
}
document.getElementById(newspanoid).innerHTML=document.getElementById(newspanoid).innerHTML.replace(/visible/g,'hidden'); //alert('anD then ' + document.getElementById(newspanoid).outerHTML);
}
} else if (document.getElementById(newspanoid)) {
if (document.getElementById(newspanoid).innerHTML.indexOf('(-1)') != -1) {
document.getElementById('' + newspanoid).innerHTML=document.getElementById('' + newspanoid).innerHTML.replace('doml ','domR ').replace('domr ','doml ').replace('domR ','domr ');
}
}
}
newspanoid='';
}
function othersmaybe(inimg) {
var lbit='', rbit='';
newspano=null;
//alert(1);
if (inimg.indexOf(cgostock) != -1) { return inimg; }
//alert(11);
//if (inimg.indexOf(' draggable="false') != -1) { return inimg; }
if (animgprefix != '') {
//alert(111);
// do more here perhaps
if (inimg.indexOf('dominoes_') != -1) {
//alert(1111);
lbit=inimg.split('dominoes_')[1].substring(0,1);
rbit=inimg.split('dominoes_')[1].split('_')[1].substring(0,1);
if (document.getElementById('dom' + lbit + rbit)) {
//alert('already there ' + inimg);
newspano=document.getElementById('dom' + lbit + rbit);
newspanoid='dom' + lbit + rbit;
if (newspano) {
setTimeout(fixdomlr, 500);
}
}
animgprefix=templateprefix.replace(' ', ' id="dom' + lbit + rbit + '" ');
if (inimg.indexOf('(0)') != -1) {
if (inimg.indexOf('(-1)') != -1) {
//alert(43);
animgsuffix=templatesuffix.replace('6"', rbit + '"').replace('5"', lbit + '"').replace('doml ','domR ').replace('domr ','doml ').replace('domR ','domr ').replace(/visible/g,'hidden');
} else {
animgsuffix=templatesuffix.replace('6"', rbit + '"').replace('5"', lbit + '"').replace(/visible/g,'hidden');
}
} else {
if (inimg.indexOf('(-1)') != -1) {
//alert(4);
animgsuffix=templatesuffix.replace('6"', rbit + '"').replace('5"', lbit + '"').replace('doml ','domR ').replace('domr ','doml ').replace('domR ','domr ');
} else {
animgsuffix=templatesuffix.replace('6"', rbit + '"').replace('5"', lbit + '"');
}
}
}
}
//alert(inimg);
if (nestero) {
nestero.className+=' disnon';
nestero=null;
}
if (document.URL.indexOf('randtz=') != -1 || othertype != '' || 1 == 1) {
return animgprefix + inimg + animgsuffix + ' '; //' ';
}
return animgprefix + inimg + animgsuffix;
}
function abitlater(oa) {
alldoneanddusted=true;
oa.style.border='1px solid green';
setTimeout(function(){
document.getElementById('preifp').style.display='block';
document.getElementById('ifblank').style.display='block';
speechtotextwo=window.open('https://www.rjmprogramming.com.au/PHP/speech_supervisor.php?mode=4&raxnd=' + Math.floor(Math.random() * 1989675), 'ifblank'); //, 'top=0,left=' + eval(-600 + screen.width) + ',width=600,height=' + eval(-100 + screen.height));
//document.getElementById('myh1').innerHTML+=" <a style=text-decoration:none;cursor:pointer; href='#preifp' title='Speech to Text eg. 25 will click domino with 2 pips then 5 pips. Orange microphone icon up the top of web browser indicates it is primed to hear you speak.'>🎤</a>";
setTimeout(function(){
document.getElementById('myh1').scrollIntoView(); //window.scrollTo(0,0);
//window.top.scrollTo(0,0);
}, 2000);
}, 3000);
}
function acton(wdsl) {
var pidis='', pidarr=[];
if (wdsl.trim() != '') {
if (wdsl.toLowerCase() == 'stock' || wdsl.toLowerCase().substring(0,1) == '-') {
if (document.getElementById('thstock').innerHTML.indexOf('dominoes_') != -1) {
pidarr=document.getElementById('thstock').innerHTML.split('dominoes_');
pidis='dominoes_' + pidarr[Math.max(1,Math.floor(Math.random() * pidarr.length))].split('"')[0].split("'")[0].split('>')[0];
}
} else if (wdsl.toLowerCase().substring(0,1) >= '0' && wdsl.toLowerCase().substring(0,1) <= '9') {
if (eval('' + wdsl.length) == 1) {
pidis='dominoes_' + wdsl + '_' + wdsl;
} else if (wdsl.substring(0,1) <= wdsl.substring(1).substring(0,1)) {
pidis='dominoes_' + wdsl.substring(0,1) + '_' + wdsl.substring(1).substring(0,1);
} else {
pidis='dominoes_' + wdsl.substring(1).substring(0,1) + '_' + wdsl.substring(0,1);
}
} else if (wdsl.toLowerCase() == 'ten') {
pidis='dominoes_0_1';
} else if (wdsl.toLowerCase() == 'eleven') {
pidis='dominoes_1_1';
} else if (wdsl.toLowerCase() == 'twelve') {
pidis='dominoes_1_2';
} else if (wdsl.toLowerCase() == 'thirteen') {
pidis='dominoes_1_3';
} else if (wdsl.toLowerCase() == 'fourteen') {
pidis='dominoes_1_4';
} else if (wdsl.toLowerCase() == 'fifteen') {
pidis='dominoes_1_5';
} else if (wdsl.toLowerCase() == 'sixteen') {
pidis='dominoes_1_6';
} else if (wdsl.toLowerCase() == 'twenty') {
pidis='dominoes_0_2';
} else if (wdsl.toLowerCase().replace(' ','') == 'twentyone') {
pidis='dominoes_1_2';
} else if (wdsl.toLowerCase().replace(' ','') == 'twentytwo') {
pidis='dominoes_2_2';
} else if (wdsl.toLowerCase().replace(' ','') == 'twentythree') {
pidis='dominoes_2_3';
} else if (wdsl.toLowerCase().replace(' ','') == 'twentyfour') {
pidis='dominoes_2_4';
} else if (wdsl.toLowerCase().replace(' ','') == 'twentyfive') {
pidis='dominoes_2_5';
} else if (wdsl.toLowerCase().replace(' ','') == 'twentysix') {
pidis='dominoes_2_6';
} else if (wdsl.toLowerCase() == 'thirty') {
pidis='dominoes_0_3';
} else if (wdsl.toLowerCase().replace(' ','') == 'thirtyone') {
pidis='dominoes_1_3';
} else if (wdsl.toLowerCase().replace(' ','') == 'thirtytwo') {
pidis='dominoes_2_3';
} else if (wdsl.toLowerCase().replace(' ','') == 'thirtythree') {
pidis='dominoes_3_3';
} else if (wdsl.toLowerCase().replace(' ','') == 'thirtyfour') {
pidis='dominoes_3_4';
} else if (wdsl.toLowerCase().replace(' ','') == 'thirtyfive') {
pidis='dominoes_3_5';
} else if (wdsl.toLowerCase().replace(' ','') == 'thirtysix') {
pidis='dominoes_3_6';
} else if (wdsl.toLowerCase() == 'forty') {
pidis='dominoes_0_4';
} else if (wdsl.toLowerCase().replace(' ','') == 'fortyone') {
pidis='dominoes_1_4';
} else if (wdsl.toLowerCase().replace(' ','') == 'fortytwo') {
pidis='dominoes_2_4';
} else if (wdsl.toLowerCase().replace(' ','') == 'fortythree') {
pidis='dominoes_3_4';
} else if (wdsl.toLowerCase().replace(' ','') == 'fortyfour') {
pidis='dominoes_4_4';
} else if (wdsl.toLowerCase().replace(' ','') == 'fortyfive') {
pidis='dominoes_4_5';
} else if (wdsl.toLowerCase().replace(' ','') == 'fortysix') {
pidis='dominoes_4_6';
} else if (wdsl.toLowerCase() == 'fifty') {
pidis='dominoes_0_5';
} else if (wdsl.toLowerCase().replace(' ','') == 'fiftyone') {
pidis='dominoes_1_5';
} else if (wdsl.toLowerCase().replace(' ','') == 'fiftytwo') {
pidis='dominoes_2_5';
} else if (wdsl.toLowerCase().replace(' ','') == 'fiftythree') {
pidis='dominoes_3_5';
} else if (wdsl.toLowerCase().replace(' ','') == 'fiftyfour') {
pidis='dominoes_4_5';
} else if (wdsl.toLowerCase().replace(' ','') == 'fiftyfive') {
pidis='dominoes_5_5';
} else if (wdsl.toLowerCase().replace(' ','') == 'fiftysix') {
pidis='dominoes_5_6';
} else if (wdsl.toLowerCase() == 'sixty') {
pidis='dominoes_0_6';
} else if (wdsl.toLowerCase().replace(' ','') == 'sixtyone') {
pidis='dominoes_1_6';
} else if (wdsl.toLowerCase().replace(' ','') == 'sixtytwo') {
pidis='dominoes_2_6';
} else if (wdsl.toLowerCase().replace(' ','') == 'sixtythree') {
pidis='dominoes_3_6';
} else if (wdsl.toLowerCase().replace(' ','') == 'sixtyfour') {
pidis='dominoes_4_6';
} else if (wdsl.toLowerCase().replace(' ','') == 'sixtyfive') {
pidis='dominoes_5_6';
} else if (wdsl.toLowerCase().replace(' ','') == 'sixtysix') {
pidis='dominoes_6_6';
} else if (wdsl.toLowerCase().replace('blank','zero').replace('blank','zero') == 'zero') {
pidis='dominoes_0_0';
} else if (wdsl.toLowerCase().replace('blank','zero').replace('blank','zero').replace(' ','') == 'zerozero') {
pidis='dominoes_0_0';
} else if (wdsl.toLowerCase().replace('blank','zero').replace('blank','zero').replace(' ','') == 'zeroone') {
pidis='dominoes_0_1';
} else if (wdsl.toLowerCase().replace('blank','zero').replace('blank','zero').replace(' ','') == 'zerotwo') {
pidis='dominoes_0_2';
} else if (wdsl.toLowerCase().replace('blank','zero').replace('blank','zero').replace(' ','') == 'zerothree') {
pidis='dominoes_0_3';
} else if (wdsl.toLowerCase().replace('blank','zero').replace('blank','zero').replace(' ','') == 'zerofour') {
pidis='dominoes_0_4';
} else if (wdsl.toLowerCase().replace('blank','zero').replace('blank','zero').replace(' ','') == 'zerofive') {
pidis='dominoes_0_5';
} else if (wdsl.toLowerCase().replace('blank','zero').replace('blank','zero').replace(' ','') == 'zerosix') {
pidis='dominoes_0_6';
} else if (wdsl.toLowerCase() == 'one') {
if (document.getElementById('dominoes_0_1')) {
pidis='dominoes_0_1';
} else {
pidis='dominoes_1_1';
}
} else if (wdsl.toLowerCase() == 'two') {
if (document.getElementById('dominoes_0_2')) {
pidis='dominoes_0_2';
} else {
pidis='dominoes_2_2';
}
} else if (wdsl.toLowerCase() == 'three') {
if (document.getElementById('dominoes_0_3')) {
pidis='dominoes_0_3';
} else {
pidis='dominoes_3_3';
}
} else if (wdsl.toLowerCase() == 'four') {
if (document.getElementById('dominoes_0_4')) {
pidis='dominoes_0_4';
} else {
pidis='dominoes_4_4';
}
} else if (wdsl.toLowerCase() == 'five') {
if (document.getElementById('dominoes_0_5')) {
pidis='dominoes_0_5';
} else {
pidis='dominoes_5_5';
}
} else if (wdsl.toLowerCase() == 'six') {
if (document.getElementById('dominoes_0_6')) {
pidis='dominoes_0_6';
} else {
pidis='dominoes_6_6';
}
} else if (wdsl.toLowerCase() == 'seven') {
} else if (wdsl.toLowerCase() == 'eight') {
} else if (wdsl.toLowerCase() == 'nine') {
}
}
if (pidis.trim() != '') {
if (document.getElementById(pidis)) {
if (document.getElementById(pidis).outerHTML.replace('display: ','display:').indexOf('display:none') == -1) {
document.getElementById(pidis).click();
}
}
}
}
function updatewo() {
if (speechtotextwo) {
speechtotextwo=window.open('https://www.rjmprogramming.com.au/PHP/speech_supervisor.php?mode=4&raxnd=' + Math.floor(Math.random() * 1989675), 'ifblank'); //, 'top=0,left=' + eval(-600 + screen.width) + ',width=600,height=' + eval(-100 + screen.height));
setTimeout(function(){
document.getElementById('myh1').scrollIntoView(); //window.scrollTo(0,0);
//window.top.scrollTo(0,0);
}, 2000);
}
}
function scheckwo() {
if (document.getElementById('lastwords')) {
if (document.getElementById('lastwords').value.trim() != '') {
lwds=document.getElementById('lastwords').value.trim();
document.getElementById('lastwords').value='';
}
}
if (lwds != '') { document.getElementById('lastwords').title=lwds.trim(); acton(lwds); lwds=''; }
}
function focusone(ospan) {
if (!spanoonedone && navigator.userAgent.match(/Android|BlackBerry|iPad|iPhone|iPod|Opera Mini|IEMobile/i) && eval(String.fromCharCode(32).trim() + navigator.maxTouchPoints) > 0) {
var ansis=prompt(ospan.title, ospan.innerText);
if (ansis == null) { ansis=ospan.innerText; }
if (ansis != '' && ansis != ospan.innerText) { if (ansis.indexOf('],') != -1) { spanoonedtwo=true; } ospan.innerHTML=ansis; nameone(ospan); }
}
spanoonedone=true;
}
function focustwo(ospan) {
if (!spanoonedtwo && navigator.userAgent.match(/Android|BlackBerry|iPad|iPhone|iPod|Opera Mini|IEMobile/i) && eval(String.fromCharCode(32).trim() + navigator.maxTouchPoints) > 0) {
var ansis=prompt(ospan.title, ospan.innerText);
if (ansis == null) { ansis=ospan.innerText; }
if (ansis != '' && ansis != ospan.innerText) { if (ansis.indexOf('],') != -1) { spanoonedone=true; } ospan.innerHTML=ansis; nametwo(ospan); }
}
spanoonedtwo=true;
}
function brmaybe(inid) {
var inidih='', inidiharr=[], outinidih='';
if (everyfour > 0) {
if (document.getElementById('' + inid)) {
brhuh='';
inidih=document.getElementById('' + inid).innerHTML;
inidiharr=inidih.split('<img');
for (var ioh=1; ioh<inidiharr.length; ioh++) {
outinidih+='<img' + inidiharr[ioh];
if (inid.indexOf('stock') != -1) {
if (eval(ioh % 7) == 0 && ioh == eval(-1 + inidiharr.length) && inidiharr[ioh].indexOf('<br') == -1) { brhuh='<br>'; }
} else {
if (eval(ioh % 4) == 0 && ioh == eval(-1 + inidiharr.length) && inidiharr[ioh].indexOf('<br') == -1) { brhuh='<br>'; }
}
}
}
}
return '' + inid;
}
function sendtoone() {
var tih=encodeURIComponent(document.getElementById('mytable').innerHTML);
if (document.getElementById('name1').innerText.indexOf('[') != -1 && document.getElementById('name1').innerText.indexOf(']') != -1) {
//alert('send to ' + document.getElementById('name1').innerText);
var youarecontact=document.getElementById('name1').innerText.split('[')[1].split(']')[0];
if (youarecontact.indexOf('@') != -1) {
document.getElementById('aemail').href=(document.getElementById('aemail').href.split('body=')[0] + 'body=').replace(':?', ':' + youarecontact + '?').replace('&body=', '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?type=' + othertype + '&rand=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&winnerblurb=' + encodeURIComponent(winnerblurb) + '&pip1cnt=' + pip1cnt + '&pip2cnt=' + pip2cnt + '&iam=' + encodeURIComponent(youare + '[' + youarecontact + ']') + '&iamleft=' + encodeURIComponent('' + youareleft) + '&youare=' + encodeURIComponent(iam + '[' + iamcontact + ']') + '&youareleft=' + encodeURIComponent('' + iamleft) + '#' + encodeURIComponent(document.body.innerHTML.split('<fo' + 'rm ')[0].split('<a' + ' target="_top"')[0])));
document.getElementById('aemail').click();
} else if (youarecontact.trim() != '' && youarecontact.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,'') == '') {
//while (tih.indexOf(symbolize) != -1) {
// tih=tih.replace(symbolize,symbolis);
//}
document.getElementById('asms').href=(document.getElementById('asms').href.split('body=')[0] + 'body=').replace(':' + youarecontact, ':').replace(':', ':' + youarecontact + '') + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?type=' + othertype + '&rand=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&winnerblurb=' + encodeURIComponent(winnerblurb) + '&pip1cnt=' + pip1cnt + '&pip2cnt=' + pip2cnt + '&iam=' + encodeURIComponent(youare + '[' + youarecontact + ']') + '&iamleft=' + encodeURIComponent('' + youareleft) + '&youare=' + encodeURIComponent(iam + '[' + iamcontact + ']') + '&youareleft=' + encodeURIComponent('' + iamleft) + '#' + tih);
document.getElementById('makenum').value=document.getElementById('mytable').innerHTML;
document.getElementById('sifp').click();
setTimeout(function(){ document.getElementById('ifp').src='/About_Us.html'; document.getElementById('makenum').value=''; if (eval('' + document.getElementById('asms').href.length) > 700 && document.getElementById('asms').href.indexOf('tbody') != -1) { document.getElementById('asms').href=document.getElementById('asms').href.split('tbody')[0] + 't' + document.getElementById('makenum').title; } document.getElementById('asms').click(); }, 8000);
}
}
}
function sendtotwo() {
var tih=encodeURIComponent(document.getElementById('mytable').innerHTML);
if (document.getElementById('name2').innerText.indexOf('[') != -1 && document.getElementById('name2').innerText.indexOf(']') != -1) {
//alert('send to ' + document.getElementById('name2').innerText);
var youarecontact=document.getElementById('name2').innerText.split('[')[1].split(']')[0];
if (youarecontact.indexOf('@') != -1) {
document.getElementById('aemail').href=(document.getElementById('aemail').href.split('body=')[0] + 'body=').replace(':?', ':' + youarecontact + '?').replace('&body=', '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?type=' + othertype + '&rand=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&winnerblurb=' + encodeURIComponent(winnerblurb) + '&pip1cnt=' + pip1cnt + '&pip2cnt=' + pip2cnt + '&iam=' + encodeURIComponent(youare + '[' + youarecontact + ']') + '&iamleft=' + encodeURIComponent('' + youareleft) + '&youare=' + encodeURIComponent(iam + '[' + iamcontact + ']') + '&youareleft=' + encodeURIComponent('' + iamleft) + '#' + encodeURIComponent(document.body.innerHTML.split('<fo' + 'rm ')[0].split('<a' + ' target="_top"')[0])));
document.getElementById('aemail').click();
} else if (youarecontact.trim() != '' && youarecontact.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,'') == '') {
//while (tih.indexOf(symbolize) != -1) {
// tih=tih.replace(symbolize,symbolis);
//}
document.getElementById('asms').href=(document.getElementById('asms').href.split('body=')[0] + 'body=').replace(':' + youarecontact, ':').replace(':', ':' + youarecontact + '') + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?type=' + othertype + '&rand=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&winnerblurb=' + encodeURIComponent(winnerblurb) + '&pip1cnt=' + pip1cnt + '&pip2cnt=' + pip2cnt + '&iam=' + encodeURIComponent(youare + '[' + youarecontact + ']') + '&iamleft=' + encodeURIComponent('' + youareleft) + '&youare=' + encodeURIComponent(iam + '[' + iamcontact + ']') + '&youareleft=' + encodeURIComponent('' + iamleft) + '#' + tih);
document.getElementById('makenum').value=document.getElementById('mytable').innerHTML;
document.getElementById('sifp').click();
setTimeout(function(){ document.getElementById('ifp').src='/About_Us.html'; document.getElementById('makenum').value=''; if (eval('' + document.getElementById('asms').href.length) > 700 && document.getElementById('asms').href.indexOf('tbody') != -1) { document.getElementById('asms').href=document.getElementById('asms').href.split('tbody')[0] + 't' + document.getElementById('makenum').title; } document.getElementById('asms').click(); }, 8000);
}
}
}
function newstockgame() {
location.href=document.URL.split('?')[0].split('#')[0] + '?type=' + othertype + '&rand=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&name1=' + encodeURIComponent(document.getElementById('name1').innerHTML) + '&name2=' + encodeURIComponent(document.getElementById('name2').innerHTML);
}
function newremotegame() { //(blurb) {
if (document.getElementById('thtop').innerHTML.trim() != '') {
var huhask=prompt((location.search.split('winnerblurb=')[1] ? decodeURIComponent(location.search.split('winnerblurb=')[1].split('&')[0]) : '').replace('OK starts a new game', 'OK starts a new collaborative game'), 'OK');
if (huhask) {
if (huhask == 'OK' && allbuthash != '') {
location.href=allbuthash.replace('rand=', 'rand=8').replace(/\&pip/g, 'pap');
} else if (huhask != 'OK' && allbuthash != '') {
location.href=document.URL.split('?')[0].split('#')[0];
} else {
location.href='./dominoes_block_game.html?score1=' + encodeURIComponent(document.getElementById('score1').innerHTML.replace('Score: ','')) + '&score2=' + encodeURIComponent(document.getElementById('score2').innerHTML.replace('Score: ','')) + '&name1=' + encodeURIComponent(document.getElementById('name1').innerHTML) + '&name2=' + encodeURIComponent(document.getElementById('name2').innerHTML);
}
}
}
}
function newgame() {
if (document.getElementById('thtop').innerHTML.trim() != '') {
var huhask=confirm('Congratulations, ' + winner + '! You scored ' + winnerby + ' points. OK starts a new game.');
if (huhask) {
if (allbuthash != '') {
location.href=allbuthash.replace('rand=', 'rand=8').replace(/\&pip/g, 'pap');
} else {
location.href='./dominoes_block_game.html?score1=' + encodeURIComponent(document.getElementById('score1').innerHTML.replace('Score: ','')) + '&score2=' + encodeURIComponent(document.getElementById('score2').innerHTML.replace('Score: ','')) + '&name1=' + encodeURIComponent(document.getElementById('name1').innerHTML) + '&name2=' + encodeURIComponent(document.getElementById('name2').innerHTML);
}
}
}
}
function objoneit(oneoh) {
if (oneoh.indexOf('dominoes_') != -1) {
pip1cnt+=eval('' + oneoh.split('dominoes_')[1].split('_')[0]);
pip1cnt+=eval('' + oneoh.split('dominoes_')[1].split('_')[1].substring(0,1));
}
return othersmaybe(oneoh);
}
function objtwoit(twooh) {
if (twooh.indexOf('dominoes_') != -1) {
pip2cnt+=eval('' + twooh.split('dominoes_')[1].split('_')[0]);
pip2cnt+=eval('' + twooh.split('dominoes_')[1].split('_')[1].substring(0,1));
}
return othersmaybe(twooh);
}
function endgameone(oneih) {
var imgcnt=eval(-1 + oneih.split('<img').length);
var nonecnt=eval(-1 + oneih.split('none;').length);
if (eval(imgcnt - nonecnt) <= 0) {
document.getElementById('score1').innerHTML='Score: ' + eval(thescore1 + pip2cnt);
winner=document.getElementById('name1').innerHTML;
winnerby=pip2cnt;
winnerblurb='Congratulations should go to ' + winner + '! You scored ' + winnerby + ' points. OK starts a new game.';
sendtotwo();
setTimeout(newgame, 5000);
}
return oneih;
}
function endgametwo(twoih) {
var imgcnt=eval(-1 + twoih.split('<img').length);
var nonecnt=eval(-1 + twoih.split('none;').length);
if (eval(imgcnt - nonecnt) <= 0) {
document.getElementById('score2').innerHTML='Score: ' + eval(thescore2 + pip1cnt);
winner=document.getElementById('name2').innerHTML;
winnerby=pip1cnt;
winnerblurb='Congratulations should go to ' + winner + '! You scored ' + winnerby + ' points. OK starts a new game.';
sendtoone();
setTimeout(newgame, 5000);
}
return twoih;
}
function inithave() {
var mlv=0, mrv=0;
var wasthih=document.getElementById('thtop').innerHTML;
if (eval('' + hastohave.length) == 0) {
if (wasthih.indexOf('dominoes_') != -1) {
if (wasthih.split('dominoes_')[0].indexOf('(-1)') != -1) {
mlv=eval('' + wasthih.split('dominoes_')[1].split('_')[1].substring(0,1));
} else {
mlv=eval('' + wasthih.split('dominoes_')[1].split('_')[0]);
}
hastohave.push(mlv);
wasthih='<img' + wasthih.split('<img')[eval(-1 + wasthih.split('<img').length)];
if (wasthih.indexOf('(-1)') == -1) {
mrv=eval('' + wasthih.split('dominoes_')[1].split('_')[1].substring(0,1));
} else {
mrv=eval('' + wasthih.split('dominoes_')[1].split('_')[0]);
}
hastohave.push(mrv);
}
}
}
function goone(iobj) {
nestero=null;
if (!isplayer1go && !isplayer2go) {
isplayer1go=true;
}
var klv=-1, krv=-1;
var mlv=-1, mrv=-1;
var wasthih=document.getElementById('thtop').innerHTML;
var atend=true, atstart=false, flipit=false;
//document.getElementById('myh4').innerHTML='';
if (('' + iobj.outerHTML).indexOf('brightness(0)') != -1) {
return false;
}
iobj.style.outline='1px dotted orange'; //iobj.style.backgroundColor='orange';
if (iobj.id.indexOf('dominoes_') != -1) {
mlv=eval('' + iobj.id.split('dominoes_')[1].split('_')[0]);
mrv=eval('' + iobj.id.split('dominoes_')[1].split('_')[1].substring(0,1));
if (document.getElementById('dom' + mlv + mrv)) {
nestero=document.getElementById('dom' + mlv + mrv);
//alert('foUnd ' + 'dom' + mlv + mrv);
}
}
if (eval('' + hastohave.length) > 0) {
atend=false;
var huhs=document.getElementById('thtop').innerHTML.split('dominoes_'); //.replace(/sdominoes/g,'pdominoes').replace(/\ id\=\"s/g,' id="').split(' id="pdominoes_');
for (var ikl=1; ikl<huhs.length; ikl++) {
if (!atstart && !atend) {
if (ikl > 1 && ikl < eval(-1 + huhs.length)) {
klv=-1;
krv=-1;
} else {
if (huhs[eval(-1 + ikl)].indexOf('(-1)') != -1) {
krv=eval('' + huhs[ikl].split('_')[0]);
klv=eval('' + huhs[ikl].split('_')[1].substring(0,1));
} else {
klv=eval('' + huhs[ikl].split('_')[0]);
krv=eval('' + huhs[ikl].split('_')[1].substring(0,1));
}
//if (krv == mlv && ikl == eval(-1 + huhs.length)) {
if ((krv == mlv || mlv == klv) && ikl == eval(-1 + huhs.length)) { // mlv=1 mrv=3 klv=1 krv=5
//if (('_' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[1]) == 0) {
if (('_' + iobj.id.split('dominoes_')[1]).indexOf('_' + hastohave[1]) == 0) {
flipit=false;
atstart=false;
atend=true;
pip1cnt-=mlv;
pip1cnt-=mrv;
if (nestero) {
nestero.className+=' disnon';
}
//document.getElementById('myh4').innerHTML+=('01:am not flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 1?' + iobj.id;
}
} else if ((krv == mrv || klv == mrv) && ikl == eval(-1 + huhs.length)) { // mlv=4 mrv=6 klv=1 krv=6
//if (('' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[1]) != -1) {
if (('_' + iobj.id.split('dominoes_')[1]).indexOf('_' + hastohave[1]) != -1) {
flipit=true;
atstart=false;
atend=true;
pip1cnt-=mlv;
pip1cnt-=mrv;
if (nestero) {
nestero.className+=' disnon';
}
//document.getElementById('myh4').innerHTML+=('03:am flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 2?' + iobj.id;
}
} else if (klv == mrv && ikl == 1) {
//if (('' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[0]) != -1) {
if (iobj.id.split('dominoes_')[1].indexOf('_' + hastohave[0]) != -1) {
flipit=false;
atstart=true;
atend=false;
pip1cnt-=mlv;
pip1cnt-=mrv;
if (nestero) {
nestero.className+=' disnon';
}
//document.getElementById('myh4').innerHTML+=('02:am not flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 3?' + iobj.id;
}
} else if (klv == mlv && ikl == 1) {
//if (('' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[0]) != -1) {
if (('_' + iobj.id.split('dominoes_')[1]).indexOf('_' + hastohave[0]) != -1) {
flipit=true;
atstart=true;
atend=false;
pip1cnt-=mlv;
pip1cnt-=mrv;
if (nestero) {
nestero.className+=' disnon';
}
//document.getElementById('myh4').innerHTML+=('04:am flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 4?' + iobj.id;
}
//} else {
// document.getElementById('myh4').innerHTML+=(' one:' + ikl + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv + ' hastohavee=' + hastohave[0] + ',' + hastohave[1]);
}
}
}
}
} else {
hastohave.push(mlv);
hastohave.push(mrv);
}
if (isplayer1go && (atend || atstart)) {
if (flipit && atend) {
hastohave[1]=mlv;
document.getElementById('thtop').innerHTML+=othersmaybe(iobj.outerHTML).replace(/\ draggable\=\"true/g, ' draggable="false').replace(' ondragstart=', ' data-ongragstart=').replace(' class="player1"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','').replace(' style="', ' style="transform:scaleX(-1);').replace(/\ \;/g,'');
} else if (flipit) {
hastohave[0]=mrv;
document.getElementById('thtop').innerHTML=othersmaybe(iobj.outerHTML).replace(/\ draggable\=\"true/g, ' draggable="false').replace(' ondragstart=', ' data-ongragstart=').replace(' class="player1"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','').replace(' style="', ' style="transform:scaleX(-1);').replace(/\ \;/g,'') + wasthih;
} else if (atstart) {
hastohave[0]=mlv;
document.getElementById('thtop').innerHTML=othersmaybe(iobj.outerHTML).replace(/\ draggable\=\"true/g, ' draggable="false').replace(' ondragstart=', ' data-ongragstart=').replace(' class="player1"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','').replace(/\ \;/g,'') + wasthih;
} else {
hastohave[1]=mrv;
document.getElementById('thtop').innerHTML+=othersmaybe(iobj.outerHTML).replace(/\ draggable\=\"true/g, ' draggable="false').replace(' ondragstart=', ' data-ongragstart=').replace(' class="player1"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','').replace(/\ \;/g,'');
}
iobj.style.display='none';
document.getElementById('buts2').innerHTML='<button id=reveal2 style="background-color:orange;">Click a tile below or from Stock' + tocontinuetwo + ' ...</button>';
tocontinuetwo='';
document.getElementById('buts1').innerHTML='<button style="border:4px dashed yellow;" id=reveal1>Please turn away now ...</button>';
if (useiourbeep) { beep(); }
was1ih=endgameone(document.getElementById('seven1').innerHTML);
was2ih=endgametwo(document.getElementById('seven2').innerHTML);
isplayer1go=false;
isplayer2go=false;
document.getElementById('seven1').innerHTML=lessen(was1ih.replace(/\ draggable\=\"true/g, ' draggable="false').replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);'));
document.body.style.cursor='progress';
setTimeout(function(){ updatewo(); }, 7000);
setTimeout(function(){
document.body.style.cursor='pointer';
isplayer2go=true;
document.getElementById('seven1').innerHTML=lessen(was1ih.replace(/\ draggable\=\"true/g, ' draggable="false').replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);'));
document.getElementById('seven2').innerHTML=was2ih.replace(/hidden/g, 'visible').replace(/\ draggable\=\"false/g, ' draggable="true').replace(/filter\:brightness\(0\)\;/g,'');
if (iamleft || youareleft) {
sendtotwo();
}
if (everyfour > 0) {
setTimeout(function(){
window.scrollTo({ left: eval('' + document.body.scrollWidth) }); //, eval('' + document.getElementById('mytable').getBoundingClientRect().top)); //{ right: 0 }); //eval(0.3 * screen.width) });
setTimeout(function(){
document.getElementById('thtop').className='right'; //document.getElementById('thtop').style.float='right';
lhis='#' + encodeURIComponent(document.body.innerHTML);
documentURL=document.URL.split('#')[0] + lhis;
prevlhis=lhis;
location.href=lhis;
}, 989);
}, 989);
} else {
lhis='#' + encodeURIComponent(document.body.innerHTML);
documentURL=document.URL.split('#')[0] + lhis;
prevlhis=lhis;
location.href=lhis;
}
}, 10000);
}
}
function gotwo(iobj) {
nestero=null;
if (!isplayer1go && !isplayer2go) {
isplayer2go=true;
}
var klv=-1, krv=-1;
var mlv=-1, mrv=-1;
var atend=true, atstart=false, flipit=false;
var wasthih=document.getElementById('thtop').innerHTML;
var atend=true, atstart=false, flipit=false;
if (('' + iobj.outerHTML).indexOf('brightness(0)') != -1) {
return false;
}
//document.getElementById('myh4').innerHTML='';
iobj.style.outline='1px dotted orange'; //iobj.style.backgroundColor='orange';
if (iobj.id.indexOf('dominoes_') != -1) {
mlv=eval('' + iobj.id.split('dominoes_')[1].split('_')[0]);
mrv=eval('' + iobj.id.split('dominoes_')[1].split('_')[1].substring(0,1));
if (document.getElementById('dom' + mlv + mrv)) {
nestero=document.getElementById('dom' + mlv + mrv);
//alert('found ' + 'dom' + mlv + mrv);
}
}
if (eval('' + hastohave.length) > 0) {
atend=false;
var huhs=document.getElementById('thtop').innerHTML.split('dominoes_'); //.replace(/sdominoes/g,'pdominoes').replace(/\ id\=\"s/g,' id="').split(' id="pdominoes_');
for (var ikl=1; ikl<huhs.length; ikl++) {
if (!atstart && !atend) {
if (ikl > 1 && ikl < eval(-1 + huhs.length)) {
klv=-1;
krv=-1;
} else {
if (huhs[eval(-1 + ikl)].indexOf('(-1)') != -1) {
krv=eval('' + huhs[ikl].split('_')[0]);
klv=eval('' + huhs[ikl].split('_')[1].substring(0,1));
} else {
klv=eval('' + huhs[ikl].split('_')[0]);
krv=eval('' + huhs[ikl].split('_')[1].substring(0,1));
}
if ((krv == mlv || mlv == klv) && ikl == eval(-1 + huhs.length)) { // mlv=1 mrv=3 klv=1 krv=5
//if (('_' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[1]) == 0) {
if (('_' + iobj.id.split('dominoes_')[1]).indexOf('_' + hastohave[1]) == 0) {
flipit=false;
atstart=false;
atend=true;
pip2cnt-=mlv;
pip2cnt-=mrv;
if (nestero) {
nestero.className+=' disnon';
}
//document.getElementById('myh4').innerHTML+=('1:am not flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 1?';
}
//} else if (krv == mrv && ikl == eval(-1 + huhs.length)) {
} else if ((krv == mrv || klv == mrv) && ikl == eval(-1 + huhs.length)) { // mlv=2 mrv=5 klv=5 krv=6
//if (('' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[1]) != -1) {
if (('_' + iobj.id.split('dominoes_')[1]).indexOf('_' + hastohave[1]) != -1) {
flipit=true;
atstart=false;
atend=true;
pip2cnt-=mlv;
pip2cnt-=mrv;
if (nestero) {
nestero.className+=' disnon';
}
//document.getElementById('myh4').innerHTML+=('3:am flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 2?';
}
} else if (klv == mrv && ikl == 1) {
//if (('' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[0]) != -1) {
if (iobj.id.split('dominoes_')[1].indexOf('_' + hastohave[0]) != -1) {
flipit=false;
atstart=true;
atend=false;
pip2cnt-=mlv;
pip2cnt-=mrv;
if (nestero) {
nestero.className+=' disnon';
}
//document.getElementById('myh4').innerHTML+=('2:am not flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 3?';
}
} else if (klv == mlv && ikl == 1) {
//if (('' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[0]) != -1) {
if (('_' + iobj.id.split('dominoes_')[1]).indexOf('_' + hastohave[0]) != -1) {
flipit=true;
atstart=true;
atend=false;
pip2cnt-=mlv;
pip2cnt-=mrv;
if (nestero) {
nestero.className+=' disnon';
}
//document.getElementById('myh4').innerHTML+=('4:am flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 4?';
}
//} else {
// document.getElementById('myh4').innerHTML+=(' two:' + ikl + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv + ' hastohave=' + hastohave[0] + ',' + hastohave[1]);
}
}
}
}
} else {
hastohave.push(mlv);
hastohave.push(mrv);
}
if (isplayer2go && (atend || atstart)) {
if (flipit && atend) {
hastohave[1]=mlv;
document.getElementById('thtop').innerHTML+=othersmaybe(iobj.outerHTML).replace(/\ draggable\=\"true/g, ' draggable="false').replace(' ondragstart=', ' data-ongragstart=').replace(' class="player2"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','').replace(' style="', ' style="transform:scaleX(-1);').replace(/\ \;/g,'');
} else if (flipit) {
hastohave[0]=mrv;
document.getElementById('thtop').innerHTML=othersmaybe(iobj.outerHTML).replace(/\ draggable\=\"true/g, ' draggable="false').replace(' ondragstart=', ' data-ongragstart=').replace(' class="player2"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','').replace(' style="', ' style="transform:scaleX(-1);').replace(/\ \;/g,'') + wasthih;
} else if (atstart) {
hastohave[0]=mlv;
document.getElementById('thtop').innerHTML=othersmaybe(iobj.outerHTML).replace(/\ draggable\=\"true/g, ' draggable="false').replace(' ondragstart=', ' data-ongragstart=').replace(' class="player2"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','').replace(/\ \;/g,'') + wasthih;
} else {
hastohave[1]=mrv;
document.getElementById('thtop').innerHTML+=othersmaybe(iobj.outerHTML).replace(/\ draggable\=\"true/g, ' draggable="false').replace(' ondragstart=', ' data-ongragstart=').replace(' class="player2"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','').replace(/\ \;/g,'');
}
iobj.style.display='none';
document.getElementById('buts1').innerHTML='<button id=reveal1 style="background-color:orange;">Click a tile below or from Stock' + tocontinueone + ' ...</button>';
tocontinueone='';
document.getElementById('buts2').innerHTML='<button style="border:4px dashed yellow;" id=reveal2>Please turn away now ...</button>';
if (useiourbeep) { beeptwo(); }
was1ih=endgameone(document.getElementById('seven1').innerHTML);
was2ih=endgametwo(document.getElementById('seven2').innerHTML);
isplayer1go=false;
isplayer2go=false;
document.getElementById('seven2').innerHTML=lessen(was2ih.replace(/\ draggable\=\"true/g, ' draggable="false').replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);'));
document.body.style.cursor='progress';
setTimeout(function(){ updatewo(); }, 7000);
setTimeout(function(){
document.body.style.cursor='pointer';
isplayer1go=true;
document.getElementById('seven2').innerHTML=lessen(was2ih.replace(/\ draggable\=\"true/g, ' draggable="false').replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);'));
document.getElementById('seven1').innerHTML=was1ih.replace(/hidden/g, 'visible').replace(/\ draggable\=\"false/g, ' draggable="true').replace(/filter\:brightness\(0\)\;/g,'');
if (iamleft || youareleft) {
sendtoone();
}
if (everyfour > 0) {
setTimeout(function(){
window.scrollTo({ left: 0 }); //, eval('' + document.getElementById('mytable').getBoundingClientRect().top));
setTimeout(function(){
document.getElementById('thtop').className='left'; //document.getElementById('thtop').style.float='left';
lhis='#' + encodeURIComponent(document.body.innerHTML);
documentURL=document.URL.split('#')[0] + lhis;
prevlhis=lhis;
location.href=lhis;
}, 989);
}, 989);
} else {
lhis='#' + encodeURIComponent(document.body.innerHTML);
documentURL=document.URL.split('#')[0] + lhis;
prevlhis=lhis;
location.href=lhis;
}
}, 10000);
}
}
function gostock(iobj) {
if (!isplayer1go && !isplayer2go) {
if (document.getElementById('reveal1')) {
if (document.getElementById('reveal1').innerHTML.indexOf(' turn away') != -1) {
isplayer2go=true;
}
}
if (document.getElementById('reveal2')) {
if (document.getElementById('reveal2').innerHTML.indexOf(' turn away') != -1) {
isplayer1go=true;
}
}
}
if (isplayer1go) {
document.getElementById('seven1').innerHTML+=objoneit(iobj.outerHTML).replace(/filter\:brightness\(0\)\;/g,'').replace(' id="',' id="s').replace(' class="stock"', ' class="player1"').replace(/gostock/g,'goone');
if (eval('' + document.getElementById('thstock').innerHTML.split('none;').length) >= 14) {
if (document.getElementById('sgame').innerHTML == 'Game') {
document.getElementById('sgame').innerHTML='<button title=" ... or blocked game" onclick=newstockgame();>New</button> Game';
}
}
iobj.style.display='none';
isplayer1go=false;
isplayer2go=false;
document.getElementById('buts2').innerHTML='<button id=reveal2 style="background-color:orange;">Click a tile below or from Stock' + tocontinuetwo + ' ...</button>';
tocontinuetwo='';
document.getElementById('buts1').innerHTML='<button style="border:4px dashed yellow;" id=reveal1>Please turn away now ...</button>';
if (useiourbeep) { beep(); }
was1ih=endgameone(document.getElementById('seven1').innerHTML);
was2ih=endgametwo(document.getElementById('seven2').innerHTML);
document.getElementById('seven1').innerHTML=lessen(was1ih.replace(/\ draggable\=\"true/g, ' draggable="false').replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);'));
document.body.style.cursor='progress';
setTimeout(function(){ updatewo(); }, 7000);
setTimeout(function(){
document.body.style.cursor='pointer';
isplayer2go=true;
document.getElementById('seven1').innerHTML=lessen(was1ih.replace(/\ draggable\=\"true/g, ' draggable="false').replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);'));
document.getElementById('seven2').innerHTML=was2ih.replace(/hidden/g, 'visible').replace(/\ draggable\=\"false/g, ' draggable="true').replace(/filter\:brightness\(0\)\;/g,'');
if (iamleft || youareleft) {
sendtotwo();
}
if (everyfour > 0) {
setTimeout(function(){
window.scrollTo({ left: eval('' + document.body.scrollWidth) }); //, eval('' + document.getElementById('mytable').getBoundingClientRect().top)); //{ right: 0 }); //eval(0.3 * screen.width) });
setTimeout(function(){
document.getElementById('thtop').className='right'; //document.getElementById('thtop').style.float='right';
lhis='#' + encodeURIComponent(document.body.innerHTML);
documentURL=document.URL.split('#')[0] + lhis;
prevlhis=lhis;
location.href=lhis;
}, 989);
}, 989);
} else {
lhis='#' + encodeURIComponent(document.body.innerHTML);
documentURL=document.URL.split('#')[0] + lhis;
prevlhis=lhis;
location.href=lhis;
}
}, 10000);
} else if (isplayer2go) {
document.getElementById('seven2').innerHTML+=objtwoit(iobj.outerHTML).replace(/filter\:brightness\(0\)\;/g,'').replace(' id="',' id="s').replace(' class="stock"', ' class="player2"').replace(/gostock/g,'gotwo');
if (eval('' + document.getElementById('thstock').innerHTML.split('none;').length) >= 14) {
if (document.getElementById('sgame').innerHTML == 'Game') {
document.getElementById('sgame').innerHTML='<button title=" ... or blocked game" onclick=newstockgame();>New</button> Game';
}
}
iobj.style.display='none';
isplayer1go=false;
isplayer2go=false;
document.getElementById('buts1').innerHTML='<button id=reveal1 style="background-color:orange;">Click a tile below or from Stock' + tocontinueone + ' ...</button>';
tocontinueone='';
document.getElementById('buts2').innerHTML='<button style="border:4px dashed yellow;" id=reveal2>Please turn away now ...</button>';
if (useiourbeep) { beeptwo(); }
was1ih=endgameone(document.getElementById('seven1').innerHTML);
was2ih=endgametwo(document.getElementById('seven2').innerHTML);
document.getElementById('seven2').innerHTML=lessen(was2ih.replace(/\ draggable\=\"true/g, ' draggable="false').replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);'));
document.body.style.cursor='progress';
setTimeout(function(){ updatewo(); }, 7000);
setTimeout(function(){
document.body.style.cursor='pointer';
isplayer1go=true;
document.getElementById('seven2').innerHTML=lessen(was2ih.replace(/\ draggable\=\"true/g, ' draggable="false').replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);'));
document.getElementById('seven1').innerHTML=was1ih.replace(/hidden/g, 'visible').replace(/\ draggable\=\"false/g, ' draggable="true').replace(/filter\:brightness\(0\)\;/g,'');
if (iamleft || youareleft) {
sendtoone();
}
if (everyfour > 0) {
setTimeout(function(){
window.scrollTo({ left: 0 }); //, eval('' + document.getElementById('mytable').getBoundingClientRect().top));
setTimeout(function(){
document.getElementById('thtop').className='left'; //document.getElementById('thtop').style.float='left';
lhis='#' + encodeURIComponent(document.body.innerHTML);
documentURL=document.URL.split('#')[0] + lhis;
prevlhis=lhis;
location.href=lhis;
}, 989);
}, 989);
} else {
lhis='#' + encodeURIComponent(document.body.innerHTML);
documentURL=document.URL.split('#')[0] + lhis;
prevlhis=lhis;
location.href=lhis;
}
}, 10000);
}
}
function reveal(obut) {
var huhlen=0;
//alert('firstplayeris=' + firstplayeris);
if (firstplayeris == 0) {
if (othertype.toLowerCase().replace('dominoes', '') != '') {
// Fill out the :after CSS ideas ... eg. .dominoes5
// ... end of fill out part
} else if (document.getElementById('dstyle').innerHTML.indexOf('.dominoes0') == -1 && document.URL.indexOf('randtz=') == -1) {
document.getElementById('dstyle').innerHTML='';
}
obut.style.backgroundColor='orange';
firstplayeris=eval(obut.id.replace('reveal',''));
if (firstplayeris == 1) {
//alert('here 1');
isplayer1go=true;
isplayer2go=false;
document.getElementById(obut.id.replace('1','2')).innerHTML='Please turn away now ...';
document.getElementById('seven1').innerHTML='';
document.getElementById('seven2').innerHTML='';
if (useiourbeep) { beeptwo(); }
document.body.style.cursor='progress';
setTimeout(function(){ updatewo(); }, 7000);
setTimeout(function(){
document.body.style.cursor='pointer';
document.getElementById('buts1').innerHTML='<button id=reveal1 style=background-color:orange;>Click a tile below to start ...</button>';
document.getElementById('buts2').innerHTML='<button style="border:4px dashed yellow;" id=reveal2>Please turn away now ...</button>';
//beep();
huhlen=eval(-1 + eval('' + document.getElementById('seven1').innerHTML.split('<img').length));
for (ij=0; ij<player1arr.length; ij++) {
brhuh='';
if (everyfour > 0) {
if (eval(huhlen % 4) == 0) { brhuh='<br>'; }
}
document.getElementById('seven1').innerHTML+=brhuh + othersmaybe('<img draggable="true" ondragstart="goone(event.target);" onclick="goone(this);" style=width:80px; class="player1" id="' + player1arr[ij] + '" src="' + player1arr[ij] + '.png"></img>');
huhlen++;
brhuh='';
}
huhlen=eval(-1 + eval('' + document.getElementById('seven2').innerHTML.split('<img').length));
for (ij=0; ij<player1arr.length; ij++) {
brhuh='';
if (everyfour > 0) {
if (eval(huhlen % 4) == 0) { brhuh='<br>'; }
}
document.getElementById('seven2').innerHTML+=brhuh + othersmaybe('<img draggable="false" ondragstart="gotwo(event.target);" onclick="gotwo(this);" style=width:80px;filter:brightness(0); class="player2" id="' + player2arr[ij] + '" src="' + player2arr[ij] + '.png"></img>');
huhlen++;
brhuh='';
}
huhlen=eval(-1 + eval('' + document.getElementById('thstock').innerHTML.split('<img').length));
for (ij=0; ij<stockarr.length; ij++) {
brhuh='';
if (everyfour > 0) {
if (eval(huhlen % 7) == 0) { brhuh='<br>'; }
}
document.getElementById('thstock').innerHTML+=brhuh + othersmaybe('<img draggable="true" ondragstart="gostock(event.target);" onclick="gostock(this);" style=width:80px;filter:brightness(0); class="stock" id="' + stockarr[ij] + '" src="' + stockarr[ij] + '.png"></img>');
huhlen++;
brhuh='';
}
cgostock='youllneverfindthis';
was1ih=endgameone(document.getElementById('seven1').innerHTML);
was2ih=endgametwo(document.getElementById('seven2').innerHTML);
//if (iamleft || youareleft) {
// sendtotwo();
//}
if (everyfour > 0) {
setTimeout(function(){
window.scrollTo({ left: 0 }); //, eval('' + document.getElementById('mytable').getBoundingClientRect().top)); //{ right: 0 }); //eval(0.3 * screen.width) });
setTimeout(function(){
document.getElementById('thtop').className='left'; //document.getElementById('thtop').style.float='left';
lhis='#' + encodeURIComponent(document.body.innerHTML);
documentURL=document.URL.split('#')[0] + lhis;
prevlhis=lhis;
location.href=lhis;
}, 989);
}, 989);
} else {
lhis='#' + encodeURIComponent(document.body.innerHTML);
documentURL=document.URL.split('#')[0] + lhis;
prevlhis=lhis;
location.href=lhis;
}
}, 10000);
} else if (firstplayeris == 2) {
isplayer1go=false;
isplayer2go=true;
document.getElementById(obut.id.replace('2','1')).innerHTML='Please turn away now ...';
document.getElementById('seven1').innerHTML='';
document.getElementById('seven2').innerHTML='';
if (useiourbeep) { beep(); }
document.body.style.cursor='progress';
setTimeout(function(){ updatewo(); }, 7000);
setTimeout(function(){
document.body.style.cursor='pointer';
document.getElementById('buts2').innerHTML='<button id=reveal2 style=background-color:orange;>Click a tile below to start ...</button>';
document.getElementById('buts1').innerHTML='<button style="border:4px dashed yellow;" id=reveal1>Please turn away now ...</button>';
//beep();
huhlen=eval(-1 + eval('' + document.getElementById('seven2').innerHTML.split('<img').length));
for (ij=0; ij<player1arr.length; ij++) {
brhuh='';
if (everyfour > 0) {
if (eval(huhlen % 4) == 0) { brhuh='<br>'; }
}
document.getElementById('seven2').innerHTML+=brhuh + othersmaybe('<img draggable="true" ondragstart="gotwo(event.target);" onclick="gotwo(this);" style=width:80px; class="player2" id="' + player2arr[ij] + '" src="' + player2arr[ij] + '.png"></img>');
huhlen++;
brhuh='';
}
huhlen=eval(-1 + eval('' + document.getElementById('seven1').innerHTML.split('<img').length));
for (ij=0; ij<player1arr.length; ij++) {
brhuh='';
if (everyfour > 0) {
if (eval(huhlen % 4) == 0) { brhuh='<br>'; }
}
document.getElementById('seven1').innerHTML+=brhuh + othersmaybe('<img draggable="false" ondragstart="goone(event.target);" onclick="goone(this);" style=width:80px;filter:brightness(0); class="player1" id="' + player1arr[ij] + '" src="' + player1arr[ij] + '.png"></img>');
huhlen++;
brhuh='';
}
huhlen=eval(-1 + eval('' + document.getElementById('thstock').innerHTML.split('<img').length));
for (ij=0; ij<stockarr.length; ij++) {
brhuh='';
if (everyfour > 0) {
if (eval(huhlen % 7) == 0) { brhuh='<br>'; }
}
document.getElementById('thstock').innerHTML+=brhuh + othersmaybe('<img draggable="true" ondragstart="gostock(event.target);" onclick="gostock(this);" style=width:80px;filter:brightness(0); class="stock" id="' + stockarr[ij] + '" src="' + stockarr[ij] + '.png"></img>');
huhlen++;
brhuh='';
}
cgostock='youllneverfindthis';
was1ih=endgameone(document.getElementById('seven1').innerHTML);
was2ih=endgametwo(document.getElementById('seven2').innerHTML);
//if (iamleft || youareleft) {
// sendtoone();
//}
if (everyfour > 0) {
setTimeout(function(){
window.scrollTo({ left: eval('' + document.body.scrollWidth) }); //, eval('' + document.getElementById('mytable').getBoundingClientRect().top)); //{ right: 0 }); //eval(0.3 * screen.width) });
setTimeout(function(){
document.getElementById('thtop').className='right'; //document.getElementById('thtop').style.float='right';
lhis='#' + encodeURIComponent(document.body.innerHTML);
documentURL=document.URL.split('#')[0] + lhis;
prevlhis=lhis;
location.href=lhis;
}, 989);
}, 989);
} else {
lhis='#' + encodeURIComponent(document.body.innerHTML);
documentURL=document.URL.split('#')[0] + lhis;
prevlhis=lhis;
location.href=lhis;
}
}, 10000);
}
}
}
function turnawaynotfrom(obut) {
if (obut.id.indexOf('1') != -1) {
document.getElementById(obut.id.replace('1','2')).innerHTML='Please turn away now ...';
obut.innerHTML='Reveal Your Tiles Below ...';
} else if (obut.id.indexOf('2') != -1) {
document.getElementById(obut.id.replace('2','1')).innerHTML='Please turn away now ...';
obut.innerHTML='Reveal Your Tiles Below ...';
}
}
function lhcheck() {
var wasdstyle='';
lhis=('' + location.hash);
if (prevlhis != lhis) {
prevlhis=lhis;
wasdstyle=document.getElementById('dstyle').innerHTML;
documentURL=document.URL.split('#')[0] + lhis;
if (documentURL.indexOf('#' + encodeURIComponent('<h1')) != -1 || documentURL.indexOf('#' + encodeURIComponent(String.fromCharCode(10) + '<h1')) != -1 || documentURL.indexOf('#' + encodeURIComponent('<t')) != -1 || documentURL.indexOf('#' + encodeURIComponent(String.fromCharCode(10) + '<t')) != -1) {
if (documentURL.indexOf('#' + encodeURIComponent('<t')) != -1) {
if (documentURL.split('#' + encodeURIComponent('<t'))[1].substring(0,1) >= '0' && documentURL.split('#' + encodeURIComponent('<t'))[1].substring(0,1) <= '9') {
//alert(documentURL.split('.htm')[0] + '.php?intnum=' + documentURL.split('#' + encodeURIComponent('<t'))[1]);
document.getElementById('ifp').src=documentURL.split('.htm')[0] + '.php?intnum=' + documentURL.split('#' + encodeURIComponent('<t'))[1];
} else {
allbuthash=documentURL.split('#')[0];
document.getElementById('mytable').innerHTML='' + decodeURIComponent(documentURL.substring(documentURL.indexOf(encodeURIComponent('<t'))).replace(/\%7E/g,symbolize)) + topmore; //'<a target="_top" id=aemail style=display:none; href="mailto:?subject=Dominoes%20Game&body=">Email</a><a target="_top" id=asms style=display:none; href="sms:&body=">SMS</a>' + svgis;
cgostock='youllneverfindthis';
}
} else if (documentURL.indexOf('#' + encodeURIComponent(String.fromCharCode(10) + '<t')) != -1) {
if (documentURL.split('#' + encodeURIComponent(String.fromCharCode(10) + '<t'))[1].substring(0,1) >= '0' && documentURL.split('#' + encodeURIComponent(String.fromCharCode(10) + '<t'))[1].substring(0,1) <= '9') {
//alert(documentURL.split('.htm')[0] + '.php?intnum=' + documentURL.split('#' + encodeURIComponent(String.fromCharCode(10) + '<t'))[1]);
document.getElementById('ifp').src=documentURL.split('.htm')[0] + '.php?intnum=' + documentURL.split('#' + encodeURIComponent('<t'))[1];
} else {
allbuthash=documentURL.split('#')[0];
document.getElementById('mytable').innerHTML='' + decodeURIComponent(documentURL.substring(documentURL.indexOf(encodeURIComponent(String.fromCharCode(10) + '<t'))).replace(/\%7E/g,symbolize)) + topmore; //'<a target="_top" id=aemail style=display:none; href="mailto:?subject=Dominoes%20Game&body=">Email</a><a target="_top" id=asms style=display:none; href="sms:&body=">SMS</a>' + svgis;
cgostock='youllneverfindthis';
}
} else if (documentURL.indexOf('#' + encodeURIComponent('<h1')) != -1) {
allbuthash=documentURL.split('#')[0];
document.body.innerHTML='<h1' + decodeURIComponent(documentURL.split('#' + encodeURIComponent('<h1'))[1]) + topmore; //'<a target="_top" id=aemail style=display:none; href="mailto:?subject=Dominoes%20Game&body=">Email</a><a target="_top" id=asms style=display:none; href="sms:&body=">SMS</a>' + svgis;
cgostock='youllneverfindthis';
document.getElementById('dstyle').innerHTML=wasdstyle;
} else {
allbuthash=documentURL.split('#')[0];
document.body.innerHTML='<h1' + decodeURIComponent(documentURL.split('#' + encodeURIComponent(String.fromCharCode(10) + '<h1'))[1]) + topmore; //'<a target="_top" id=aemail style=display:none; href="mailto:?subject=Dominoes%20Game&body=">Email</a><a target="_top" id=asms style=display:none; href="sms:&body=">SMS</a>' + svgis;
document.getElementById('dstyle').innerHTML=wasdstyle;
}
thescore1=eval('' + document.getElementById('score1').innerHTML.replace('Score: ',''));
thescore2=eval('' + document.getElementById('score2').innerHTML.replace('Score: ',''));
if (documentURL.indexOf('winnerblurb=') != -1 && (documentURL + '&').indexOf('winnerblurb=&') == -1) {
//alert(87);
setTimeout(newremotegame, 3000);
} else {
//alert(487);
thetilearr.push('dominoes.png');
inithave();
}
pip1cnt=(location.search.split('pip1cnt=')[1] ? decodeURIComponent(location.search.split('pip1cnt=')[1].split('&')[0]) : pip1cnt);
pip2cnt=(location.search.split('pip2cnt=')[1] ? decodeURIComponent(location.search.split('pip2cnt=')[1].split('&')[0]) : pip2cnt);
}
}
}
function deal() {
var lv=0, rv=0;
trpl=document.getElementById('trplayers').innerHTML;
var topmore='<fo' + 'rm ' + document.body.innerHTML.split('<fo' + 'rm ')[1];
lhis=('' + location.hash);
prevlhis=lhis;
setInterval(lhcheck, 5000);
rev1=document.getElementById('reveal1').outerHTML;
rev2=document.getElementById('reveal2').outerHTML;
if (document.URL.indexOf('#' + encodeURIComponent('<h1')) != -1 || document.URL.indexOf('#' + encodeURIComponent(String.fromCharCode(10) + '<h1')) != -1 || document.URL.indexOf('#' + encodeURIComponent('<t')) != -1 || document.URL.indexOf('#' + encodeURIComponent(String.fromCharCode(10) + '<t')) != -1) {
if (document.URL.indexOf('#' + encodeURIComponent('<t')) != -1) {
if (document.URL.split('#' + encodeURIComponent('<t'))[1].substring(0,1) >= '0' && document.URL.split('#' + encodeURIComponent('<t'))[1].substring(0,1) <= '9') {
//alert(document.URL.split('.htm')[0] + '.php?intnum=' + document.URL.split('#' + encodeURIComponent('<t'))[1]);
document.getElementById('ifp').src=document.URL.split('.htm')[0] + '.php?intnum=' + document.URL.split('#' + encodeURIComponent('<t'))[1];
} else {
allbuthash=document.URL.split('#')[0];
document.getElementById('mytable').innerHTML='' + decodeURIComponent(document.URL.substring(document.URL.indexOf(encodeURIComponent('<t'))).replace(/\%7E/g,symbolize)) + topmore; //'<a target="_top" id=aemail style=display:none; href="mailto:?subject=Dominoes%20Game&body=">Email</a><a target="_top" id=asms style=display:none; href="sms:&body=">SMS</a>' + svgis;
cgostock='youllneverfindthis';
}
} else if (document.URL.indexOf('#' + encodeURIComponent(String.fromCharCode(10) + '<t')) != -1) {
if (document.URL.split('#' + encodeURIComponent(String.fromCharCode(10) + '<t'))[1].substring(0,1) >= '0' && document.URL.split('#' + encodeURIComponent(String.fromCharCode(10) + '<t'))[1].substring(0,1) <= '9') {
//alert(document.URL.split('.htm')[0] + '.php?intnum=' + document.URL.split('#' + encodeURIComponent(String.fromCharCode(10) + '<t'))[1]);
document.getElementById('ifp').src=document.URL.split('.htm')[0] + '.php?intnum=' + document.URL.split('#' + encodeURIComponent('<t'))[1];
} else {
allbuthash=document.URL.split('#')[0];
document.getElementById('mytable').innerHTML='' + decodeURIComponent(document.URL.substring(document.URL.indexOf(encodeURIComponent(String.fromCharCode(10) + '<t'))).replace(/\%7E/g,symbolize)) + topmore; //'<a target="_top" id=aemail style=display:none; href="mailto:?subject=Dominoes%20Game&body=">Email</a><a target="_top" id=asms style=display:none; href="sms:&body=">SMS</a>' + svgis;
cgostock='youllneverfindthis';
}
} else if (document.URL.indexOf('#' + encodeURIComponent('<h1')) != -1) {
allbuthash=document.URL.split('#')[0];
//alert(45);
document.body.innerHTML='<h1' + decodeURIComponent(document.URL.split('#' + encodeURIComponent('<h1'))[1]) + topmore; //'<a target="_top" id=aemail style=display:none; href="mailto:?subject=Dominoes%20Game&body=">Email</a><a target="_top" id=asms style=display:none; href="sms:&body=">SMS</a>' + svgis;
if (document.URL.indexOf('randtz=') != -1) {
if (document.getElementById('seven1').innerHTML == '' && document.getElementById('seven2').innerHTML == '') {
document.getElementById('trplayers').innerHTML=trpl;
}
thescore1=(location.search.split('score1=')[1] ? eval(location.search.split('score1=')[1].split('&')[0]) : thescore1);
thescore2=(location.search.split('score2=')[1] ? eval(location.search.split('score2=')[1].split('&')[0]) : thescore2);
document.getElementById('score1').innerHTML='Score: ' + thescore1;
document.getElementById('score2').innerHTML='Score: ' + thescore2;
document.getElementById('name1').innerHTML=(location.search.split('name1=')[1] ? decodeURIComponent(location.search.split('name1=')[1].split('&')[0]) : document.getElementById('name1').innerHTML);
document.getElementById('name2').innerHTML=(location.search.split('name2=')[1] ? decodeURIComponent(location.search.split('name2=')[1].split('&')[0]) : document.getElementById('name2').innerHTML);
cgostock='youllneverfindthis';
}
} else {
allbuthash=document.URL.split('#')[0];
//alert(245);
document.body.innerHTML='<h1' + decodeURIComponent(document.URL.split('#' + encodeURIComponent(String.fromCharCode(10) + '<h1'))[1]) + topmore; //'<a target="_top" id=aemail style=display:none; href="mailto:?subject=Dominoes%20Game&body=">Email</a><a target="_top" id=asms style=display:none; href="sms:&body=">SMS</a>' + svgis;
if (document.URL.indexOf('randtz=') != -1) {
if (document.getElementById('seven1').innerHTML == '' && document.getElementById('seven2').innerHTML == '') {
document.getElementById('trplayers').innerHTML=trpl;
}
thescore1=(location.search.split('score1=')[1] ? eval(location.search.split('score1=')[1].split('&')[0]) : thescore1);
thescore2=(location.search.split('score2=')[1] ? eval(location.search.split('score2=')[1].split('&')[0]) : thescore2);
document.getElementById('score1').innerHTML='Score: ' + thescore1;
document.getElementById('score2').innerHTML='Score: ' + thescore2;
document.getElementById('name1').innerHTML=(location.search.split('name1=')[1] ? decodeURIComponent(location.search.split('name1=')[1].split('&')[0]) : document.getElementById('name1').innerHTML);
document.getElementById('name2').innerHTML=(location.search.split('name2=')[1] ? decodeURIComponent(location.search.split('name2=')[1].split('&')[0]) : document.getElementById('name2').innerHTML);
cgostock='youllneverfindthis';
}
cgostock='youllneverfindthis';
}
thescore1=eval('' + document.getElementById('score1').innerHTML.replace('Score: ',''));
thescore2=eval('' + document.getElementById('score2').innerHTML.replace('Score: ',''));
if (document.URL.indexOf('winnerblurb=') != -1 && (document.URL + '&').indexOf('winnerblurb=&') == -1) {
//alert(87);
setTimeout(newremotegame, 3000);
} else {
//alert(487);
thetilearr.push('dominoes.png');
inithave();
}
pip1cnt=(location.search.split('pip1cnt=')[1] ? decodeURIComponent(location.search.split('pip1cnt=')[1].split('&')[0]) : pip1cnt);
pip2cnt=(location.search.split('pip2cnt=')[1] ? decodeURIComponent(location.search.split('pip2cnt=')[1].split('&')[0]) : pip2cnt);
}
var spare='';
spare=(location.search.split('iam=')[1] ? decodeURIComponent(location.search.split('iam=')[1].split('&')[0]) : '');
if (spare != '') { iam=spare; if (spare.indexOf('[') != -1) { iamcontact=spare.split('[')[1].split(']')[0]; } }
spare=(location.search.split('iamleft=')[1] ? decodeURIComponent(location.search.split('iamleft=')[1].split('&')[0]) : 'false');
if (spare == 'true') { iamleft=true; }
spare=(location.search.split('youare=')[1] ? decodeURIComponent(location.search.split('youare=')[1].split('&')[0]) : '');
if (spare != '') { youare=spare; if (spare.indexOf('[') != -1) { youarecontact=spare.split('[')[1].split(']')[0]; } }
spare=(location.search.split('youareleft=')[1] ? decodeURIComponent(location.search.split('youareleft=')[1].split('&')[0]) : 'false');
if (spare == 'true') { youareleft=true; }
if (allbuthash == '' && (iamleft || youareleft)) {
if (iam.indexOf(']') != -1) {
document.getElementById('name2').innerHTML=iam.split(']')[0] + ']';
} else {
document.getElementById('name2').innerHTML=iam;
}
if (youare.indexOf(']') != -1) {
document.getElementById('name1').innerHTML=youare.split(']')[0] + ']';
nameone(document.getElementById('name1'));
} else {
document.getElementById('name1').innerHTML=youare;
}
}
thescore1=(location.search.split('score1=')[1] ? eval(location.search.split('score1=')[1].split('&')[0]) : thescore1);
thescore2=(location.search.split('score2=')[1] ? eval(location.search.split('score2=')[1].split('&')[0]) : thescore2);
document.getElementById('score1').innerHTML='Score: ' + thescore1;
document.getElementById('score2').innerHTML='Score: ' + thescore2;
document.getElementById('name1').innerHTML=(location.search.split('name1=')[1] ? decodeURIComponent(location.search.split('name1=')[1].split('&')[0]) : document.getElementById('name1').innerHTML);
document.getElementById('name2').innerHTML=(location.search.split('name2=')[1] ? decodeURIComponent(location.search.split('name2=')[1].split('&')[0]) : document.getElementById('name2').innerHTML);
sbutih1=document.getElementById('buts1').innerHTML;
sbutih2=document.getElementById('buts2').innerHTML;
//alert(thetilearr.length);
if (document.URL.indexOf('randtz=') != -1) {
thetilearr=[];
}
if (eval('' + thetilearr.length) > 0) {
if (4 == 5) { alert('here with more'); }
} else {
lv=eval(-1 + Math.floor(Math.random() * 8));
rv=eval(-1 + Math.floor(Math.random() * 8));
var xz='dominoes_' + lv + '_' + rv;
while (eval('' + thetilearr.length) < 28) {
if (sofara.indexOf(';' + xz + ';') == -1 && rv >= lv && lv >= 0 && lv <= 6 && rv >= 0 && rv <= 6) {
//alert(xz);
thetilearr.push(xz);
if (eval('' + thetilearr.length) <= 7) {
pip1cnt+=lv;
pip1cnt+=rv;
player1arr.push(xz);
} else if (eval('' + thetilearr.length) <= 14) {
pip2cnt+=lv;
pip2cnt+=rv;
player2arr.push(xz);
} else {
stockarr.push(xz);
}
sofara+=';' + xz + ';';
}
lv=eval(-1 + Math.floor(Math.random() * 8));
rv=eval(-1 + Math.floor(Math.random() * 8));
xz='dominoes_' + lv + '_' + rv;
}
}
}
function nameone(ospan) {
var xospan=document.getElementById(ospan.id.replace('1','2'));
var ourprefix=xospan.innerText;
if (eval('' + ospan.innerText.split('[').length) == 2 && eval('' + ospan.innerText.split(']').length) == 2 && eval('' + ospan.innerText.split(',').length) == 1) {
if (eval('' + xospan.innerText.split('[').length) == 2 && eval('' + xospan.innerText.split(']').length) == 2 && eval('' + xospan.innerText.split(',').length) == 1) {
ospan.innerHTML=ospan.innerText + ',' + ourprefix;
}
}
if (eval('' + ospan.innerText.split('[').length) == 3 && eval('' + ospan.innerText.split(']').length) == 3 && eval('' + ospan.innerText.split(',').length) >= 2) {
iam=ospan.innerText.split('[')[0];
iamcontact=ospan.innerText.split('[')[1].split(']')[0];
iamleft=true;
youare=ospan.innerText.split('[')[1].split(',')[eval(-1 + ospan.innerText.split('[')[1].split(',').length)];
youarecontact=ospan.innerText.split('[')[2].split(']')[0];
youareleft=false;
document.getElementById('fone').innerHTML='<a target=_blank href="' + (iamcontact.indexOf('@') != -1 ? 'mailto:' + iamcontact + '?subject=Dominoes%20Game' : 'sms:' + iamcontact) + '">' + iam + '</a>' + ' In Play';
document.getElementById('ftwo').innerHTML='<a target=_blank href="' + (youarecontact.indexOf('@') != -1 ? 'mailto:' + youarecontact + '?subject=Dominoes%20Game' : 'sms:' + youarecontact) + '">' + youare + '</a>' + ' In Play';
document.getElementById('name2').innerHTML=ospan.innerHTML.split(',')[1];
ospan.innerHTML=ospan.innerText.split(',')[0];
if (youarecontact.indexOf('@') != -1) {
document.getElementById('aemail').href=document.getElementById('aemail').href.replace('&body=', encodeURIComponent(' ... invited by ' + ospan.innerText.split(',')[0]) + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?type=' + othertype + '&rand=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&pip1cnt=' + pip1cnt + '&pip2cnt=' + pip2cnt + '&iam=' + encodeURIComponent(youare + '[' + youarecontact + ']') + '&iamleft=' + encodeURIComponent('' + youareleft) + '&youare=' + encodeURIComponent(iam + '[' + iamcontact + ']') + '&youareleft=' + encodeURIComponent('' + iamleft) + '#') + encodeURIComponent(document.body.innerHTML.split('<fo' + 'rm ')[0].split('<a' + ' target="_top"')[0]));
} else if (youarecontact.trim() != '' && youarecontact.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,'') == '') {
if (11 == 1) {
iamleft=false;
alert('Sorry, we have to work out means to reduce message lengths, but an email address could work.');
} else {
document.getElementById('asms').href=document.getElementById('asms').href + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '#' + encodeURIComponent(document.getElementById('mytable').innerHTML));
}
} else {
iamleft=false;
}
} else {
document.getElementById('fone').innerHTML=ospan.innerText + ' In Play';
}
}
function nametwo(ospan) {
var xospan=document.getElementById(ospan.id.replace('2','1'));
var ourprefix=xospan.innerText;
if (eval('' + ospan.innerText.split('[').length) == 2 && eval('' + ospan.innerText.split(']').length) == 2 && eval('' + ospan.innerText.split(',').length) == 1) {
if (eval('' + xospan.innerText.split('[').length) == 2 && eval('' + xospan.innerText.split(']').length) == 2 && eval('' + xospan.innerText.split(',').length) == 1) {
ospan.innerHTML=ospan.innerText + ',' + ourprefix;
}
}
if (eval('' + ospan.innerText.split('[').length) == 3 && eval('' + ospan.innerText.split(']').length) == 3 && eval('' + ospan.innerText.split(',').length) >= 2) {
iam=ospan.innerText.split('[')[0];
iamcontact=ospan.innerText.split('[')[1].split(']')[0];
iamleft=false;
youare=ospan.innerText.split('[')[1].split(',')[eval(-1 + ospan.innerText.split('[')[1].split(',').length)];
youarecontact=ospan.innerText.split('[')[2].split(']')[0];
youareleft=true;
document.getElementById('ftwo').innerHTML='<a target=_blank href="' + (iamcontact.indexOf('@') != -1 ? 'mailto:' + iamcontact + '?subject=Dominoes%20Game' : 'sms:' + iamcontact) + '">' + iam + '</a>' + ' In Play';
document.getElementById('fone').innerHTML='<a target=_blank href="' + (youarecontact.indexOf('@') != -1 ? 'mailto:' + youarecontact + '?subject=Dominoes%20Game' : 'sms:' + youarecontact) + '">' + youare + '</a>' + ' In Play';
document.getElementById('name1').innerHTML=ospan.innerText.split(',')[1];
ospan.innerHTML=ospan.innerText.split(',')[0];
if (youarecontact.indexOf('@') != -1) {
document.getElementById('aemail').href=document.getElementById('aemail').href.replace('&body=', encodeURIComponent(' ... invited by ' + ospan.innerText.split(',')[0]) + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?type=' + othertype + '&rand=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&pip1cnt=' + pip1cnt + '&pip2cnt=' + pip2cnt + '&iam=' + encodeURIComponent(youare + '[' + youarecontact + ']') + '&iamleft=' + encodeURIComponent('' + youareleft) + '&youare=' + encodeURIComponent(iam + '[' + iamcontact + ']') + '&youareleft=' + encodeURIComponent('' + iamleft) + '#') + encodeURIComponent(document.body.innerHTML.split('<fo' + 'rm ')[0].split('<a' + ' target="_top"')[0]));
} else if (youarecontact.trim() != '' && youarecontact.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,'') == '') {
if (11 == 1) {
youareleft=false;
alert('Sorry, we have to work out means to reduce message lengths, but an email address could work.');
} else {
document.getElementById('asms').href=document.getElementById('asms').href + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '#' + encodeURIComponent(document.getElementById('mytable').innerHTML));
}
} else {
youareleft=false;
}
} else {
document.getElementById('ftwo').innerHTML=ospan.innerText + ' In Play';
}
}
function typeize(oselevt) {
var osel=oselevt.target;
var urlis=[], sofari=',', kzero=-1;
if (osel.value != '') {
if (osel.value.toLowerCase() == 'planet') { coverword='contain'; } else { coverword='cover'; }
if (osel.value.toLowerCase() == 'email') {
var anchor = document.createElement('a');
anchor.target='_top';
anchor.href = 'mailto:?subject=' + (othertype == '' ? 'Dominoes' : othertype) + '%20Game%20snapshot&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?type=' + othertype + '&rand=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '#' + encodeURIComponent(document.body.innerHTML.substring(document.body.innerHTML.indexOf('<h1')).split('<fo' + 'rm ')[0].split('<a' + ' target="_top"')[0]));
document.body.appendChild(anchor);
anchor.click();
anchor.remove();
} else if (osel.value.toLowerCase() == yourplacetz.toLowerCase() || osel.value.toLowerCase().split('/')[eval(-1 + osel.value.split('/').length)] == 'timezone') {
othertype=decodeURIComponent(osel.value.replace('/Timezone','').split('/')[eval(-1 + osel.value.replace('/Timezone','').split('/').length)]).replace('_',' ').replace('_',' ').replace('_',' ').replace('_',' ');
//alert(othertype);
if (osel.value.substring(0,1) == osel.value.substring(0,1).toUpperCase()) { // display submenu
//alert('submenu ' + selx + 'px');
if (document.URL.indexOf('&' + oeq) == -1) {
document.getElementById('sele').style.position='absolute';
//osel.value='';
osel.style.width='290px';
document.getElementById('sele').style.left='' + eval(-30 + eval('' + osel.getBoundingClientRect().right)) + 'px';
document.getElementById('sele').style.top='' + eval(36 + eval('' + osel.getBoundingClientRect().top)) + 'px';
document.getElementById('sele').style.zIndex='211';
document.getElementById('sele').style.display='block';
return false;
}
} else {
//alert('local');
if (osel.value.toLowerCase() == yourplacetz.toLowerCase()) {
document.getElementById('gtype').innerHTML=decodeURIComponent(osel.value.split('/')[eval(-1 + osel.value.split('/').length)]).replace('_',' ').replace('_',' ').replace('_',' ').replace('_',' ').replace('_',' ');
} else {
document.getElementById('gtype').innerHTML=decodeURIComponent(yourplacetz.split('/')[eval(-1 + yourplacetz.split('/').length)]).replace('_',' ').replace('_',' ').replace('_',' ').replace('_',' ').replace('_',' ');
}
if (yourplaceoh != '') {
urlis=yourplaceoh.split('URL(');
//alert(urlis.length);
if (eval('' + urlis.length) > 1) {
for (var izero=1; izero<urlis.length; izero++) {
if (eval('' + urlis.length) >= 10 && izero <= 7) {
kzero=eval(1 + Math.floor(Math.random() * eval(-2 + urlis.length)));
while (sofari.indexOf(',' + kzero + ',') != -1) {
kzero=eval(1 + Math.floor(Math.random() * eval(-2 + urlis.length)));
}
sofari+='' + kzero + ',';
document.getElementById('dstyle').innerHTML+='<sty' + 'le> .dominoes' + eval(eval(-1 + izero) % 7) + ':after { background-image:url(' + urlis[kzero].split(')')[0] + '); background-size:' + coverword + '; background-repeat:no-repeat; color:transparent; } </sty' + 'le>';
} else if (eval('' + urlis.length) >= 10 && izero > 7) {
sofari=sofari;
} else {
document.getElementById('dstyle').innerHTML+='<sty' + 'le> .dominoes' + eval(eval(-1 + izero) % 7) + ':after { background-image:url(' + urlis[izero].split(')')[0] + '); background-size:' + coverword + '; background-repeat:no-repeat; color:transparent; } </sty' + 'le>';
}
}
}
}
document.getElementById('thtop').innerHTML='';
document.getElementById('seven1').innerHTML='';
document.getElementById('seven2').innerHTML='';
document.getElementById('thstock').innerHTML='';
location.href=document.URL.split('?')[0].split('#')[0] + '?type=' + othertype + '&randtz=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&name1=' + encodeURIComponent(document.getElementById('name1').innerHTML) + '&name2=' + encodeURIComponent(document.getElementById('name2').innerHTML) + '#' + encodeURIComponent(document.body.innerHTML.substring(document.body.innerHTML.indexOf('<h1')).replace(document.getElementById('reveal1').outerHTML,rev1).replace(document.getElementById('reveal2').outerHTML,rev2));
}
} else {
othertype=osel.value.replace('Dominoes','');
newstockgame();
}
osel.value='';
}
}
function anal(iois) {
//alert(iois.src);
var urlis=[], sofari=',', kzero=-1;
if (iois.src.indexOf('/colour_wheel.htm') != -1) {
if (iois != null) {
aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
aiois=iois;
if (aconto.document) { aconto = aconto.document; }
//alert(aconto.body.outerHTML);
if (aconto.getElementById('sele')) {
document.getElementById('sele').innerHTML=aconto.getElementById('sele').innerHTML;
}
}
}
} else if (iois.src.indexOf('&ccodetoo=y') != -1) {
//alert(1);
var qwr='' + Intl.DateTimeFormat().resolvedOptions().timeZone;
//alert(qwr.length);
if (qwr.length != 0) {
//alert(qwr.length);
yourplacetz=qwr.substring(0,1).toLowerCase() + qwr.substring(1);
document.getElementById('mysel').innerHTML+='<option value="' + qwr.substring(0,1).toUpperCase() + qwr.substring(1) + '">Other TimeZones (further to yours below)</option>';
document.getElementById('mysel').innerHTML+='<option value="' + qwr.substring(0,1).toLowerCase() + qwr.substring(1) + '/Timezone">' + qwr.split('/')[eval(-1 + qwr.split('/').length)] + '</option>';
iois.src=iois.src.split('?')[0] + '?tzexact=' + encodeURIComponent(qwr.substring(0,1).toLowerCase() + qwr.substring(1)) + '&tznickname=' + encodeURIComponent(qwr.split('/')[eval(-1 + qwr.split('/').length)]);
}
} else if (iois.src.indexOf('&tznickname=') != -1) {
if (iois != null) {
aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
aiois=iois;
if (aconto.document) { aconto = aconto.document; }
//alert(aconto.body.outerHTML);
if (iois.src.indexOf('&other=') != -1) {
yourplaceoh=aconto.body.outerHTML;
//alert(yourplaceoh);
if (document.URL.indexOf('&' + oeq) == -1) {
if (yourplaceoh != '') {
urlis=yourplaceoh.split('URL(');
//alert(urlis.length);
if (eval('' + urlis.length) > 1) {
for (var izero=1; izero<urlis.length; izero++) {
if (eval('' + urlis.length) >= 10 && izero <= 7) {
kzero=eval(1 + Math.floor(Math.random() * eval(-2 + urlis.length)));
while (sofari.indexOf(',' + kzero + ',') != -1) {
kzero=eval(1 + Math.floor(Math.random() * eval(-2 + urlis.length)));
}
sofari+='' + kzero + ',';
document.getElementById('dstyle').innerHTML+='<sty' + 'le> .dominoes' + eval(eval(-1 + izero) % 7) + ':after { background-image:url(' + urlis[kzero].split(')')[0] + '); background-size:' + coverword + '; background-repeat:no-repeat; color:transparent; } </sty' + 'le>';
} else if (eval('' + urlis.length) >= 10 && izero > 7) {
sofari=sofari;
} else {
document.getElementById('dstyle').innerHTML+='<sty' + 'le> .dominoes' + eval(eval(-1 + izero) % 7) + ':after { background-image:url(' + urlis[izero].split(')')[0] + '); background-size:' + coverword + '; background-repeat:no-repeat; color:transparent; } </sty' + 'le>';
}
}
}
//alert(document.getElementById('dstyle').innerHTML);
document.getElementById('thtop').innerHTML='';
document.getElementById('seven1').innerHTML='';
document.getElementById('seven2').innerHTML='';
document.getElementById('thstock').innerHTML='';
location.href=document.URL.split('?')[0].split('#')[0] + '?type=' + othertype + '&other=y&randtz=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&name1=' + encodeURIComponent(document.getElementById('name1').innerHTML) + '&name2=' + encodeURIComponent(document.getElementById('name2').innerHTML) + '#' + encodeURIComponent(document.body.innerHTML.substring(document.body.innerHTML.indexOf('<h1')).replace(document.getElementById('reveal1').outerHTML,rev1).replace(document.getElementById('reveal2').outerHTML,rev2));
}
}
} else {
yourplaceoh=aconto.body.outerHTML;
iois.src='/HTMLCSS/colour_wheel.html';
}
}
}
}
}
function changemode(oosel) {
var qwr=oosel.value;
othertype=decodeURIComponent(oosel.value.replace('/Timezone','').split('/')[eval(-1 + oosel.value.replace('/Timezone','').split('/').length)]).replace('_',' ').replace('_',' ').replace('_',' ').replace('_',' ');
document.getElementById('ifblanktwo').src='/PHP/fgc/?tzexact=' + encodeURIComponent(qwr.substring(0,1).toLowerCase() + qwr.substring(1)) + '&other=y&tznickname=' + encodeURIComponent(qwr.split('/')[eval(-1 + qwr.split('/').length)]);
//location.href=document.URL.split('?')[0].split('#')[0] + '?type=' + othertype + '&randtz=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&name1=' + encodeURIComponent(document.getElementById('name1').innerHTML) + '&name2=' + encodeURIComponent(document.getElementById('name2').innerHTML) + '#' + encodeURIComponent(document.body.innerHTML.substring(document.body.innerHTML.indexOf('<h1')).replace(document.getElementById('reveal1').outerHTML,rev1).replace(document.getElementById('reveal2').outerHTML,rev2));
}
setTimeout(function(){ oeq='youllneverfindthis='; }, 30000);
setTimeout(function(){
if (document.URL.indexOf('randtz=') != -1) {
//alert(document.getElementById('gtype').innerText.replace(/\ /g,'_') + ' ... ' + document.getElementById('sele').innerHTML);
if (document.getElementById('sele').innerHTML.indexOf('/' + document.getElementById('gtype').innerText.replace(/\ /g,'_') + '"') != -1) {
//alert(187);
document.getElementById('gtype').title="Click for window.open('https://www.rjmprogramming.com.au/HTMLCSS/colour_wheel.html?mode=" + document.getElementById('sele').innerHTML.split('/' + document.getElementById('gtype').innerText.replace(/\ /g,'_') + '"')[0].split('"')[eval(-1 + document.getElementById('sele').innerHTML.split('/' + document.getElementById('gtype').innerText.replace(/\ /g,'_') + '"')[0].split('"').length)] + '/' + document.getElementById('gtype').innerText.replace(/\ /g,'_') + "','_blank','top=100,left=50,width=1200,height=800');";
//alert('287:' + document.getElementById('gtype').title);
document.getElementById('gtype').onclick=function(){
window.open(document.getElementById('gtype').title.split("window.open('https:")[1].split("'")[0].split(',')[0],'_blank','top=100,left=50,width=1200,height=800');
}
}
}
}, 31000);
orflags();
</script>
</head>
<body ondblclick="alert(document.body.title);" onload=deal(); border=1 style="background:linear-gradient(rgba(255,255,255,0.97),rgba(255,255,255,0.97)),URL(dominoes.png);background-size:contain;" title="Player names are editable and if you use name such as RM[rmetcalfe15@gmail.com] (collaboration can occur with similar other Player change) or RM[rmetcalfe15@gmail.com],RMet[rmetcalfe@rjmprogramming.com.au] (collaboration occurs with other Player name changed accordingly).">
<h1 id=myh1><span id=gtype>Dominoes</span><sup> <select onclick="selx=event.screenX; sely=event.screenY;" style="width:40px;" title="Game types" id=mysel onchange=typeize(event);><option value=''>++</option><option value='Dominoes'>Dominoes</option><option value='Shape'>Shape</option><option value='Animal'>Animal</option><option value='Food'>Food</option><option value='Transport'>Transport</option><option value='Activity'>Activity</option><option value='Mathematics'>Mathematics</option><option value='Moon'>Moon</option><option value='Astrology'>Astrology</option><option value='Flag'>Flag</option><option value='Chess'>Chess</option><option value='Number'>Number</option><option value='Email'>Email ...</option><option value='Planet'>Planet</option><option value='Card'>Card</option></select></sup> Horizontal Block <span id=sgame>Game</span></h1>
<h3>RJM Programming - August, 2026 ... thanks to <a target="_blank" href="//www.gettyimages.com.au/search/2/image?mediatype=illustration&phrase=playing+dominoes+clip+art" rel="noopener">this useful link</a></h3>
<table style=width:95%;height:78%; cellpadding=10 id="mytable"><tbody>
<tr id=truppertop><td id=tdupper colspan=2><h4 id=myh4><font color=red>Playing Area</font> ... <font color=blue>Stock</font>... <font color=purple id=fone>Player 1 In Play</font> ... <font color=green id=ftwo>Player 2 In Play</font> <button onclick="event.stopPropagation(); bellzero=bellzero.replace(' ','x').replace('0',' ').replace('x','0'); if (this.innerHTML.indexOf('</strike>') != -1) { this.innerHTML=this.innerHTML.replace('<strike>','').replace('</strike>',''); } else { this.innerHTML='<strike>' + this.innerHTML + '</strike>'; } ourbeep(); " id=cbbeep title="If used, one beep indicates left hand player should turn away (and right hand player can rejoin), else two beeps indicates right hand player should turn away (and left hand player can rejoin)."><strike>Beep</strike></button></h4></td></tr>
<tr id=trtop style="height:40%;"><th id=thtop colspan=2 style="border:4px solid red;"></th></tr>
<tr id=trplayers style="height:10%;"><th id=thplayer1><span onfocus=focusone(this); title="Is editable and if you use name such as RM[rmetcalfe15@gmail.com] (collaboration can occur with similar Player 2 change) or RM[rmetcalfe15@gmail.com],RMet[rmetcalfe@rjmprogramming.com.au] (collaboration occurs with Player 2 name changed accordingly)." onblur=nameone(this); contenteditable=true id=name1>Player 1</span> <span id=score1 style=font-size:8px;>Score: 0</span> <span id=buts1><button style="border:4px solid green;background-color:yellow;" onmouseover="turnawaynotfrom(this);" onclick=reveal(this); id=reveal1>Reveal Your Tiles Below ...</button></span></th><th id=thplayer2><span onfocus=focustwo(this); title="Is editable and if you use name such as RM[rmetcalfe15@gmail.com] (collaboration can occur with similar Player 1 change) or RM[rmetcalfe15@gmail.com],RMet[rmetcalfe@rjmprogramming.com.au] (collaboration occurs with Player 1 name changed accordingly)." onblur=nametwo(this); contenteditable=true id=name2>Player 2</span> <span id=score2 style=font-size:8px;>Score: 0</span> <span id=buts2><button style="border:4px solid green;background-color:yellow;" onmouseover="turnawaynotfrom(this);" onclick=reveal(this); id=reveal2>Reveal Your Tiles Below ...</button></span></th></tr>
<tr id=sevens style="height:20%;"><td id=seven1 style="border:4px solid purple;"></td><td id=seven2 style="border:4px solid green;"></td></tr>
<tr id=trstock style="height:25%;"><td id=thstock colspan=2 style="border:4px solid blue;"></th></tr>
</tbody></table>
<select title="Thanks to Wikipedia.org for TimeZone and Planet images ..." style=display:none; id="sele" onchange="changemode(this);"></select>
<a id=preifp href='#myh1' style='display:none;position:absolute;display:none;left:calc(100% - 900px);top:116%;'>Back to top</a><br>
<iframe name=ifblank id=ifblank style='position:absolute;display:none;left:calc(100% - 900px);top:120%;width:900px;height:900px;' src='/About_Us.html'></iframe>
<iframe style='display:none;' onload="anal(this);" id=ifblanktwo src='/PHP/fgc/?tzlist=y&ccodetoo=y'></iframe>
<input type=hidden id=lastwords title='' value=''></input>
<div id=dstyle></div>
<form style=display:none; target=ifp action='./dominoes_block_game.php' method='POST'>
<input type=hidden name=makenum title='' id=makenum value=''></input><input type=submit id=sifp style=display:none; value=Submit></input></form>
<iframe name=ifp id=ifp style=display:none; src='/About_Us.html'></iframe>
<a target="_top" id=aemail style=display:none; href='mailto:?subject=Dominoes%20Game&body='>Email</a>
<a target="_top" id=asms style=display:none; href='sms:&body='>SMS</a>
<svg xmlns="http://w3.org" style="position: absolute; width: 0; height: 0;" aria-hidden="true">
<filter id="edge-detection">
<!-- Calculates intensity differences between neighboring pixels -->
<feConvolveMatrix
order="3 3"
kernelMatrix="-1 -2 -1
0 0 0
1 2 1"
preserveAlpha="true" />
</filter>
</svg>
</body>
</html>