aboutsummaryrefslogtreecommitdiff
path: root/quotes/public/script.js
diff options
context:
space:
mode:
authorLarsVomMars2020-10-21 09:28:59 +0200
committerLarsVomMars2020-10-21 09:28:59 +0200
commit629c97555ff8686e091ad9d9ab0706ad242d941f (patch)
tree7a66995ae1fc19f4246eef3eba6bd0ba72eadf3e /quotes/public/script.js
parent36936cbc7e79e4eef2f2e49432eeb31e4198e5bd (diff)
Super duper style fix
Diffstat (limited to 'quotes/public/script.js')
-rw-r--r--quotes/public/script.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/quotes/public/script.js b/quotes/public/script.js
index 3e6f52e..be2533b 100644
--- a/quotes/public/script.js
+++ b/quotes/public/script.js
@@ -27,9 +27,11 @@ function appendQuote(response) {
.getElementById(elem["class"])
.insertAdjacentHTML(
"beforeend",
- `<li>${elem["name"]} ${elem["middlename"] ? elem["middlename"] + " " : ""}${elem["surname"]}: ${
- elem["quote"]
- }${elem["owner"] ? ' <span data-id="' + elem["id"] + '"></span></li>' : ""}`,
+ `<li><span class="text">${elem["name"]} ${elem["middlename"] ? elem["middlename"] + " " : ""}${
+ elem["surname"]
+ }: ${elem["quote"]}</span>${
+ elem["owner"] ? ' <span class="delete-btn" data-id="' + elem["id"] + '"></span></li>' : ""
+ }`,
);
const span = document.querySelector(`li span[data-id="${elem["id"]}"]`);