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

js : add view class, and views in #B and #C

parent a4002a30
......@@ -4,7 +4,7 @@ function View(parentId, classes) {
var parent = document.getElementById(parentId);
var view = document.createElement('div');
view.className = classes;
view.className = "view " + classes;
parent.appendChild(view);
}
......@@ -16,6 +16,8 @@ function Flex(parentId) {
function main() {
new Flex('A');
new Flex('A');
new Flex('B');
new Flex('C');
}
main();
\ No newline at end of file
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