Skip to content

Simile timeline without external dependencies and unbundled. You can now see by yourself how the magic happens!

License

Notifications You must be signed in to change notification settings

Lab21k/standalone-timeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Standalone Timeline

Stripped down Simile-Timeline without the ajax api and with all the original scripts.

Bower:

# To get the latest stable version, use bower from the command line.
bower install standalone-timeline

# To get the most recent, bleeding-edge version, at your own risk, use:
bower install standalone-timeline#master

# To save the bower settings for future use:
bower install standalone-timeline --save

# Later you can easily update with:
bower update

Using the Standalone Timeline Library:

You need to include dist/timeline.min.js and dist/timeline.min.css to your index.html

You will also need to setup two global variables to tell the script where to look for image files, you can do this by creating a <script> tag in your index.html with the following contents:

<script>
    var TimelineUrlPrefix = 'bower_components/standalone-timeline/dist/src/api/';
    var AjaxUrlPrefix = 'bower_components/standalone-timeline/dist/src/';
</script>

Note that these are the default paths where standalone timeline will search for the image files.

You will also need to include translations:

<script src="bower_components/standalone-timeline/src/api/scripts/l10n/en/timeline.js"></script>
<script src="bower_components/standalone-timeline/src/api/scripts/l10n/en/labellers.js"></script>

Where en can be one of those available translations:

  • cs
  • de
  • en
  • es
  • fr
  • it
  • nl
  • ru
  • se
  • tr
  • vi
  • zh

Contributing to the project:

Building

Developers can easily build standalone-timeline using NPM and Grunt

# First install or update your local project's npm tools:
npm install

# Or update
npm update

The run the Grunt tasks:

# To build `timeline.min.js`, `timeline.min.css` and image files in the `/dist` directory
grunt build

# To build files and watch for changes to autoreload
grunt

About

Simile timeline without external dependencies and unbundled. You can now see by yourself how the magic happens!

Resources

License

Stars

Watchers

Forks

Packages

No packages published