16c16 < var covcon=location.search.split('bsize=')[1] ? decodeURIComponent(location.search.split('bsize=')[1].split('&')[0]).replace(/\+/g,' ') : 'cover'; --- > var covcon=location.search.split('bsize=')[1] ? decodeURIComponent(location.search.split('bsize=')[1]).split('&')[0].replace(/\+/g,' ') : 'cover'; 19,27c19,26 < var atendim=location.search.split('im=')[1] ? decodeURIComponent(location.search.split('im=')[1].split('&')[0]) : ''; < var atendiu=location.search.split('iu=')[1] ? decodeURIComponent(location.search.split('iu=')[1].split('&')[0]) : ''; < var sizeword=location.search.split('sizeword=')[1] ? decodeURIComponent(location.search.split('sizeword=')[1].split('&')[0]) : covcon; < var pwidth=location.search.split('width=')[1] ? decodeURIComponent(location.search.split('width=')[1].split('&')[0]) : ''; < var pheight=location.search.split('height=')[1] ? decodeURIComponent(location.search.split('height=')[1].split('&')[0]) : ''; < var qans=location.search.split('answer=')[1] ? decodeURIComponent(location.search.split('answer=')[1].split('&')[0]).replace(/\+/g,' ') : ''; < var altqans=location.search.split('answeralt=')[1] ? decodeURIComponent(location.search.split('answeralt=')[1].split('&')[0]).replace(/\+/g,' ') : ''; < var parid=location.search.split('id=')[1] ? decodeURIComponent(location.search.split('id=')[1].split('&')[0]).replace(/\+/g,' ') : ''; < var spareqriu=''; --- > var atendim=location.search.split('im=')[1] ? decodeURIComponent(location.search.split('im=')[1]).split('&')[0] : ''; > var atendiu=location.search.split('iu=')[1] ? decodeURIComponent(location.search.split('iu=')[1]).split('&')[0] : ''; > var sizeword=location.search.split('sizeword=')[1] ? decodeURIComponent(location.search.split('sizeword=')[1]).split('&')[0] : covcon; > var pwidth=location.search.split('width=')[1] ? decodeURIComponent(location.search.split('width=')[1]).split('&')[0] : ''; > var pheight=location.search.split('height=')[1] ? decodeURIComponent(location.search.split('height=')[1]).split('&')[0] : ''; > var qans=location.search.split('answer=')[1] ? decodeURIComponent(location.search.split('answer=')[1]).split('&')[0].replace(/\+/g,' ') : ''; > var altqans=location.search.split('answeralt=')[1] ? decodeURIComponent(location.search.split('answeralt=')[1]).split('&')[0].replace(/\+/g,' ') : ''; > var parid=location.search.split('id=')[1] ? decodeURIComponent(location.search.split('id=')[1]).split('&')[0].replace(/\+/g,' ') : ''; 31,50d29 < if (atendim.indexOf('%3A%2F%2Fchart.googleapis.com%2Fchart%3Fchs%3D300x300') != -1) { < spareqriu=decodeURIComponent(atendim); < //alert('here ' + atendim); < // &chl=http%3A%2F%2Fwww.google.com%2F&choe=UTF-8 < if (atendiu == '' && atendim.indexOf('&chl=') != -1) { atendiu=decodeURIComponent(atendim.split('&chl=')[1].split('&')[0]); spareqriu=atendiu; } < } else if (atendim.indexOf(decodeURIComponent('%3A%2F%2Fchart.googleapis.com%2Fchart%3Fchs%3D300x300')) != -1) { < spareqriu=atendim; < //alert('Here ' + atendim); < if (atendiu == '' && atendim.indexOf('&chl=') != -1) { atendiu=decodeURIComponent(atendim.split('&chl=')[1].split('&')[0]); spareqriu=atendiu; } < } else if (atendih.indexOf('%3A%2F%2Fchart.googleapis.com%2Fchart%3Fchs%3D300x300') != -1) { < spareqriu=decodeURIComponent(atendih); < //alert('here ' + atendim); < // &chl=http%3A%2F%2Fwww.google.com%2F&choe=UTF-8 < if (atendiu == '' && atendih.indexOf('&chl=') != -1) { atendiu=decodeURIComponent(atendih.split('&chl=')[1].split('&')[0]); spareqriu=atendiu; } < } else if (atendih.indexOf(decodeURIComponent('%3A%2F%2Fchart.googleapis.com%2Fchart%3Fchs%3D300x300')) != -1) { < spareqriu=atendih; < //alert('Here ' + atendim); < if (atendiu == '' && atendih.indexOf('&chl=') != -1) { atendiu=decodeURIComponent(atendih.split('&chl=')[1].split('&')[0]); spareqriu=atendiu; } < } < 101,109d79 < function urlmassage(inul) { < if (inul.indexOf('&chl=') != -1 && inul.indexOf('chart.googleapis.com') != -1) { < return decodeURIComponent(inul.split('&chl=')[1].split('&')[0].split('#')[0].split('"')[0].split("'")[0]); < } else if (inul.indexOf('?chl=') != -1 && inul.indexOf('chart.googleapis.com') != -1) { < return decodeURIComponent(inul.split('?chl=')[1].split('&')[0].split('#')[0].split('"')[0].split("'")[0]); < } < return inul; < } < 573c543 < if (spareqriu == '' && atendiu.substring(0,2) == '//') { --- > if (atendiu.substring(0,2) == '//') { 575c545 < } else if (spareqriu == '' && atendiu.substring(0,1) == '/') { --- > } else if (atendiu.substring(0,1) == '/') { 577c547 < } else if (spareqriu == '' && atendiu.substring(0,4) == 'www.') { --- > } else if (atendiu.substring(0,4) == 'www.') { 580,588d549 < if (spareqriu != '') { < if (spareqriu != atendiu) { < document.getElementById('atend').title = 'Click for ' + spareqriu; < document.getElementById('atend').setAttribute('data-urlqr', spareqriu); < document.getElementById('atend').addEventListener('mousedown', function(evt) { if (('' + evt.target.getAttribute('data-urlqr')).replace(/^null/g,'').replace(/^undefined/g,'').trim() != '') { window.open(urlmassage(evt.target.getAttribute('data-urlqr')), '_blank', 'top=40,left=40,width=600,height=600'); } }); < document.getElementById('atend').addEventListener('touchdown', function(evt) { if (('' + evt.target.getAttribute('data-urlqr')).replace(/^null/g,'').replace(/^undefined/g,'').trim() != '') { window.open(urlmassage(evt.target.getAttribute('data-urlqr')), '_blank', 'top=40,left=40,width=600,height=600'); } }); < } < //atendiu=spareqriu; < } 619c580 < if (spareqriu == '' && atendiu.substring(0,2) == '//') { --- > if (atendiu.substring(0,2) == '//') { 621c582 < } else if (spareqriu == '' && atendiu.substring(0,1) == '/') { --- > } else if (atendiu.substring(0,1) == '/') { 623c584 < } else if (spareqriu == '' && atendiu.substring(0,4) == 'www.') { --- > } else if (atendiu.substring(0,4) == 'www.') { 626,634d586 < if (spareqriu != '') { < if (spareqriu != atendiu) { < document.getElementById('atend').title = 'Click for ' + spareqriu; < document.getElementById('atend').setAttribute('data-urlqr', spareqriu); < document.getElementById('atend').addEventListener('mousedown', function(evt) { if (('' + evt.target.getAttribute('data-urlqr')).replace(/^null/g,'').replace(/^undefined/g,'').trim() != '') { window.open(urlmassage(evt.target.getAttribute('data-urlqr')), '_blank', 'top=40,left=40,width=600,height=600'); } }); < document.getElementById('atend').addEventListener('touchdown', function(evt) { if (('' + evt.target.getAttribute('data-urlqr')).replace(/^null/g,'').replace(/^undefined/g,'').trim() != '') { window.open(urlmassage(evt.target.getAttribute('data-urlqr')), '_blank', 'top=40,left=40,width=600,height=600'); } }); < } < //atendiu=spareqriu; < } 639,641d590 < if (('' + document.getElementById('atend').title).indexOf('Click for ') == 0) { < document.getElementById('atend').title += ' and ' + atendiu; < } else { 643,644c592 < } < document.getElementById('atend').addEventListener('click', function(evt) { if (('' + evt.target.getAttribute('data-url')).replace(/^null/g,'').replace(/^undefined/g,'').trim() != '') { window.open(urlmassage(evt.target.getAttribute('data-url')), '_blank', 'top=50,left=50,width=600,height=600'); } }); --- > document.getElementById('atend').addEventListener('click', function(evt) { if (('' + evt.target.getAttribute('data-url')).replace(/^null/g,'').replace(/^undefined/g,'').trim() != '') { window.open(evt.target.getAttribute('data-url'), '_blank', 'top=50,left=50,width=600,height=600'); } }); 679c627 < circularText("this text is in a circle &#x1f34d; &#x1f34c; (Optionally | separate words (++ is line feed) & image URL or HtTp QR Code URL & onclick URL or Javascript)", rad, deg); --- > circularText("this text is in a circle &#x1f34d; &#x1f34c; (Optionally | separate words (++ is line feed) & image URL & onclick URL or Javascript)", rad, deg); 682d629 < //document.getElementById('s').value=textis; //.replace(/\&\#/g,'&#'); 686,687c633 < //document.getElementById('inp').value=textis.replace(/\&\#/g,'&#'); < document.getElementById('s').value=textis.replace(/\&\#/g,'&#'); --- > document.getElementById('inp').value=textis.replace(/\&\#/g,'&#'); 918,919d863 < var fourteenlen=('' + ('https://www.google.com')).length; < var ninelen=('' + decodeURIComponent('https%3A%2F%2Fwww.rjmprogramming.com.au%2FITblog%2Fcircle-terminology-in-mathematics-tutorial%2F')).length; 929,943d872 < //alert(pcols[0]); < if (pcols[0].indexOf('HtTp') == 0) { < //alert('why?'); < if (pcols.length == 1) { pcols.push(''); } < if (pcols.length == 2) { pcols.push(document.URL.split('//')[0] + '//chart.googleapis.com/chart?chs=300x300&cht=qr&chl=http' + encodeURIComponent(pcols[0].substring(4).replace('S:','s:')) + '&choe=UTF-8'); } < pcols[0]='http' + (pcols[0].substring(4).replace('S:','s:')); < if (eval('' + pcols[0].length) >= eval('' + ninelen)) { < fs="9"; < document.getElementById('iself').value='9'; < } else if (eval('' + pcols[0].length) >= eval('' + fourteenlen)) { < fs="14"; < fs='' + eval(eval('' + fs) - Math.round(eval(eval('' + eval('' + ninelen) - eval('' + pcols[0].length)) / eval('' + eval('' + ninelen) - eval('' + fourteenlen)) * 5))); < document.getElementById('iself').value='' + fs; < } < } 946,967c875,876 < //alert('HeRe'); < if (pcols[1].indexOf('HtTp') == 0) { < // Thanks to https://stackoverflow.com/questions/5943368/dynamically-generating-a-qr-code-with-php < // https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=http%3A%2F%2Fwww.google.com%2F&choe=UTF-8 < if (pcols.length == 2) { pcols.push(document.URL.split('//')[0] + '//chart.googleapis.com/chart?chs=300x300&cht=qr&chl=http' + encodeURIComponent(pcols[1].substring(4).replace('S:','s:')) + '&choe=UTF-8'); } < if (pcols[0].trim() == '') { < pcols[0]='http' + (pcols[1].substring(4).replace('S:','s:')); < if (eval('' + pcols[0].length) >= eval('' + ninelen)) { < fs="9"; < document.getElementById('iself').value='9'; < } else if (eval('' + pcols[0].length) >= eval('' + fourteenlen)) { < fs="14"; < fs='' + eval(eval('' + fs) - Math.round(eval(eval('' + eval('' + ninelen) - eval('' + pcols[0].length)) / eval('' + eval('' + ninelen) - eval('' + fourteenlen)) * 5))); < document.getElementById('iself').value='' + fs; < } < } < //document.getElementById('dmore').innerHTML=''; < } else { < //alert('2:' + pcols[1]); < if (pcols[1].indexOf('HtTp') != 0) { document.getElementById('dmore').innerHTML=''; } < } < if (pcols[1].indexOf('HtTp') != 0) { dm='&ih=' + encodeURIComponent(pcols[1]); } --- > document.getElementById('dmore').innerHTML=''; > dm='&ih=' + encodeURIComponent(pcols[1]); 971,984d879 < if (pcols[2].indexOf('HtTp') == 0) { < document.getElementById('dmore').innerHTML=''; < if (pcols[0].trim() == '') { < pcols[0]='http' + (pcols[2].substring(4).replace('S:','s:')); < if (eval('' + pcols[0].length) >= eval('' + ninelen)) { < fs="9"; < document.getElementById('iself').value='9'; < } else if (eval('' + pcols[0].length) >= eval('' + fourteenlen)) { < fs="14"; < fs='' + eval(eval('' + fs) - Math.round(eval(eval('' + eval('' + ninelen) - eval('' + pcols[0].length)) / eval('' + eval('' + ninelen) - eval('' + fourteenlen)) * 5))); < document.getElementById('iself').value='' + fs; < } < } < } else { 986d880 < } 1020,1024d913 < var tag = document.createElement('script'); < tag.type='text/javascript'; < tag.src='/marquee_placeholder.js'; < document.head.appendChild(tag); < 1030c919 < Your (on circle radius arc): --- > Your (on circle radius arc):