Skip to content

Instantly share code, notes, and snippets.

@tjarksaul
Created January 27, 2017 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjarksaul/2b4865e1e2636cc89eb32c71d19ff7b0 to your computer and use it in GitHub Desktop.
Save tjarksaul/2b4865e1e2636cc89eb32c71d19ff7b0 to your computer and use it in GitHub Desktop.
.responsiveCheckerClass {
float: left;
display: none;
}
@media only screen and (max-width: 699px) {
/* dummy-Klasse zur Erkennung des responsiven Layouts */
.responsiveCheckerClass {
float: none;
display: none;
}
}
if ($('.responsiveCheckerClass').css('float') == 'left') {
// desktop
} else {
// mobile
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment