9,10d8 < // Check for proper PHP recall setting of correct select element value < 13d10 < var ths=[], thsihorig=[], thsih=[]; 17,31d13 < < if (!String.fromCodePoint) { // thanks to http://xahlee.info/js/js_unicode_code_point.html < // ES6 Unicode Shims 0.1 , © 2012 Steven Levithan , MIT License < String.fromCodePoint = function fromCodePoint () { < var chars = [], point, offset, units, i; < for (i = 0; i < arguments.length; ++i) { < point = arguments[i]; < offset = point - 0x10000; < units = point > 0xFFFF ? [0xD800 + (offset >> 10), 0xDC00 + (offset & 0x3FF)] : [point]; < chars.push(String.fromCharCode.apply(null, units)); < } < return chars.join(""); < } < } < 94,95d75 < var lastn=''; < var butcnt=0; 120d99 < lastn=divarr[ij]; 124c103 < if (divarr[ij] != lastn) { lastn=divarr[ij]; foundlist+='`' + divarr[ij]; } --- > foundlist+='`' + divarr[ij]; 129,131c108 < foundlist=''; < lastn=nosq(divarr[ij]); < butcnt++; --- > foundlist=''; 134,136c111,112 < } else if (found && foundlist.indexOf('') == -1) { < if (nosq(divarr[ij]) != lastn) { lastn=nosq(divarr[ij]); foundlist+='`' + ''; } < butcnt++; --- > } else if (found && foundlist.indexOf('') == -1) { > foundlist+='`' + ''; 142,150c118 < if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) { < document.getElementById('viapcontent').style.opacity='1.0'; < document.getElementById('viapcontent').style.zIndex='7'; < } < if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) { < document.getElementById('viapcontent').innerHTML=ifmdo(foundlist.replace(/\`/g,'')); < } else { < document.getElementById('viapcontent').innerHTML=ifmdo(foundlist.replace(/\`/g,'
')); < } --- > document.getElementById('viapcontent').innerHTML=foundlist.replace(/\`/g,'
'); 154,166c122 < if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) { < document.getElementById('viapcontent').style.opacity='0.7'; < document.getElementById('viapcontent').style.zIndex='-7'; < } < if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) { < document.getElementById('viapcontent').style.opacity='1.0'; < document.getElementById('viapcontent').style.zIndex='7'; < } < if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) { < document.getElementById('viapcontent').innerHTML=ifmdo(foundlist.replace(/\`/g,'')); < } else { < document.getElementById('viapcontent').innerHTML=ifmdo(foundlist.replace(/\`/g,'
')); < } --- > document.getElementById('viapcontent').innerHTML=foundlist.replace(/\`/g,'
'); 174,217d129 < function ifmdo(inbrs) { < var isn=true; < var thenu=''; < var thes=''; < if (5 == 5 || navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { < //alert(98); < for (var ijh=1; ijh<=lastdivid.length; ijh++) { < if (isn && lastdivid.slice(-ijh).substring(0,1) >= '0' && lastdivid.slice(-ijh).substring(0,1) <= '9') { < thenu='' + lastdivid.slice(-ijh).substring(0,1) + thenu; < } else if (lastdivid.slice(-ijh).substring(0,1) < '0' || lastdivid.slice(-ijh).substring(0,1) > '9') { < if (ijh == 1) { thenu='0'; } < isn=false; < } < } < thenu=eval('' + thenu); < //alert(lastdivid + ' gets us ' + eval(-1 + eval('' + thenu))); < //alert(inbrs); < if (document.getElementById('th' + eval(0 + thenu))) { < if (thsih[eval(0 + thenu)].indexOf('<') > 0) { thes=thsih[eval(0 + thenu)].replace(thsih[eval(0 + thenu)].split('<')[0],''); } < document.getElementById('th' + eval(0 + thenu)).innerHTML='' + thes; < } < } < return inbrs; < } < < function onc(othis) { < if (othis.value.trim().length > 0) { < if (document.getElementById(othis.value)) { < document.getElementById(othis.value).click(); < } else if (othis.innerHTML.indexOf(' value="' + othis.value + '" ') != -1) { < if (othis.innerHTML.split(' value="' + othis.value + '" ')[1].split('>')[0].indexOf('click="') != -1) { < eval(othis.innerHTML.split(' value="' + othis.value + '" ')[1].split('click="')[1].split('"')[0].replace('athree(this,','atwo(')); < } else { < eval(othis.innerHTML.split(' value="' + othis.value + '" ')[0].split('<')[eval(-1 + othis.innerHTML.split(' value="' + othis.value + '" ')[0].split('<').length)].split('click="')[1].split('"')[0].replace('athree(this,','atwo(')); < } < } < var iparent='' + othis.id.replace('selth',''); < othis.value=' '; < var realih=thsih[eval('' + iparent)].split('<')[0]; < //document.getElementById('th' + iparent).innerHTML=thsih[eval('' + iparent)].substring(eval('' + realih.length)).replace('>. <','>' + realih + '<'); < document.getElementById('th' + iparent).innerHTML=thsihorig[eval('' + iparent)]; < } < } < 233,243d144 < function athree(bone, wk, wkv) { < if (bone.value.trim() != '') { < document.getElementById(bone.value).click(); < document.getElementById(bone).value=' '; < } < } < < function nosq(inm) { < return inm.replace(/\'/g, "' + String.fromCharCode(39) + '"); < } < 246d146 < console.log('Wk=' + wk + ' and Wkv=' + wkv); 254d153 < document.getElementById(wk.replace('wikiautocompletion','th').replace(/^th$/g,'th0')).innerHTML=thsihorig[eval('' + iparent)]; 256d154 < console.log('wk=' + wk + ' and wkv=' + wkv); 261d158 < if (("" + document.getElementById(wk).onblur).indexOf('{') != -1) { 263d159 < } 270d165 < document.getElementById(wk.replace('wikiautocompletion','th').replace(/^th$/g,'th0')).innerHTML=thsihorig[eval('' + iparent)]; 275,276d169 < var lastn=''; < var butcnt=0; 301d193 < lastn=divarr[ij]; 305c197 < if (divarr[ij] != lastn) { lastn=divarr[ij]; foundlist+='`' + divarr[ij]; } --- > foundlist+='`' + divarr[ij]; 311,313c203 < foundlist=''; < lastn=nosq(divarr[ij]); < butcnt++; --- > foundlist=''; 316,320c206,208 < } else if (found && foundlist.indexOf('') == -1) { < //foundlist+='`' + ''; < if (nosq(divarr[ij]) != lastn) { lastn=nosq(divarr[ij]); foundlist+='`' + ''; } < butcnt++; < } --- > } else if (found && foundlist.indexOf('') == -1) { > foundlist+='`' + ''; > } 325,333c213 < if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) { < document.getElementById('viapcontent').style.opacity='1.0'; < document.getElementById('viapcontent').style.zIndex='7'; < } < if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) { < document.getElementById('viapcontent').innerHTML=ifmdo(foundlist.replace(/\`/g,'')); < } else { < document.getElementById('viapcontent').innerHTML=ifmdo(foundlist.replace(/\`/g,'
')); < } --- > document.getElementById('viapcontent').innerHTML=foundlist.replace(/\`/g,'
'); 337,345c217 < if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) { < document.getElementById('viapcontent').style.opacity='1.0'; < document.getElementById('viapcontent').style.zIndex='7'; < } < if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) { < document.getElementById('viapcontent').innerHTML=ifmdo(foundlist.replace(/\`/g,'')); < } else { < document.getElementById('viapcontent').innerHTML=ifmdo(foundlist.replace(/\`/g,'
')); < } --- > document.getElementById('viapcontent').innerHTML=foundlist.replace(/\`/g,'
'); 556,572d427 < function postlook() { < if (ths.length == 0) { < var gebtns=document.getElementsByTagName('th'); < for (var ig=0; ig') != -1) { < iti=gebtns[ig].innerHTML.split('')[0].split('>')[1]; < thsihorig.push(iti + gebtns[ig].innerHTML); < thsih.push(iti + gebtns[ig].innerHTML.replace(' style="',' style="width:10px;display:inline-block;').replace('>' + iti + '<','>. <')); < } else { < thsih.push(gebtns[ig].innerHTML); < } < } < } < } < 574,594d428 < var iti=''; < if (5 == 5 || navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { < if (ths.length == 0) { < setTimeout(postlook, 2000); < if (1 == 7) { < var gebtns=document.getElementsByTagName('th'); < for (var ig=0; ig') != -1) { < iti=gebtns[ig].innerHTML.split('')[0].split('>')[1]; < thsih.push(iti + gebtns[ig].innerHTML.replace(' style="',' style="width:10px;display:inline-block;').replace('>' + iti + '<','>.<')); < } else { < thsih.push(gebtns[ig].innerHTML); < } < } < } < //alert('' + thsih.length); < //alert(thsih[eval(-1 + thsih.length)] + ' ... ' + gebtns[eval(-1 + thsih.length)].outerHTML); < } < } 610,611d443 < document.getElementById('adot').innerHTML=(document.getElementById('adot').innerHTML.split(String.fromCodePoint(8987))[0].split('&')[0] + '.').replace(/\.\./g,'.'); < 615,622d446 < if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) { < document.getElementById('viapcontent').style.opacity='0.7'; < document.getElementById('viapcontent').style.zIndex='-7'; < } < if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) { < document.getElementById('viapcontent').style.left='0%'; < document.getElementById('viapcontent').style.top='350px'; < } else { 625d448 < } 657,668d479 < < function fixmobilewidth() { < if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { < var rectt=document.getElementsByTagName('table')[0].getBoundingClientRect(); < //alert('before:' + navigator.userAgent + ' table width=' + rectt.width + ' has screen.width=' + screen.width + ' and window.innerWidth=' + window.innerWidth); < //document.getElementById("myviewport").setAttribute("content", "width=device-width, initial-scale=0.85, minimum-scale=0.1, maximum-scale=8, user-scalable=yes"); < //alert(eval(-0.35 + eval('' + (window.orientation == 0 ? window.innerHeight: window.innerWidth)) / eval('' + rectt.width))); < document.getElementById("myviewport").setAttribute("content", "width=device-width, initial-scale=" + eval(-0.35 + eval('' + (window.orientation == 0 ? window.innerHeight: window.innerWidth)) / eval('' + rectt.width)) + ", minimum-scale=0.1, maximum-scale=8, user-scalable=yes"); < < //alert('after:' + navigator.userAgent + ' table width=' + rectt.width + ' has screen.width=' + screen.width + ' and window.innerWidth=' + window.innerWidth); < } < } 670,671c481 < if (1 == 2) { setTimeout(fixmobilewidth, 5000); } < setTimeout(lookviapcontent, 1000); \ No newline at end of file --- > setTimeout(lookviapcontent, 1000); \ No newline at end of file