-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (39 loc) · 1.08 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Lab2</title>
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self'"
/>
<meta
http-equiv="X-Content-Security-Policy"
content="default-src 'self'; script-src 'self'"
/>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="control-panel">
<div>
<button id="js-clear">Clear</button>
<button id="js-refl-x">Reflection across X-axis</button>
<button id="js-refl-y">Reflection across Y-axis</button>
<button id="js-refl-xy">Reflection across f(x)=y</button>
</div>
<div>
<button id="js-scale-pos">Scale x2</button>
<button id="js-scale-neg">Scale /2</button>
</div>
<div>
<label for="js-input-x">x:</label>
<input id="js-input-x"></input>
<label for="js-input-y">y:</label>
<input id="js-input-y"></input>
</div>
</div>
<canvas id="js-canvas" width="1000" height="1000"></canvas>
<script src="./dist/renderer.js"></script>
</body>
</html>