First of all, this is supposed to be running offline as a web page in my browser and should work without additional installs like php.I have an iframe which content should be randomly loaded.
I have:
For each of these files exists an entry in files.txt with it's exact relative path.If I wouldn't have so many files, I would just make an hardcoded javascript array with the relative urls and take a random entry from that array as source for the iframe.But I'm talking about >6000 files.So how can I do that?
I have:
- /index.html (the page with the Iframe)
- /files.txt (a file with alist of relative urls)
For each of these files exists an entry in files.txt with it's exact relative path.If I wouldn't have so many files, I would just make an hardcoded javascript array with the relative urls and take a random entry from that array as source for the iframe.But I'm talking about >6000 files.So how can I do that?