[AT&T Samsung Galaxy S II Skyrocket SGH-I727] jerzey111:
actually i tried the website but its sucks. it just shows me the website with their ad.

can someone please convert this code to a simple app so i can use offline.

thank you so much

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">

<html lang=en>

<head>

<meta http-equiv="Content-Type"

content="text/html; charset=iso-8859-1">

<title>How many stops?</title>

<meta name="GENERATOR" content="Brian's Brain, ver. 49">

<meta name="description" content="Javascript utility calculates the difference in stops between two exposure settings">

<meta name="keywords" content="photography, exposure, stops, stop, calculator">

<script type="text/javascript"><!--

function badno(x) { // returns true unless a positive number

return (isNaN(x/x) || x < 0);

}

function update(form) {

var shrat, aprat, exprat;	// ratios (shutter speed, aperture, exposure)

var shunset = 0;	// mock Bools

var apunset = 0;

// check if shutter speeds set

if (form.sh1.value.length + form.sh2.value.length == 0)

{	shrat=1;

shunset=1;

} else {

// fiddle to read shutter speed as fraction

var fract1 = form.sh1.value.split("/", 2);

var fract2 = form.sh2.value.split("/", 2);

var num1 = fract1[0];	// numerator of first shutter speed

var den1 = (fract1.length == 1) ? 1 : fract1[1];

var num2 = fract2[0];	// numerator of second shutter speed

var den2 = (fract2.length == 1) ? 1 : fract2[1];

if(fract1.length==1 && fract2.length==1 && num1*num2>1)

alert("You are calculating with large exposure times: " + num1 + " and " + num2 +

" seconds.\nDid you mean to enter 1/" + num1 + " and 1/" + num2 + "?");

shrat = (num1/den1) / (num2/den2);

if (badno(num1) || badno(num2) || badno(den1) || badno(den2))

{ alert("Missing or invalid shutter speed setting.\nMust be a positive value in seconds - usually a fraction such as 1/250.");

return 0;

}

} // end shrat calculation

// check if aperture set

if (form.ap1.value.length + form.ap2.value.length == 0)

{	aprat=1;

apunset=1;

} else {

if (badno(form.ap1.value) || badno(form.ap2.value))

{ alert("Missing or invalid aperture setting.\nMust be an f-number - enter '8' for f/8.");

return 0;

}

aprat = form.ap2.value / form.ap1.value; // *exposure* ratio (reciprocals!)

} // end aprat calculation

exprat = shrat * aprat * aprat;

if (apunset && shunset)

{ form.reset();

return 0;

}

// ---- Calculate stops

var left, right;

if (exprat > 0.999 && exprat < 1.001) exprat=1; //fudge rounding

if (exprat > 1) // top more

{ left = Math.round(exprat * 1000) / 1000;

right = 1;

form.exp1.value = "More";

form.exp2.value = "Less";

} else if (exprat < 1) // bottom more

{ left = 1;

exprat = 1/exprat; // invert for rounding

right = Math.round(exprat * 1000) / 1000;

form.exp1.value = "Less";

form.exp2.value = "More";

} else { // same!

left=1; right=1;

form.exp1.value = "Same!";

form.exp2.value = "Same!";

}

form.ratio.value = left + ":" + right;

if (left == right)

{ form.stops.value = "";

return 0; // if same, no more to do!

}

var stops = Math.log(exprat)/Math.log(2);

if (form.precision[0].checked) // whole stops

{ stops = Math.round(stops);

form.stops.value = (stops == 0) ?

"<1/2 stop" :

stops + ((stops==1) ? " stop" : " stops");

} else if (form.precision[1].checked) // round to thirds

{ thirds = Math.round(stops * 3);

if (thirds == 0)

form.stops.value = "a smidgen";

else

{ stops = Math.floor(thirds/3);

var fraction = "";

if (thirds-stops*3) fraction = (stops>0 ? "-":"") + (thirds-stops*3) + "/3";

form.stops.value = (stops?stops:"") + fraction + ((stops<2) ? " stop" : " stops");

}

} else // round to 4 decimals

{ stops = Math.round(stops * 10000)/10000;

form.stops.value = stops.toString() + ((stops==1) ? " stop" : " stops");

}

} // end function

//--></script>

<style type="text/CSS"><!--

h2 {font-family: helvetica, arial, sans-serif; text-align: center; color: #2020a0}

h3 {font-family: helvetica, arial, sans-serif; text-align: center; color: #2020a0}

h4 {font-family: times, serif; font-style: italic; color: #2020a0}

DIV.main {margin-left: 3%; margin-right: 3%}

DIV.footer {margin-left: 3%; margin-right: 3%}

DIV.fright {float: right; text-align: right; width: 50%}

DIV.narrate { color: #606060;}

DIV.illust {text-align: center; font-size:smaller; font-family: helvetica, arial, sans-serif;}

td.marked { background-color: #d0a0d0; }

--></style>

</head>

<body background="../graphics/grey2.jpg" bgcolor="#e0e0e0">

<!-- extreme tracker -->

<script type="text/javascript"><!--

an=navigator.appName;sr='http://x3.extreme-dm.com/';srw="na";srb="na";d=document;r=41;function pr(n) {

d.write("<img src=\""+sr+"n\/?tag=chandler&p=http%3A%2F%2Fimaginatorium.org%2Fstuff%2Fstops.htm&j=y&srw="+srw+"&srb="+srb+"&l="+escape(d.referrer)+"&rs="+r+"\" height=1 width=1 alt=\"\">");}//-->

</script><script type="text/javascript" language="javascript1.2"><!--

s=screen;srw=s.width;an!="Netscape"?srb=s.colorDepth:srb=s.pixelDepth//-->

</script><script type="text/javascript"><!--

pr()//-->

</script><noscript><img src="http://x3.extreme-dm.com/z/?tag=chandler&p=http%3A%2F%2Fimaginatorium.org%2Fstuff%2Fstops.htm&j=n" height=1 width=1 alt=""></noscript>

<!-- end extreme tracker -->

<div class=main>

<h3>How many stops?</h3>

<form method=get action="http://imaginatorium.org/c">

<table border=1 cellspacing=0 cellpadding=10 align=center><tr><td><!-- border -->

<noscript><p align=center style="color: #ff0000">Warning: the calculator won't work, because Javascript is not enabled.</p>

</noscript>

<table border=0 cellspacing=0 cellpadding=5 align=center><tr>

<td></td>

<td>Shutter speed</td>

<td>Aperture</td>

<td></td>

<td>Exposure</td>

</tr><tr>

<td><i>First setting:</i></td>

<td class=marked><input type=text name=sh1 size=8 tabindex=1></td>

<td class=marked>f / <input type=text name=ap1 size=4 tabindex=2></td>

<td rowspan=2><input type="button" onClick="update(this.form)" value="Calculate" tabindex=5>

<!--img src="chev.png" width=20 height=45 alt="->"-->

</td>

<td><input type=text name=exp1 size=6 readonly tabindex=0></td>

<td rowspan=2>By <input type=text name=stops size=14 readonly tabindex=0></td>

</tr><tr>

<td><i>Second setting:</i></td>

<td class=marked><input type=text name=sh2 size=8 tabindex=3></td>

<td class=marked>f / <input type=text name=ap2 size=4 tabindex=4></td>

<td><input type=text name=exp2 size=6 readonly tabindex=0></td>

</tr><tr>

<td><i>Example:</i></td>

<td>1/125</td>

<td>(f/) 5.6</td>

</tr><tr>

<td><input type=reset></td>

<td colspan=4>Exposure ratio upper:lower <input type=text name=ratio size=20 readonly></td>

<td><input type=radio name=precision value="whole">Whole stops<br>

<input type=radio checked name=precision value="thirds">One-third stops<br>

<input type=radio name=precision value="precise">Precise stops

</td>

</tr></table></td></tr></table><!-- border --></form>

<!-- <h4>What is this "geometric progress