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

Version Path
kuroko2-0.5.2 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.5.1 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.5.0 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.4.6 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.4.5 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.4.4 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.4.3 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.4.2 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.4.1 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.4.0 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.3.4 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.3.3 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.3.2 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.3.1 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.3.0 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.2.3 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.2.2 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.2.1 app/assets/javascripts/kuroko2/job_timelines.js.coffee
kuroko2-0.2.0 app/assets/javascripts/kuroko2/job_timelines.js.coffee