diff --git a/generator.js b/generator.js index ef40587..e59c6f4 100644 --- a/generator.js +++ b/generator.js @@ -1,19 +1,4 @@ -function insert(pos, id, placeholder) { - let input = document.createElement('input') - input.type = 'text' - input.id = id - input.placeholder = placeholder - input.oninput = () => { generate('generator_body') } - document.querySelector(pos).appendChild(input) -} -function removeLast(pos) { - console.log(document.querySelector(pos).lastChild.tagName); - if (document.querySelector(pos).lastChild.tagName != 'INPUT') { - return - } - document.querySelector(pos).removeChild(document.querySelector(pos).lastChild) -} function generate(params) { let form = document.getElementById(params) // console.log(form) diff --git a/index.html b/index.html index f8440df..b36202a 100644 --- a/index.html +++ b/index.html @@ -13,6 +13,23 @@ +