projects
/
samples
/
web
/
OfflineClockImage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b062de
)
[OfflineClockImage] add eventHandler for tizen hardware backKey
author
Joonghun Park
<jh718.park@samsung.com>
Thu, 13 Jun 2013 02:28:16 +0000
(11:28 +0900)
committer
Joonghun Park
<jh718.park@samsung.com>
Tue, 18 Jun 2013 14:49:35 +0000
(23:49 +0900)
Change-Id: I52e386a6f1fa52eaee2768524270a9e2189c9f1a
js/clock.js
patch
|
blob
|
history
diff --git
a/js/clock.js
b/js/clock.js
index
89022a1
..
7a63fbf
100755
(executable)
--- a/
js/clock.js
+++ b/
js/clock.js
@@
-1,3
+1,8
@@
+//add eventListener for tizenhwkey
\r
+document.addEventListener('tizenhwkey', function(e){
\r
+ tizen.application.getCurrentApplication().exit();
\r
+});
\r
+
\r
setInterval(function () {
\r
document.getElementById('clock').value = new Date();
\r
-}, 1000);
\ No newline at end of file
+}, 1000);
\r