app/static/js/event_handling.js
/**
 * This function returns a configuration object for timeline.js.
 */
This function returns a configuration object for timeline.js.
This function returns a configuration object for timeline . js .
function create_timeline_config() {
	return {
		width:              '100%',
		height:             '600px',
		embed_id:           'timeline-embed',               
		start_at_end:       false,                          
		start_at_slide:     '0',                            
		start_zoom_adjust:  '3',                            
		hash_bookmark:      true,                           
		font:               'Bevan-PotanoSans',             
		debug:              true,                           
		lang:               'en',                           
	}
}
function create_timeline_config ( ) { return { width : '100%' , height : '600px' , embed_id : 'timeline-embed' , start_at_end : false , start_at_slide : '0' , start_zoom_adjust : '3' , hash_bookmark : true , font : 'Bevan-PotanoSans' , debug : true , lang : 'en' , } }
This function returns a configuration object for timeline.js.
This function returns a configuration object for timeline . js .
//source:             'path_to_json/or_link_to_googlespreadsheet', //OPTIONAL USE A DIFFERENT DIV ID FOR EMBED //OPTIONAL START AT LATEST DATE //OPTIONAL START AT SPECIFIC SLIDE //OPTIONAL TWEAK THE DEFAULT ZOOM LEVEL //OPTIONAL LOCATION BAR HASHES //OPTIONAL FONT //OPTIONAL DEBUG TO CONSOLE //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