I'm a developer wanted to have this (https://github.com/ripienaar/free-for-dev) in my local machine to view the list.
I download as zip and open the index.html it doesn't work
Looks like javascript errors to be fixed
How to make it as work after downloaded in local machine?
Please advise.
Thanks
CodePudding user response:
You need to use a HTTP server (e.g. Apache) to serve the files since index.html
uses protocol-relative URLs.
CodePudding user response:
Change all the URLs that begin with //cdn.jsdeliver.net
to https://cdn.jsdeliver.net
. If you open the file locally, these relative URLs are expanded to file://cdn.jsdeliver.net
, which can't be used to download remote files.
The next problem you'll run into is that it uses AJAX to load other files, and this is blocked by default for file:
URLs. See Allow Google Chrome to use XMLHttpRequest to load a URL from a local file for how to unblock this.