forked from tensorflow/minigo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudy.html
More file actions
167 lines (143 loc) · 4.63 KB
/
Copy pathstudy.html
File metadata and controls
167 lines (143 loc) · 4.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<title>Minigo: study</title>
<link href="style.css" rel="stylesheet">
<script type="text/javascript" src="socketio/socket.io.min.js"></script>
<script data-main="study" src="require/require.js"></script>
<style>
.minigui {
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: center;
height: 90vh;
margin-top: 5vh;
}
.button {
font-size: 1.4vh;
border-radius: 0.6vh;
width: 11vh;
height: 4vh;
background-color: #111;
color: #eee;
}
.comment-head {
border-radius: 0.6vh 0.6vh 0 0;
border-bottom: 1px dashed #543;
width: 39vh;
height: 4vh;
font-family: sans-serif;
font-size: 1.4vh;
background-color: #2c241e;
align-items: center;
justify-content: left;
color: #eee;
display: flex;
padding-left: 1vh;
}
#main-board { width: 100%; height: 100%; }
.main-board-pad { height: 100%; width: 90vh; padding: 3vh; }
.graph { width: 39vh; height: 24vh; }
.log-container {
background-color: rgba(0, 0, 0, 0.75);
position: absolute;
left: 0;
top: -40vh;
width: 100vw;
height: 40vh;
transition: top 0.15s;
}
.log { height: calc(40vh - 24px); font-size: 9px; }
.console-wrapper { height: 24px; }
.console-prompt { font-size: 10px; width: 16px; }
#console { font-size: 10px; width: calc(100vw - 16px); padding: 3px 0 3px 0; }
#console:focus { outline: none; }
#comment {
width: 39vh;
height: 24vh;
background-color: #2c241e;
color: rgba(255, 255, 255, 0.7);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
font-size: 0.9vh;
font-family: monospace;
overflow-y: auto;
padding: 4px;
white-space: pre-wrap;
}
#tree {
width: 39vh;
height: 18vh;
background-color: #2c241e;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
overflow: hidden;
}
#load-sgf-input {
height: 0;
position: absolute;
width: 0;
overflow: hidden;
}
.item { display: inline-flex; flex: 1; cursor: default; }
#move {
display: inline-flex;
flex: 1;
cursor: text;
margin-right: 1vh;
}
#move:focus { outline: none }
#move:hover { background-color: #111; }
</style>
</head>
<body>
<!--
Explanation of settings:
report_search_interval=50 : backend sends search messages every 250ms.
-->
<div class="minigui" data-gtp-report_search_interval="50">
<div class="main-board-pad board"><div id="main-board"></div></div>
<div class="sp-3vh"></div>
<div class="fs-0" style="display:flex; flex-direction:column">
<div class="fs-0" style="display:flex">
<div id="toggle-search" class="button">Hide search</div>
<div class="sp-3vh"></div>
<div id="clear-board" class="button">Clear board</div>
<div class="sp-3vh"></div>
<label class="button">Load SGF
<input id="load-sgf-input" type="file" accept=".sgf">
</label>
</div>
<div class="sp-3vh"></div>
<div id="tree"></div>
<div class="sp-3vh"></div>
<div class="fs-0" style="display:flex">
<div style="display:flex; width:14vh"></div>
<div id="count-score" class="button">Count score</div>
<div class="sp-3vh"></div>
<div id="main-line" class="button">To main line</div>
</div>
<div class="sp-3vh"></div>
<div class="comment-head">
<div style="display:inline-flex; flex:7;">
<div class="item">Move: <span id="move" contenteditable="true">0</span></div>
<div class="item">Reads: <span id="reads">0</span></div>
</div>
<div style="display:inline-flex; flex:3;">
<div class="item">B: <span id="b-caps">0</span></div>
<div class="item">W: <span id="w-caps">0</span></div>
</div>
</div>
<div id="comment"></div>
<div class="sp-3vh"></div>
<div id="winrate-graph" class="graph"></div>
</div>
<div id="log-container" class="log-container">
<div id="log" class="log"></div>
<div class="console-wrapper">
<div class="console-prompt">></div><div contenteditable id="console" class="console"></div>
</div>
</div>
</div>
</body>
</html>