|
@@ -157,6 +157,8 @@ function imageLoading() {
|
157
|
157
|
let loadedCount = 0;
|
158
|
158
|
const totalImages = images.length;
|
159
|
159
|
|
|
160
|
+ console.log(totalImages)
|
|
161
|
+
|
160
|
162
|
images.forEach(image => {
|
161
|
163
|
if (image.complete) {
|
162
|
164
|
loadedCount++;
|
|
@@ -173,7 +175,7 @@ function imageLoading() {
|
173
|
175
|
});
|
174
|
176
|
|
175
|
177
|
function checkAllImagesLoaded() {
|
176
|
|
- debugger
|
|
178
|
+ console.log(loadedCount)
|
177
|
179
|
if (loadedCount === totalImages) {
|
178
|
180
|
let loading = document.getElementById("loading");
|
179
|
181
|
loading.remove();
|