Fix progress
This commit is contained in:
parent
556e9af55d
commit
232b10f393
2 changed files with 3 additions and 12 deletions
1
index.js
1
index.js
|
@ -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)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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>
|
|
||||||
|
|
Reference in a new issue