我一直使用从here与JSON版本的数据retreival TimelineJS。它工作正常,但我无法调整时间线开始的日期。时间轴JS:如何设置时间轴开始日期?
在文档它说,设立JSON文件为这样:只用
{
"timeline":
{
"headline":"HOT LATIN EVENTS",
"type":"default",
"startDate":"2012,09,30",
"text":"Scroll through a list of Latin Music events>>> ",
"date": [
{
"startDate":"2012,08,24",
"headline":"PELIGRO Y SU BANDA - Melbourne",
"text":"<p><strong>Copacaban International</strong>, 139 Smith Street, Fitzroy, 3065</p>",
"asset":
{
"media":"http://www.clavecontraclave.com/Peligro%20-%20Melbourne%20klein.jpg",
"credit":"",
"caption":""
}
},
我曾尝试:
{
"timeline":
{
"headline":"The Main Timeline Headline Goes here",
"type":"default",
"startDate":"1888",
"text":"<p>Intro body text goes here, some HTML is ok</p>",
我复制了这一点,但只是改变的细节,如在startDate
年(例如:2011年)也没有效果。时间线从下面的第一个事件开始。
任何人都知道发生了什么事?
感谢
我也有与Timeline.js问题。我无法让事情做到甚至可以工作。 –