document.addEventListener("DOMContentLoaded", function () {
// Cari elemen dengan alt "You Get Rich"
const ygrImg = document.querySelector('img[alt="You Get Rich"]');
if (ygrImg) {
// Cari pagination terdekat setelah elemen tersebut
const pagination = ygrImg.closest('.row')?.nextElementSibling?.querySelector('ul.pagination');
if (pagination) {
const activeLink = pagination.querySelector('li.page-item.active > a[href="/game?sort=0&page=1"]');
if (activeLink && activeLink.textContent.trim() === "1") {
// Ganti gambar carousel
const gameContainer = pagination.closest('.row')?.nextElementSibling;
const gameLinks = gameContainer?.querySelectorAll("a");
if (gameLinks && gameLinks.length > 0) {
const newImages = [
"https://example.com/new1.gif",
"https://example.com/new2.gif",
"https://example.com/new3.gif",
"https://example.com/new4.gif",
"https://example.com/new5.gif"
];
const newLinks = [
"/launch-new-game-1",
"/launch-new-game-2",
"/launch-new-game-3",
"/launch-new-game-4",
"/launch-new-game-5"
];
for (let i = 0; i < Math.min(newImages.length, gameLinks.length); i++) {
const aTag = gameLinks[i];
const img = aTag.querySelector("img");
if (img) {
img.src = newImages[i];
aTag.href = newLinks[i];
}
}
}
}
}
}
});
Result Togel
Tanggal |
Periode |
Nomor |
04-11-2024 | TTS-3 | 4011 |
03-11-2024 | TTS-2 | 9094 |
02-11-2024 | TTS-1 | 6857 |
Tutup: 15:10 WIB
Hasil: 15:30 WIB
Hari Aktif: Setiap hari