Created
January 27, 2017 18:58
-
-
Save tjarksaul/2b4865e1e2636cc89eb32c71d19ff7b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.responsiveCheckerClass { | |
float: left; | |
display: none; | |
} | |
@media only screen and (max-width: 699px) { | |
/* dummy-Klasse zur Erkennung des responsiven Layouts */ | |
.responsiveCheckerClass { | |
float: none; | |
display: none; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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