From 7f9c845d92b672aeb061d0578cb56244daf62423 Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Wed, 10 Aug 2016 01:50:49 -0400 Subject: [PATCH] Added default avatar icons --- hourglass/client/profile/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hourglass/client/profile/profile.js b/hourglass/client/profile/profile.js index 29ee45d..c985b19 100644 --- a/hourglass/client/profile/profile.js +++ b/hourglass/client/profile/profile.js @@ -20,7 +20,7 @@ Template.profile.helpers({ }, avatar() { var dim = window.innerWidth * 1600/1920 * .16; - var pic = "\'defaultavatartemp.png\'"; // User personalization + var pic = "defaultAvatars/"+(Math.floor(Math.random() * (10 - 1)) + 1).toString()+".png"; // User personalization return "background-image:url("+pic+");background-size:"+dim.toString()+"px "+dim.toString()+"px"; }, avatarDim() {