[title] disabling contextmenu popup and user-select
authorJoonghun Park <jh718.park@samsung.com>
Mon, 23 Sep 2013 07:42:17 +0000 (16:42 +0900)
committerJoonghun Park <jh718.park@samsung.com>
Mon, 23 Sep 2013 07:48:27 +0000 (16:48 +0900)
[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
index.html
js/clock.js

index e1d1671..f2acc8b 100755 (executable)
@@ -1,5 +1,6 @@
 * {
-    margin:0;padding:0
+    margin:0;padding:0;
+    -webkit-user-select: none;
 }
 
 h1 {
index 7009f4e..607c471 100755 (executable)
@@ -15,6 +15,6 @@
     <h1>Offline clock and image</h1>
     <p><strong>WHILE OFFLINE PLEASE RELOAD THIS PAGE</strong></p>
     <p><output id="clock"></output></p>
-    <img src="images/tizen.png" alt="" />
+    <img id="tizenimg" src="images/tizen.png" alt="" />
 </body>
 </html>
index 177ac46..4229ae0 100755 (executable)
@@ -7,3 +7,8 @@ window.addEventListener('tizenhwkey', function(e) {
 setInterval(function () {\r
     document.getElementById('clock').value = new Date();\r
 }, 1000);\r
+\r
+window.onload = function() {\r
+    var tizenimg = document.getElementById('tizenimg');\r
+    tizenimg.addEventListener('contextmenu', function(e) {e.preventDefault()}, false)\r
+}
\ No newline at end of file