Sha256: a0bf8a13a6360d82beabccd46380d2a18b41d9521e7112e1f09f0c151b2af3d0
Contents?: true
Size: 778 Bytes
Versions: 10
Compression:
Stored size: 778 Bytes
Contents
Dasht.value_update = function(el, value) { $(el).css("opacity", 0.7); $(el).html(value.toLocaleString()); $(el).animate({ "opacity": 1.0 }); } Dasht.value_init = function(el, options) { // Initialize. var value = $(el).find(".value"); var value_el = value.get()[0]; var old_data = undefined; // Set the value height to be tile height minus title height. Dasht.fill_tile($(el).find(".title"), true, false); Dasht.fill_tile(value); // Update values. setTimeout(function() { Dasht.get_value(options, function(new_data) { new_data = new_data[0]; if (_.isEqual(old_data, new_data)) return; Dasht.value_update(value, new_data); old_data = new_data; }); }, 1000); }
Version data entries
10 entries across 10 versions & 1 rubygems