examples don't work

Hi, I just clone the Timeline JS project through the github. I find there is an example folder in the project and it seems it should work directly. However, no matter which html file I open in the chrome and Safari, it always turns out to be blank. Did I miss something?

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


  • 0
    Joe Germuska

    You are probably trying to run Timeline from your local file system. This, in fact, does not work. You must run a simple local web server to use Timeline in this manner. Primarily, this is because TimelineJS uses protocol-relative URLs, so that it can function when embedded on either HTTP or HTTPS servers. However, this does not work when the example pages are loaded from the file system.

    There are a number of ways to run a local webserver. If you have Python installed (as you would on a Macintosh), you can go to the terminal and change to the directory where you have the project cloned. Then type in

    python -m SimpleHTTPServer 8000

    and then in a browser, go to http://localhost:8000/examples/example_jsonp.html

    There are many more ways you can run a local web server if this one doesn't suit you.

    Hope this helps.

  • 0

    Thanks very much! That works fine! Also by the way, is there any tutorial on how to modify the source code which we could design better features for the website? Thanks!

Please sign in to leave a comment.
Powered by Zendesk