From 2a3c708291d807b9e5fa40ce56f3fc13caa32469 Mon Sep 17 00:00:00 2001 From: Marlon Portmann <> Date: Wed, 16 Nov 2022 10:56:02 +0100 Subject: [PATCH] 1 image only --- js/functions.js | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/js/functions.js b/js/functions.js index 6d2e82c..22bbb57 100644 --- a/js/functions.js +++ b/js/functions.js @@ -55,7 +55,7 @@ $(document).ready(function(){ } - + }) @@ -68,7 +68,7 @@ function openOverlay(){ $("#cancel").click(function() { document.getElementById("overlay_container").innerHTML = ""; $("#overlay").removeClass("show").addClass("hidden") - + }) } @@ -145,13 +145,13 @@ function ideeAnzeigen(data) { let img = $("").addClass("previewImage"); img.attr("src", imgUrlArr[i]); img.appendTo(bildContainer); - + } - + bildContainer.prependTo($("#overlay_container")) } - + /* let bild = document.createElement("img"); @@ -373,7 +373,7 @@ function formularErstellen(koordianten) { titel_input.setAttribute("name", "titel"); titel_input.setAttribute("placeholder", "titel"); - + let text_input = document.createElement("input"); text_input.setAttribute("type", "textarea"); @@ -389,7 +389,7 @@ function formularErstellen(koordianten) { submit_input.setAttribute("value", "Formular Absenden"); - document.getElementById("form").appendChild(titel_input); + document.getElementById("form").appendChild(titel_input); document.getElementById("form").appendChild(text_input); document.getElementById("form").appendChild(submit_input); document.getElementById("form").appendChild(koordinaten_lat); @@ -397,16 +397,16 @@ function formularErstellen(koordianten) { document.getElementById("form").appendChild(image_links); let imageUpload = $('