ez load screen
This commit is contained in:
parent
a215b5d0c3
commit
b7b2c41361
|
@ -107,8 +107,8 @@
|
||||||
<span style="width: 0%" id="progress"></span>
|
<span style="width: 0%" id="progress"></span>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function updateTextProgress(event, epkSize){
|
function updateTextProgress(progress, total){
|
||||||
document.getElementById("progresstext").innerText = Math.round((event.loaded/1024/1024)/(epkSize/1024/1024))*100 + "%" + "(" + Math.round(event.loaded/1024/1024) + "MB" + "/" + Math.round(epkSize/1024/1024) + "MB )";
|
document.getElementById("progresstext").innerText = Math.round(progress/total*100) + "%" + "(" + progress + "MB" + "/" + total + "MB )";
|
||||||
}
|
}
|
||||||
|
|
||||||
function setVersion(version){
|
function setVersion(version){
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
let progress = Math.round(event.loaded/1024/1024);
|
let progress = Math.round(event.loaded/1024/1024);
|
||||||
let size = Math.round(epkSize/1024/1024);
|
let size = Math.round(epkSize/1024/1024);
|
||||||
document.getElementById("progress").style.width = Math.round(progress/size)*100+4+"%";
|
document.getElementById("progress").style.width = Math.round(progress/size)*100+4+"%";
|
||||||
updateTextProgress(event, epkSize);
|
updateTextProgress(progress, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
function die(){
|
function die(){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user