Recouse, такая реализация мне не подходит.
{
type: 'blog_post',
date: 'хххх-хх-хх',
dateFormat: 'DD MMMM YYYY',
title: 'title',
width: '60%',
content: 'content',
image: '',
},
Надо сюда пристроить модальное окно чтоб открывался весь контент. Желательно с картинкой.
Вот вся станица
<div id="timeline"></div>
<script type="text/javascript">
$(document).ready(function() {
var timeline_data = [
{
type: 'blog_post',
date: '2011-08-03',
dateFormat: 'DD MMMM YYYY',
title: 'Blog Post',
width: 400,
content: '',
image: 'xxxx.jpg',
readmore: '__www.example.com'
},
{
type: 'slider',
date: '2010-12-16',
dateFormat: 'DD MMMM YYYY',
width: 400,
height: 200,
images: ['xxx.jpg', 'xxx.jpg'],
speed: 5000
}
];
var timeline = new Timeline($('#timeline'), timeline_data);
timeline.display();
});
</script>
А вот настройки
<script type="text/javascript">
var timeline = new Timeline($('#timeline'), timeline_data);
timeline.setOptions({
animation: true,
lightbox: true,
showYear: true,
allowDelete: false,
columnMode: 'dual',
order: 'desc',
max: null
});
timeline.display();
</script>