Browse Source

fixing

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

+ 3
- 1
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
+
160
     images.forEach(image => {
162
     images.forEach(image => {
161
         if (image.complete) {
163
         if (image.complete) {
162
             loadedCount++;
164
             loadedCount++;
173
     });
175
     });
174
 
176
 
175
     function checkAllImagesLoaded() {
177
     function checkAllImagesLoaded() {
176
-        debugger
178
+        console.log(loadedCount)
177
         if (loadedCount === totalImages) {
179
         if (loadedCount === totalImages) {
178
             let loading = document.getElementById("loading");
180
             let loading = document.getElementById("loading");
179
             loading.remove();
181
             loading.remove();

Loading…
Cancel
Save