Code: Select all
if (window.innerHeight > window.innerWidth) {
portrait = true;
} else {
portrait = false;
}
Zum Beispiel. so etwas wie:
Code: Select all
@media only screen and (width > height) { ... }
Code: Select all
if (window.innerHeight > window.innerWidth) {
portrait = true;
} else {
portrait = false;
}
Code: Select all
@media only screen and (width > height) { ... }