index.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport"
  6. content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  7. <meta name="description"
  8. content="Tizen example" />
  9. <title>tizen example</title>
  10. <link rel="stylesheet" type="text/css" href="css/style.css" />
  11. <script>
  12. function log(arg)
  13. {
  14. var text = "log: " + arg + "\n";
  15. console.log(text);
  16. document.form.console.value += text ;
  17. }
  18. function change()
  19. {
  20. var source = document.form.source.value;
  21. eval(source);
  22. }
  23. </script>
  24. </head>
  25. <body>
  26. <h1>tizen example</h1>
  27. <form name=form>
  28. Source :<br/>
  29. <textarea rows="8" cols="80" name=source>
  30. log("begin");
  31. log("app=" + tizen.application.getCurrentApplication() );
  32. log("id=" + tizen.application.getCurrentApplication().appInfo.id );
  33. tizen.application.getCurrentApplication().hide();
  34. log("end");
  35. </textarea>
  36. <p/>
  37. Console :<br/>
  38. <textarea rows="8" cols="80" name=console>
  39. # URL: https://gitorious.org/tizen/tizen-example/source/bug/XWALK-2199:index.html
  40. # sample press eval it will hide
  41. # press super tab to switch it back
  42. # press eval again :
  43. # observe : no hide, but app is alive (console refreshed)
  44. # expected: hide again
  45. </textarea>
  46. <p/>
  47. <input type="button" onclick="change();" value="eval" />
  48. </form>
  49. <footer>
  50. <a href="https://gitorious.org/tizen/tizen-example/">
  51. https://gitorious.org/tizen/tizen-example/
  52. </a>
  53. </footer>
  54. </body>
  55. </html>