Updated Private -> RSA
authorji.ji <ji.ji@samsung.com>
Wed, 26 Jun 2013 10:09:44 +0000 (19:09 +0900)
committerji.ji <ji.ji@samsung.com>
Wed, 26 Jun 2013 10:09:44 +0000 (19:09 +0900)
Change-Id: I6f9c1b6740de53d0f1b5ac2306bdb4aaddfef912

.project [new file with mode: 0644]
config.xml
index.html
js/main.js

diff --git a/.project b/.project
new file mode 100644 (file)
index 0000000..7f6d88c
--- /dev/null
+++ b/.project
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>SensorBall</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.wst.common.project.facet.core.builder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>json.validation.builder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.tizen.web.jslint.nature.JSLintBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.tizen.web.css.nature.CSSBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.wst.validation.validationbuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.tizen.web.project.builder.WebBuilder</name>
+                       <arguments>
+                               <dictionary>
+                                       <key>usedLibraryType</key>
+                                       <value>WebUIFramework</value>
+                               </dictionary>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>json.validation.nature</nature>
+               <nature>org.tizen.web.jslint.nature.JSLintNature</nature>
+               <nature>org.tizen.web.css.nature.CSSNature</nature>
+               <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+               <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+               <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+               <nature>org.tizen.web.project.builder.WebNature</nature>
+       </natures>
+</projectDescription>
index a8c5aed..ea9e208 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://sample-web-application.tizen.org/SensorBall" version="2.1.0" viewmodes="fullscreen">
-       <tizen:application id="RiIuG1b0CV.SensorBall" package="RiIuG1b0CV" required_version="2.1"/>
+<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://sample-web-application.tizen.org/SensorBall" version="2.2.0" viewmodes="fullscreen">
+       <tizen:application id="RiIuG1b0CV.SensorBall" package="RiIuG1b0CV" required_version="2.2"/>
        <content src="index.html"/>
        <icon src="icon.png"/>
        <name>SensorBall</name>
index ea2306f..21be125 100644 (file)
@@ -23,7 +23,7 @@
 <body>
        <div data-role="page" id="mainPage" data-add-back-btn="true">
                <div data-role="header" data-position="fixed">
-                       <h1>SENSOR BALL</h1>
+                       <h1>Sensor Ball</h1>
                </div>
                <div data-role="content" class="background background1"
                        data-scroll="none">
@@ -32,7 +32,7 @@
                        </div>
                </div>
                <div data-role="footer" data-position="fixed">
-                       <div data-role="tabbar" data-style="toolbar">
+                       <div data-role="tabbar" data-style="toolbar" id="footerControls">
                                <ul>
                                        <li><a href="#" id="btnBall" class="ui-btn-active">BALL</a></li>
                                        <li><a href="#" id="btnSky">SKY</a></li>
index 74b325e..131148f 100644 (file)
@@ -479,6 +479,12 @@ $(document).ready(function () {
 
        app.fun();
 
+       document.addEventListener('tizenhwkey', function(e) {
+               if (e.keyName == "back") {
+                       tizen.application.getCurrentApplication().exit();
+               }
+       });
+
        $('.ui-btn-back').bind('touchstart', function (event) {
                tizen.application.getCurrentApplication().exit();
        });
@@ -500,6 +506,11 @@ $(document).ready(function () {
 
        $('#mainPage').on('pageshow', function () {
                app.startBall();
+
+               // fix for hidden back batton
+               if ($('a.ui-btn-back').is(':hidden')) {
+                       $('#footerControls').removeClass('ui-tabbar-margin-back');
+               }
        });
 
        // Preload backgrounds;