[SensorBall]update SensorBall(tizen_2.1)
authorji.ji <ji.ji@samsung.com>
Fri, 10 May 2013 07:44:28 +0000 (16:44 +0900)
committerji.ji <ji.ji@samsung.com>
Fri, 10 May 2013 07:44:28 +0000 (16:44 +0900)
Change-Id: I57793f2a9eca9d3d12988f385559271af3307a6e

config.xml
css/style.css
index.html
js/main.js
signature1.xml [deleted file]

index 5f60786..7e7d602 100644 (file)
@@ -7,9 +7,7 @@
        <content src="index.html" />
        <icon src="icon.png" />
        <name>SensorBall</name>
-       <tizen:privilege name="http://tizen.org/privilege/application.read" />
        <tizen:privilege name="http://tizen.org/privilege/application.launch" />
-       <tizen:privilege name="http://tizen.org/privilege/systeminfo" />
        <tizen:setting screen-orientation="portrait"
                context-menu="disable" background-support="disable" encryption="disable"
                install-location="auto" />
index f3c8da8..aa3f6bf 100644 (file)
@@ -21,6 +21,7 @@ body {
 
 .background3 {
        background-image: url('../images/background3.png');
+       overflow: hidden;
 }
 
 .ball {
@@ -38,4 +39,9 @@ body {
        left: 0px;
        top: 0px;
        z-index:50;
+}
+
+#main {
+       width: 100%;
+       height: 100%;
 }
\ No newline at end of file
index bbf1ea5..ea2306f 100644 (file)
@@ -1,40 +1,45 @@
 <!DOCTYPE html>
 <html>
- <head>
-  <meta charset="utf-8" />
-  <meta name="viewport" content="user-scalable=no" id="viewport_meta"/>
-  <script type="text/javascript">
-    var viewport_meta = document.getElementById('viewport_meta');
-    var w = screen.availWidth;
-    var h = screen.availHeight;
-    viewport_meta.setAttribute('content','width=' + w + ', height=' + h + ',user-scalable=no');
-  </script>
-  <title>SensorBall</title>
-  <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.min.js"></script>
-  <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-  <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.min.js" data-framework-theme="tizen-white" data-framework-viewport-scale="false"></script>
-  <link rel="stylesheet" href="./css/style.css" />
-  <script type="text/javascript" src="./js/main.js"></script>
- </head>
- <body>
-  <div data-role="page" id="mainPage" data-add-back-btn="true">
-   <div data-role="header" data-position="fixed">
-    <h1>SENSOR BALL</h1>
-   </div>
-   <div data-role="content" class="background background1" data-scroll="none">
-    <div id="main">
-     <img id="image1" class="ball" src="./images/ball1.png" />
-    </div>
-   </div>
-   <div data-role="footer" data-position="fixed">
-    <div data-role="tabbar" data-style="toolbar">
-     <ul>
-      <li><a href="#" id="btnBall" class="ui-btn-active">BALL</a></li>
-      <li><a href="#" id="btnSky">SKY</a></li>
-      <li><a href="#" id="btnSpace">SPACE</a></li>
-     </ul>
-    </div>
-   </div>
-  </div>
- </body>
+<head>
+<meta charset="utf-8" />
+<meta name="viewport" content="user-scalable=no" id="viewport_meta" />
+<script type="text/javascript">
+       var viewport_meta = document.getElementById('viewport_meta');
+       var w = screen.availWidth;
+       var h = screen.availHeight;
+       viewport_meta.setAttribute('content', 'width=' + w + ', height=' + h + ',user-scalable=no');
+</script>
+<title>SensorBall</title>
+<script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.min.js"></script>
+<script
+       src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+<script
+       src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.min.js"
+       data-framework-theme="tizen-white"
+       data-framework-viewport-scale="false"></script>
+<link rel="stylesheet" href="./css/style.css" />
+<script type="text/javascript" src="./js/main.js"></script>
+</head>
+<body>
+       <div data-role="page" id="mainPage" data-add-back-btn="true">
+               <div data-role="header" data-position="fixed">
+                       <h1>SENSOR BALL</h1>
+               </div>
+               <div data-role="content" class="background background1"
+                       data-scroll="none">
+                       <div id="main">
+                               <img id="image1" class="ball" src="./images/ball1.png" />
+                       </div>
+               </div>
+               <div data-role="footer" data-position="fixed">
+                       <div data-role="tabbar" data-style="toolbar">
+                               <ul>
+                                       <li><a href="#" id="btnBall" class="ui-btn-active">BALL</a></li>
+                                       <li><a href="#" id="btnSky">SKY</a></li>
+                                       <li><a href="#" id="btnSpace">SPACE</a></li>
+                               </ul>
+                       </div>
+               </div>
+       </div>
+</body>
 </html>
\ No newline at end of file
index d607ee2..5920d79 100644 (file)
@@ -471,8 +471,7 @@ $(document).ready(function () {
                contentHeight = screen.availHeight - $('div[data-role="header"]').outerHeight() - $('div[data-role="footer"]').outerHeight();
 
        $('div[data-role="content"]').css('height', contentHeight - 33);
-       app.gameWidth = window.innerWidth;
-
+       app.gameWidth = screen.availWidth;
        app.ballWidth = parseInt($('.ball').css('width'), 10);
        app.ballHeight = parseInt($('.ball').css('height'), 10);
 
@@ -509,6 +508,6 @@ $(document).ready(function () {
 });
 
 $(window).resize(function() {
-       app.gameWidth = $(window).width();
+       app.gameWidth = screen.availWidth;
        app.gameHeight = $('.background').outerHeight();
 });
diff --git a/signature1.xml b/signature1.xml
deleted file mode 100644 (file)
index 6caf9dd..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="DistributorSignature">
-<SignedInfo>
-<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></CanonicalizationMethod>
-<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></SignatureMethod>
-<Reference URI="LICENSE">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>3eAKfddMvUo3Opri3yMldvBqZpQeoqxOo4o/v00KuUo=</DigestValue>
-</Reference>
-<Reference URI="images/balloon.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>mVfGS7OdSl1RIM2ONfnl3guWUeMJkjwP7gsyRL4uBa4=</DigestValue>
-</Reference>
-<Reference URI="images/sun.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>r9VUVOxFZGpHt0eKv1IVqLmiVKF/ClBSxBy1PqO29rk=</DigestValue>
-</Reference>
-<Reference URI="images/earth.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>L7e3tnFlGH75zKdam19styrYLO/eacfkWrGJGGz7yqc=</DigestValue>
-</Reference>
-<Reference URI="images/background1.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>rCUZpH/ZWzbA9Qz2I7u9Og7Uk11NU7vBsk8QUSSHJ1o=</DigestValue>
-</Reference>
-<Reference URI="images/ball1.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>pTfob4bK8CuJJF2LJvawgP3PUqj+WkKKOSVqYtfXMjM=</DigestValue>
-</Reference>
-<Reference URI="images/face.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>zkFW1+GUy1qGhaqLP9bS1PDRw55ih2mJbpe3K70YGpw=</DigestValue>
-</Reference>
-<Reference URI="images/background2.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>6maGZdEXdb6/j6Bv+P36O/FWs/EWAGF7hk3s6BEmQ3g=</DigestValue>
-</Reference>
-<Reference URI="images/background3.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>zSmkBfAclnDK1UJ7+vOaGlce4yEDetjljY4TWf16Rqg=</DigestValue>
-</Reference>
-<Reference URI="js/main.js">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>pYhojY6H/asfPu+16wEI65Nln2yHKFHi3p5k6teijwQ=</DigestValue>
-</Reference>
-<Reference URI="config.xml">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>LrlDOVai9ct7hDkkj7PgqXT5HPfTenUz8U+lK3n7jOE=</DigestValue>
-</Reference>
-<Reference URI="icon.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>wfwuPIJiNBXrBw5Nl4NE8B7X1QpT3UVtFoiOoAiJsnU=</DigestValue>
-</Reference>
-<Reference URI="index.html">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>Lu9PcAf/djybPsplIOummZeDc7/c2nkWx10v9qrpD2A=</DigestValue>
-</Reference>
-<Reference URI="css/style.css">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>lCiewnJS2eTXJ02WIE1X+a+pmLLFQf6bSWWJAn633MU=</DigestValue>
-</Reference>
-<Reference URI="#prop">
-<Transforms>
-<Transform Algorithm="http://www.w3.org/2006/12/xml-c14n11"></Transform>
-</Transforms>
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>u/jU3U4Zm5ihTMSjKGlGYbWzDfRkGphPPHx3gJIYEJ4=</DigestValue>
-</Reference>
-</SignedInfo>
-<SignatureValue>
-lX/Jprto1RxsNyRvXBh9spKcaZo4wyw33xn88Q1FfedPRAO+jw95TNRjmL1s74EZ1YDujitRh/v9
-XPsJ35tu3KL5PlCrtpsZ/oMIxiZYVUyXET4TqzqCP9VY0vWZYm13nn/EZftjk3D5SdaaMwAt3nTb
-WtbIp8yB8WHvsh845rY=
-</SignatureValue>
-<KeyInfo>
-<X509Data>
-<X509Certificate>
-MIICmzCCAgQCCQDXI7WLdVZwiTANBgkqhkiG9w0BAQUFADCBjzELMAkGA1UEBhMCS1IxDjAMBgNV
-BAgMBVN1d29uMQ4wDAYDVQQHDAVTdXdvbjEWMBQGA1UECgwNVGl6ZW4gVGVzdCBDQTEiMCAGA1UE
-CwwZVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEkMCIGA1UEAwwbVGl6ZW4gUHVibGljIERpc3Ry
-aWJ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Q4wDAYDVQQHDAVTdXdvbjEWMBQGA1UECgwNVGl6
-ZW4gVGVzdCBDQTEiMCAGA1UECwwZVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEkMCIGA1UEAwwb
-VGl6ZW4gUHVibGljIERpc3RyaWJ1dG9yIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDe
-OTS/3nXvkDEmsFCJIvRlQ3RKDcxdWJJp625pFqHdmoJBdV+x6jl1raGK2Y1sp2Gdvpjc/z92yzAp
-bE/UVLPh/tRNZPeGhzU4ejDDm7kzdr2f7Ia0U98K+OoY12ucwg7TYNItj9is7Cj4blGfuMDzd2ah
-2AgnCGlwNwV/pv+uVQIDAQABoxAwDjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBACqJ
-KO33YdoGudwanZIxMdXuxnnD9R6u72ltKk1S4zPfMJJv482CRGCI4FK6djhlsI4i0Lt1SVIJEed+
-yc3qckGm19dW+4xdlkekon7pViEBWuyHw8OWv3RXtTum1+PGHjBJ2eYY4ZKIpz73U/1NC16sTB/0
-VhfnkHwPltmrpYVe
-</X509Certificate>
-</X509Data>
-</KeyInfo>
-<Object Id="prop"><SignatureProperties xmlns:dsp="http://www.w3.org/2009/xmldsig-properties"><SignatureProperty Id="profile" Target="#DistributorSignature"><dsp:Profile URI="http://www.w3.org/ns/widgets-digsig#profile"></dsp:Profile></SignatureProperty><SignatureProperty Id="role" Target="#DistributorSignature"><dsp:Role URI="http://www.w3.org/ns/widgets-digsig#role-distributor"></dsp:Role></SignatureProperty><SignatureProperty Id="identifier" Target="#DistributorSignature"><dsp:Identifier></dsp:Identifier></SignatureProperty></SignatureProperties></Object>
-</Signature>
\ No newline at end of file