.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user