From f5a451908d743e4c8cf4ab6305f834e0c60b8274 Mon Sep 17 00:00:00 2001 From: Joonghun Park Date: Mon, 23 Sep 2013 16:42:17 +0900 Subject: [PATCH] [title] disabling contextmenu popup and user-select [issue#] N_SE-52636 [problem] violet text selection is displayed because of app suspending [solve] The corresponding event handling is not necessary for this app, so disabled it. Change-Id: I49b4611dc6752bc0448c9175d46ce3ca67fc7f2a --- css/style.css | 3 ++- index.html | 2 +- js/clock.js | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/css/style.css b/css/style.css index e1d1671..f2acc8b 100755 --- a/css/style.css +++ b/css/style.css @@ -1,5 +1,6 @@ * { - margin:0;padding:0 + margin:0;padding:0; + -webkit-user-select: none; } h1 { diff --git a/index.html b/index.html index 7009f4e..607c471 100755 --- a/index.html +++ b/index.html @@ -15,6 +15,6 @@

Offline clock and image

WHILE OFFLINE PLEASE RELOAD THIS PAGE

- + diff --git a/js/clock.js b/js/clock.js index 177ac46..4229ae0 100755 --- a/js/clock.js +++ b/js/clock.js @@ -7,3 +7,8 @@ window.addEventListener('tizenhwkey', function(e) { setInterval(function () { document.getElementById('clock').value = new Date(); }, 1000); + +window.onload = function() { + var tizenimg = document.getElementById('tizenimg'); + tizenimg.addEventListener('contextmenu', function(e) {e.preventDefault()}, false) +} \ No newline at end of file -- 2.7.4