Commit bf92be8b authored by Téo Vasseur's avatar Téo Vasseur

js, css : add Heavy view

See #2513
parent c17f9fbe
......@@ -137,6 +137,10 @@ div {
width: 400px;
}
.heavy {
background-color: #888;
}
/*##############################################*/
......
......@@ -28,6 +28,11 @@ function Solid2(id, parentId) {
View.call(this, id, parentId, "solid2");
}
function Heavy(id, parentId) {
View.call(this, id, parentId, "heavy");
for (var i = 0 ; i < 10000 ; i++) this.node.appendChild(document.createElement('span'));
}
function setView(view, parentId) {
document.getElementById(parentId).appendChild(view.node);
}
......@@ -92,6 +97,8 @@ function main() {
var v5 = new Solid1("v5", 'A');
var v6 = new Solid2("v6", 'B');
var v7 = new Heavy("v7", 'B');
setMenuOptions();
setOverlays();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment