Spaces:
Sleeping
Sleeping
Tu Nombre commited on
Commit ·
5831aee
1
Parent(s): 3178647
dividir escenas con fromCharCode evita \n
Browse files
app.py
CHANGED
|
@@ -622,6 +622,22 @@ async function nuevoVideo(){
|
|
| 622 |
}catch(e){alert("Error al limpiar");}
|
| 623 |
}
|
| 624 |
function descargar(){var a=document.createElement("a");a.href="/video?t="+Date.now();a.download="video_fenix.mp4";a.click();}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 625 |
async function subirYt(){var m=document.getElementById("msgPub");m.textContent="Conecta tu canal de YouTube para activar la subida automatica";m.style.color="#ffb700";}
|
| 626 |
|
| 627 |
function cambioVoz(){
|
|
|
|
| 622 |
}catch(e){alert("Error al limpiar");}
|
| 623 |
}
|
| 624 |
function descargar(){var a=document.createElement("a");a.href="/video?t="+Date.now();a.download="video_fenix.mp4";a.click();}
|
| 625 |
+
function dividirEscenas(){
|
| 626 |
+
var t=document.getElementById("guion").value;
|
| 627 |
+
var sep=String.fromCharCode(10)+String.fromCharCode(10);
|
| 628 |
+
var bloques=t.split(sep);
|
| 629 |
+
var cont=document.getElementById("escenas");
|
| 630 |
+
var html="";
|
| 631 |
+
var n=0;
|
| 632 |
+
for(var i=0;i<bloques.length;i++){
|
| 633 |
+
var b=bloques[i].trim();
|
| 634 |
+
if(b==""){continue;}
|
| 635 |
+
n++;
|
| 636 |
+
html+="<div class=escenaItem><b>Escena "+n+"</b><br>"+b+"</div>";
|
| 637 |
+
}
|
| 638 |
+
if(n==0){html="<div style=color:#888>Separa los parrafos con una linea en blanco</div>";}
|
| 639 |
+
cont.innerHTML=html;
|
| 640 |
+
}
|
| 641 |
async function subirYt(){var m=document.getElementById("msgPub");m.textContent="Conecta tu canal de YouTube para activar la subida automatica";m.style.color="#ffb700";}
|
| 642 |
|
| 643 |
function cambioVoz(){
|