This commit is contained in:
Ross
2021-03-01 08:51:19 +00:00
parent 865cd9b1a6
commit c2dba555ec
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -116,6 +116,8 @@ export function getQuestion(url, question_number, question_total) {
dataType: "json",
url: url,
progress: function (e) {
$("#progress").html(
`Downloading question [${question_number}/${question_total}]<br/>This file is compressed (no size available)`
if (e.lengthComputable) {
var completedPercentage = Math.round((e.loaded * 100) / e.total);
+1
View File
@@ -259,6 +259,7 @@ function loadPacketFromAjax(path) {
url: path,
progress: function (e) {
if (e.lengthComputable) {
console.log("1")
var completedPercentage = Math.round((e.loaded * 100) / e.total);
$("#progress").html(