这里我有一个用于创建交互式时间轴的代码:http://timeline.verite.co/
所以我有这段代码:
<script type="text/javascript">
var timeline_config = {
width: '100%',
height: '600',
source: 'path_to_json/or_link_to_googlespreadsheet',
embed_id: 'timeline-embed', //OPTIONAL USE A DIFFERENT DIV ID FOR EMBED
start_at_end: false, //OPTIONAL START AT LATEST DATE
start_at_slide: '4', //OPTIONAL START AT SPECIFIC SLIDE
start_zoom_adjust: '3', //OPTIONAL TWEAK THE DEFAULT ZOOM LEVEL
hash_bookmark: true, //OPTIONAL LOCATION BAR HASHES
font: 'Bevan-PotanoSans', //OPTIONAL FONT
debug: true, //OPTIONAL DEBUG TO CONSOLE
lang: 'fr', //OPTIONAL LANGUAGE
maptype: 'watercolor', //OPTIONAL MAP STYLE
css: 'path_to_css/timeline.css', //OPTIONAL PATH TO CSS
js: 'path_to_js/timeline-min.js' //OPTIONAL PATH TO JS
}
</script>
<script type="text/javascript" src="path_to_js/storyjs-embed.js"></script>
此代码生成时间轴 + 媒体...所以像图像上这样,但我想知道如何删除底部时间轴以外的所有部分?
这是图片:
最佳答案
在 timeline-min.js 中取消注释这一行
u = VMM.appendAndGetElement(s, "", "vco-slider");
关于javascript - 更改timelineJS源码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18696904/