Andro0s commited on
Commit
d5b93a8
verified
1 Parent(s): 8a3d6cb

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +16 -9
app.js CHANGED
@@ -1,10 +1,17 @@
1
  // app.js
2
- // ...
3
- img.onload = () => {
4
- uploadedImage = img;
5
- generateFramesFullLine(); // <-- Genera los frames usando frameW y frameH
6
- playFrames(); // <-- Inicia la vista previa
7
- exportGIF(); // <-- 隆Esto est谩 causando el problema!
8
- exportWebM(); // <-- 隆Esto tambi茅n est谩 causando el problema!
9
- };
10
- // ...
 
 
 
 
 
 
 
 
1
  // app.js
2
+
3
+ document.addEventListener('DOMContentLoaded', () => {
4
+ // ----------------------------------------------------
5
+ // 馃洃 COPIA Y PEGA AQU脥 TODO TU C脫DIGO ACTUAL (desde 'const addLayerFile = ...')
6
+ // ----------------------------------------------------
7
+
8
+ const addLayerFile = document.getElementById('addLayerFile');
9
+ // ... todas las dem谩s variables y funciones ...
10
+
11
+ // ...
12
+ // ... (Tu c贸digo actual debe estar aqu铆) ...
13
+ // ...
14
+
15
+ // ... (Incluyendo la funci贸n exportWebM corregida en el mensaje anterior)
16
+
17
+ }); // Cierre del listener de carga