19c19 < var signs=['+','-','x','/'], isign=0, issvg=0; //false; --- > var signs=['+','-','x','/'], isign=0; 54,66d53 < < function stopit(incsv) { < //alert(incsv); < // < var incsvs=incsv.split('%, '); < var outstops=""; < for (var iis=1; iis"; < } < //alert(outstops); < //document.getElementById('atend').title=outstops.replace(/255/g, '127'); < return outstops.replace(/255/g, '127'); < } 73c60 < if (gprefix == 'conic' && issvg == 0) { --- > if (gprefix == 'conic') { 82d68 < if (document.getElementById('atend')) { 98d83 < } 131,152c116,117 < if (issvg > 0) { < var mySVG = " "; < if (issvg == 1) { < mySVG="" + stopit(newlist) + " "; //.replace(/\~/g, String.fromCharCode(10)); < } else if (issvg == 2) { < mySVG="" + stopit(newlist) + " "; //.replace(/\~/g, String.fromCharCode(10)); < } < document.getElementById('atend').innerHTML=mySVG; < if (issvg == 1) { < mySVG="" + stopit(newlistr) + " "; //.replace(/\~/g, String.fromCharCode(10)); < } else if (issvg == 2) { < mySVG="" + stopit(newlistr) + " "; //.replace(/\~/g, String.fromCharCode(10)); < } < document.getElementById('atright').innerHTML=mySVG; < document.getElementById('dstyle').innerHTML+=''; < document.getElementById('dstyle').innerHTML+=''; < } else { < document.getElementById('atend').innerHTML=''; < document.getElementById('atright').innerHTML=''; < document.getElementById('dstyle').innerHTML+=''; < document.getElementById('dstyle').innerHTML+=''; < } --- > document.getElementById('dstyle').innerHTML+=''; > document.getElementById('dstyle').innerHTML+=''; 222,223c187,188 < var ans='', sufans=' Enter + to solve fractional equations. Enter @ to toggle among conic and linear and radial gradient and SVG circle and rectangle display. Enter nothing with OK will reshow "cake".'; < if (eqmode) { sufans=' Enter - to just solve leftmost fractional question. Enter @ to toggle among conic and linear and radial gradient and SVG circle and rectangle display. Enter nothing with OK will reshow "cake".'; } --- > var ans='', sufans=' Enter + to solve fractional equations. Enter @ to toggle among conic and linear and radial gradient display. Enter nothing with OK will reshow "cake".'; > if (eqmode) { sufans=' Enter - to just solve leftmost fractional question. Enter @ to toggle among conic and linear and radial gradient display. Enter nothing with OK will reshow "cake".'; } 232,262c197,199 < if (('' + ans).trim() == '+') { eqmode=true; sufans=' Enter - to just solve leftmost fractional question. Enter @ to toggle among conic and linear and radial gradient and SVG circle and rectangle display.'; document.getElementById('myrtd').style.display='table-cell'; document.getElementById('mymtd').style.display='table-cell'; isign=eval(0 + Math.floor(Math.random() * signs.length)); document.getElementById('ssign').value=signs[isign]; setTimeout(ask,2000); return ''; } < if (('' + ans).trim() == '-') { eqmode=false; sufans=' Enter + to solve fractional equations. Enter @ to toggle among conic and linear and radial gradient and SVG circle and rectangle display.'; document.getElementById('myrtd').style.display='none'; document.getElementById('mymtd').style.display='none'; setTimeout(ask,2000); return ''; } < if (('' + ans).trim().substring(0,1) == '@') { < while (('' + ans).trim().substring(0,1) == '@') { < if (gprefix == 'conic') { < issvg=0; < gprefix='linear'; fromprefix='border-radius: ' + pbr + 'px;', toprefix="margin-top: 0px;"; < } else if (gprefix == 'linear') { < issvg=0; < gprefix='radial'; toprefix='border-radius: ' + pbr + 'px;', fromprefix="margin-top: 0px;"; < } else if (gprefix == 'radial') { < gprefix='Conic'; < issvg=1; < } else if (gprefix == 'Conic') { < gprefix='CONIC'; < issvg=2; < } else { < issvg=0; < gprefix='conic'; toprefix='border-radius: ' + pbr + 'px;', fromprefix="margin-top: 0px;"; < } < ans=ans.replace('@',''); < } < document.getElementById('mytable').innerHTML=document.getElementById('mytable').innerHTML.replace(fromprefix, toprefix).replace(fromprefix, toprefix); < document.getElementById('myrtd').innerHTML=document.getElementById('myrtd').innerHTML.replace(fromprefix, toprefix); < document.getElementById('mytd').innerHTML=document.getElementById('mytd').innerHTML.replace(fromprefix, toprefix); < //alert('out of here with gprefix=' + gprefix + ' and issvg=' + issvg); < opacity='0.9'; < denominator=denominator.slice(-1); < if (1 == 2) { setTimeout(ask, 4000); } < return ''; < } --- > if (('' + ans).trim() == '+') { eqmode=true; sufans=' Enter - to just solve leftmost fractional question. Enter @ to toggle among conic and linear and radial gradient display.'; document.getElementById('myrtd').style.display='table-cell'; document.getElementById('mymtd').style.display='table-cell'; isign=eval(0 + Math.floor(Math.random() * signs.length)); document.getElementById('ssign').value=signs[isign]; setTimeout(ask,2000); return ''; } > if (('' + ans).trim() == '-') { eqmode=false; sufans=' Enter + to solve fractional equations. Enter @ to toggle among conic and linear and radial gradient display.'; document.getElementById('myrtd').style.display='none'; document.getElementById('mymtd').style.display='none'; setTimeout(ask,2000); return ''; } > if (('' + ans).trim() == '@') { if (gprefix == 'conic') { gprefix='linear'; fromprefix='border-radius: ' + pbr + 'px;', toprefix="margin-top: 0px;"; } else if (gprefix == 'linear') { gprefix='radial'; toprefix='border-radius: ' + pbr + 'px;', fromprefix="margin-top: 0px;"; } else { gprefix='conic'; toprefix='border-radius: ' + pbr + 'px;', fromprefix="margin-top: 0px;"; } document.getElementById('mytable').innerHTML=document.getElementById('mytable').innerHTML.replace(fromprefix, toprefix).replace(fromprefix, toprefix); document.getElementById('myrtd').innerHTML=document.getElementById('myrtd').innerHTML.replace(fromprefix, toprefix); document.getElementById('mytd').innerHTML=document.getElementById('mytd').innerHTML.replace(fromprefix, toprefix); opacity='0.9'; denominator=denominator.slice(-1); if (1 == 2) { setTimeout(ask, 4000); } return ''; } 314,323d250 < } < < function onl() { < var mySVG = " "; < mySVG = " "; //.replace(/\~/g, String.fromCharCode(10)); < var mySVG64 = window.btoa(mySVG); < prompt(mySVG64, mySVG64); < //document.getElementById('mydiv').style.backgroundImage = "url('data:image/svg+xml;base64," + mySVG64 + "')"; < document.body.innerHTML+='
"; < document.getElementById('premydiv').innerHTML=mySVG;