From: ji.ji Date: Wed, 26 Jun 2013 10:09:53 +0000 (+0900) Subject: Updated Private -> RSA X-Git-Tag: 2.2_release~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be3f04bc2413e0a612985d0bb69e540eb44e8c26;p=samples%2Fweb%2FSysteminfo.git Updated Private -> RSA Change-Id: If045be108e549cfc20a2298c0056210051446429 --- diff --git a/.project b/.project new file mode 100644 index 0000000..4af25b2 --- /dev/null +++ b/.project @@ -0,0 +1,50 @@ + + + Systeminfo + + + + + + org.eclipse.wst.jsdt.core.javascriptValidator + + + + + json.validation.builder + + + + + org.tizen.web.jslint.nature.JSLintBuilder + + + + + org.tizen.web.editor.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.editor.css.nature.CSSNature + org.eclipse.wst.jsdt.core.jsNature + org.tizen.web.project.builder.WebNature + + diff --git a/config.xml b/config.xml index 5d0198e..12297ae 100755 --- a/config.xml +++ b/config.xml @@ -1,8 +1,11 @@ - - - Systeminfo - - - + + + + + Systeminfo + + + + diff --git a/index.html b/index.html index 73f21e2..4ae23d8 100755 --- a/index.html +++ b/index.html @@ -13,9 +13,9 @@ -
+
-

SYSTEM INFORMATION

+

System information

@@ -32,7 +32,7 @@
-
+

diff --git a/js/main.js b/js/main.js index b8f2936..c2e4750 100644 --- a/js/main.js +++ b/js/main.js @@ -42,6 +42,16 @@ $(document).delegate("#main", "pageinit", function() { getSystemProperty("DEVICE_ORIENTATION", onOrientationSuccess); return false; }); + + document.addEventListener('tizenhwkey', function (e) { + if (e.keyName === "back") { + if ($.mobile.activePage.attr('id') === 'main') { + tizen.application.getCurrentApplication().exit(); + } else { + history.back(); + } + } + }); }); $(document).delegate("#info", "pageinit", function() {