Browse Source

Lock in orientation.

Nathaniel van Diepen 10 years ago
parent
commit
78b2ad8319
2 changed files with 11 additions and 1 deletions
  1. 5 1
      bugs.webapp
  2. 6 0
      index.php

+ 5 - 1
bugs.webapp

@@ -18,5 +18,9 @@
 	},
 	"permissions": {
 		"desktop-notification": {}
-	}
+	},
+	"appcache_path": "bugs.appcache",
+	"orientation": [
+		"portrait"
+	]
 }

+ 6 - 0
index.php

@@ -135,7 +135,13 @@
 					window.screen.lockOrientation('portrait');
 				}
 			})(window,Modernizr);
+			Screen.lockOrientation();
 		</script>
+		<style>
+			@viewport{
+				orientation: portrait;
+			}
+		</style>
 		<script src="js/jquery.min.js"></script>
 		<script src="js/jquery-ui.min.js"></script>
 		<script src="js/handlebars.js"></script>