12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <!DOCTYPE html>
- <html>
- <script>
- <!--
- var status = true;
- // TODO: update
- var appname = "aogomcpmfofdjjloaepnhogollhgphbg";
- appname = "xwalk." + appname;
- function log(arg) {
- console.log("### log: homescreen: " + arg);
- }
- function onSuccess() {
- log("onSuccess");
- tizen.application.getCurrentApplication().hide();
- }
- function onError() {
- log("onError");
- }
- function change() {
- log("change: { " + appname);
- if (false) {
- // make sure it actually hide , if not damage area using mouse event
- tizen.application.getCurrentApplication().hide();
- } else {
- tizen.application.launch(appname, onSuccess, onError);
- }
- log("change: }");
- }
- // -->
- </script>
- <body>
- <h1>HOMESCREEN</h1>
- <pre>
- <script>
- log("homescreen: %{version}" + status);
- document.write(window.location.href);
- log("homescreen: { may fail");
- var app = tizen.application.getCurrentApplication();
- log("homescreen: } check if not failed ?");
- log("homescreen: id=" + app.appInfo.id);
- document.write("Current application's app id is " + app.appInfo.id);
- if (true) {
- setTimeout('change()', 10000);
- }
- </script>
- </pre>
- <input type="button" onclick="change();" value="change" />
- <input type="button"
- onclick="tizen.application.getCurrentApplication().hide();"
- value="hide" />
- <input type="checkbox" onchange="status!=status;" value="checked" />
- </body>
- </html>
|