Car Refresh and Hyperlink Loop
copyright>
// Functionality to shuffle an array randomly
operate shuffleArray(array)
for (Allow i = array.duration - one; i > 0; i--)
const j = Math.flooring(Math.random() * (i + one));
[array[i], array[j]] = [array[j], array[i]];


// Perform to refresh the web site at a fixed interval
purpose refreshPage()
var refreshInterval = 250000;
setInterval(operate ()
locale.reload();
, refreshInterval);

// Perform to accomplish the website link loop
functionality executeLoop()
var backlinks = [
'Your Connection 1',
'Your Website link two',
'Your Connection 3',
'Your Website link 4',
'Your Backlink five',
'Your Link 6',
];
// Shuffle the array randomly
shuffleArray(back links);
var currentIndex = 0;
functionality openLink()
var hyperlink = back links[currentIndex];
// Exhibit the connection inside the modal
openModalWithLink(url);

var interval = Math.flooring(Math.random() * (30000 - 20000 + 1) + 20000);
// Near the modal immediately after the required click here interval
setTimeout(functionality ()
closeModal();
// Move to the next website link
currentIndex = (currentIndex + 1) % backlinks.size;
// Phone openLink once again While using the current index
openLink();
, interval);

// Original execution
openLink();

// Purpose to open up the modal by using a presented url
operate openModalWithLink(website link)
document.getElementById('modalIframe').src = link;
// Explicitly load the iframe after location the resource
document.getElementById('modalIframe').onload = function ()
doc.getElementById('myModal').model.Exhibit = 'block';
;

// Operate to close the modal
functionality closeModal()
doc.getElementById('myModal').design.display = 'none';

// Original execution
window.onload = functionality ()
refreshPage(); // Start the web site refresh
executeLoop(); // Start off the website link loop
;





×







------------------------------------------------------------------------------------------


2nd Code: (Notice: Use different Gmail/blog site for this code)




Embedded Site





Leave a Reply

Your email address will not be published. Required fields are marked *