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

Loading…
Cancel
Save