-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
121 lines (94 loc) · 2 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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>chessframejs preview</title>
<style>
@font-face {
font-family: 'SpaceMono';
src: url('./res/fonts/Space_Mono/SpaceMono-Regular.ttf');
}
html {
overflow: hidden;
height: 100%;
}
body {
height: 100%;
overflow: auto;
font-family: 'SpaceMono';
font-size: small;
}
.toparea {
width: 100%;
display: flex;
gap: 10px;
justify-content: space-around;
}
.layout {
display: flex;
position: relative;
gap: 16px;
justify-content: center;
margin-top: 5%;
}
#movesarea {
margin-top: 16px;
resize: none;
}
.left {
text-align: left;
}
.right {
text-align: right;
}
.bottom {
position: absolute;
bottom: 0.4em;
}
#rotate-btn {
margin-top: 1em;
}
#posstring {
margin-top: 0.5em;
font-size: 1em;
line-height: 1em;
border: 1px solid #ccc;
padding: 0;
box-sizing: border-box;
resize: none;
overflow: hidden;
display: block;
font-family: 'SpaceMono';
}
#posstring-lbl {
font-size: 0.9em;
}
</style>
</head>
<section class="layout">
<br>
<div class="left">
<section class="toparea">
<div>
<p id="top-txt">Chessboard</p>
</div>
</section>
<div class="board" id="board"> </div>
</div>
<div>
<div class="bottom">
<div>
<label id="posstring-lbl" for="posstring">Position <br> String:</label>
<br>
<textarea id="posstring" name="posstring" rows="8" cols="8" readonly> </textarea>
</div>
<button id="rotate-btn" class="control" onclick="rotateBoard()">rotate board </button>
</div>
</div>
</section>
<!-- include/board.js-->
<script type="text/javascript" src="include/chessframejs.js"></script>
<!-- example-->
<script type="text/javascript" src="example.js"></script>
</body>
</html>