From 05568120bffa782779f1c1d1981bd318b2d7c29d Mon Sep 17 00:00:00 2001 From: InesSuess Date: Tue, 29 Jan 2019 19:46:51 +0100 Subject: [PATCH] . --- express-server/public/javascripts/ajax.js | 15 ++-- express-server/public/stylesheets/style.css | 24 ++++++- express-server/views/dash.ejs | 79 +++++++++++++++++---- 3 files changed, 94 insertions(+), 24 deletions(-) diff --git a/express-server/public/javascripts/ajax.js b/express-server/public/javascripts/ajax.js index 631a5654..cef7a792 100644 --- a/express-server/public/javascripts/ajax.js +++ b/express-server/public/javascripts/ajax.js @@ -47,6 +47,7 @@ $(document).ready(function() { data: { name: $("#einkaufslistenname").val(), description: $("#einkaufslistenbeschreibung").val(), + color: $( "input:checked" ).val(), idtoken: idtoken }, success(res){ @@ -126,14 +127,14 @@ function eigeneEinkaufslisten(){ const el = res[i]; $(".listen-ausgabe").append(`
-
-
+
+
Avatar ${userinfo} - +
@@ -255,12 +256,12 @@ function Detail(){ var link = "/dash/"+idtoken; - $(".card-header").append(`
+ $(".card-header").append(`

${neu[0].name} @@ -280,9 +281,7 @@ function Detail(){ `); for(let x = 0; x < el.content.length; x++){ const el2 = el.content[x] - $(`.${el.name}`).append(`
  • ${el2.name}
- - `); + $(`.${el.name}`).append(`
  • ${el2.count}x ${el2.name}
`); } } ItemAdden(); diff --git a/express-server/public/stylesheets/style.css b/express-server/public/stylesheets/style.css index 49d566e8..a5d3ce26 100644 --- a/express-server/public/stylesheets/style.css +++ b/express-server/public/stylesheets/style.css @@ -71,4 +71,26 @@ position: absolute; right:23px; margin-top:-40px; -} \ No newline at end of file +} + +/* button.change { + border: none; +} + +button.change:hover{ + cursor:pointer; +} + +button:active{ + outline: none; + border: none; +} */ +/* +button:focus{ + outline: none; +} */ + +.btn:focus, .btn:active { + outline: none !important; + box-shadow: none !important; + } \ No newline at end of file diff --git a/express-server/views/dash.ejs b/express-server/views/dash.ejs index 91cc5c1a..4b6155b4 100644 --- a/express-server/views/dash.ejs +++ b/express-server/views/dash.ejs @@ -42,10 +42,14 @@
-
+
-
+
+
+ +
+
@@ -85,25 +89,25 @@ - + +

@@ -168,6 +172,51 @@
+ +
+ +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+