View Single Post
Old 03-13-2011, 11:18 PM   #48
munin
 
Join Date: Aug 2007
Location: Vermont, USA
Default Re: Powerstone Program

Quote:
Originally Posted by roguebfl View Post
I plug that into Chrome, it produced the prompt, but not the results.
Oops. Firefox was being too nice about my bad coding. Try this:
Code:
javascript:c=prompt('Powerstone%20Capacity:','');if(/\d+/.test(c)){d=document.open();d.write((10*c*c+40*c)*Math.pow(54/53,c)+20*c);d.close();}else{null};
Works in Firefox, Chrome, and Safari on my mac.

Last edited by munin; 03-13-2011 at 11:25 PM.
munin is offline   Reply With Quote