Advertisement
Void-voiD

Untitled

Aug 7th, 2020
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Molecula</title>
  6. <link href="css/style.css" rel="stylesheet">
  7. </head>
  8. <body onload = "start()">
  9. <form>
  10. <!-- окно для ввода формулы/названия молекулы -->
  11. <input type="text" id="searchbox" border="5" placeholder="Type here..."
  12. style="height:2%; width:20%; position:fixed; top:4%; left:39%;">
  13. <button type="text" id="sumbitSearch" border="5"
  14. style="height:2.35%; width:6%; position:fixed; top:4%; left:60%;"
  15. onclick="getMolecula(); return false;"> Search </button>
  16.  
  17. <!-- кнопки для переключения стилей отображения -->
  18. <button id="ball_stick" style="height:3%; width:12%; position:fixed; left:17%; top:9%;"> Ball-and-stick </button>
  19. <button id="spacefill" style="height:3%; width:12%; position:fixed; left:30%; top:9%;"> Spacefill </button>
  20. <button id="stick" style="height:3%; width:12%; position:fixed; left:43%; top:9%;"
  21. onclick="drawMoleculaStick();" type="button"> Stick </button>
  22. <button id="wireframe" style="height:3%; width:12%; position:fixed; left:56%; top:9%;"> Wireframe </button>
  23. <button id="surface" style="height:3%; width:12%; position:fixed; left:69%; top:9%;"> Surface </button>
  24.  
  25. <!-- кнопки переключения режима отображения -->
  26. <button id="view" style="height:4%; width:14%; position:fixed; left:34%; top:14%;"> View Mode </button>
  27. <button id="compare" style="height:4%; width:14%; position:fixed; right:34%; top:14%;"> Compare Mode </button>
  28. </form>
  29.  
  30. <!-- холст для отрисовки молекулы -->
  31. <canvas id="glcanvas" style="height:70%; width:80%; position:fixed; top:22%; left:10%"></canvas>
  32. <script type="text/javascript" src="code/openGL.js"></script>
  33. <script type="text/javascript" src="code/parse.js"></script>
  34. <script type="text/javascript" src="code/scene.js"></script>
  35.  
  36. <!-- скрипты three.js -->
  37. <script type="text/javascript" src="three.js-master/build/three.js"></script>
  38.  
  39. </body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement