var addItem, arrayRemoveItemByValue, cookie, echo, getCookie, jDateTime, jNote, jPre, removeSelected, setCookie, zero; jNote = function(text) { var options; options = { iconUrl: 'favicon.ico', title: 'Timer', timeout: 10000, body: text }; return $.notification(options); }; zero = function(x) { if (x < 10) { return '0' + x; } else { return x; } }; jDateTime = function() { var currentTime; currentTime = new Date(); return { seconds: zero(currentTime.getSeconds()).toString(), minutes: zero(currentTime.getMinutes()).toString(), hours: zero(currentTime.getHours()).toString(), days: zero(currentTime.getDate()).toString(), monthss: zero(currentTime.getMonth() + 1).toString(), years: currentTime.getFullYear().toString() }; }; addItem = function(id, text) { var selectBox; selectBox = $(id)[0]; selectBox.options[selectBox.options.length] = new Option(text, text); return console.log("Added to " + id + " text: " + text); }; removeSelected = function(id) { $("" + id + " option:selected").remove(); return console.log("Remove selected from " + id); }; setCookie = function(name, value) { return $.cookie(name, value, { expires: 365 }); }; getCookie = function(name) { return $.cookie(name); }; cookie = function(name) { return $.cookie(name); }; arrayRemoveItemByValue = function(arr, value) { var r; r = $.inArray(value, arr); if (r !== -1) { arr.splice(r, 1); } return arr; }; echo = function(text) { return setTimeout(function() { return alert(text); }, 1000); }; jPre = function(text) { return console.log(JSON.stringify(text)); };