index.html 1011 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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("end");
  32. </textarea>
  33. <p/>
  34. Console :<br/>
  35. <textarea rows="8" cols="80" name=console>
  36. </textarea>
  37. <p/>
  38. <input type="button" onclick="change();" value="eval" />
  39. </form>
  40. <script><!--
  41. setTimeout('change()', 60000)
  42. //-->
  43. </script>
  44. <footer>
  45. <a href="https://gitorious.org/tizen/tizen-example/">
  46. https://gitorious.org/tizen/tizen-example/
  47. </a>
  48. </footer>
  49. </body>
  50. </html>