Skip to content

Instantly share code, notes, and snippets.

View Mark-Creeten's full-sized avatar

Mark Creeten Mark-Creeten

View GitHub Profile
@Mark-Creeten
Mark-Creeten / Media queries in JavaScript
Created May 9, 2014 09:18
Media queries in JavaScript (dependecies: Modernizr)
if(Modernizr.mq('only screen and (min-width: 768px)')) {
//stuff when min-width is 768px
}
else {
//stuff todo when viewport is maller then 768px
}