Skip to content

Instantly share code, notes, and snippets.

@mikeadesign
mikeadesign / equal.js
Created July 15, 2012 02:26 — forked from anointed/equal.js
Equal Height columns only if browser window is wider than 481px
// global variables
var compareWidthColumn, //previous width used for comparison
detectorColumn, //the element used to compare changes
smallScreenColumn; // Size of maximum width of single column media query
jQuery(document).ready(function($) {
//set the initial values
detectorColumn = jQuery('.js');
compareWidthColumn = detectorColumn.width();
smallScreenColumn = '481';