Sha256: 10e343617dc85ef75c39166c8f3c39a2c005d3b10fc7d545947da8a206479c63
Contents?: true
Size: 516 Bytes
Versions: 19
Compression:
Stored size: 516 Bytes
Contents
$ -> datasetPath = $('#timeline').data('dataset-path') return unless datasetPath container = $('#timeline') options = { zoomable: false, orientation: 'both', order: (a, b) -> return a.end - b.end } callback = (response) -> container.empty() new vis.Timeline( container.get(0), response.data, $.extend(options, {start: response.start_at, end: response.end_at}) ) $.get(datasetPath, callback) setInterval -> $.get(datasetPath, callback) , 10000
Version data entries
19 entries across 19 versions & 1 rubygems