-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path006-paint.html
90 lines (86 loc) · 1.54 KB
/
006-paint.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=320, user-scalable=no" />
<link rel="stylesheet" href="doodle.css" />
<title>Paint</title>
<style>
#canvasContainer
{
text-align: center;
}
#canvas
{
width: 80%;
display: inline-block;
}
.last-picked
{
}
.last-picked .character
{
float: left;
font-size: 35px;
margin-right: 5px;
}
#unihan-status
{
float: right;
}
#unihan-status .ok
{
color: #1FC92B;
}
#unihan-status .error
{
color: #C9231F;
}
@media screen and (min-width: 500px)
{
main
{
display: grid;
grid-template-columns: 320px auto;
grid-auto-rows: minmax(100px, auto);
}
#canvas
{
grid-column: 1;
grid-row: 1;
width: 100%;
display: block;
}
#summary
{
grid-column: 2 / 3;
grid-row: 1/3;
}
#controls
{
grid-column: 1;
grid-row: 2;
}
}
</style>
<link rel="stylesheet" href="006-hanzipad.css" />
</head>
<body>
<header id="doodle-header">
<a href="."><strong>←</strong> all doodles</a>
<h1>Paint</h1>
</header>
<main id="doodle-main" class="HanziPad">
<div id="canvasContainer">
<canvas id="canvas"></canvas>
</div>
<div id="summary"></div>
<div id="controls">
<p><tt id="clock-code"></tt></p>
</div>
</main>
<script src="006-hanzipad.js"></script>
<script src="006-database.js"></script>
<script src="006-paint.js"></script>
</body>
</html>