Browse Source

fixing

master
azri 4 months ago
parent
commit
0b053bcc9e
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      resources/js/app.js

+ 3
- 3
resources/js/app.js View File

157
     let loadedCount = 0;
157
     let loadedCount = 0;
158
     const totalImages = images.length;
158
     const totalImages = images.length;
159
 
159
 
160
-    console.log(totalImages)
161
-
162
     images.forEach(image => {
160
     images.forEach(image => {
163
         if (image.complete) {
161
         if (image.complete) {
164
             loadedCount++;
162
             loadedCount++;
175
     });
173
     });
176
 
174
 
177
     function checkAllImagesLoaded() {
175
     function checkAllImagesLoaded() {
178
-        console.log(loadedCount)
176
+
179
         if (loadedCount === totalImages) {
177
         if (loadedCount === totalImages) {
180
             let loading = document.getElementById("loading");
178
             let loading = document.getElementById("loading");
181
             loading.remove();
179
             loading.remove();
186
             }
184
             }
187
         }
185
         }
188
     }
186
     }
187
+
188
+    console.log(loadedCount, totalImages);
189
 }
189
 }
190
 
190
 
191
 function reset() {
191
 function reset() {

Loading…
Cancel
Save