diff --git a/assets/main.js b/assets/main.js index 73495b4..49399dc 100644 --- a/assets/main.js +++ b/assets/main.js @@ -1,10 +1,13 @@ // TODO -function main() { + +function addLine() { + const ltp = document.querySelector("#linetmpl"); const lines = document.querySelector("#lines"); - const bp = document.querySelector("#blueprint .linecontainer"); - function addLine() { - lines.appendChild(bp.cloneNode(true)); - } + const l = ltp.content.cloneNode(true); + + lines.appendChild(l); +} +function main() { for (var i = 0; i < 10; i++) { addLine(); } diff --git a/templates/index.tmpl b/templates/index.tmpl index 3fd2b3f..80ca0aa 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -9,17 +9,17 @@
-