Skip to content
This repository has been archived by the owner on Apr 18, 2019. It is now read-only.

Commit

Permalink
lock in landscape
Browse files Browse the repository at this point in the history
  • Loading branch information
tebrandt committed Dec 5, 2012
1 parent 639f4d5 commit c8a54e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.xml
Expand Up @@ -4,4 +4,5 @@
<content src="index.html"/>
<name>hangonman</name>
<tizen:application id="nrT4AQuzWO" required_version="1.0"/>
<tizen:setting screen-orientation="landscape" contextmenu="enable"/>
</widget>
7 changes: 6 additions & 1 deletion index.html
Expand Up @@ -9,7 +9,12 @@
-->
<html>
<head>
<meta name="viewport" content="width=device-width target-densitydpi=device-dpi initial-scale=1 maximum-scale=1 user-scalable=0" />
<meta id="viewport_meta" name="viewport" content="" />
<script type="text/javascript">
var viewport_meta = document.getElementById('viewport_meta');
var w = (screen.orientation.indexOf("portrait") == 0)?screen.availWidth:screen.availHeight;
viewport_meta.setAttribute('content','width='+w+', user-scalable=no');
</script>
<title id="appName" class="i18n"></title>
<link rel="stylesheet" type="text/css" href="css/hangonman.css"></link>
<link rel="stylesheet" type="text/css" href="css/license.css"></link>
Expand Down

0 comments on commit c8a54e8

Please sign in to comment.