Warning: Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP) in /kunden/247608_14469/webseiten/wp-content/themes/wordblab/functions.php on line 28
Warning: Use of undefined constant text - assumed 'text' (this will throw an Error in a future version of PHP) in /kunden/247608_14469/webseiten/wp-content/themes/wordblab/functions.php on line 29
Warning: Use of undefined constant text - assumed 'text' (this will throw an Error in a future version of PHP) in /kunden/247608_14469/webseiten/wp-content/themes/wordblab/functions.php on line 9
Wie wir in Windows 8 App View States kontrollieren gesehen haben, kann eine App in den Snap-View versetzt werden, wodurch ihr nur 320 Pixel Breite zustehen. Doch wie groß ist die App im Vollbildmodus? Das ist natürlich abhängig von der Auflösung des Bildschirms. Mit JavaScript lässt sich die Höhe und Breite einer App ganz leicht ermitteln:
var appWidth = document.documentElement.clientWidth; var appHeight = document.documentElement.clientHeight; |
Während meiner Versuche lieferte appWidth
den Wert „1920“ im Vollbildmodus und „320“ im Snap-View (getested mit einem Full HD-Monitor). Interessanterweise erhält man dieselben Werte auch mit folgenden Funktionen:
var appWidth = window.innerWidth; var appHeight = window.innerHeight; |
Letzte Kommentare