-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (59 loc) · 1.25 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html>
<head>
<script>
function add() {
var x = document.getElementById("result").value;
x++;
document.getElementById("result").value=x;
}
function sub() {
var x = document.getElementById("result").value;
x--;
document.getElementById("result").value=x;
}
</script>
<style>
body{
background-color: black;
}
#table.center{
padding-left: 10px;
padding-top: 250px;
}
table{
padding-left: 10px;
}
#div{
color: white;
text-align: justify;
height: 550px;
margin: auto;
display: flex;
justify-content: center;
flex-wrap: wrap;
}
</style>
</head>
<body>
<div id="div">
<center>
<table id="center">
<tr>
<h4 style="text-align:center; padding-top:200px;">ENTER AN NUMBER HERE </h4>
<h5 style="text-align:center;">press + the increase and - to decrease the value</h5>
</tr>
</table>
<table>
<tr>
<td colspan="2"><input type="number" id="result"/></td>
</tr>
<tr>
<td align="left"><button type="button" value="+" onclick="add()">+</button></td>
<td align="right"><button type="button" value="-" onclick="sub()">-</button></td>
</tr>
</div>
</table>
</center>
</body>
</html>