Sha256: 92df4c5a2f58a669f3985a382b422ab5a540d5941050812b4f5e72bd00f81953
Contents?: true
Size: 821 Bytes
Versions: 3
Compression:
Stored size: 821 Bytes
Contents
# # this is a sample of how to show the labs # you could use this javascript or do your own # $(document).ready -> ####### init empty lab list and the views ######### lab_show_number = 3 # how many labs to show at the start window.max_lab_show_number = 6 # used in medivo/lab_list/handler.coffee window.lab_list = new window.OrderedLabList( [], lab_show_number ) window.map_view = new window.MapView( lab_list ) window.lab_list_view = new window.LabListView( lab_list ) # if you are loading data while the page first shows data = $('#lab_list_container').data('labs') if data.labs # can limit the number of labs to show with option show_labs in LabList constructor window.map_view.center_point = data.zip_location window.lab_list.setList(data.labs) else console.log('no data')
Version data entries
3 entries across 3 versions & 1 rubygems