15,16d14 < 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'; 20,46c18,19 < var pip1cnt=0, pip2cnt=0, winner='', winnerby=0, thescore1=0, thescore2=0; < var bellzero=' ', winnerblurb='', everyfour=-1; < var iam='', iamcontact='', iamleft=false, youare='', youarecontact='', youareleft=false, allbuthash='', brhuh=''; < < if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i) && eval(String.fromCharCode(32).trim() + navigator.maxTouchPoints) > 0) { < everyfour=4; < } < < function brmaybe(inid) { < var inidih='', inidiharr=[], outinidih=''; < if (everyfour > 0) { < if (document.getElementById('' + inid)) { < brhuh=''; < inidih=document.getElementById('' + inid).innerHTML; < inidiharr=inidih.split(' var pip1cnt=0, pip2cnt=0, winner='', winerby=0, thescore1=0, thescore2=0; > var bellzero=' '; 48,100d20 < 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] + '?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(' 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] + '?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(' 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 newremotegame() { //(blurb) { < 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); < } < } < } < 104,106d23 < if (allbuthash != '') { < location.href=allbuthash.replace('rand=', 'rand=8').replace(/\&pip/g, 'pap'); < } else { 108d24 < } 135,136d50 < winnerblurb='Congratulations should go to ' + winner + '! You scored ' + winnerby + ' points. OK starts a new game.'; < sendtotwo(); 149,150d62 < winnerblurb='Congratulations should go to ' + winner + '! You scored ' + winnerby + ' points. OK starts a new game.'; < sendtoone(); 156,177d67 < 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=' if (isplayer1go) { 457,459d322 < if (iamleft || youareleft) { < sendtotwo(); < } 478,480d340 < if (iamleft || youareleft) { < sendtoone(); < } 486d345 < var huhlen=0; 502d360 < huhlen=eval(-1 + eval('' + document.getElementById('seven1').innerHTML.split(' 0) { < if (eval(huhlen % 4) == 0) { brhuh='
'; } < } < document.getElementById('seven1').innerHTML+=brhuh + ''; < huhlen++; < brhuh=''; --- > document.getElementById('seven1').innerHTML+=''; 512d363 < huhlen=eval(-1 + eval('' + document.getElementById('seven2').innerHTML.split(' 0) { < if (eval(huhlen % 4) == 0) { brhuh='
'; } < } < document.getElementById('seven2').innerHTML+=brhuh + ''; < huhlen++; < brhuh=''; --- > document.getElementById('seven2').innerHTML+=''; 522d366 < huhlen=eval(-1 + eval('' + document.getElementById('thstock').innerHTML.split(' 0) { < if (eval(huhlen % 7) == 0) { brhuh='
'; } < } < document.getElementById('thstock').innerHTML+=brhuh + ''; < huhlen++; < brhuh=''; --- > document.getElementById('thstock').innerHTML+=''; 534,536d371 < //if (iamleft || youareleft) { < // sendtotwo(); < //} 551d385 < huhlen=eval(-1 + eval('' + document.getElementById('seven2').innerHTML.split(' 0) { < if (eval(huhlen % 4) == 0) { brhuh='
'; } < } < document.getElementById('seven2').innerHTML+=brhuh + ''; < huhlen++; < brhuh=''; --- > document.getElementById('seven2').innerHTML+=''; 561d388 < huhlen=eval(-1 + eval('' + document.getElementById('seven1').innerHTML.split(' 0) { < if (eval(huhlen % 4) == 0) { brhuh='
'; } < } < document.getElementById('seven1').innerHTML+=brhuh + ''; < huhlen++; < brhuh=''; --- > document.getElementById('seven1').innerHTML+=''; 571d391 < huhlen=eval(-1 + eval('' + document.getElementById('thstock').innerHTML.split(' 0) { < if (eval(huhlen % 7) == 0) { brhuh='
'; } < } < document.getElementById('thstock').innerHTML+=brhuh + ''; < huhlen++; < brhuh=''; --- > document.getElementById('thstock').innerHTML+=''; 583,585d396 < //if (iamleft || youareleft) { < // sendtoone(); < //} 603,667c414,415 < var topmore='= '0' && document.URL.split('#' + encodeURIComponent('