De quinta para terça faltam 5 dias enquanto o countdown está marcando 4 dias? Considerar o horário de brasília / Brasil
Browse files- index.html +16 -5
index.html
CHANGED
|
@@ -421,18 +421,29 @@ function getNextLiveDate() {
|
|
| 421 |
} else if (currentDay === 3) { // Quarta
|
| 422 |
daysToAdd = 1; // Amanhã é quinta
|
| 423 |
targetDay = 4; // Quinta
|
| 424 |
-
}
|
|
|
|
| 425 |
daysToAdd = 1; // Amanhã é terça
|
| 426 |
targetDay = 2; // Terça
|
| 427 |
-
} else if (currentDay ===
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 428 |
// Verificar se já passou das 21:16 hoje (fim da live)
|
| 429 |
const today2116 = new Date(now);
|
| 430 |
today2116.setHours(21, 16, 0, 0);
|
| 431 |
if (now > today2116) {
|
| 432 |
-
// Após 21:16 de quinta,
|
| 433 |
-
daysToAdd =
|
| 434 |
targetDay = 2; // Próxima terça
|
| 435 |
-
|
| 436 |
// Verificar se estamos antes das 19:47
|
| 437 |
const today1947 = new Date(now);
|
| 438 |
today1947.setHours(19, 47, 0, 0);
|
|
|
|
| 421 |
} else if (currentDay === 3) { // Quarta
|
| 422 |
daysToAdd = 1; // Amanhã é quinta
|
| 423 |
targetDay = 4; // Quinta
|
| 424 |
+
}
|
| 425 |
+
else if (currentDay === 1) { // Segunda
|
| 426 |
daysToAdd = 1; // Amanhã é terça
|
| 427 |
targetDay = 2; // Terça
|
| 428 |
+
} else if (currentDay === 5) { // Sexta
|
| 429 |
+
daysToAdd = 4; // Sexta -> Terça (4 dias)
|
| 430 |
+
targetDay = 2; // Terça
|
| 431 |
+
} else if (currentDay === 6) { // Sábado
|
| 432 |
+
daysToAdd = 3; // Sábado -> Terça (3 dias)
|
| 433 |
+
targetDay = 2; // Terça
|
| 434 |
+
} else if (currentDay === 0) { // Domingo
|
| 435 |
+
daysToAdd = 2; // Domingo -> Terça (2 dias)
|
| 436 |
+
targetDay = 2; // Terça
|
| 437 |
+
}
|
| 438 |
+
else if (currentDay === 4) { // Quinta
|
| 439 |
// Verificar se já passou das 21:16 hoje (fim da live)
|
| 440 |
const today2116 = new Date(now);
|
| 441 |
today2116.setHours(21, 16, 0, 0);
|
| 442 |
if (now > today2116) {
|
| 443 |
+
// Após 21:16 de quinta, próxima live será na terça (5 dias depois)
|
| 444 |
+
daysToAdd = 5;
|
| 445 |
targetDay = 2; // Próxima terça
|
| 446 |
+
} else {
|
| 447 |
// Verificar se estamos antes das 19:47
|
| 448 |
const today1947 = new Date(now);
|
| 449 |
today1947.setHours(19, 47, 0, 0);
|