forked from mathieuancelin/js-repaint-perfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
130 lines (130 loc) · 3.14 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
122
123
124
125
126
127
128
129
130
<!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";
}
.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;
}
@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="list"></div>
<script src="./elem-vdom/elem.js"></script>
<script src="./library-list.js"></script>
<script src="./ga.js"></script>
</body>
</html>