.
This commit is contained in:
@@ -116,6 +116,8 @@ export function getQuestion(url, question_number, question_total) {
|
|||||||
dataType: "json",
|
dataType: "json",
|
||||||
url: url,
|
url: url,
|
||||||
progress: function (e) {
|
progress: function (e) {
|
||||||
|
$("#progress").html(
|
||||||
|
`Downloading question [${question_number}/${question_total}]<br/>This file is compressed (no size available)`
|
||||||
if (e.lengthComputable) {
|
if (e.lengthComputable) {
|
||||||
var completedPercentage = Math.round((e.loaded * 100) / e.total);
|
var completedPercentage = Math.round((e.loaded * 100) / e.total);
|
||||||
|
|
||||||
|
|||||||
@@ -259,6 +259,7 @@ function loadPacketFromAjax(path) {
|
|||||||
url: path,
|
url: path,
|
||||||
progress: function (e) {
|
progress: function (e) {
|
||||||
if (e.lengthComputable) {
|
if (e.lengthComputable) {
|
||||||
|
console.log("1")
|
||||||
var completedPercentage = Math.round((e.loaded * 100) / e.total);
|
var completedPercentage = Math.round((e.loaded * 100) / e.total);
|
||||||
|
|
||||||
$("#progress").html(
|
$("#progress").html(
|
||||||
|
|||||||
Reference in New Issue
Block a user