Skip to content

Instantly share code, notes, and snippets.

Created December 14, 2012 01:25
Show Gist options
  • Save anonymous/4281736 to your computer and use it in GitHub Desktop.
Save anonymous/4281736 to your computer and use it in GitHub Desktop.
var isiPad = navigator.userAgent.match(/iPad/i) !== null;
if (isiPad === true){
$(document).ready(function () {
$("ul.thumbnails li.event.span4.max300").removeClass("span4").addClass("span6")}
}
else{
window.onresize = 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