Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

73 lines (62 sloc) 2.241 kB
<!DOCTYPE HTML>
<html manifest="cache.manifest">
<head>
<meta name="author" content="PotHix" />
<meta name="description" content="Test page" />
<meta name="generator" content="VIm" />
<meta name="keywords" content="Test page" />
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="jquery/jquery.mobile-1.0.min.css" />
<script type="text/javascript" src="jquery/jquery.min.js"></script>
<script src="jquery/jquery.min.js"></script>
<script src="jquery/jquery.mobile-1.0.min.js"></script>
<!--
New tags to be added, just waiting the icon images
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="shortcut icon" href="/favicon.ico">
-->
<title>VF</title>
</head>
<body>
<div data-role="page" id="maintenance">
<div data-role="header">
<h1>VF</h1>
</div>
<div data-role="content">
<ul data-role="listview">
<li data-role="fieldcontain">
<label for="money">Money:</label>
<input type="number" name="money" id="money" value="1000" />
</li>
<li data-role="fieldcontain">
<label for="monthly_tax">Monthly tax:</label>
<input type="number" name="monthly_tax" id="monthly_tax" value="0.6" />
</li>
<li data-role="fieldcontain">
<label for="years">Years:</label>
<input type="number" name="years" id="years" value="1" />
</li>
<li class="ui-body ui-body-b">
The result is: R$ <span id="vf">_________</span>
</li>
<li class="ui-body ui-body-b">
<button id="button" data-theme="a">Calc</button>
</li>
</ul>
</div>
<div data-role="footer"><h4>PotHix VF - 2011</h4></div>
</div>
<script type="text/javascript">
var result = 0;
$("#button").click(function(){
var money = parseFloat($("#money").val());
var monthly_tax = parseFloat($("#monthly_tax").val());
var years = parseInt($("#years").val());
result = money*(Math.pow(1+(monthly_tax*12/100),years));
$("#vf").html(result.toFixed(2));
});
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.