--- /dev/null
+<?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>
<?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>
<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">
</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>
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();
});
$('#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;