6,41c6,8 < var thisejajs=''; < var spareejajs=''; < if (typeof ejs !== 'undefined') { < if (ejs.length == 0) { < var ejajs=''; < var ejpattern=''; < var ejsuffix='0'; < thisejajs=location.search.split("theelementid=")[1] ? decodeURIComponent(location.search.split("theelementid=")[1].split('&')[0]).replace(/\;\ /g, '; ' + String.fromCharCode(10)) : ""; < ejajs=thisejajs; < ejpattern=location.search.split("pattern=")[1] ? decodeURIComponent(location.search.split("pattern=")[1].split('&')[0]).replace(/\;\ /g, '; ' + String.fromCharCode(10)) : ""; < } else { < ejsuffix='' + eval(1 + eval('' + ejsuffix)); < } < ejajs=thisejajs; < ejpattern=''; < console.log(ejsuffix); < setTimeout(preats, 0); < } else { < var ejs=[]; < var ejajs=''; < var ejpattern=''; < var ejsuffix='0'; < console.log('here'); < thisejajs=location.search.split("theelementid=")[1] ? decodeURIComponent(location.search.split("theelementid=")[1].split('&')[0]).replace(/\;\ /g, '; ' + String.fromCharCode(10)) : ""; < ejajs=thisejajs; < ejpattern=location.search.split("pattern=")[1] ? decodeURIComponent(location.search.split("pattern=")[1].split('&')[0]).replace(/\;\ /g, '; ' + String.fromCharCode(10)) : ""; < setTimeout(preats, 0); < } < //thisejajs=location.search.split("theelementid=")[1] ? decodeURIComponent(location.search.split("theelementid=")[1].split('&')[0]).replace(/\;\ /g, '; ' + String.fromCharCode(10)) : ""; < //ejajs=thisejajs; < //ejpattern=location.search.split("pattern=")[1] ? decodeURIComponent(location.search.split("pattern=")[1].split('&')[0]).replace(/\;\ /g, '; ' + String.fromCharCode(10)) : ""; < < spareejajs=thisejajs; < < //document.getElementById(thisejajs).onclick = < //function ats(event) { --- > > var ejajs=location.search.split("theelementid=")[1] ? decodeURIComponent(location.search.split("theelementid=")[1].split('&')[0]).replace(/\;\ /g, '; ' + String.fromCharCode(10)) : ""; > var ejpattern=location.search.split("pattern=")[1] ? decodeURIComponent(location.search.split("pattern=")[1].split('&')[0]).replace(/\;\ /g, '; ' + String.fromCharCode(10)) : ""; 43,59c10,19 < function preats() { < if (ejs.length > 0) { ejsuffix='' + eval(0 + eval('' + ejs.length)); } < console.log('2:' + eval(1 + eval(ejsuffix))); < if (thisejajs.trim() == '') { < console.log('5:' + document.head.innerHTML.split('pattern_test.js?theelementid=').length); < if (document.head.innerHTML.split('pattern_test.js?theelementid=').length >= eval(1 + eval(ejsuffix))) { < if (ejs.length == 0) { ejsuffix='0'; } < console.log('' + eval(1 + eval(ejsuffix))); < if (ejpattern.trim() == '' && document.head.innerHTML.indexOf('&pattern=') != -1) { ejpattern=decodeURIComponent(document.head.innerHTML.split('&pattern=')[eval(1 + eval(ejsuffix))].split('&')[0].split("'")[0].split('"')[0].split('>')[0]); } < thisejajs=document.head.innerHTML.split("pattern_test.js?theelementid=")[eval(1 + eval(ejsuffix))] ? decodeURIComponent(document.head.innerHTML.split("pattern_test.js?theelementid=")[eval(1 + eval(ejsuffix))].split('&')[0].split('>')[0].split('"')[0].split("'")[0]).replace(/\;\ /g, '; ' + String.fromCharCode(10)) : ""; < console.log('Thisejajs=' + thisejajs + ' via ' + document.head.innerHTML.split("pattern_test.js?theelementid=")[eval(1 + eval(ejsuffix))].substring(0,200)); < } else if (document.body.innerHTML.split('?theelementid=').length >= eval(1 + eval(ejsuffix))) { < if (ejpattern.trim() == '' && document.body.innerHTML.indexOf('&pattern=') != -1) { ejpattern=decodeURIComponent(document.body.innerHTML.split('&pattern=')[eval(1 + eval(ejsuffix))].split('&')[0].split("'")[0].split('"')[0].split('>')[0]); } < thisejajs=document.body.innerHTML.split("?theelementid=")[eval(1 + eval(ejsuffix))] ? decodeURIComponent(document.body.innerHTML.split("?theelementid=")[eval(1 + eval(ejsuffix))].split('&')[0].split('>')[0].split('"')[0].split("'")[0]).replace(/\;\ /g, '; ' + String.fromCharCode(10)) : ""; < } else if (document.body.innerHTML.split('&theelementid=').length >= eval(1 + eval(ejsuffix))) { < if (ejpattern.trim() == '' && document.body.innerHTML.indexOf('?pattern=') != -1) { ejpattern=decodeURIComponent(document.body.innerHTML.split('?pattern=')[eval(1 + eval(ejsuffix))].split('&')[0].split("'")[0].split('"')[0].split('>')[0]); } < thisejajs=document.body.innerHTML.split("&theelementid=")[eval(1 + eval(ejsuffix))] ? decodeURIComponent(document.body.innerHTML.split("&theelementid=")[eval(1 + eval(ejsuffix))].split('&')[0].split('>')[0].split('"')[0].split("'")[0]).replace(/\;\ /g, '; ' + String.fromCharCode(10)) : ""; --- > if (ejajs.trim() == '') { > if (document.head.innerHTML.indexOf('pattern_test.js?theelementid=') != -1) { > if (ejpattern.trim() == '' && document.head.innerHTML.indexOf('&pattern=') != -1) { ejpattern=decodeURIComponent(document.head.innerHTML.split('&pattern=')[1].split('&')[0].split("'")[0].split('"')[0].split('>')[0]); } > ejajs=document.head.innerHTML.split("pattern_test.js?theelementid=")[1] ? decodeURIComponent(document.head.innerHTML.split("pattern_test.js?theelementid=")[1].split('&')[0].split('>')[0].split('"')[0].split("'")[0]).replace(/\;\ /g, '; ' + String.fromCharCode(10)) : ""; > } else if (document.body.innerHTML.indexOf('?theelementid=') != -1) { > if (ejpattern.trim() == '' && document.body.innerHTML.indexOf('&pattern=') != -1) { ejpattern=decodeURIComponent(document.body.innerHTML.split('&pattern=')[1].split('&')[0].split("'")[0].split('"')[0].split('>')[0]); } > ejajs=document.body.innerHTML.split("?theelementid=")[1] ? decodeURIComponent(document.body.innerHTML.split("?theelementid=")[1].split('&')[0].split('>')[0].split('"')[0].split("'")[0]).replace(/\;\ /g, '; ' + String.fromCharCode(10)) : ""; > } else if (document.body.innerHTML.indexOf('&theelementid=') != -1) { > if (ejpattern.trim() == '' && document.body.innerHTML.indexOf('?pattern=') != -1) { ejpattern=decodeURIComponent(document.body.innerHTML.split('?pattern=')[1].split('&')[0].split("'")[0].split('"')[0].split('>')[0]); } > ejajs=document.body.innerHTML.split("&theelementid=")[1] ? decodeURIComponent(document.body.innerHTML.split("&theelementid=")[1].split('&')[0].split('>')[0].split('"')[0].split("'")[0]).replace(/\;\ /g, '; ' + String.fromCharCode(10)) : ""; 61d20 < spareejajs=thisejajs; 64,68d22 < ejs.push(thisejajs); < console.log('.log=' + ejs.length); < console.log('thisejajs=' + thisejajs); < //console.log('.log=' + ejs.length); < 71,85c25,27 < document.getElementById(thisejajs).setAttribute('data-efsuffix', ejsuffix); < document.getElementById(thisejajs).setAttribute('data-efpattern', ejpattern); < < < document.getElementById(spareejajs).onclick = function ats(event) { < var thestyle='', thescript=''; < var ejsuff=event.target.getAttribute('data-ejsuffix'); //ejsuffix; < var ejsuff=ejsuffix; < var xejs=[]; < for (var iio=0; iio function ats() { > var thestyle='', thescript=''; > if (ejajs.trim() != '') { 87c29 < thestyle+=String.fromCharCode(10) + "#" + xejs[eval('' + ejsuffix)] + " { "; --- > thestyle+=String.fromCharCode(10) + "#" + ejajs + " { "; 91c33 < thestyle+=String.fromCharCode(10) + "#" + xejs[eval('' + ejsuffix)] + ":invalid { "; --- > thestyle+=String.fromCharCode(10) + "#" + ejajs + ":invalid { "; 94c36 < thestyle+=String.fromCharCode(10) + "#" + xejs[eval('' + ejsuffix)] + ":invalid::after { "; --- > thestyle+=String.fromCharCode(10) + "#" + ejajs + ":invalid::after { "; 101c43 < thestyle+=String.fromCharCode(10) + "#" + xejs[eval('' + ejsuffix)] + ":focus-within::after { "; --- > thestyle+=String.fromCharCode(10) + "#" + ejajs + ":focus-within::after { "; 115,117c57,59 < thescript+=String.fromCharCode(10) + " var ejsajs" + ejsuffix + "='" + xejs[eval('' + ejsuffix)] + "'; "; < thescript+=String.fromCharCode(10) + " var ejpattern" + ejsuffix + "='" + ejpattern + "'; "; < thescript+=String.fromCharCode(10) + " var ejprev" + ejsuffix + "=''; "; --- > thescript+=String.fromCharCode(10) + " var ejajs='" + ejajs + "'; "; > thescript+=String.fromCharCode(10) + " var ejpattern='" + ejpattern + "'; "; > thescript+=String.fromCharCode(10) + " var ejprev=''; "; 121,122c63,64 < thescript+=String.fromCharCode(10) + " function ejpostonl" + ejsuffix + "() { "; < thescript+=String.fromCharCode(10) + " document.getElementById('" + xejs[eval('' + ejsuffix)] + "').setCustomValidity(''); "; --- > thescript+=String.fromCharCode(10) + " function ejpostonl() { "; > thescript+=String.fromCharCode(10) + " document.getElementById('" + ejajs + "').setCustomValidity(''); "; 125,126c67,68 < thescript+=String.fromCharCode(10) + " function ejreval" + ejsuffix + "() { "; < thescript+=String.fromCharCode(10) + " document.getElementById('" + xejs[eval('' + ejsuffix)] + "').value=ejprev" + ejsuffix + "; "; --- > thescript+=String.fromCharCode(10) + " function ejreval() { "; > thescript+=String.fromCharCode(10) + " document.getElementById('" + ejajs + "').value=ejprev; "; 129c71 < thescript+=String.fromCharCode(10) + " function ejonl" + ejsuffix + "() { "; --- > thescript+=String.fromCharCode(10) + " function ejonl() { "; 131c73 < thescript+=String.fromCharCode(10) + " document.getElementById('" + xejs[eval('' + ejsuffix)] + "').title='Regarding your invalid entry of ' + decodeURIComponent('' + location.hash).replace('#','') + ', ' + ('' + document.getElementById('" + xejs[eval('' + ejsuffix)] + "').placeholder).substring(0,1).toLowerCase() + (document.getElementById('" + xejs[eval('' + ejsuffix)] + "').placeholder + ' ').substring(1); "; --- > thescript+=String.fromCharCode(10) + " document.getElementById('" + ejajs + "').title='Regarding your invalid entry of ' + decodeURIComponent('' + location.hash).replace('#','') + ', ' + ('' + document.getElementById('" + ejajs + "').placeholder).substring(0,1).toLowerCase() + (document.getElementById('" + ejajs + "').placeholder + ' ').substring(1); "; 133,138c75,80 < thescript+=String.fromCharCode(10) + " ejprev" + ejsuffix + " = location.search.split('" + xejs[eval('' + ejsuffix)] + "=')[1] ? decodeURIComponent(location.search.split('" + xejs[eval('' + ejsuffix)] + "=')[1].split('&')[0]) : ''; "; < thescript+=String.fromCharCode(10) + " if (document.getElementById('" + xejs[eval('' + ejsuffix)] + "').outerHTML.indexOf(' pattern=') == -1) { document.getElementById('" + xejs[eval('' + ejsuffix)] + "').pattern=ejpattern" + ejsuffix + "; } "; < thescript+=String.fromCharCode(10) + " if (('' + document.getElementById('" + xejs[eval('' + ejsuffix)] + "').placeholder) == '' && ('' + document.getElementById('" + xejs[eval('' + ejsuffix)] + "').title) != '') { document.getElementById('" + xejs[eval('' + ejsuffix)] + "').placeholder=document.getElementById('" + xejs[eval('' + ejsuffix)] + "').title; } "; < thescript+=String.fromCharCode(10) + " else if (('' + document.getElementById('" + xejs[eval('' + ejsuffix)] + "').placeholder) != '' && ('' + document.getElementById('" + xejs[eval('' + ejsuffix)] + "').title) == '') { document.getElementById('" + xejs[eval('' + ejsuffix)] + "').title=document.getElementById('" + xejs[eval('' + ejsuffix)] + "').placeholder; } "; < thescript+=String.fromCharCode(10) + " else if (('' + document.getElementById('" + xejs[eval('' + ejsuffix)] + "').placeholder) == '' && ('' + document.getElementById('" + xejs[eval('' + ejsuffix)] + "').title) == '') { document.getElementById('" + xejs[eval('' + ejsuffix)] + "').placeholder='Please enter a comma separated positive integer list (where red dashed border flags invalid entry)'; document.getElementById('" + xejs[eval('' + ejsuffix)] + "').title=document.getElementById('" + xejs[eval('' + ejsuffix)] + "').placeholder; } "; < thescript+=String.fromCharCode(10) + " document.getElementById('" + xejs[eval('' + ejsuffix)] + "').title = location.search.split('" + xejs[eval('' + ejsuffix)] + "=')[1] ? ('Thanks for entering the valid " + '"' + "' + decodeURIComponent(location.search.split('" + xejs[eval('' + ejsuffix)] + "=')[1].split('&')[0]) + '" + '"' + "').replace('Thanks for entering the valid " + '""' + "', document.getElementById('" + xejs[eval('' + ejsuffix)] + "').placeholder) : document.getElementById('" + xejs[eval('' + ejsuffix)] + "').placeholder; "; --- > thescript+=String.fromCharCode(10) + " ejprev = location.search.split('" + ejajs + "=')[1] ? decodeURIComponent(location.search.split('" + ejajs + "=')[1].split('&')[0]) : ''; "; > thescript+=String.fromCharCode(10) + " if (document.getElementById('" + ejajs + "').outerHTML.indexOf(' pattern=') == -1) { document.getElementById('" + ejajs + "').pattern=ejpattern; } "; > thescript+=String.fromCharCode(10) + " if (document.getElementById('" + ejajs + "').outerHTML.indexOf(' placeholder=') == -1 && ('' + document.getElementById('" + ejajs + "').title) != '') { document.getElementById('" + ejajs + "').placeholder=document.getElementById('" + ejajs + "').title; } "; > thescript+=String.fromCharCode(10) + " else if (document.getElementById('" + ejajs + "').outerHTML.indexOf(' placeholder=') != -1 && ('' + document.getElementById('" + ejajs + "').title) == '') { document.getElementById('" + ejajs + "').title=document.getElementById('" + ejajs + "').placeholder; } "; > thescript+=String.fromCharCode(10) + " else { document.getElementById('" + ejajs + "').placeholder='Please enter a comma separated positive integer list (where red dashed border flags invalid entry)'; document.getElementById('" + ejajs + "').title=document.getElementById('" + ejajs + "').placeholder; } "; > thescript+=String.fromCharCode(10) + " document.getElementById('" + ejajs + "').title = location.search.split('" + ejajs + "=')[1] ? ('Thanks for entering the valid " + '"' + "' + decodeURIComponent(location.search.split('" + ejajs + "=')[1].split('&')[0]) + '" + '"' + "').replace('Thanks for entering the valid " + '""' + "', document.getElementById('" + ejajs + "').placeholder) : document.getElementById('" + ejajs + "').placeholder; "; 140,142c82,84 < thescript+=String.fromCharCode(10) + " if (ejprev" + ejsuffix + " != '') { setTimeout(ejreval" + ejsuffix + ",3000); } "; < thescript+=String.fromCharCode(10) + " if (theforms.length > 0) { for (var theformslength=1; theformslength<=theforms.length; theformslength++) { if (theforms[eval(-1 + theformslength)].outerHTML.indexOf(' id=" + '"' + xejs[eval('' + ejsuffix)] + '"' + "') != -1) { "; < thescript+=String.fromCharCode(10) + " if (document.getElementById('" + xejs[eval('' + ejsuffix)] + "').outerHTML.indexOf(' name=') == -1 && document.getElementById('" + xejs[eval('' + ejsuffix)] + "').outerHTML.indexOf(' id=') != -1) { document.getElementById('" + xejs[eval('' + ejsuffix)] + "').name=document.getElementById('" + xejs[eval('' + ejsuffix)] + "').id; } "; --- > thescript+=String.fromCharCode(10) + " if (ejprev != '') { setTimeout(ejreval,3000); } "; > thescript+=String.fromCharCode(10) + " if (theforms.length > 0) { for (var theformslength=1; theformslength<=theforms.length; theformslength++) { if (theforms[eval(-1 + theformslength)].outerHTML.indexOf(' id=" + '"' + ejajs + '"' + "') != -1) { "; > thescript+=String.fromCharCode(10) + " if (document.getElementById('" + ejajs + "').outerHTML.indexOf(' name=') == -1 && document.getElementById('" + ejajs + "').outerHTML.indexOf(' id=') != -1) { document.getElementById('" + ejajs + "').name=document.getElementById('" + ejajs + "').id; } "; 155c97 < thescript+=String.fromCharCode(10) + " theforms[eval(-1 + theformslength)].onsubmit = function(event) { return ejosb" + ejsuffix + "(event.target); }; "; --- > thescript+=String.fromCharCode(10) + " theforms[eval(-1 + theformslength)].onsubmit = function(event) { return ejosb(event.target); }; "; 159c101 < thescript+=String.fromCharCode(10) + " document.getElementById('" + xejs[eval('' + ejsuffix)] + "').oninvalid = function(event) { "; --- > thescript+=String.fromCharCode(10) + " document.getElementById('" + ejajs + "').oninvalid = function(event) { "; 167c109 < thescript+=String.fromCharCode(10) + " setTimeout(ejpostonl" + ejsuffix + ", 5000); "; --- > thescript+=String.fromCharCode(10) + " setTimeout(ejpostonl, 5000); "; 171c113 < thescript+=String.fromCharCode(10) + " function ejosb" + ejsuffix + "(fois) { console.log(0); "; --- > thescript+=String.fromCharCode(10) + " function ejosb(fois) { console.log(0); "; 174,175c116,117 < thescript+=String.fromCharCode(10) + " if (document.getElementById('" + xejs[eval('' + ejsuffix)] + "').title.indexOf(', ') != -1) { "; < thescript+=String.fromCharCode(10) + " document.getElementById('" + xejs[eval('' + ejsuffix)] + "').title=document.getElementById('" + xejs[eval('' + ejsuffix)] + "').placeholder; "; --- > thescript+=String.fromCharCode(10) + " if (document.getElementById('" + ejajs + "').title.indexOf(', ') != -1) { "; > thescript+=String.fromCharCode(10) + " document.getElementById('" + ejajs + "').title=document.getElementById('" + ejajs + "').placeholder; "; 180,181c122,123 < thescript+=String.fromCharCode(10) + " document.getElementById('" + xejs[eval('' + ejsuffix)] + "').setCustomValidity(''); "; < thescript+=String.fromCharCode(10) + " ejvalidilist=document.getElementById('" + xejs[eval('' + ejsuffix)] + "').value; "; --- > thescript+=String.fromCharCode(10) + " document.getElementById('" + ejajs + "').setCustomValidity(''); "; > thescript+=String.fromCharCode(10) + " ejvalidilist=document.getElementById('" + ejajs + "').value; "; 186c128 < thescript+=String.fromCharCode(10) + " if (ejsajs" + ejsuffix + ".trim() != '') { setTimeout(ejonl" + ejsuffix + ",2000); } " + String.fromCharCode(10); --- > thescript+=String.fromCharCode(10) + " if (ejajs.trim() != '') { setTimeout(ejonl,2000); } " + String.fromCharCode(10); 193c135 < ejsajs=''; --- > ejajs=''; 197,199c139 < }; < < document.getElementById(spareejajs).click(); --- > } 201,205c141 < < thisejajs=''; < } < < //setTimeout(ats, eval(3000 + eval(1000 * ejsuffix))); --- > setTimeout(ats, 3000);