-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (90 loc) · 3.63 KB
/
index.html
File metadata and controls
100 lines (90 loc) · 3.63 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>汉字写写</title>
<style>
label, canvas, div {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.fixedPos {
margin: 4px;
position: absolute;
}
.header {
margin: 4px;
padding: 4px;
border: solid 1px green;
}
.bar li{
float: left
}
.bigimg {
position:absolute;
display: none;
/* background-color: rgb(255,201,14); */
}
.linepading {
line-height: 30px;
}
.icon {
width: 24px;
height: 24px;
float: none;
}
body {
overflow: hidden;
}
</style>
</head>
<body onload = "javascript: init();"
onresize="javascript: resize();"
onselectstart="javascript: {return false};"
onbeforeprint="javascript: beforePrint();"
onafterprint="javascript: afterPrint();">
<div class = "header" id = "header">
<table width="100%">
<tr>
<td class = "linepading">
<label>大小:</label>
<img id = "smaller" class="icon" src="images/smaller.jpg" alt="- 减小(Smaller)"/>
<img id = "bigger" class="icon" src="images/bigger.jpg" alt="+ 增大(Bigger)"/>
<img class="icon" src="images/spliter.png"/>
<img id = "clear" class="icon" src="images/clear.png" alt="清除(Clear)"/>
<img class="icon" src="images/spliter.png"/>
<!--label>笔粗细</label-->
<img class="icon" src="images/penwidth.jpg" alt="笔粗细"/>
<button id = "thiner">-</button>
<button id = "thicker">+</button>
<label id = "penwidth">2</label>
<img class="icon" src="images/spliter.png"/>
<!--label>笔颜色</label-->
<img class="icon" src="images/pen.jpg" alt="笔颜色"/>
<button id = "color1" onclick = "javascript: colorClicked(this, event)"> </button>
<button id = "color2" onclick = "javascript: colorClicked(this, event)"> </button>
<button id = "color3" onclick = "javascript: colorClicked(this, event)"> </button>
<br/><label for = "text">描字:</label>
<input id = "text" onkeyup="javascript: txtKeyUp(event)" value = "我是中国人"></input>
</td>
<td align="right">
<img width="64" height="64" src = "images/wxdonate.jpg" alt="donate a cup of beer"
onmouseover="javascript:showBigImg(this, event)"
onmouseout="javascript:hideBigImg()"/>
</td>
</tr>
</table>
</div>
<img id="bigimg" class="bigimg"/>
<div id="content">
<canvas id="cvsbg" class="fixedPos"></canvas>
<canvas id="cvspt" class="fixedPos"></canvas>
</div>
</body>
<script type="text/javascript" src="scripts/main.js"></script>
</html>