diff --git a/css/dashboard.css b/css/dashboard.css index f3c1d856b983f5151a20503507ac967b224bdcdc..77c198d2484c92eff87835c247369321d28fda43 100644 --- a/css/dashboard.css +++ b/css/dashboard.css @@ -119,7 +119,9 @@ font-size: 1.3rem; margin-bottom: 5px; } - +#driver img { + width: 20px; +} #email, #phone { display: inline-block; } diff --git a/js/profile.js b/js/profile.js index d676fbd6dbe57dc5b1e855c247fa16353bc51659..bfbd93c7257b40388a71643adafd462eaa175625 100644 --- a/js/profile.js +++ b/js/profile.js @@ -17,7 +17,7 @@ function getUserProfile(){ if(isDriver == 1){ rating = result.getElementsByTagName('rating')[0].childNodes[0].nodeValue; votes = result.getElementsByTagName('votes')[0].childNodes[0].nodeValue; - document.getElementById('driver').innerHTML = 'Driver | ' + Math.round(rating) + ' ('+ votes +' votes)'; + document.getElementById('driver').innerHTML = 'Driver |<img src="../img/rating.png" />' + Math.round(rating) + ' ('+ votes +' votes)'; } else { document.getElementById('driver').innerHTML = 'Non-driver'; }