-
Notifications
You must be signed in to change notification settings - Fork 2
/
Calculate.html
47 lines (44 loc) · 1.04 KB
/
Calculate.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<html>
<head>
<title>
Sample Calculator | Js
</title>
<script src="calculate.js" type="text/javascript"></script>
</head>
<body>
<div id='message'>
<div>
<input type='number' min='0' max='100' id='first' required/>
<input type='number' min="0" max='100' id='next' required/>
<select id='operand' required>
<option value="none">--select--</option>
<option value="add">
Add
</option>
<option value="diff">
Subtract
</option>
<option value="mul">
Multiply
</option>
<option value="div">
Division
</option>
</select>
<input type="button" value='Calculate' onclick="calculate()"/>
</div>
</div>
<div id='result'>
</div>
</body>
</html>
<style type="text/css">
input[type=text],input[type=number]{
width: 7%
}
#result{
font-style: italic;
font-weight: bold;
margin-left: 5px;
}
</style>