document.querySelector("#profile-foreground-img-file-input") && document.querySelector("#profile-foreground-img-file-input").addEventListener("change", function () { var o = document.querySelector(".profile-wid-img"), e = document.querySelector(".profile-foreground-img-file-input").files[0], i = new FileReader; i.addEventListener("load", function () { o.src = i.result }, !1), e && i.readAsDataURL(e) }), document.querySelector("#profile-img-file-input") && document.querySelector("#profile-img-file-input").addEventListener("change", function () { var o = document.querySelector(".user-profile-image"), e = document.querySelector(".profile-img-file-input").files[0], i = new FileReader; i.addEventListener("load", function () { o.src = i.result }, !1), e && i.readAsDataURL(e) }); var count = 2; function new_link() { count++; var o = document.createElement("div"), e = '
to
Delete
', e = (o.innerHTML = document.getElementById("newForm").innerHTML + e, document.getElementById("newlink").appendChild(o), document.querySelectorAll("[data-trigger]")); Array.from(e).forEach(function (o) { new Choices(o, { placeholderValue: "This is a placeholder set in the config", searchPlaceholderValue: "This is a search placeholder", searchEnabled: !1 }) }) } function deleteEl(o) { o = (d = document).getElementById(o); d.getElementById("newlink").removeChild(o) }