From 629c97555ff8686e091ad9d9ab0706ad242d941f Mon Sep 17 00:00:00 2001 From: LarsVomMars Date: Wed, 21 Oct 2020 09:28:59 +0200 Subject: Super duper style fix --- quotes/public/script.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'quotes/public/script.js') 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", - `
  • ${elem["name"]} ${elem["middlename"] ? elem["middlename"] + " " : ""}${elem["surname"]}: ${ - elem["quote"] - }${elem["owner"] ? '
  • ' : ""}`, + `
  • ${elem["name"]} ${elem["middlename"] ? elem["middlename"] + " " : ""}${ + elem["surname"] + }: ${elem["quote"]}${ + elem["owner"] ? '
  • ' : "" + }`, ); const span = document.querySelector(`li span[data-id="${elem["id"]}"]`); -- cgit v1.2.3