/** * Logger - Lightweight Wrapper for Console Logging * Paul Irish * paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ */ window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console && window.location.search.indexOf("debug") > -1){console.log(Array.prototype.slice.call(arguments))}}; /** * Color Picker - DropDown controlled colour picker component (function($) { log('asdf'); $.fn.colorPicker = function(options) { var defaults = {}; options = $.extend({}, defaults, options); return this.each(function(index){ }); } })(jQuery); /** * Return true if color is dark, false otherwise. * (C) 2008 Syronex / J.M. Rosengard **/ function isdark(color) { var colr = parseInt(color.substr(1), 16); return (colr >>> 16) // R + ((colr >>> 8) & 0x00ff) // G + (colr & 0x0000ff) // B < 500; }