From b7384c96befbff09f715e7ed3ab7d83753d88d84 Mon Sep 17 00:00:00 2001 From: Georg Reisinger <43533139+GeorgReisinger@users.noreply.github.com> Date: Thu, 17 Jan 2019 20:51:44 +0100 Subject: [PATCH] Userbild --- express-server/public/javascripts/ajax.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/express-server/public/javascripts/ajax.js b/express-server/public/javascripts/ajax.js index abaa3f82..1226f3e2 100644 --- a/express-server/public/javascripts/ajax.js +++ b/express-server/public/javascripts/ajax.js @@ -118,15 +118,18 @@ function eigeneEinkaufslisten(){ idtoken: idtoken }, success(data){ - var userinfo = data.name; - + const userinfo = data.name; + const picture = data.picture; + console.log(data) for(let i = 0; i < res.length; i++){ const el = res[i]; $(".listen-ausgabe").append(`
- ${userinfo} + + Avatar + ${userinfo}