Skip to content

Instantly share code, notes, and snippets.

@norm
Forked from georgebrock/goviasgrid.js
Created December 9, 2010 12:00
Show Gist options
  • Save norm/734648 to your computer and use it in GitHub Desktop.
Save norm/734648 to your computer and use it in GitHub Desktop.
javascript:var i=document.documentElement;var found=0;var ncn=[];var cn=(i.className).split(/\s+/);for(var c=0;c<cn.length;c++){if(cn[c]=='enable-grid'){found=1}else{ncn.push(cn[c])}};if(!found){ncn.push('enable-grid')};i.className=ncn.join(' ');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment