-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
105 lines (88 loc) · 2.71 KB
/
test.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html>
<head>
<style>
input[type=range][orient=vertical] {
-webkit-appearance: slider-vertical;
height: 160px;
}
input[type=range][orient=horizontal] {
-webkit-appearance: slider-horizontal;
width: 160px;
}
td {
min-width: 40px;
min-height: 20px;
text-align: center;
}
td.left {
border-left: solid;
}
td.right {
border-right: solid;
}
td.top {
border-top: solid;
}
td.bottom {
border-bottom: solid;
}
</style>
</head>
<body>
<div style="display:flex">
<canvas id="myCanvas" width="400" height="400" style="border:1px solid #d3d3d3;">Your browser does not support the HTML5 canvas tag.</canvas>
<table>
<tr>
<td id="m11" class="left top"></td>
<td id="m12"></td>
<td id="m13"></td>
<td id="m14" class="right top"></td>
</tr>
<tr>
<td id="m21" class="left"></td>
<td id="m22"></td>
<td id="m23"></td>
<td id="m24" class="right"></td>
</tr>
<tr>
<td id="m31" class="left"></td>
<td id="m32"></td>
<td id="m33"></td>
<td id="m34" class="right"></td>
</tr>
<tr>
<td id="m41" class="left bottom"></td>
<td id="m42"></td>
<td id="m43"></td>
<td id="m44" class="right bottom"></td>
</tr>
</table>
</div>
<div style="display:flex;">
<div style="height:300px;width:300px;margin:0">
<p>Vertical Skew: <span id="vSkewOut">0</span></p>
<input type="range" min="-90" max="90" value="0" class="slider" id="vSkewSlide" orient="vertical">
<p>Horizontal Skew: <span id="hSkewOut">0</span></p>
<input type="range" min="-90" max="90" value="0" class="slider" id="hSkewSlide" orient="horizontal">
</div>
<div style="height:300px;width:300px;margin:0">
<p>Vertical Trans: <span id="vTransOut">0</span></p>
<input type="range" min="-400" max="400" value="0" class="slider" id="vTransSlide" orient="vertical">
<p>Horizontal Trans: <span id="hTransOut">0</span></p>
<input type="range" min="-400" max="400" value="0" class="slider" id="hTransSlide" orient="horizontal">
</div>
<div style="height:300px;width:300px;margin:0">
<p>Vertical Scale: <span id="vScaleOut">0.5</span></p>
<input type="range" min="-100" max="100" value="50" class="slider" id="vScaleSlide" orient="vertical">
<p>Horizontal Scale: <span id="hScaleOut">0.5</span></p>
<input type="range" min="-100" max="100" value="50" class="slider" id="hScaleSlide" orient="horizontal">
</div>
<div style="height:300px;width:300px;margin:0">
<p>Rotate: <span id="rotateOut">0</span> deg</p>
<input type="range" min="-180" max="180" value="0" class="slider" id="rotateSlide" orient="vertical">
</div>
</div>
<script type="text/javascript" src="./test.js"></script>
</body>
</html>