/
index.html
executable file
·31 lines (30 loc) · 1.14 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My Canvas demo</title>
<script type="text/javascript" src="shapes.js"></script>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body onload="init()">
<div id="container">
<canvas id="canvas" width="400" height="300" style="border: 1px solid black;">
This text is displayed if your browser does not support HTML5 Canvas.
</canvas>
<div id="right-panel">
<form>
<label>Selected Item X:</label>
<input type="number" value="asas" id="selected_item_x">
<label>Selected Item Y:</label>
<input type="number" value="asas" id="selected_item_y">
<label>Selected Item Width:</label>
<input type="number" value="asas" id="selected_item_width">
<label>Selected Item Height:</label>
<input type="number" value="asas" id="selected_item_height">
</form>
<button id="create_item">Click Me!!</button>
</div>
</div>
</body>
</html>