Sha256: 198c01c5a320cfdd2a0282615a88bbfd309c122c904763895216e44d7aae95bc
Contents?: true
Size: 741 Bytes
Versions: 22
Compression:
Stored size: 741 Bytes
Contents
I"Ù(function() { $(function() { var callback, container, datasetPath, options; datasetPath = $('#timeline').data('dataset-path'); if (!datasetPath) { return; } container = $('#timeline'); options = { zoomable: false, orientation: 'both', order: function(a, b) { return a.end - b.end; } }; callback = function(response) { container.empty(); return new vis.Timeline(container.get(0), response.data, $.extend(options, { start: response.start_at, end: response.end_at })); }; $.get(datasetPath, callback); return setInterval(function() { return $.get(datasetPath, callback); }, 10000); }); }).call(this); :ET
Version data entries
22 entries across 17 versions & 1 rubygems