index.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta content="text/html; charset=windows-1252" http-equiv="content-type"/>
  5. <title>ObJS</title>
  6. <!--Script files -->
  7. <script type="text/javascript" src="script/ObJS.js"></script>
  8. <!-- CSS files -->
  9. </head>
  10. <body onload="loadModel(document.getElementById('objSelector'));">
  11. <table>
  12. <tr>
  13. <td>
  14. <canvas id="ObJSCanvas" width="400" height="400">
  15. Your browser does not support the HTML5 canvas tag.
  16. </canvas>
  17. </td>
  18. <td>
  19. <select id="objSelector" name="objSelector" onChange="loadModel(this)">
  20. <option value="cube" selected="selected">Cube</option>
  21. <option value="2cube">Two Cubes</option>
  22. <option value="complex">Complex Object</option>
  23. <option value="2complex">Two Complex Objects</option>
  24. </select>
  25. <br/>
  26. <input type="checkbox" name="drawElement" value="verts" checked onChange="drawElement('verts', this.checked);">Vertices
  27. <br/>
  28. <input type="checkbox" name="drawElement" value="edges" checked onChange="drawElement('edges', this.checked);">Edges
  29. <br/>
  30. <input type="checkbox" name="drawElement" value="faces" checked onChange="drawElement('faces', this.checked);">Faces
  31. </td>
  32. </tr>
  33. </table>
  34. </body>
  35. </html>