JSFiddle - React, Tailwind, and code Playground
by LyndseyB
JavaScript
// Used for retrieving the correct file from the server.
var base_url = "http://www.packer-products.co.uk/media/images/products/ss_size1/";
// Array of URLs that the script needs to visit
var urls = [
'http://www.packer-products.co.uk/BNS12-mi.html',
'http://www.packer-products.co.uk/APE3QTRENTAL-mi.html'
]
// Foreach URL in the array (i.e. each URL visited)
urls.forEach(function(data, index) {
setTimeout(function() {
console.log(data);
}, 1000 * index);
});