Sha256: bd2ccd7de880e7812a3e6c1ef41a5e8f31a79d94ea942b6735d9a2725c66cab7
Contents?: true
Size: 924 Bytes
Versions: 11
Compression:
Stored size: 924 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(); }); $('.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(); } }); }; })();
Version data entries
11 entries across 11 versions & 1 rubygems