forked from bardurt/odontograma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (42 loc) · 1.29 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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>Odontograph 1.0.0</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
<script src="js/engine.js" type="text/javascript"></script>
</head>
<body oncontextmenu="return false;">
<canvas id="canvas" width="648" height="800" crossorigin="anonymous"></canvas>
<script>
var canvas = document.getElementById('canvas');
var engine = new Engine();
engine.setCanvas(canvas);
engine.init();
canvas.addEventListener('mousedown', function (event) {
engine.onMouseClick(event);
}, false);
canvas.addEventListener('mousemove', function (event) {
engine.onMouseMove(event);
}, false);
window.addEventListener('keydown', function (event) {
engine.onButtonClick(event);
}, false);
engine.loadPatientData("New York",
"Bardur Thomsen",
"1002",
"hc 001",
"26/02/2018",
"dentist one",
"Test observations",
"Test specifications");
</script>
</body>
</html>