From: ji.ji Date: Wed, 26 Jun 2013 10:09:44 +0000 (+0900) Subject: Updated Private -> RSA X-Git-Tag: 2.2_release~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83c2fdc545fc7911a500d662a15ca2c1e0927870;p=samples%2Fweb%2FSensorBall.git Updated Private -> RSA Change-Id: I6f9c1b6740de53d0f1b5ac2306bdb4aaddfef912 --- diff --git a/.project b/.project new file mode 100644 index 0000000..7f6d88c --- /dev/null +++ b/.project @@ -0,0 +1,57 @@ + + + SensorBall + + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.jsdt.core.javascriptValidator + + + + + json.validation.builder + + + + + org.tizen.web.jslint.nature.JSLintBuilder + + + + + org.tizen.web.css.nature.CSSBuilder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + org.tizen.web.project.builder.WebBuilder + + + usedLibraryType + WebUIFramework + + + + + + json.validation.nature + org.tizen.web.jslint.nature.JSLintNature + org.tizen.web.css.nature.CSSNature + org.eclipse.wst.jsdt.core.jsNature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.tizen.web.project.builder.WebNature + + diff --git a/config.xml b/config.xml index a8c5aed..ea9e208 100644 --- a/config.xml +++ b/config.xml @@ -1,6 +1,6 @@ - - + + SensorBall diff --git a/index.html b/index.html index ea2306f..21be125 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@
-

SENSOR BALL

+

Sensor Ball

@@ -32,7 +32,7 @@
-
+
  • BALL
  • SKY
  • diff --git a/js/main.js b/js/main.js index 74b325e..131148f 100644 --- a/js/main.js +++ b/js/main.js @@ -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;