[WRT][Extension] Update AppManager & app timer 18/161018/2
authorjaekuk, lee <juku1999@samsung.com>
Tue, 21 Nov 2017 05:48:08 +0000 (14:48 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 21 Nov 2017 05:53:23 +0000 (05:53 +0000)
Change-Id: If671cdf20190a0f96484519fecac5773379877d6
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
wrt/wrt_support/extensions_repo/app_timer/contentscript.js
wrt/wrt_support/extensions_repo/app_timer/style.css
wrt/wrt_support/sample/wgt/AppManager.wgt

index 3f877bf..4e79c0a 100755 (executable)
@@ -33,6 +33,9 @@ port.onMessage.addListener(function(msg) {
     jsonobj.time.hours = msg.value.time.hours;
     jsonobj.time.minutes = msg.value.time.minutes;
     jsonobj.time.seconds = msg.value.time.seconds;
+    jsonfile.writeFile(filepath, jsonobj, function (err) {
+      console.error(err);
+    });
     document.getElementById('hours-digit').innerHTML = jsonobj.time.hours;
     document.getElementById('minutes-digit').innerHTML = jsonobj.time.minutes;
     document.getElementById('seconds-digit').innerHTML = jsonobj.time.seconds;
@@ -103,7 +106,7 @@ function initialize() {
 
 function start() {
   console.log('start, '+jsonobj.time.hours+' : '+jsonobj.time.minutes+' : '+jsonobj.time.seconds);
-  document.body.insertAdjacentHTML('beforebegin', TIME_HTML);
+  document.body.insertAdjacentHTML('afterbegin', TIME_HTML);
   port.postMessage({contentscript: "timer-setTime", value:jsonobj.time});
   port.postMessage({contentscript: "timer-start"});
 }
index 20f5417..8953663 100755 (executable)
@@ -6,7 +6,6 @@
   top: 0;
   width: 100%; /* Full width */
   height: 100%; /* Full height */
-  overflow: auto; /* Enable scroll if needed */
   background-color: rgb(0,0,0); /* Fallback color */
   background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
 }
index 63b57dd..3c76a55 100755 (executable)
Binary files a/wrt/wrt_support/sample/wgt/AppManager.wgt and b/wrt/wrt_support/sample/wgt/AppManager.wgt differ