10,406d9 < var woopurl='', lastwoopurl=''; < < function templatemsr(onepar, elempar) { < var ismonthmsr=true; < var oneparps=onepar.split('%'); < var palettemsr='', twomsr=2, threemsr=2, midsmsr='', imidsmsr=0, atmsr='', nomore=false; < var adatemsr=new Date(); < var frommsr='', tomsrstr='', ikmsr=0; < if (oneparps.length > 2) { < frommsr='%' + oneparps[1] + '%'; < for (ikmsr=2; ikmsr= '0' && palettemsr.substring(imidsmsr).substring(0,1) <= '9')) { < midsmsr+=palettemsr.substring(imidsmsr).substring(0,1); < } else if (midsmsr == midsmsr.trim() && palettemsr.substring(imidsmsr).substring(0,1) >= '0' && palettemsr.substring(imidsmsr).substring(0,1) <= '9') { < midsmsr+=palettemsr.substring(imidsmsr).substring(0,1); < if (oneparps[twomsr].toLowerCase().indexOf('y') == 0) { < if (oneparps[twomsr].toLowerCase().split('m')[0].split('d')[0].split('h')[0].length == midsmsr.length) { < console.log('MIDsmsr=' + midsmsr); < if (midsmsr.length == 2) { < if (threemsr == twomsr) { < adatemsr.setSeconds(0); < adatemsr.setMinutes(0); < adatemsr.setHours(0); < } < adatemsr.setYear(midsmsr); < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < midsmsr=''; < } else if (midsmsr.length == 4) { < console.log('MIDSmsr=' + midsmsr); < if (threemsr == twomsr) { < console.log('MIDSMr=' + midsmsr); < adatemsr.setSeconds(0); < adatemsr.setMinutes(0); < adatemsr.setHours(0); < } < console.log('MIDSMR=' + midsmsr); < adatemsr.setFullYear(midsmsr); < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < console.log('oneparps[twomsr]=' + oneparps[twomsr]); < if (midsmsr == midsmsr.trim() && midsmsr != '') { palettemsr=palettemsr.split(midsmsr)[1]; if (oneparps[twomsr] != '') { imidsmsr=-1; } else { nomore=true; } console.log('new palettemsr=*' + palettemsr + '*'); } < midsmsr=''; < } < } < } else if (oneparps[twomsr].toLowerCase().indexOf('m') == 0) { < console.log('mMIDsmsr=' + midsmsr); < if (oneparps[twomsr].toLowerCase().split('y')[0].split('d')[0].split('h')[0].split('h')[0].split('s')[0].length == midsmsr.length) { < if (midsmsr.length == 2) { < if (ismonthmsr) { < ismonthmsr=false; < adatemsr.setMonth(eval(-1 + eval('' + midsmsr))); < } else { < ismonthmsr=true; < adatemsr.setMinutes(midsmsr); < } < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < console.log('oNeparps[twomsr]=' + oneparps[twomsr]); < if (midsmsr == midsmsr.trim() && midsmsr != '') { palettemsr=palettemsr.split(midsmsr)[1]; if (oneparps[twomsr] != '') { imidsmsr=-1; } else { nomore=true; } console.log('new palettemsr=*' + palettemsr + '*'); } < midsmsr=''; < } < } < } else if (oneparps[twomsr].toLowerCase().indexOf('d') == 0) { < console.log('dMIDsmsr=' + midsmsr); < if (oneparps[twomsr].toLowerCase().split('y')[0].split('m')[0].split('h')[0].split('s')[0].length == midsmsr.length) { < if (midsmsr.length == 2) { < adatemsr.setDate(midsmsr); < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < if (midsmsr == midsmsr.trim() && midsmsr != '') { palettemsr=palettemsr.split(midsmsr)[1]; if (oneparps[twomsr] != '') { imidsmsr=-1; } else { nomore=true; } console.log('new palettemsr=*' + palettemsr + '*'); } < midsmsr=''; < } < } < } else if (oneparps[twomsr].toLowerCase().indexOf('h') == 0) { < console.log('hMIDsmsr=' + midsmsr); < if (oneparps[twomsr].toLowerCase().split('y')[0].split('m')[0].split('d')[0].split('s')[0].length == midsmsr.length) { < if (midsmsr.length == 2) { < adatemsr.setSeconds(0); < adatemsr.setMinutes(0); < adatemsr.setHours(midsmsr); < ismonthmsr=false; < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < if (midsmsr == midsmsr.trim() && midsmsr != '') { palettemsr=palettemsr.split(midsmsr)[1]; if (oneparps[twomsr] != '') { imidsmsr=-1; } else { nomore=true; } console.log('new palettemsr=*' + palettemsr + '*'); } < midsmsr=''; < } < } < } else if (oneparps[twomsr].toLowerCase().indexOf('s') == 0) { < console.log('sMIDsmsr=' + midsmsr); < if (oneparps[twomsr].toLowerCase().split('y')[0].split('m')[0].split('d')[0].split('s')[0].split('h')[0].length == midsmsr.length) { < if (midsmsr.length == 2) { < adatemsr.setSeconds(midsmsr); < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < if (midsmsr == midsmsr.trim() && midsmsr != '') { palettemsr=palettemsr.split(midsmsr)[1]; if (oneparps[twomsr] != '') { imidsmsr=-1; } else { nomore=true; } console.log('new palettemsr=*' + palettemsr + '*'); } < midsmsr=''; < } < } < } < //} else if (midsmsr.trim() == '' && (palettemsr.substring(imidsmsr).substring(0,1) < '0' || palettemsr.substring(imidsmsr).substring(0,1) > '9')) { < // midsmsr=midsmsr; < } else { < if (midsmsr != '') { midsmsr+=' '; } < } < } < console.log('midsmsr=*' + midsmsr + '*'); < < } < twomsr++; < } < } < console.log(adatemsr.toDateString() + ' ' + adatemsr.toTimeString()); < tomsrstr=atmsr + adatemsr.toDateString() + ' ' + adatemsr.toTimeString(); < } < } < } else if (oneparps[1] == 'class') { // %id%@yyyymmdd%hhmm% < if (('' + elempar.className).replace(/^undefined$/g,'').replace(/^null$/g,'').trim() != '') { < palettemsr='' + elempar.className; < console.log('class=' + elempar.className); < if (oneparps.length > 3) { < if (oneparps[twomsr] == 'outerHTML') { < palettemsr=elempar.outerHTML; < twomsr++; < } else if (oneparps[twomsr] == 'innerHTML') { < palettemsr=elempar.innerHTML; < twomsr++; < } < threemsr=twomsr; < while (twomsr < eval(-1 + eval('' + oneparps.length))) { < nomore=false; < oneparps[twomsr]=oneparps[twomsr].replace('@',''); < console.log('oneparps[' + twomsr + ']=' + oneparps[twomsr]); < if ((oneparps[twomsr].toLowerCase().indexOf('yy') != -1 || oneparps[twomsr].toLowerCase().indexOf('hh') != -1) && palettemsr != '') { < midsmsr=''; < for (imidsmsr=0; imidsmsr= '0' && palettemsr.substring(imidsmsr).substring(0,1) <= '9')) { < midsmsr+=palettemsr.substring(imidsmsr).substring(0,1); < } else if (midsmsr == midsmsr.trim() && palettemsr.substring(imidsmsr).substring(0,1) >= '0' && palettemsr.substring(imidsmsr).substring(0,1) <= '9') { < midsmsr+=palettemsr.substring(imidsmsr).substring(0,1); < if (oneparps[twomsr].toLowerCase().indexOf('y') == 0) { < if (oneparps[twomsr].toLowerCase().split('m')[0].split('d')[0].split('h')[0].length == midsmsr.length) { < console.log('MIDsmsr=' + midsmsr); < if (midsmsr.length == 2) { < if (threemsr == twomsr) { < adatemsr.setSeconds(0); < adatemsr.setMinutes(0); < adatemsr.setHours(0); < } < adatemsr.setYear(midsmsr); < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < midsmsr=''; < } else if (midsmsr.length == 4) { < console.log('MIDSmsr=' + midsmsr); < if (threemsr == twomsr) { < console.log('MIDSMr=' + midsmsr); < adatemsr.setSeconds(0); < adatemsr.setMinutes(0); < adatemsr.setHours(0); < } < console.log('MIDSMR=' + midsmsr); < adatemsr.setFullYear(midsmsr); < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < console.log('oneparps[twomsr]=' + oneparps[twomsr]); < if (midsmsr == midsmsr.trim() && midsmsr != '') { palettemsr=palettemsr.split(midsmsr)[1]; if (oneparps[twomsr] != '') { imidsmsr=-1; } else { nomore=true; } console.log('new palettemsr=*' + palettemsr + '*'); } < midsmsr=''; < } < } < } else if (oneparps[twomsr].toLowerCase().indexOf('m') == 0) { < console.log('mMIDsmsr=' + midsmsr); < if (oneparps[twomsr].toLowerCase().split('y')[0].split('d')[0].split('h')[0].split('h')[0].split('s')[0].length == midsmsr.length) { < if (midsmsr.length == 2) { < if (ismonthmsr) { < ismonthmsr=false; < adatemsr.setMonth(eval(-1 + eval('' + midsmsr))); < } else { < ismonthmsr=true; < adatemsr.setMinutes(midsmsr); < } < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < console.log('oNeparps[twomsr]=' + oneparps[twomsr]); < if (midsmsr == midsmsr.trim() && midsmsr != '') { palettemsr=palettemsr.split(midsmsr)[1]; if (oneparps[twomsr] != '') { imidsmsr=-1; } else { nomore=true; } console.log('new palettemsr=*' + palettemsr + '*'); } < midsmsr=''; < } < } < } else if (oneparps[twomsr].toLowerCase().indexOf('d') == 0) { < console.log('dMIDsmsr=' + midsmsr); < if (oneparps[twomsr].toLowerCase().split('y')[0].split('m')[0].split('h')[0].split('s')[0].length == midsmsr.length) { < if (midsmsr.length == 2) { < adatemsr.setDate(midsmsr); < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < if (midsmsr == midsmsr.trim() && midsmsr != '') { palettemsr=palettemsr.split(midsmsr)[1]; if (oneparps[twomsr] != '') { imidsmsr=-1; } else { nomore=true; } console.log('new palettemsr=*' + palettemsr + '*'); } < midsmsr=''; < } < } < } else if (oneparps[twomsr].toLowerCase().indexOf('h') == 0) { < console.log('hMIDsmsr=' + midsmsr); < if (oneparps[twomsr].toLowerCase().split('y')[0].split('m')[0].split('d')[0].split('s')[0].length == midsmsr.length) { < if (midsmsr.length == 2) { < adatemsr.setSeconds(0); < adatemsr.setMinutes(0); < adatemsr.setHours(midsmsr); < ismonthmsr=false; < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < if (midsmsr == midsmsr.trim() && midsmsr != '') { palettemsr=palettemsr.split(midsmsr)[1]; if (oneparps[twomsr] != '') { imidsmsr=-1; } else { nomore=true; } console.log('new palettemsr=*' + palettemsr + '*'); } < midsmsr=''; < } < } < } else if (oneparps[twomsr].toLowerCase().indexOf('s') == 0) { < console.log('sMIDsmsr=' + midsmsr); < if (oneparps[twomsr].toLowerCase().split('y')[0].split('m')[0].split('d')[0].split('s')[0].split('h')[0].length == midsmsr.length) { < if (midsmsr.length == 2) { < adatemsr.setSeconds(midsmsr); < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < if (midsmsr == midsmsr.trim() && midsmsr != '') { palettemsr=palettemsr.split(midsmsr)[1]; if (oneparps[twomsr] != '') { imidsmsr=-1; } else { nomore=true; } console.log('new palettemsr=*' + palettemsr + '*'); } < midsmsr=''; < } < } < } < //} else if (midsmsr.trim() == '' && (palettemsr.substring(imidsmsr).substring(0,1) < '0' || palettemsr.substring(imidsmsr).substring(0,1) > '9')) { < // midsmsr=midsmsr; < } else { < if (midsmsr != '') { midsmsr+=' '; } < } < } < console.log('midsmsr=*' + midsmsr + '*'); < < } < twomsr++; < } < } < console.log(adatemsr.toDateString() + ' ' + adatemsr.toTimeString()); < tomsrstr=atmsr + adatemsr.toDateString() + ' ' + adatemsr.toTimeString(); < } < } < } else if (oneparps[1] == 'value') { // %value%outerHTML%@yyyymmdd%hhmm% < if (('' + elempar.value).replace(/^undefined$/g,'').replace(/^null$/g,'').trim() != '') { < tomsrstr=elempar.value; < } else if (oneparps.length > 3) { < if (oneparps[twomsr] == 'outerHTML') { < palettemsr=elempar.outerHTML; < twomsr++; < } else if (oneparps[twomsr] == 'innerHTML') { < palettemsr=elempar.innerHTML; < twomsr++; < } < console.log('palettemsr=' + palettemsr); < threemsr=twomsr; < while (twomsr < eval(-1 + eval('' + oneparps.length))) { < nomore=false; < oneparps[twomsr]=oneparps[twomsr].replace('@',''); < console.log('oneparps[' + twomsr + ']=' + oneparps[twomsr]); < if ((oneparps[twomsr].toLowerCase().indexOf('yy') != -1 || oneparps[twomsr].toLowerCase().indexOf('hh') != -1) && palettemsr != '') { < midsmsr=''; < for (imidsmsr=0; imidsmsr= '0' && palettemsr.substring(imidsmsr).substring(0,1) <= '9')) { < midsmsr+=palettemsr.substring(imidsmsr).substring(0,1); < } else if (midsmsr == midsmsr.trim() && palettemsr.substring(imidsmsr).substring(0,1) >= '0' && palettemsr.substring(imidsmsr).substring(0,1) <= '9') { < midsmsr+=palettemsr.substring(imidsmsr).substring(0,1); < if (oneparps[twomsr].toLowerCase().indexOf('y') == 0) { < if (oneparps[twomsr].toLowerCase().split('m')[0].split('d')[0].split('h')[0].length == midsmsr.length) { < console.log('MIDsmsr=' + midsmsr); < if (midsmsr.length == 2) { < if (threemsr == twomsr) { < adatemsr.setSeconds(0); < adatemsr.setMinutes(0); < adatemsr.setHours(0); < } < adatemsr.setYear(midsmsr); < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < midsmsr=''; < } else if (midsmsr.length == 4) { < console.log('MIDSmsr=' + midsmsr); < if (threemsr == twomsr) { < console.log('MIDSMr=' + midsmsr); < adatemsr.setSeconds(0); < adatemsr.setMinutes(0); < adatemsr.setHours(0); < } < console.log('MIDSMR=' + midsmsr); < adatemsr.setFullYear(midsmsr); < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < console.log('oneparps[twomsr]=' + oneparps[twomsr]); < if (midsmsr == midsmsr.trim() && midsmsr != '') { palettemsr=palettemsr.split(midsmsr)[1]; if (oneparps[twomsr] != '') { imidsmsr=-1; } else { nomore=true; } console.log('new palettemsr=*' + palettemsr + '*'); } < midsmsr=''; < } < } < } else if (oneparps[twomsr].toLowerCase().indexOf('m') == 0) { < console.log('mMIDsmsr=' + midsmsr); < if (oneparps[twomsr].toLowerCase().split('y')[0].split('d')[0].split('h')[0].split('h')[0].split('s')[0].length == midsmsr.length) { < if (midsmsr.length == 2) { < if (ismonthmsr) { < ismonthmsr=false; < adatemsr.setMonth(eval(-1 + eval('' + midsmsr))); < } else { < ismonthmsr=true; < adatemsr.setMinutes(midsmsr); < } < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < console.log('oNeparps[twomsr]=' + oneparps[twomsr]); < if (midsmsr == midsmsr.trim() && midsmsr != '') { palettemsr=palettemsr.split(midsmsr)[1]; if (oneparps[twomsr] != '') { imidsmsr=-1; } else { nomore=true; } console.log('new palettemsr=*' + palettemsr + '*'); } < midsmsr=''; < } < } < } else if (oneparps[twomsr].toLowerCase().indexOf('d') == 0) { < console.log('dMIDsmsr=' + midsmsr); < if (oneparps[twomsr].toLowerCase().split('y')[0].split('m')[0].split('h')[0].split('s')[0].length == midsmsr.length) { < if (midsmsr.length == 2) { < adatemsr.setDate(midsmsr); < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < if (midsmsr == midsmsr.trim() && midsmsr != '') { palettemsr=palettemsr.split(midsmsr)[1]; if (oneparps[twomsr] != '') { imidsmsr=-1; } else { nomore=true; } console.log('new palettemsr=*' + palettemsr + '*'); } < midsmsr=''; < } < } < } else if (oneparps[twomsr].toLowerCase().indexOf('h') == 0) { < console.log('hMIDsmsr=' + midsmsr); < if (oneparps[twomsr].toLowerCase().split('y')[0].split('m')[0].split('d')[0].split('s')[0].length == midsmsr.length) { < if (midsmsr.length == 2) { < adatemsr.setSeconds(0); < adatemsr.setMinutes(0); < adatemsr.setHours(midsmsr); < ismonthmsr=false; < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < if (midsmsr == midsmsr.trim() && midsmsr != '') { palettemsr=palettemsr.split(midsmsr)[1]; if (oneparps[twomsr] != '') { imidsmsr=-1; } else { nomore=true; } console.log('new palettemsr=*' + palettemsr + '*'); } < midsmsr=''; < } < } < } else if (oneparps[twomsr].toLowerCase().indexOf('s') == 0) { < console.log('sMIDsmsr=' + midsmsr); < if (oneparps[twomsr].toLowerCase().split('y')[0].split('m')[0].split('d')[0].split('s')[0].split('h')[0].length == midsmsr.length) { < if (midsmsr.length == 2) { < adatemsr.setSeconds(midsmsr); < oneparps[twomsr]=oneparps[twomsr].substring(midsmsr.length); < if (midsmsr == midsmsr.trim() && midsmsr != '') { palettemsr=palettemsr.split(midsmsr)[1]; if (oneparps[twomsr] != '') { imidsmsr=-1; } else { nomore=true; } console.log('new palettemsr=*' + palettemsr + '*'); } < midsmsr=''; < } < } < } < //} else if (midsmsr.trim() == '' && (palettemsr.substring(imidsmsr).substring(0,1) < '0' || palettemsr.substring(imidsmsr).substring(0,1) > '9')) { < // midsmsr=midsmsr; < } else { < if (midsmsr != '') { midsmsr+=' '; } < } < } < console.log('midsmsr=*' + midsmsr + '*'); < < } < twomsr++; < } < } < console.log(adatemsr.toDateString() + ' ' + adatemsr.toTimeString()); < tomsrstr=atmsr + adatemsr.toDateString() + ' ' + adatemsr.toTimeString(); < console.log('tomsrstr=' + tomsrstr); < } < } < console.log('frommsr,tomsrstr=' + frommsr + ',' + tomsrstr); < console.log(repdatemsr(onepar.replace(frommsr, tomsrstr))); < return repdatemsr(onepar.replace(frommsr, tomsrstr)); < } < console.log('frommsr , tomsrstr=' + frommsr + ' , ' + tomsrstr); < return onepar; < } < < function repdatemsr(indstr) { < var outdstr=indstr; < outdstr=outdstr.replace(/\:/g,' ').replace(/\ 00\ \(/g,' ').replace(/\(/g,'').replace(/\)/g,''); < outdstr=outdstr.replace(' Sun ', ' Sunday ').replace(' Mon ', ' Monday ').replace(' Tue ', ' Tuesday ').replace(' Wed ', ' Wednesday ').replace(' Thu ', ' Thursday ').replace(' Fri ', ' Friday ').replace(' Sat ', ' Saturday '); < outdstr=outdstr.replace(' Jan ', ' January ').replace(' Feb ', ' February ').replace(' Mar ', ' March ').replace(' Apr ', ' April ').replace(' Jun ', ' June ').replace(' Jul ', ' July ').replace(' Aug ', ' August ').replace(' Sep ', ' September ').replace(' Oct ', ' October ').replace(' Nov ', ' November ').replace(' Dec ', ' December '); < if (outdstr.indexOf(' GMT-') != -1) { outdstr=outdstr.replace(' 00 GMT-' + outdstr.split(' GMT-')[1].split(' ')[0] + ' ', ' ').replace(' GMT-' + outdstr.split(' GMT-')[1].split(' ')[0] + ' ', ' '); } < if (outdstr.indexOf(' GMT+') != -1) { outdstr=outdstr.replace(' 00 GMT+' + outdstr.split(' GMT+')[1].split(' ')[0] + ' ', ' ').replace(' GMT+' + outdstr.split(' GMT+')[1].split(' ')[0] + ' ', ' '); } < return outdstr; < } < < function lwmsr() { < lastwoopurl=''; < } 410,415c13 < woopurl='HTTP://localhost:8888/macos_say_record.php?andclose=y&docronwork=say' + encodeURIComponent(minusvmsr) + '%20' + encodeURIComponent(templatemsr(event.target.getAttribute('data-foundcommentary'),event.target)); < if (lastwoopurl != woopurl) { < wo_ismsr=window.open(woopurl, 'ifh', 'top=50,left=50,width=500,height=500'); //'_blank', 'top=50,left=50,width=500,height=500'); < lastwoopurl=woopurl; < setTimeout(lwmsr, 2000); < } --- > wo_ismsr=window.open('HTTP://localhost:8888/macos_say_record.php?andclose=y&docronwork=say' + encodeURIComponent(minusvmsr) + '%20' + encodeURIComponent(event.target.getAttribute('data-foundcommentary')), 'ifh', 'top=50,left=50,width=500,height=500'); //'_blank', 'top=50,left=50,width=500,height=500'); 418,423c16 < woopurl='HTTP://localhost:8888/macos_say_record.php?andclose=y&docronwork=say' + encodeURIComponent(minusvmsr) + '%20' + encodeURIComponent(templatemsr(event.target.getAttribute('data-commentary'),event.target)); < if (lastwoopurl != woopurl) { < wo_ismsr=window.open(woopurl, 'ifh', 'top=50,left=50,width=500,height=500'); //'_blank', 'top=50,left=50,width=500,height=500'); < lastwoopurl=woopurl; < setTimeout(lwmsr, 2000); < } --- > wo_ismsr=window.open('HTTP://localhost:8888/macos_say_record.php?andclose=y&docronwork=say' + encodeURIComponent(minusvmsr) + '%20' + encodeURIComponent(event.target.getAttribute('data-commentary')), 'ifh', 'top=50,left=50,width=500,height=500'); //'_blank', 'top=50,left=50,width=500,height=500'); 432,436c25 < woopurl='HTTP://localhost:8888/macos_say_record.php?andclose=y&docronwork=say' + encodeURIComponent(minusvmsr) + '%20Title%20is%20' + encodeURIComponent(event.target.title); < if (lastwoopurl != woopurl) { < wo_ismsr=window.open(woopurl, 'ifh', 'top=50,left=50,width=500,height=500'); //'_blank', 'top=50,left=50,width=500,height=500'); < lastwoopurl=woopurl; < setTimeout(lwmsr, 2000); --- > wo_ismsr=window.open('HTTP://localhost:8888/macos_say_record.php?andclose=y&docronwork=say' + encodeURIComponent(minusvmsr) + '%20Title%20is%20' + encodeURIComponent(event.target.title), 'ifh', 'top=50,left=50,width=500,height=500'); //'_blank', 'top=50,left=50,width=500,height=500'); 438d26 < } 440,444c28 < woopurl='HTTP://localhost:8888/macos_say_record.php?andclose=y&docronwork=say' + encodeURIComponent(minusvmsr) + '%20Value%20is%20' + encodeURIComponent(event.target.value); < if (lastwoopurl != woopurl) { < wo_ismsr=window.open(woopurl, 'ifh', 'top=50,left=50,width=500,height=500'); //'_blank', 'top=50,left=50,width=500,height=500'); < lastwoopurl=woopurl; < setTimeout(lwmsr, 2000); --- > wo_ismsr=window.open('HTTP://localhost:8888/macos_say_record.php?andclose=y&docronwork=say' + encodeURIComponent(minusvmsr) + '%20Value%20is%20' + encodeURIComponent(event.target.value), 'ifh', 'top=50,left=50,width=500,height=500'); //'_blank', 'top=50,left=50,width=500,height=500'); 446d29 < } 448,452c31 < woopurl='HTTP://localhost:8888/macos_say_record.php?andclose=y&docronwork=say' + encodeURIComponent(minusvmsr) + '%20InnerHTML%20is%20' + encodeURIComponent((event.target.innerText || event.target.contentWindow || event.target.contentDocument)); < if (lastwoopurl != woopurl) { < wo_ismsr=window.open(woopurl, 'ifh', 'top=50,left=50,width=500,height=500'); //'_blank', 'top=50,left=50,width=500,height=500'); < lastwoopurl=woopurl; < setTimeout(lwmsr, 2000); --- > wo_ismsr=window.open('HTTP://localhost:8888/macos_say_record.php?andclose=y&docronwork=say' + encodeURIComponent(minusvmsr) + '%20InnerHTML%20is%20' + encodeURIComponent((event.target.innerText || event.target.contentWindow || event.target.contentDocument)), 'ifh', 'top=50,left=50,width=500,height=500'); //'_blank', 'top=50,left=50,width=500,height=500'); 454d32 < } 497d74 < if (('' + elsare[iels].getAttribute('data-done')).replace(/^undefined$/g,'').replace(/^null$/g,'').trim() == '') { 501c78 < //console.log('yes, array'); --- > console.log('yes, array'); 513c90 < //console.log('yes more, array'); --- > console.log('yes more, array'); 524c101 < //console.log('yes more, Array'); --- > console.log('yes more, Array'); 533c110 < //console.log('yes More, array'); --- > console.log('yes More, array'); 538c115 < //console.log('Yes more, array'); --- > console.log('Yes more, array'); 552,560d128 < } < < if (document.head.innerHTML.indexOf('macos_say_record.js?ongoing=') != -1) { < elsare[iels].setAttribute('data-done', 'y'); < } < < } < if (document.head.innerHTML.indexOf('macos_say_record.js?ongoing=') != -1) { < setTimeout(dostuffmsr, 10000); 562c130 < } --- > } 661d228 < if (document.body.innerHTML) { 664,666d230 < } else { < setTimeout(onlmsr, 1000); < }