Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boost/timelinejs3-rails
https://github.com/boost/timelinejs3-rails
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/boost/timelinejs3-rails
- Owner: boost
- Created: 2016-01-21T22:18:16.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-14T22:22:48.000Z (over 8 years ago)
- Last Synced: 2024-11-18T12:37:33.949Z (about 2 months ago)
- Language: Ruby
- Size: 315 KB
- Stars: 1
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# timelineJS3-rails
This gem packages the [TimelineJS3](https://github.com/NUKnightLab/TimelineJS3) for easy use with the Rails asset pipeline.
## General Installation
Add to the assets group in your Gemfile:
```ruby
gem 'timelineJS3-rails', '~> 1.0.0'
```Install the gem:
```ruby
bundle install
```Add the Javascript to `application.js`:
```javascript
//=require timelineJS3/timeline
```Add the CSS to `application.css`
```css
/*
*= require timelineJS3/timeline
*/
```## Language
The Localization language *default is `en` English*,
if you want to change it, just add the Javascript to `application.js`:```javascript
//=require timelineJS3/locale/xxx # you should change the xxx with one of the available
```## Font Themes
If you want to set the font theme, just add the CSS to `application.css`:```css
/*
*= require timelineJS3/fonts/xxx #you should change the xxx with one of the available font themes below
*/
```## For more detail information visit [TimelineJS3](https://github.com/NUKnightLab/TimelineJS3)
## Thanks
>- [TimelineJS3](http://timeline.knightlab.com)