-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (39 loc) · 1.02 KB
/
index.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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Calculate Expression</title>
<script src="calcExpression.js"></script>
<style>
#expression, #result {
background-color: #234465;
color: #E29C05;
border: none;
width:250px;
padding: 10px;
height:30px;
font-weight:bold;
font-size:18px;
}
div {
margin: 0 auto;
width:300px;
}
#button {
width: 100px;
padding:10px;
font-weight:bold;
background-color: #fff;
border: 1px solid black;
margin-left:75px;
margin-top:15px;
}
</style>
</head>
<body>
<div>
<input type="text" id="expression" name="name" autofocus />
<input type="button" id="button" value="Eval result" onclick="calc(document.getElementById('expression').value)" />
<p id="result"></p>
</div>
</body>
</html>