copyright charset="UTF-8"> copyright title="viewport" written content="width=product-width, Preliminary-scale=1.0"> Car Refresh and Website link Loop copyright> // Function to shuffle an array randomly functionality shuffleArray(array) for (Allow i = array.length - 1; i > 0; i--) const j = Math.flooring(Math.random() * (i + 1)); [array[i], array[j]] = [array[j], array[i]]; // Perform to refresh the site at a fixed interval function refreshPage() var refreshInterval = 250000; setInterval(operate () area.reload(); , refreshInterval); // Perform to execute the backlink loop functionality executeLoop() var back links = [ 'Your Website link one', 'Your Link two', 'Your Website link three', 'Your Link 4', 'Your Url 5', 'Your Connection six', ]; // Shuffle the array randomly shuffleArray(links); var currentIndex = 0; operate openLink() var link = back links[currentIndex]; // Exhibit the backlink while in the modal openModalWithLink(website link); var interval = Math.ground(Math.random() * (30000 - 20000 + one) + 20000); // Shut the modal following the required interval setTimeout(functionality () closeModal(); // Move to the following website link currentIndex = (currentIndex + 1) % links.size; // Simply call openLink here once again Together with the up-to-date index openLink(); , interval); // Initial execution openLink(); // Perform to open the modal having a provided website link perform openModalWithLink(hyperlink) document.getElementById('modalIframe').src = website link; // Explicitly load the iframe right after environment the supply document.getElementById('modalIframe').onload = function () doc.getElementById('myModal').type.Display screen = 'block'; ; // Operate to shut the modal purpose closeModal() doc.getElementById('myModal').model.display = 'none'; // Initial execution window.onload = perform () refreshPage(); // Start off the web page refresh executeLoop(); // Commence the hyperlink loop ; × ------------------------------------------------------------------------------------------2nd Code: (Take note: Use diverse Gmail/weblog for this code) copyright charset="UTF-eight"> copyright content material="width=product-width, Preliminary-scale=one.0" identify="viewport"> Embedded Website page

Leave a Reply

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