Sha256: 5a52584e0da632debbe912d4f9afe78bd21e38de495f860483813a07e3823148
Contents?: true
Size: 910 Bytes
Versions: 5
Compression:
Stored size: 910 Bytes
Contents
$(document).ready(function () { var playground = new PlayGround(".area"); var renderMatrix = function (days) { hideMatrix(); showLoader(); $.get('/data/' + days).done(function (data) { playground.load(JSON.parse(data)); hideLoader(); showMatrix(); }).fail(function () { alert('error occurred!'); hideLoader(); showMatrix(); }); }; var hideMatrix = function () { $('.viz_container').hide(); }; var showMatrix = function () { $('.viz_container').show(); }; var hideLoader = function () { $('.loaderContainer').hide(); }; var showLoader = function () { $('.loaderContainer').show(); }; $('#visualize').on('click', function () { renderMatrix($('#days').val()) }); renderMatrix($('#days').val()); });
Version data entries
5 entries across 5 versions & 1 rubygems