Automatically migrated from Gitolite
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
2.0 KiB

10 years ago
10 years ago
10 years ago
  1. <!DOCTYPE HTML>
  2. <html><head>
  3. <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  4. <title>Javascript Desktop Environment</title>
  5. <script type="text/javascript" src="jquery.js"></script>
  6. <script type="text/javascript" src="jquery.disable.select.js"></script>
  7. <script type="text/javascript" src="jsde.js"></script>
  8. <script type="text/javascript">
  9. var t;
  10. $(function(){
  11. createWindow(140, 30, "Test title", "<strong>Test contents</strong><pre></pre>", 500, 620, false);
  12. var secondWindow = createWindow(440, 120, "Test title", "<strong>Test contents</strong>", 300, 150).bringToForeground();
  13. debugEl = secondWindow;
  14. secondWindow.minHeight = 100;
  15. secondWindow.minWidth = 100;
  16. secondWindow.maxHeight = 400;
  17. secondWindow.maxWidth = 400;
  18. })
  19. </script>
  20. <link href='http://fonts.googleapis.com/css?family=Varela+Round' rel='stylesheet' type='text/css'>
  21. <link rel="stylesheet" type="text/css" href="base.css">
  22. <link rel="stylesheet" type="text/css" href="style.css">
  23. </head><body>
  24. <div id="make-window">
  25. <span id="id1">140, -8</span><br>
  26. <span id="id2">733, 85<br>873, 77</span><br><br>
  27. X: <input id="x" value="200" type="text"><br>
  28. Y: <input id="y" value="250" type="text"><br>
  29. Title: <input id="title" value="200" type="text"><br>
  30. Contents (HTML): <br>
  31. <textarea id="contents" style="width: 300px; height: 180px;">&lt;strong&gt;ohai!&lt;/strong&gt;&lt;br&gt;
  32. lol&lt;hr&gt;
  33. &lt;button&gt;:3&lt;/button&gt;
  34. </textarea><br>
  35. Width: <input id="w" value="400" type="text"><br>
  36. Height: <input id="h" value="300" type="text"><br>
  37. <button onclick="createWindow(parseInt($('#x').val()),parseInt($('#y').val()),$('#title').val(),$('#contents').val(),parseInt($('#w').val()),parseInt($('#h').val())).bringToForeground();">Make new window</button>
  38. </div>
  39. <div class="workspace-bar">
  40. <span id="workspace-tab-list">
  41. <!-- workspace tabs go here -->
  42. </span>
  43. <a class="workspace-tab workspace-tab-add" id="workspace_tab_add" href="#">+</a>
  44. </div>
  45. </body></html>