Skip to content

Instantly share code, notes, and snippets.

@jdkealy
Forked from anonymous/gist:4281736
Created December 14, 2012 01:34
Show Gist options
  • Save jdkealy/4281774 to your computer and use it in GitHub Desktop.
Save jdkealy/4281774 to your computer and use it in GitHub Desktop.
$(document).ready(function () {
var isiPad = navigator.userAgent.match(/iPad/i) !== null;
if (isiPad === true){
$("ul.thumbnails li.event.span4.max300").removeClass("span4").addClass("span6")
}
$(window).resize(function(){
if (window.innerWidth < 1200){
$("ul.thumbnails li.event.span4.max300").removeClass("span4").addClass("span6");
}
if (window.innerWidth > 1200){
$("ul.thumbnails li.event.span6.max300").removeClass("span6").addClass("span4");
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment