Skip to content

Instantly share code, notes, and snippets.

View boblauer's full-sized avatar

Bob Lauer boblauer

  • Chicago
View GitHub Profile
@boblauer
boblauer / check-class.js
Last active December 22, 2015 11:59
Check if a class is affecting the style of an element.
(function() {
var affected = [], unaffected = [],
className;
className = prompt('Class to check:');
if (!className) return;
$('.' + className).each(function() {
var element = this,
$element = $(this),