30天web实践2-timelinejs
来源:互联网 发布:em231cn tc编程 编辑:程序博客网 时间:2024/05/17 07:22
怎么说呢本来想看harp和yeoman
突然想做个好看的主页 然后就去看timelinejs了
一上午真心搞不懂 我想引用本地josn
好吧 搞不定
还好最后找到一个低版本的timelinejs
这个方便多了。。。 效果还可以。。。
half@half-All-Series:~/Downloads/timeline-portfolio/timeline-portfolio$ ls -R.:assets data.json index.html./assets:css js./assets/css:timeline.css timeline.png./assets/js:script.js timeline-min.js
index.html
<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title>Timeline Portfolio | Tutorialzine Demo</title> <!-- The default timeline stylesheet --> <link rel="stylesheet" href="assets/css/timeline.css" /> <!-- Our customizations to the theme --> <!-- Google Fonts --> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> <body> <header> <a href=""></a> </header> <div id="timeline"> <!-- Timeline.js will genereate the markup here --> </div> <!-- JavaScript includes - jQuery, turn.js and our own script.js --> <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script src="assets/js/timeline-min.js"></script> <script src="assets/js/script.js"></script> </body></html>
data.json 抄了的 内容也不改了
{ "timeline": { "headline":"halfming", "type":"default", "startDate":"2009,1", "text":"<i><span class='c1'>Designer</span> & <span class='c2'>Developer</span></i>", "asset": { "media":"", "credit":"", "caption":"" }, "date": [ { "startDate":"2009,2", "headline":"My first experiment in time-lapse photography", "text":"Nature at its finest in this video.", "asset": { "media":"http://vimeo.com/22439234", "credit":"<a href='http://dribbble.com/shots/401334-Sidebar'>by Chris Brauckmuller</a>", "caption":"" } }, { "startDate":"2009,5", "headline":"Redesign of my portfolio", "text":"", "asset": { "media":"http://dribbble.com/system/users/5977/screenshots/401334/sidebar_s3.png?1327615765", "credit":"<a href='http://dribbble.com/shots/401334-Sidebar'>by Chris Brauckmuller</a>", "caption":"" } }, { "startDate":"2009,7", "headline":"Another time-lapse experiment", "text":"", "asset": { "media":"http://vimeo.com/23237102", "credit":"", "caption":"" } }, { "startDate":"2009,10", "headline":"Developed a Gmail Client", "text":"", "asset": { "media":"http://dribbble.com/system/users/2559/screenshots/120088/shot_1298590416.jpg?1309796199", "credit":"<a href='http://dribbble.com/shots/120088-Gmail-Pokki-Final-Ui'>by Justalab</a>", "caption":"" } } ] }}
js/script.js
$(function(){ var timeline = new VMM.Timeline(); timeline.init("data.json");});
timeline.css timeline-min.js 一点也没修改 放在这也没什么意义。。
想要的给我发邮件吧 这个只是适合某个版本的配置 最新版肯定不行
一个东西做大以后是功能多了 但也难以理解了。。。
0 0
- 30天web实践2-timelinejs
- Java Web服务性能优化实践(2)
- WEB前端开发最佳实践(2)
- Day 23:使用 TimelineJS 构建精美的时间轴
- Velocity之Web实践
- Web 服务最佳实践
- Velocity之Web实践
- Java Web Start 实践
- Web 站点开发实践
- 《web实践标准》学习
- Web性能最佳实践
- 实践中的Web架构
- 移动Web开发实践
- web.py开发实践
- Office Web Apps 实践
- Web端直传实践
- Web性能优化实践
- Web 服务编排实践
- 2的次幂表示
- Matlab 获取仅当前路径下的文件夹名
- Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2
- 24个免费的Web UI开发套件
- 向导式对话框
- 30天web实践2-timelinejs
- Java中static修饰符
- 90分钟学会写操作系统
- A-base62-shorter-url-server
- Gdb停在链接器入口点
- 第一次在CSDN上写博客
- activiti 学习(一)
- vim 常用命令(持续记录)
- POJ 2653 Pick-up sticks