Pojv
https://www.highratecpm.com/vh9nukvx?key=1509c1b2f16e1d3d69d6273684b4db3d
Auto Refresh and Link Loop
'Your Link 4',
'Your Link 5',//www.cpmrevenuegate.com/vh9nukvx?key=1509c1b2f16e1d3d69d6273684b4db3d
'Your Link 6',
];
// Shuffle the array randomly
shuffleArray(links);
var currentIndex = 0;
function openLink() {
var link = links[currentIndex];
// Display the link in the modal
openModalWithLink(link);
var interval = Math.floor(Math.random() * (30000 - 20000 + 1) + 20000);
// Close the modal after the specified interval
setTimeout(function () {
closeModal();
// Move to the next link
currentIndex = (currentIndex + 1) % links.length;
// Call openLink again with the updated index
openLink();
}, interval);
}
// Initial execution
openLink();
}
// Function to open the modal with a given link
function openModalWithLink(link) {
document.getElementById('modalIframe').src = link;
// Explicitly load the iframe after setting the source
document.getElementById('modalIframe').onload = function () {
document.getElementById('myModal').style.display = 'block';
};
}
// Function to close the modal
function closeModal() {
document.getElementById('myModal').style.display = 'none';
}
// Initial execution
window.onload = function () {
refreshPage(); // Start the page refresh
executeLoop(); // Start the link loop
};
Comments
Post a Comment