From: jaekuk, lee Date: Tue, 21 Nov 2017 05:48:08 +0000 (+0900) Subject: [WRT][Extension] Update AppManager & app timer X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F18%2F161018%2F2;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git [WRT][Extension] Update AppManager & app timer Change-Id: If671cdf20190a0f96484519fecac5773379877d6 Signed-off-by: jaekuk, lee --- diff --git a/wrt/wrt_support/extensions_repo/app_timer/contentscript.js b/wrt/wrt_support/extensions_repo/app_timer/contentscript.js index 3f877bf..4e79c0a 100755 --- a/wrt/wrt_support/extensions_repo/app_timer/contentscript.js +++ b/wrt/wrt_support/extensions_repo/app_timer/contentscript.js @@ -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"}); } diff --git a/wrt/wrt_support/extensions_repo/app_timer/style.css b/wrt/wrt_support/extensions_repo/app_timer/style.css index 20f5417..8953663 100755 --- a/wrt/wrt_support/extensions_repo/app_timer/style.css +++ b/wrt/wrt_support/extensions_repo/app_timer/style.css @@ -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 */ } diff --git a/wrt/wrt_support/sample/wgt/AppManager.wgt b/wrt/wrt_support/sample/wgt/AppManager.wgt index 63b57dd..3c76a55 100755 Binary files a/wrt/wrt_support/sample/wgt/AppManager.wgt and b/wrt/wrt_support/sample/wgt/AppManager.wgt differ