5d4 < $bc=''; 16c15 < if ((!isset($_GET['htmlfile']) || strlen(('' . $_GET['htmlfile'])) == 0) && isset($_GET['content'])) { --- > if (!isset($_GET['htmlfile']) && isset($_GET['content'])) { 19c18 < if ((!isset($_POST['htmlfile']) || strlen(('' . $_POST['htmlfile'])) == 0) && isset($_POST['content'])) { --- > if (!isset($_POST['htmlfile']) && isset($_POST['content'])) { 22c21 < if (isset($_GET['htmlfile']) && strlen(('' . $_GET['htmlfile'])) > 0) { --- > if (isset($_GET['htmlfile'])) { 74c73 < } else if (isset($_POST['htmlfile']) && strlen(('' . $_POST['htmlfile'])) > 0) { --- > } else if (isset($_POST['htmlfile'])) { 135,146d133 < if (isset($_GET['browsecontents'])) { < if (strlen($_GET['browsecontents']) > 0) { < $prefn=str_replace('+',' ',urldecode($_GET['browsecontents'])); < $bc='#' . urlencode($prefn); < } < } < if (isset($_POST['browsecontents'])) { < if (strlen($_POST['browsecontents']) > 0) { < $prefn=str_replace('+',' ',urldecode($_POST['browsecontents'])); < $bc='#' . urlencode($prefn); < } < } 151c138 < --- > 154,157d140 < var bc=decodeURIComponent(("").replace(/^\#/g,'')).replace(/\+/g,' '); < var preclientcontents=''; < var clientcontents=(location.search + ('' + location.hash).replace('browsecontents','contentsbrowse').replace(/^\#/g,'')).split('contents=')[1] ? dopre(decodeURIComponent((location.search + ('' + location.hash).replace(/^\#/g,'')).replace('browsecontents','contentsbrowse').split('contents=')[1].split('&')[0].split('#')[0])) : "" < //alert(clientcontents); 159c142 < var afterbih='', woois=null; --- > var afterbih=''; 170,171d152 < var ihsms='', ihemail=''; < var paconto=null; 177,200d157 < function getaconto() { < return paconto; < } < < function getrowseq() { < return rowseq; < } < < function dopre(cwhat) { < var clines=[]; < if (cwhat.replace(/\^null/g,'').replace(/\^undefined/g,'').trim() != '' && preclientcontents == '') { < //alert('cwhat=' + cwhat); < clines=cwhat.replace(/\^null/g,'').replace(/\^undefined/g,'').trim().split(String.fromCharCode(10)); < for (var ic=1; ic<=clines.length; ic++) { < if (preclientcontents == '') { < preclientcontents='' + ic; < } else { < preclientcontents+=String.fromCharCode(10) + '' + ic; < } < } < } < return cwhat.replace(/\^null/g,'').replace(/\^undefined/g,'').trim(); < } < 267,268d223 < document.getElementById('ihid').value='' + decodeURIComponent(('' + location.hash).replace(/^\#/g,'')).split('&')[0]; < document.getElementById('ihid').name='browsecontents'; 273d227 < //alert('BC=' + bc); 279,285c233,239 < var xpaconto = (iois.contentWindow || iois.contentDocument); < if (xpaconto != null) { < if (xpaconto.document) { xpaconto = xpaconto.document; } < if (xpaconto.body != null) { < xpaconto.getElementsByTagName('h1')[0].style.opacity='0.0'; < if (1 == 1) { xpaconto.getElementsByTagName('h3')[0].style.opacity='0.0'; } < //if (1 == 1) { xpaconto.getElementsByTagName('h4')[0].style.opacity='0.0'; } --- > var paconto = (iois.contentWindow || iois.contentDocument); > if (paconto != null) { > if (paconto.document) { paconto = paconto.document; } > if (paconto.body != null) { > paconto.getElementsByTagName('h1')[0].style.opacity='0.0'; > if (1 == 1) { paconto.getElementsByTagName('h3')[0].style.opacity='0.0'; } > //if (1 == 1) { paconto.getElementsByTagName('h4')[0].style.opacity='0.0'; } 376,427d329 < var topbit=''; < if (('' + location.hash).indexOf('contents=') != -1 || bc != '') { < //alert(document.URL); < //alert(bc); < //alert(('' + location.hash)); < //alert(('' + top.document.getElementById('demail').innerHTML)); < if (window.opener) { < if (window.opener.document.getElementById('aemail')) { < //alert('yes'); < if (window.opener.getaconto() != null) { < //alert('Yes'); < window.opener.getaconto().body.style.cursor='pointer'; < } < window.opener.document.body.style.cursor='pointer'; < topbit=window.opener.document.getElementById('aemail').href.split('body=')[1]; < //alert('Topbit=' + topbit); < //window.opener.close(); < } < } < if (window.top && topbit == '') { < if (top.document.getElementById('aemail')) { < topbit=top.document.getElementById('aemail').href.split('body=')[1]; < //alert('topbit=' + topbit); < if (window.top.getaconto() != null) { < //alert('Yes'); < window.top.getaconto().body.style.cursor='pointer'; < } < top.document.body.style.cursor='pointer'; < } < } < //alert(('' + window.opener.document.getElementById('demail').innerHTML)); < if (topbit != '') { < document.getElementById('aemail').href+=topbit; < document.getElementById('asms').href+=topbit; < } else { < document.getElementById('aemail').href+=encodeURIComponent(document.URL.split('#')[0] + ('' + location.hash).replace(/^null/g,'').replace('#contents=','&contents=')); < document.getElementById('asms').href+=encodeURIComponent(document.URL.split('#')[0] + ('' + location.hash).replace(/^null/g,'').replace('#contents=','&contents=')); < } < document.getElementById('aemail').style.display='inline-block'; < document.getElementById('asms').style.display='inline-block'; < document.getElementById('demail').style.display='inline-block'; < document.getElementById('dsms').style.display='inline-block'; < } < if (('' + location.hash).indexOf('&contents=') > 0 && bc == '') { < //alert('Bc = ' + bc + ' ' + document.URL); < bc='' + decodeURIComponent(('' + location.hash).split('&contents=')[0]); < document.getElementById('ihid').value='' + decodeURIComponent(('' + location.hash).split('&contents=')[0]); < document.getElementById('ihid').name='browsecontents'; < } < if (document.getElementById('mysub').outerHTML.toLowerCase().indexOf('none;') == -1) { < document.getElementById('dfirstth').innerHTML=document.getElementById('mysub').outerHTML.replace('mysub','mytwosub').replace('Validate','Validate a Change Below ...').replace('>', ' disabled>'); < } 439c341 < if (('' + location.hash).replace(/^null/g,'').replace(/^undefined/g,'').trim() != '' || bc != '') { --- > if (('' + location.hash).replace(/^null/g,'').replace(/^undefined/g,'').trim() != '') { 441,447c343 < if (bc != '') { < document.getElementById('myhxfile').placeholder=bc; < } else { < document.getElementById('ihid').value='' + decodeURIComponent(('' + location.hash).replace(/^\#/g,'')).split('&')[0].split('#')[0]; < document.getElementById('ihid').name='browsecontents'; < document.getElementById('myhxfile').placeholder=decodeURIComponent(('' + location.hash).replace(/^\#/g,'')).split('&')[0].split('#')[0]; < } --- > document.getElementById('myhxfile').placeholder=decodeURIComponent(('' + location.hash).replace(/^\#/g,'')); 450,454c346 < if (bc != '') { < tf=tf.replace(tfis + ':', bc + ':'); < } else { < tf=tf.replace(tfis + ':', decodeURIComponent(('' + location.hash).replace(/^\#/g,'')).split('&')[0].split('#')[0] + ':'); < } --- > tf=tf.replace(tfis + ':', decodeURIComponent(('' + location.hash).replace(/^\#/g,'')) + ':'); 461,507d352 < < setTimeout(function() { < if (preclientcontents != '') { < document.getElementById('preincoming').value=preclientcontents; < document.getElementById('preincoming').rows='' + preclientcontents.split(String.fromCharCode(10)).length; < document.getElementById('preincoming').cols='' + '5'; < } < if (clientcontents != '') { < document.getElementById('incoming').value=clientcontents; < document.getElementById('incoming').rows='' + preclientcontents.split(String.fromCharCode(10)).length; < preclientcontents=''; < clientcontents=''; < var urlis=document.URL.split('?')[0].split('#')[0]; < if (('' + document.getElementById('myform').action).indexOf('#') != -1) { < //alert('?#' + ('' + document.getElementById('myform').action).split('#')[1]); < urlis+='?browsecontents=' + encodeURIComponent(('' + document.getElementById('myform').action).split('#')[1]) + '&' + document.getElementById('myhxfile').name + '=' + encodeURIComponent(document.getElementById('myhxfile').value.replace(/\#/g,'')) + '#' + ('' + document.getElementById('myform').action).split('#')[1] + '&contents=' + encodeURIComponent(document.getElementById('incoming').value); < } else { < // alert('BC = ' + bc); < urlis+='?' + document.getElementById('myhxfile').name + '=' + encodeURIComponent(document.getElementById('myhxfile').value.replace(/\#/g,'')) + '#contents=' + encodeURIComponent(document.getElementById('incoming').value); < } < if (1 == 6) { < if (('' + document.getElementById('aemail').href).indexOf(encodeURIComponent('.php#')) != -1) { < if (('' + document.getElementById('myform').action).indexOf('#') != -1) { < document.getElementById('demail').innerHTML='Email'; < } else { < document.getElementById('demail').innerHTML='Email'; < } < } < } < if (('' + location.hash).indexOf('&contents=') > 0) { < //alert('Bc = ' + bc + ' ' + document.URL); < bc='' + decodeURIComponent(('' + location.hash).split('&contents=')[0]); < document.getElementById('ihid').value='' + decodeURIComponent(('' + location.hash).split('&contents=')[0]); < document.getElementById('ihid').name='browsecontents'; < } < setTimeout(function() { < //alert('Bc=' + bc + ' ' + document.URL); < if (('' + location.hash).indexOf('&contents=') > 0) { < //alert('Bc=' + bc + ' ' + document.URL); < bc='' + decodeURIComponent(('' + location.hash).split('&contents=')[0]); < document.getElementById('ihid').value='' + decodeURIComponent(('' + location.hash).split('&contents=')[0]); < document.getElementById('ihid').name='browsecontents'; < } < document.getElementById('mysub').click(); < }, 8000); // 20000 < } < }, 5000); 518,537d362 < //if (!s2rect) { alert('Why ... ' + rowseq); } else { document.title='' + rowseq; } < if (!s2rect) { < s1 = paconto.getElementById('preincoming'); < s2 = paconto.getElementById('incoming'); < s1.addEventListener('scroll', select_scroll_1, false); < s2.addEventListener('scroll', select_scroll_2, false); < gcbr(); < if (('' + rowseq) == '') { < if (window.opener) { < if (window.opener.document.getElementById('aemail')) { < //alert('yes'); < rowseq='' + window.opener.getrowseq(); < } < } else if (window.parent) { < rowseq='' + parent.getrowseq(); < } < //document.title='' + rowseq; < } < //if (!s2rect) { alert('why ... ' + rowseq); } else { document.title='' + rowseq; } < } 616,618d440 < //if (paconto) { < //alert('Here'); < //} 649,794d470 < function phandleSelection() { // thanks to https://stackoverflow.com/questions/46651479/reacting-to-selection-changes-in-an-html-textarea < const pactiveElement = paconto.activeElement; < < // Make sure this is your textarea < //document.title=(('' + activeElement.id) + activeElement.outerHTML.substring(0,23)); < if (pactiveElement && pactiveElement.outerHTML.indexOf(' eval('' + prange.start)) { < thesel=(pactiveElement.value.substring(prange.start).substring(0, eval(eval('' + prange.end) - eval('' + prange.start) ))); < if (thesel.trim() != '' && thesel.indexOf(':') != -1) { < var floc=thesel.split(':')[0]; < if (tfis != '') { < if (eval('' + floc.length) >= eval('' + tfis.length)) { < ourdelim=tfis + ':'; < ourfindsare=thesel.split(ourdelim); < } else { < thesel=thesel.replace(':', tfis + ':'); < ourdelim=tfis + ':'; < ourfindsare=thesel.split(ourdelim); < } < } else { < ourfindsare=thesel.split(ourdelim); < } < decorateleft(); < } < } < } < } < < function dohash(isfort) { < //alert('' + isfort); < if (!isfort || 8 == 8) { < var urlis=document.URL.split('?')[0].split('#')[0]; < if (('' + document.getElementById('myform').action).indexOf('#') != -1) { < //alert('#' + ('' + document.getElementById('myform').action).split('#')[1]); < document.getElementById('ihid').value='' + ('' + document.getElementById('myform').action).split('#')[1]; < document.getElementById('ihid').name='browsecontents'; < urlis+='?browsecontents=' + encodeURIComponent(('' + document.getElementById('myform').action).split('#')[1]) + '&' + document.getElementById('myhxfile').name + '=' + encodeURIComponent(document.getElementById('myhxfile').value.replace(/\#/g,'')) + '#' + ('' + document.getElementById('myform').action).split('#')[1] + '&contents=' + encodeURIComponent(document.getElementById('incoming').value); < } else { < //alert('bC = ' + bc); < urlis+='?' + document.getElementById('myhxfile').name + '=' + encodeURIComponent(document.getElementById('myhxfile').value.replace(/\#/g,'')) + '#contents=' + encodeURIComponent(document.getElementById('incoming').value); < } < //alert(urlis); < if (!window.opener || ('' + document.referrer) == '') { < //alert('dref=' + document.referrer + ' urlis=' + urlis); < document.body.style.cursor='progress'; < woois=window.open(urlis, '_blank'); < } //else { < //alert('top' + document.referrer); < //} < if (1 == 1) { < document.getElementById('myform').target='myif'; < ihsms=document.getElementById('dsms').innerHTML; < ihemail=document.getElementById('demail').innerHTML; < document.getElementById('myif').style.position='absolute'; < document.getElementById('myif').style.top='0px'; < document.getElementById('myif').style.left='0px'; < document.getElementById('myif').style.width='100%'; < document.getElementById('myif').style.height='100%'; < document.getElementById('myif').style.zIndex='100'; < document.getElementById('myif').style.display='block'; < return true; < } else { < location.href=urlis; < } < return isfort; //false; < } < //alert(87); < return true; < } < < function doemail() { < } < < function dosms() { < if (document.getElementById('asms').href.indexOf('sms:&') != -1) { < document.getElementById('asms').href=document.getElementById('asms').href.replace('sms:&', 'sms:' + ('' + prompt('Please enter SMS number', '')).replace(/^null/g,'') + '&'); < if (document.getElementById('asms').href.indexOf('sms:&') == -1) { < document.getElementById('asms').click(); < } < } < } < < function checkmyif(iois) { < if (iois != null) { < paconto = (iois.contentWindow || iois.contentDocument); < if (paconto != null) { < if (paconto.document) { paconto = paconto.document; } < if (paconto.body != null && (iois.src.indexOf('?') != -1 || iois.src.indexOf('#') != -1 || ihemail != '')) { < paconto.addEventListener('selectionchange', phandleSelection); < < if (('' + document.referrer) == '') { < paconto.body.style.cursor='progress'; < } < if (document.getElementById('demail')) { < //alert(document.getElementById('demail').innerHTML); < if (('' + document.referrer) == '') { < paconto.body.style.cursor='progress'; < } < if (paconto.getElementById('demail')) { < if (ihemail != '') { < paconto.getElementById('demail').innerHTML=ihemail; < } else { < paconto.getElementById('demail').innerHTML=document.getElementById('demail').innerHTML; < } < paconto.getElementById('demail').style.display='inline-block'; < } < } < if (document.getElementById('dsms')) { < if (paconto.getElementById('dsms')) { < if (ihsms != '') { < paconto.getElementById('dsms').innerHTML=ihsms; < } else { < paconto.getElementById('dsms').innerHTML=document.getElementById('dsms').innerHTML; < } < paconto.getElementById('dsms').style.display='inline-block'; < } < } < } < } < } < } < < function maybeshow() { < if (document.getElementById('incoming').value != '') { < var wwoo=window.open('','_blank','top=50,left=50,width=900,height=900'); < if (document.getElementById('myhxfile').value != '') { < wwoo.document.write('' + document.getElementById('myhxfile').value + ''); < } else if (document.getElementById('myhxfile').placeholder.indexOf('Please ') == -1) { < wwoo.document.write('' + document.getElementById('myhxfile').placeholder + ''); < } else { < wwoo.document.write('XML Lint Validation incoming XML or HTML'); < } < } < } < 801c477 <

XML Lint Validation  

--- >

XML Lint Validation

803c479 <
id=myform method=POST target=_self> --- > 805,808c481,484 < XML Lint validation of   < Data to validate 
XML Lint results < data-status='' style=font-size:8px;display:inline-block;overflow-x:clip;text-wrap:nowrap;text-align:right; id=preincoming>','>',str_replace('<','<',$precontents)); ?> onchange="if (document.getElementById('mytwosub')) { document.getElementById('mytwosub').disabled=false; }" onblur="if (this.value.length > 0 && '' == '') { alert('bC=' + bc); document.getElementById('mysub').click(); }" style=width:80%;font-size:8px;display:inline-block;overflow-x:clip;text-wrap:nowrap; name=content id=incoming>','>',str_replace('<','<',$contents)); ?> style=width:100%; id=outgoing>','>',str_replace('<','<',$results)); ?> < value=Validate> --- > XML Lint validation of   > Data to validateXML Lint results > data-status='' style=font-size:8px;display:inline-block;overflow-x:clip;text-wrap:nowrap;text-align:right; id=preincoming>','>',str_replace('<','<',$precontents)); ?> onblur="if (this.value.length > 0 && '' == '') { document.getElementById('mysub').click(); }" style=width:80%;font-size:8px;display:inline-block;overflow-x:clip;text-wrap:nowrap; name=content id=incoming>','>',str_replace('<','<',$contents)); ?> style=width:100%; id=outgoing>','>',str_replace('<','<',$results)); ?> > value=Validate> 821d496 <