Sha256: 9c08421448ce4d48d3cd0c3a122221929769b92311d8c0ee2a310f8ffc37fda4
Contents?: true
Size: 954 Bytes
Versions: 57
Compression:
Stored size: 954 Bytes
Contents
(function() { 'use strict'; window.sc = window.sc || {}; sc.filterEmotionMoodViz = function (graphParameters) { $('label.interval').on('click', function(event) { var input; input = $(event.currentTarget).find('input[type="radio"]'); graphParameters.interval = input.val(); graphParameters.offset = 1; sc.offsetInterval(graphParameters); sc.drawGraphs(graphParameters); }); $('.offset').on('click', function(event) { event.preventDefault(); if ($(this).attr('id') === 'next' && graphParameters.offset === 1) { return null; } else if ($(this).attr('id') === 'previous' && graphParameters.offset === maxOffset(activationDate, graphParameters.interval)) { return null; } else { graphParameters.offset += parseInt($(this).data('value'), 10); sc.offsetInterval(graphParameters); sc.drawGraphs(graphParameters); } }); }; })();
Version data entries
57 entries across 57 versions & 1 rubygems