Spaces:
Running
Running
Tu Nombre commited on
Commit 路
3faef5f
1
Parent(s): d21cf05
quitar debug
Browse files
main.py
CHANGED
|
@@ -540,12 +540,8 @@ input:focus,select:focus{border-color:#ff2d2d;}
|
|
| 540 |
|
| 541 |
<script>
|
| 542 |
async function activar(){
|
| 543 |
-
alert('Bot贸n pulsado - inicio');
|
| 544 |
const email = document.getElementById('email').value.trim();
|
| 545 |
-
if(!email){alert('Por favor pon tu email');return;}
|
| 546 |
-
alert('Email OK: ' + email);
|
| 547 |
const numCanales = parseInt("CANALES_PLACEHOLDER") || 1;
|
| 548 |
-
alert('Canales: ' + numCanales);
|
| 549 |
const canales = [];
|
| 550 |
for(let i=1; i<=numCanales; i++){
|
| 551 |
const n = document.getElementById('nicho'+i);
|
|
@@ -568,17 +564,14 @@ async function activar(){
|
|
| 568 |
const emailVal = document.getElementById("email").value.trim();
|
| 569 |
window.location.href = "/esperando?url=" + encodeURIComponent(d.url) + "&email=" + encodeURIComponent(emailVal);
|
| 570 |
} else {
|
| 571 |
-
alert('Error: ' + (d.error||'Int茅ntalo de nuevo'));
|
| 572 |
document.getElementById('btn').disabled = false;
|
| 573 |
}
|
| 574 |
}catch(e){
|
| 575 |
-
alert('Error de conexi贸n');
|
| 576 |
document.getElementById('btn').disabled = false;
|
| 577 |
}
|
| 578 |
document.getElementById('loading').style.display = 'none';
|
| 579 |
}
|
| 580 |
function copiar(){
|
| 581 |
-
navigator.clipboard.writeText(window._url||'').then(()=>alert('隆Copiado!'));
|
| 582 |
}
|
| 583 |
</script>
|
| 584 |
</body>
|
|
|
|
| 540 |
|
| 541 |
<script>
|
| 542 |
async function activar(){
|
|
|
|
| 543 |
const email = document.getElementById('email').value.trim();
|
|
|
|
|
|
|
| 544 |
const numCanales = parseInt("CANALES_PLACEHOLDER") || 1;
|
|
|
|
| 545 |
const canales = [];
|
| 546 |
for(let i=1; i<=numCanales; i++){
|
| 547 |
const n = document.getElementById('nicho'+i);
|
|
|
|
| 564 |
const emailVal = document.getElementById("email").value.trim();
|
| 565 |
window.location.href = "/esperando?url=" + encodeURIComponent(d.url) + "&email=" + encodeURIComponent(emailVal);
|
| 566 |
} else {
|
|
|
|
| 567 |
document.getElementById('btn').disabled = false;
|
| 568 |
}
|
| 569 |
}catch(e){
|
|
|
|
| 570 |
document.getElementById('btn').disabled = false;
|
| 571 |
}
|
| 572 |
document.getElementById('loading').style.display = 'none';
|
| 573 |
}
|
| 574 |
function copiar(){
|
|
|
|
| 575 |
}
|
| 576 |
</script>
|
| 577 |
</body>
|