Sha256: 2c13befbda15b4509b5a6e9de12bb03b1ba4bb684e8d041c77f98490c8022ef2
Contents?: true
Size: 888 Bytes
Versions: 45
Compression:
Stored size: 888 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) $('input:radio[name=selected_lab]:first').prop('checked',true) else console.log('no data')
Version data entries
45 entries across 45 versions & 1 rubygems