12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <meta name="viewport"
- content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
- <meta name="description"
- content="Tizen example" />
- <title>tizen example</title>
- <link rel="stylesheet" type="text/css" href="css/style.css" />
- <script>
- function log(arg)
- {
- var text = "log: " + arg + "\n";
- console.log(text);
- document.form.console.value += text ;
- }
- function change()
- {
- var source = document.form.source.value;
- eval(source);
- }
- </script>
- </head>
- <body>
- <h1>tizen example</h1>
- <form name=form>
- Source :<br/>
- <textarea rows="8" cols="80" name=source>
- log("begin");
- log("app=" + tizen.application.getCurrentApplication() );
- log("id=" + tizen.application.getCurrentApplication().appInfo.id );
- tizen.application.getCurrentApplication().hide();
- log("end");
- </textarea>
- <p/>
- Console :<br/>
- <textarea rows="8" cols="80" name=console>
- # URL: https://gitorious.org/tizen/tizen-example/source/bug/XWALK-2199:index.html
- # sample press eval it will hide
- # press super tab to switch it back
- # press eval again :
- # observe : no hide, but app is alive (console refreshed)
- # expected: hide again
- </textarea>
- <p/>
- <input type="button" onclick="change();" value="eval" />
- </form>
- <footer>
- <a href="https://gitorious.org/tizen/tizen-example/">
- https://gitorious.org/tizen/tizen-example/
- </a>
- </footer>
- </body>
- </html>
|