From 4479bb81b756767fef32faec2822e2bb74dcb320 Mon Sep 17 00:00:00 2001 From: hallgren Date: Wed, 9 Apr 2014 13:59:35 +0000 Subject: Wide Coverage Demo App updates + Add Clear button. + Use localstorage to remember entered text between visits. + Add a link to it on the GF cloud service start page. --- src/www/js/wc.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/www/js') diff --git a/src/www/js/wc.js b/src/www/js/wc.js index b7c206c1d..d56eb637a 100644 --- a/src/www/js/wc.js +++ b/src/www/js/wc.js @@ -6,6 +6,7 @@ wc.e=element("extra") wc.p=element("pick") wc.serial=0 wc.os=[] +wc.local=appLocalStorage("gf.wc.") wc.delayed_translate=function() { function restart(){ if(wc.f.input.value!=wc.translating) wc.translate() } @@ -16,6 +17,28 @@ wc.delayed_translate=function() { if(wc.f.input.clientHeight