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