From 215c806b9a05ad748723d608094dff303c05368a Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Mon, 30 Jan 2023 22:55:14 -0500 Subject: colored pfps --- public/js/header.js | 4 ++-- public/js/home.js | 12 ++++++------ public/js/main.js | 4 ++++ public/js/people.js | 5 +++-- public/js/profile.js | 5 +++-- 5 files changed, 18 insertions(+), 12 deletions(-) (limited to 'public/js') diff --git a/public/js/header.js b/public/js/header.js index 5a12408..0e251ed 100644 --- a/public/js/header.js +++ b/public/js/header.js @@ -1,4 +1,4 @@ -function header(home, people) { +function header(home, people, user_id) { const html = ` - + ${pfp(user_id)}
diff --git a/public/js/home.js b/public/js/home.js index cf56eca..0083297 100644 --- a/public/js/home.js +++ b/public/js/home.js @@ -6,7 +6,7 @@ function parseComment(comment) { const html = `
- + ${pfp(author.user_id)} ${author.firstname + ' ' + author.lastname} @@ -26,7 +26,7 @@ function parsePost(post) {
- + ${pfp(author.user_id)}
${author.firstname + ' ' + author.lastname} @@ -55,7 +55,7 @@ function parsePost(post) { ${post.comments.map(parseComment).join('')}
- + ${pfp(data.user.user_id)}
@@ -159,7 +159,7 @@ function render() {
- + ${pfp(data.user.user_id)}