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

95 lines (76 sloc) 2.714 kB
<!DOCTYPE html>
<html><head>
<title>Sandeeeep</title>
<meta name="viewport" content="width=device-width, initial-scale=1" >
<link rel="stylesheet" href="jquery.mobile-1.1.1/jquery.mobile-1.1.1.min.css" >
<script src="jquery-1.8.1.js" ></script>
<script src="jquery.mobile-1.1.1/jquery.mobile-1.1.1.min.js" ></script>
<div data-role="header" data-position="fixed" data-theme="w" >
<a data-role="button" data-rel="back" data-transition="slide" href="#page1" >
</a>
<a data-role="button" data-transition="slide" href="index.html" >
<img src="homeIcon.gif">
</a>
</div>
<script type="text/javascript" >
var x = 0;
var y = 0;
var z = 0;
function Add()
{
x = document.getElementById("nOne").value;
y = document.getElementById("nTwo").value;
z = parseInt(x)+parseInt(y);
box.value = z;}
function Subtract()
{
x = document.getElementById("nOne").value;
y = document.getElementById("nTwo").value;
z = parseInt(x)-parseInt(y);
box.value = z;}
function Multiply()
{
x = document.getElementById("nOne").value;
y = document.getElementById("nTwo").value;
z = parseInt(x)*parseInt(y);
box.value = z;
}
function Divide()
{
x = document.getElementById("nOne").value;
y = document.getElementById("nTwo").value;
z = parseInt(x)/parseInt(y);
box.value = z;
} </script>
</head>
<body>
<div data-role="MAIN PAGE" >
<div data-role="header" >
<h1>Sandeep's APP</h1>
</div><!-- /header -->
<div data-role="content" style="position:inherit; " >
<br><br><p>Hello world</p>
<a href="http://google.com" data-role="button" data-icon="" >Star button</a>
<ul data-role="listview" data-inset="true" data-filter="true" >
<li><a href="#" >Alok</a></li>
<li><a href="#" >sandeep</a></li>
<li><a href="#" >gulshan</a></li>
<li><a href="#" >maria </a></li>
<li><a href="#" >papachan </a></li>
</ul>
<h1><center>Hello sandeep !!</center> </h1>
<p>This is an application for a simple calculator.</p>
<input id="nOne" type="number" style="width:70px; " />
<input id="nTwo" type="number" style="width:70px; " />
<br>
<input type="text" id="box" readonly="readonly" />
<br>
<input type="button" value="Add" onclick="Add()" />
<input type="button" value="Subtract" onclick="Subtract()" />
<br>
<input type="button" value="Multiply" onclick="Multiply()" />
<input type="button" value="Divide" onclick="Divide()" />
<br>
</div><!-- /content -->
</div><!-- /page -->
</body></html>
Jump to Line
Something went wrong with that request. Please try again.