-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (40 loc) · 927 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>Triangles</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="main.js"></script>
<style type="text/css">
html, body {
margin: 0px;
background-color: #f2f2f2;
position: relative;
font-family: Arial, Helvetica, sans-serif;
}
canvas {
display: block;
position: absolute;
top:0;
left:0;
}
#output{
position: absolute;
left:0;
top:0;
font-size: 16px;
padding:5px;
background-color: rgba(255,255,255,.5);
padding:20px;
}
</style>
</head>
<body>
<div id="output">
<div>Hypotenuse: <span id="hypotenuse" class="debug-text"></span></div>
<div>Theta <span id="theta" class="debug-text"></span></div>
<div>Opposite <span id="opposite" class="debug-text"></span></div>
<div>Adjacent <span id="adjacent" class="debug-text"></span></div>
</div>
<canvas id="canvas"></canvas>
</body>
</html>