A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$
if your browser aliases it:
~ 108 byte version
var parser = function(url) { | |
var a = document.createElement('a'); | |
a.href = url; | |
var search = function(search) { | |
if(!search) return {}; | |
var ret = {}; | |
search = search.slice(1).split('&'); | |
for(var i = 0, arr; i < search.length; i++) { |
/** | |
* TextAreaExpander plugin for jQuery | |
* v1.0 | |
* Expands or contracts a textarea height depending on the | |
* quatity of content entered by the user in the box. | |
* | |
* By Craig Buckler, Optimalworks.net | |
* | |
* As featured on SitePoint.com: | |
* http://www.sitepoint.com/blogs/2009/07/29/build-auto-expanding-textarea-1/ |