diff --git a/insurance-calculator-app/src/main/resources/static/js/person.js b/insurance-calculator-app/src/main/resources/static/js/person.js new file mode 100644 index 0000000..68c4312 --- /dev/null +++ b/insurance-calculator-app/src/main/resources/static/js/person.js @@ -0,0 +1,69 @@ +function addPerson() { + let personsContainer = document.getElementById("persons-container"); + let index = document.getElementsByClassName("person-card").length; + let personTemplate = ` +