Skip to content

Instantly share code, notes, and snippets.

@randallb
Last active December 23, 2015 09:09
Show Gist options
  • Save randallb/6612765 to your computer and use it in GitHub Desktop.
Save randallb/6612765 to your computer and use it in GitHub Desktop.
<script>
jQuery().ready(function{
width = jQuery(window).width()
if(width > 768){
jQuery(".big-ad").show();
// init code for the big ad
}else{
jQuery(".small-ad").show()
// init code for the small ad
}
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment