4d3 < 13d11 < 18c16 < var ok=false, divelem=null, tao=null; --- > var ok=false; 34,49c32 < var thissuff=''; < var nextsuff='2'; < var xfill=''; < var acontod=null, divelem=null, gtao=null; < var startid='s0', endid='s'; < var thissid=''; < var canedit=false; < var contprefix='', contsuffix=''; < var notfirsttime=true; < var spanolast=null; < var itchanged=false, ifnum=0, ifrnum=0; < var hd='"'; < var xname=''; < var origxname=xname; < var makeuppermost=null; < --- > 59,72d41 < < function documentgetElementById(insid) { < if (!acontod) { acontod=document; } < if (acontod.getElementById(insid)) { < thissid=insid; < acontod.getElementById(insid).style.backgroundColor='#daddfa'; < setTimeout(function(){ acontod.getElementById(thissid).style.backgroundColor='#fadadd'; }, 1500); < } < return acontod.getElementById(insid); < } < < function massage(tv) { < var tscnt=0, itv=0; < tv=inline_linking(tv); 74,192d42 < var tlls=tv.split('
'); < < < canedit=false; < contprefix=('').replace('',''); < contsuffix=''; < if (document.getElementById('dcont')) { < document.getElementById('dcont').className='edit-non-able'; < } < < if (document.getElementById('tdleft')) { < document.getElementById('tdleft').style.backgroundRepeat='no-repeat'; < document.getElementById('tdleft').className='tdnone'; < if (document.getElementById('scont')) { < document.getElementById('tdleft').title=document.getElementById('scont').innerHTML; < } < } < var proposedcs=contsuffix.replace('',''); < var tslist=[], selis=''; < for (itv=0; itv= 3) { < tslist.push(tlls[itv]); < selis=selis.replace('', ''); < parent.endid='s' + tscnt; < tscnt++; < } < } < tscnt=0; < var bprev=' '; < var baftr=''; < for (itv=0; itv= 3) { < if ( tv.indexOf('
' + tlls[itv] + '
') != -1 && canedit) { < if (proposedcs != '') { contprefix=proposedcs; } < proposedcs=''; < tv=tv.replace('
' + tlls[itv] + '
', contsuffix + '
 ' + bprev.replace('s',('s' + eval(-1 + tscnt)).replace('s-1','s0')) + selis.replace('thesel', 's' + tscnt + ' data-orv=s' + tscnt).replace('>' + tlls[itv].replace(/\ /g,' ') + '<', ' selected>' + tlls[itv].replace(/\ /g,' ') + '<').replace('>" + (tlls[itv].replace(/\ /g,' ') == '' ? tlls[itv].replace(/\ /g,' ') : 'Journal timestamps ...') + '↘️ ↘️' + '
' + contsuffix.replace('
', '')); < } else if (tv.indexOf(tlls[itv] + '
') != -1 && canedit) { < tv=tv.replace(tlls[itv] + '
', ' ' + bprev.replace('s',('s' + eval(-1 + tscnt)).replace('s-1','s0')) + selis.replace('thesel', 's' + tscnt + ' data-orv=s' + tscnt).replace('>' + tlls[itv].replace(/\ /g,' ') + '<', ' selected>' + tlls[itv].replace(/\ /g,' ') + '<').replace('>" + (tlls[itv].replace(/\ /g,' ') == '' ? tlls[itv].replace(/\ /g,' ') : 'Journal timestamps ...') + '↘️ ↘️' + '
' + contsuffix.replace('
', '')); < proposedcs=''; < } else if (tv.indexOf('
' + tlls[itv]) != -1 && canedit) { < if (proposedcs != '') { contprefix=proposedcs; } < proposedcs=''; < tv=tv.replace('
' + tlls[itv], '
', contsuffix + '
 ' + bprev.replace('s',('s' + eval(-1 + tscnt)).replace('s-1','s0')) + selis.replace('thesel', 's' + tscnt + ' data-orv=s' + tscnt).replace('>' + tlls[itv].replace(/\ /g,' ') + '<', ' selected>' + tlls[itv].replace(/\ /g,' ') + '<').replace('>" + (tlls[itv].replace(/\ /g,' ') == '' ? tlls[itv].replace(/\ /g,' ') : 'Journal timestamps ...') + '↘️ ↘️' + '' + contsuffix.replace('
', '')); < proposedcs=''; < } else { < tv=tv.replace(tlls[itv], ' ' + bprev.replace('s',('s' + eval(-1 + tscnt)).replace('s-1','s0')) + selis.replace('thesel', 's' + tscnt + ' data-orv=s' + tscnt).replace('>' + tlls[itv].replace(/\ /g,' ') + '<', ' selected>' + tlls[itv].replace(/\ /g,' ') + '<').replace('>" + (tlls[itv].replace(/\ /g,' ') == '' ? tlls[itv].replace(/\ /g,' ') : 'Journal timestamps ...') + '↘️ ↘️'); < proposedcs=''; < } < tscnt++; < } < } < < setTimeout(function(){ var onerect=document.getElementById('djc').getBoundingClientRect(), tworect=document.getElementById('jc').getBoundingClientRect(); if (Math.abs(eval(eval(('' + onerect.top) - eval('' + tworect.top)))) > 20) { document.getElementById('jc').style.display='none'; } }, 6000); < return contprefix + tv + contsuffix; < } < < function togglez() { < if (makeuppermost == tao) { < divelem.style.opacity='0.0'; < divelem.style.zIndex=-1; < tao.style.zIndex=999; < makeuppermost=divelem; < } else { < tao.style.zIndex=-1; < divelem.style.opacity='1.0'; < divelem.style.zIndex=999; < makeuppermost=tao; < } < } < < function overlay() { < if (!tao) { tao=document.getElementById('ttext'); makeuppermost=tao; setInterval(togglez, 15000); } < if (!divelem) { < divelem = document.getElementById('djc'); < gtao=tao; < var recto = tao.getBoundingClientRect(); < if (divelem) { // thanks to ideas off http://stackoverflow.com/questions/12266320/copy-div-content-to-textarea-or-text-with-the-same-font-family-style < //divelem.style.display='flex'; < //divelem.style.alignItems='flex-end'; < //divelem.style.overflowY='scroll'; < //divelem.style.flexFlow='column nowrap'; < //divelem.style.flexDirection='column-reverse'; < divelem.style.fontFamily = window.getComputedStyle(tao,null).fontFamily || tao.style.fontFamily || tao.currentStyle.getCurrentProperty('font-family'); < divelem.style.fontSize = window.getComputedStyle(tao,null).fontSize || tao.style.fontSize || tao.currentStyle.getCurrentProperty('font-size'); < divelem.style.border = window.getComputedStyle(tao,null).border || tao.style.border || tao.currentStyle.getCurrentProperty('border'); < divelem.style.padding = window.getComputedStyle(tao,null).padding || tao.style.padding || tao.currentStyle.getCurrentProperty('padding'); < divelem.style.margin = window.getComputedStyle(tao,null).margin || tao.style.margin || tao.currentStyle.getCurrentProperty('margin'); < divelem.style.overflow = window.getComputedStyle(tao,null).overflow || tao.style.overflow || tao.currentStyle.getCurrentProperty('overflow'); < divelem.style.position='absolute'; < divelem.style.backgroundColor='transparent'; < divelem.style.left='' + recto.left + 'px'; < divelem.style.width='' + eval(-12 + recto.width) + 'px'; < divelem.style.height='' + eval(-12 + recto.height) + 'px'; < //divelem.style.top='' + eval(-12 + recto.top) + 'px'; < divelem.style.top='' + eval(0 + recto.top) + 'px'; < //alert('' + recto.top + ' ' + recto.height + ' ' + ' ... ' + 'eval(-12 + recto.top + recto.height)=' + eval(-12 + recto.top + recto.height)); < //divelem.style.bottom='' + eval(-12 + recto.top + recto.height) + 'px'; < divelem.style.zIndex='999'; < //divelem.scrollTop=divelem.scrollHeight; < //setTimeout(function(){ divelem.scrollTop=divelem.scrollHeight; }, 4000); < //tao.style.color='transparent'; < } < } < var taovalue=tao.value.replace(//g,'>'); < while (taovalue.indexOf(String.fromCharCode(10)) != -1) { < taovalue=taovalue.replace(String.fromCharCode(10),'
'); < } < document.getElementById('djc').innerHTML='
' + (origxname == xname ? massage(taovalue) : xname) + '
'; < } < < function rez(ota) { < if (divelem && tao) { // thanks to ideas off http://stackoverflow.com/questions/12266320/copy-div-content-to-textarea-or-text-with-the-same-font-family-style < var recto = tao.getBoundingClientRect(); < divelem.style.width='' + eval(-12 + recto.width) + 'px'; < divelem.style.height='' + eval(-12 + recto.height) + 'px'; < divelem.style.zIndex='999'; < } < } < 194,196c44 < function inline_linking(aname) { < xname=aname; < origxname=xname; --- > function inline_linking(xname) { 198c46 < var pword='', thiss='', thiscp='', xsuffix='', durl=''; --- > var pword='', origxname=xname, thiss='', thiscp='', xsuffix='', durl=''; 511,523d358 < < for (var iuy=0; iuy' + sofars[iuy] + ''); < } else if ((' ' + xname + ' ').indexOf(' ' + sofars[iuy] + '' + sofars[iuy] + ''); < } < } < < if (origxname != xname) { setTimeout(overlay, 500); } 707c542 <
--- >