| File | Date | Author | Commit |
|---|---|---|---|
| css | 2011-10-19 |
|
[9d7378] moved the picture the make it looks a little be... |
| images | 2011-10-13 |
|
[43d688] added image on background of span |
| js | 2011-11-01 |
|
[aa9c3d] removing paths, not used... yet |
| .gitignore | 2011-10-03 |
|
[49bd43] deleted old files, added a .gitignore |
| README | 2011-11-01 |
|
[0150e9] changing README with new data |
| index.html | 2011-10-24 |
|
[28d855] moved all js code to another file to make thing... |
== Timeline ==
Timeline app based on RaphaelJS
Uso:
Editar arquivo js/timeline.js, definindo dentro da função onComplete() os
valores desejados para as variáveis usadas na criação das timelines:
firstyear = ano no qual deve se iniciar a timeline
height = altura da timeline.
width = largura da timeline.
startyear = array que vai guardar o ano de inicio de cada timeline
width_ = array que vai guardar a largura de cada timeline
Estrutura Json para timelines:
data = [
{
name: "nome da timeline",
imagem: 'foto.jpg',
extra: [],
facts: [
{
number: '1',
start: { year: 1992,
month: 01,
day: 11},
end: { year: 1992,
month: 12,
day: 30},
description: ('fato 1'),
classname: 'first'
},
{
number: '2',
start: { year: 1992,
month: 06,
day: 12},
description: ('fact 2'),
classname: 'second'
},
]
}
]