4
1
Fork 0

Fix progress

This commit is contained in:
Simon Giesel 2018-02-20 01:46:19 +01:00
parent 556e9af55d
commit 232b10f393
2 changed files with 3 additions and 12 deletions

View file

@ -24,6 +24,7 @@ app.get('/', function(req, res){
var tmp = el[Object.keys(el)] var tmp = el[Object.keys(el)]
tmp.logs = "" tmp.logs = ""
tmp.settings = "" tmp.settings = ""
tmp.exp_percentage = tmp.experience/tmp.experienceForNextLevel
data.push(tmp) data.push(tmp)
}); });

View file

@ -2,9 +2,7 @@
<img src="assets/bleft.png" align="left"> <img src="assets/bleft.png" align="left">
<img src="assets/bright.png" align="right"> <img src="assets/bright.png" align="right">
<table Border = 1> <table Border = 1>
<tr> <tr>
<th>Name</th> <th>Name</th>
<th>Level</th> <th>Level</th>
@ -18,15 +16,7 @@
<td>{{level}}<img src="assets/Arrow.png" align="right"></td> <td>{{level}}<img src="assets/Arrow.png" align="right"></td>
<td>{{gold}}<img src="assets/Gold.png" align="right"></td> <td>{{gold}}<img src="assets/Gold.png" align="right"></td>
<td>{{class}}</td> <td>{{class}}</td>
<td><progress value=result max="100"></progress></td> <td><progress value={{exp_percentage}} max="1"></progress></td>
</tr> </tr>
{{/instances}} {{/instances}}
</table>
</table>
<script>
var percent = {{experienceForNextLevel}} / 100;
var result = {{experience}} / percent;
</script>