forked from mathieuancelin/js-repaint-perfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
all.html
189 lines (167 loc) · 3.93 KB
/
all.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
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>dbmon</title>
<link href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700" rel="stylesheet" type="text/css">
<style>
body {
background-color: rgb(28, 28, 28);
font-family: "Open Sans Condensed", "Helvetica Neue";
}
#render-frame {
background-color: white;
}
#render-info {
color: white;
}
#ranking {
color: white;
}
.title {
color: rgb(102, 102, 102);
font-weight: bold;
}
@media(min-width: 1025px) {
.title {
font-size: 80px;
}
}
@media(max-width: 1024px) {
.title {
font-size: 40px;
}
}
a {
color: white;
text-decoration: none;
width: 100%;
}
.optimized {
background-color: #FF6347;
/*#FF6347;*/
}
.todo {
background-color: #2167FF;
/*#0EB26D;*/
}
.naive {
background-color: #EBA636;
/*rgb(100, 100, 100);*/
}
.container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
padding: 0;
margin: 0;
justify-content: flex-start;
}
.legend {
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.child {
padding: 0px;
width: 200px;
height: 200px;
margin-top: 10px;
margin-left: 5px;
margin-right: 5px;
color: white;
font-weight: bold;
font-size: 20px;
text-align: center;
display: flex;
align-items: center;
cursor: pointer;
}
.child:hover {
animation-name: blop;
animation-iteration-count: infinite;
animation-timing-function: linear;
animation-duration: 2s;
}
.legendChild {
width: 200px;
margin-top: 5px;
color: white;
text-align: center;
display: flex;
align-items: center;
}
.color {
width: 15px;
height: 15px;
}
.fw {
margin-left: 10px;
margin-right: 10px;
font-size: 12px;
color: white;
width: 120px;
text-align: right;
}
tr {
text-align: center;
}
@keyframes blop {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
</style>
</head>
<body>
<div style="display: flex; justify-content: space-between; flex-wrap: wrap;">
<span class="title">REPAINT RATE CHALLENGE</span>
<div class="legend">
<div class="legendChild">
<span class="fw">Todo implementation</span>
<div class="color todo"></div>
</div>
<div class="legendChild">
<span class="fw">Naive implementation</span>
<div class="color naive"></div>
</div>
<div class="legendChild">
<span class="fw">Optimized implementation</span>
<div class="color optimized"></div>
</div>
</div>
</div>
<div id="render-box">
<div id="render-info"></div>
<iframe id="render-frame" height="1080" width="1920"></iframe>
</div>
<div>
<table id="ranking">
<thead>
<tr>
<th style="min-width:25px"></th>
<th style="min-width:250px">Name</th>
<th style="min-width:100px">Rate/sec 1%</th>
<th style="min-width:100px">25%</th>
<th style="min-width:100px">50%</th>
<th data-sort-default aria-sort="descending" style="min-width:100px">100%</th>
</tr>
</thead>
<tbody id="ranking-body">
</tbody>
</table>
</div>
<script src="./elem-vdom/elem.js"></script>
<script src="./list.js"></script>
<script src="./lib/monitor-all.js"></script>
<script src="./ga.js"></script>
<script src="https://cdn.rawgit.com/tristen/tablesort/gh-pages/dist/tablesort.min.js"></script>
<script src="https://cdn.rawgit.com/tristen/tablesort/gh-pages/dist/sorts/tablesort.number.min.js"></script>
</body>
</html>