Skip to content
Snippets Groups Projects
Commit c17cd63a authored by Aldrich Valentino Halim's avatar Aldrich Valentino Halim
Browse files

added star image for rating

parent 3ec6c400
1 merge request!42Projekers - 13515051 - Girvandi Ilyas
......@@ -119,7 +119,9 @@
font-size: 1.3rem;
margin-bottom: 5px;
}
#driver img {
width: 20px;
}
#email, #phone {
display: inline-block;
}
......
......@@ -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';
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment