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)]
tmp.logs = ""
tmp.settings = ""
tmp.exp_percentage = tmp.experience/tmp.experienceForNextLevel
data.push(tmp)
});

View file

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