-
Notifications
You must be signed in to change notification settings - Fork 2
/
index_style.html
81 lines (70 loc) · 1.53 KB
/
index_style.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
<html>
<head>
<meta charset="utf-8" />
<title>Server Websocket</title>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
<h1>MNIST Websocket Example in Nim </h1>
<br>
<style>
/* .container { */
/* width: 1000px; */
/* height: 800px; */
/* position: absolute; */
/* left: 10%; */
/* top: 20%; */
/* margin-left: 0px; /\* Half of width *\/ */
/* margin-top: -50px; /\* Half of height *\/ */
/* } */
/* .left { */
/* float: left; */
/* width: 150px; */
/* } */
/* .middle{ */
/* float: center; */
/* width: 0px */
/* } */
/* .right { */
/* float: right; */
/* width: 150px; */
/* } */
/* The Magic Float Center Code */
.float_center {
float: right;
position: relative;
left: -50%; /* or right 50% */
text-align: left;
}
.float_center > .child {
position: relative;
left: 50%;
}
ul {
list-style-type: none;
margin:0;
padding:10px 0;
}
ul li {
float: left;
list-style-type: none;
margin: 0 6px;
}
p {
margin: 0;
}
</style>
<div id="button">
<button onclick="animateClient()">Start training!</button>
</div>
<div class="float_center">
<ul class="child">
<li><div class="child" id="MNIST"><!-- MNIST example drawn here --></div></li>
<li><div class="child" id="prediction"><!-- prediction drawn here --></div></li>
<li><div class="child" id="error_rate"><!-- error rate drawn here --></div></li>
</ul>
<div class="clear"></div>
</div>
<script type="text/javascript" src="nimcache/clientPlotly.js"></script>
</body>
</html>