22,38d21
< var pwidth=602, pheight=602, pbr=612, ptop=17.3594, pleft=386.5, thirtytwo=32, ocbit=''; //position: absolute; left: 386.5px; top: 17.3594px; width: 602px; height: 602px; border-radius: 612px;
< var worry=false;
<
< if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) && btoas.trim() == '' && denominator == '0' && numerator == '0') {
< ocbit=' onclick=" viadb=true; ask(); " ';
< }
< if (eval(eval('' + screen.width) - eval(eval('' + pbr) * 2)) < 0 && (btoas.trim() != '' || denominator != '0' || numerator != '0')) {
< thirtytwo=Math.floor(eval(eval('' + thirtytwo) * Math.floor(eval(eval('' + screen.width) / 2.1)) / eval('' + pbr)));
< ptop=eval(eval('' + ptop) * Math.floor(eval(eval('' + screen.width) / 2.1)) / eval('' + pbr));
< pleft=eval(eval('' + pleft) * Math.floor(eval(eval('' + screen.width) / 2.1)) / eval('' + pbr));
< pbr=Math.floor(eval(eval('' + screen.width) / 2.1));
< fromprefix='border-radius: ' + pbr + 'px;'
< pwidth=eval(-10 + pbr);
< pheight=eval(-10 + pbr);
< worry=true;
< //alert('width,height,br,top,left=' + pwidth + ',' + pheight + ',' + pbr + ',' + ptop + ',' + pleft);
< }
76,78d58
< document.getElementById('atend').style.top='0px';
< document.getElementById('atend').style.left='0px';
< document.getElementById('atright').style.top='0px';
187,188c167,168
< 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".'; }
---
> var ans='', sufans=' Enter + to solve fractional equations. Enter @ to toggle among conic and linear and radial gradient display.';
> if (eqmode) { sufans=' Enter - to just solve leftmost fractional question. Enter @ to toggle among conic and linear and radial gradient display.'; }
191,193d170
< if (eqmode) {
< ans=prompt('What fraction of the "cake" is coloured (for ' + document.getElementById('ssign').value + ' equation)? (eg. 2/3)' + sufans, '');
< } else {
195d171
< }
199,203c175
< 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 ''; }
< if (('' + ans).indexOf('/') == -1 && ('' + ans).replace(/^1$/g, '1.0').replace(/^2$/g, '2.0').replace(/^0$/g, '0.0').indexOf('.') == -1) {
< setTimeout(ask, 3000);
< return '';
< }
---
> if (('' + ans).trim() == '@') { if (gprefix == 'conic') { gprefix='linear'; fromprefix='border-radius: 612px;', toprefix="margin-top: 0px;"; } else if (gprefix == 'linear') { gprefix='radial'; toprefix='border-radius: 612px;', fromprefix="margin-top: 0px;"; } else { gprefix='conic'; toprefix='border-radius: 612px;', 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 ''; }
256a229
>
258d230
< document.write('');
260,264c232
< if (worry) {
< document.write('');
< } else {
< document.write(' ');
< }
---
> document.write(' ');
267,276c235
< if (worry) {
< document.write(' ');
< } else {
< document.write(' ');
< }
< }
< if (worry) {
< document.write(' | | | ');
< } else {
< document.write(' | | |
');
---
> document.write('');
278a238
>
| |