-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdouble.html
42 lines (40 loc) · 901 Bytes
/
double.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
<head>
<script src="index.js"></script>
<script>
function clicked() {
console.log("clicked")
let input = document.getElementById("in")
doubleInit(parseFloat(input.value))
}
</script>
<style>
a, button,input {
outline: none;
text-decoration: none;
display: inline-block;
width: 5%;
margin-right: 0.625%;
text-align: center;
line-height: 3;
color: black;
background: lightgray;
}
a:hover, button:hover {
background: orange;
}
a:active, button:active {
background: #FF6600;
color: white;
}
canvas {
float: right;
}
</style>
</head>
<body>
<!-- <a id="next" href="double.html"> Next </a> -->
<a id="prev" style="float:left;" href="index.html"> Prev </a>
<input type="text" id="in"> </input>
<button onclick="clicked();">Start</button>
<canvas id="canvas"></canvas>
</body>