Skip to content

Instantly share code, notes, and snippets.

View KoryNunn's full-sized avatar

Kory Nunn KoryNunn

View GitHub Profile
function update(account, id, schemaData, callback){
schemaData.companyId = account.companyId;
kgo
({
account: account,
id: id,
data: schemaData
})
$.fn.colorToday = function(property){
var now = new Date(),
color = '#',
day = now.getDate(),
month = now.getMonth() + 1,
year = now.getFullYear().toString().slice(2);
day < 10 && (day = '0' + day);
month < 10 && (month = '0' + month);
color += day.toString() + month.toString() + year;