Submitted by admin on Mon, 11/01/2010 - 13:30
En algunos momentos del desarrollo debemos desactivar la malla de grid que aparece en el tema 960 para poder trabajar. Con este snippet de jQuery podemos lograrlo
$(document).ready(function(){
$('body').removeClass('show-grid');
});
Si queremos hacerlo temporalmente podemos usar este script que encontré en
http://www.stjerneman.com/demo/toggle-ninesixty-theme-960-grids-with-js
/**
* $Id:$
*
* Toggle grid for ninesixty
* Created by: Emil Stjerneman - <<a href="http://www.anon-design.se>">http://www.anon-design.se></a> (anon - <<a href="http://drupal.org/user/464598>">http://drupal.org/user/464598></a>)
*
* Press "shift + g" to toggle
*/
$(document).ready(function() {
$(document).keypress(function(e){
var target = e.target || e.srcElement;
// Defeat Safari bug
if (target.nodeType==3) {
target = targ.parentNode;
}
// Prevent toggle of you are in a textarea for input field.
if(target.tagName != "TEXTAREA" && target.tagName != "INPUT" && e.which==71 && e.shiftKey) {
$('body').toggleClass('show-grid');
}
});
});