-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
45 lines (40 loc) · 2.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8" />
<meta name="author" content="Script Tutorials" />
<title>Gravity simulate, Golang parallel computing, Websocket communicating, WebGL drawing 3D display</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!--
<script src="/js/jquery-1.9.1.min.js"></script>
-->
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<meta name="keywords" content="go,并行计算,万有引力,webgl,websocket,threejs"/>
<meta name="description" content="Go并行计算模拟万有引力,使用Websocket与前端通信,使用ThreeJS实现WebGL下的3d展示。"/>
</head>
<body>
<script src="js/three.min.js"></script>
<script src="js/THREEx.WindowResize.js"></script>
<script src="js/OrbitControls.js"></script>
<script src="js/stats.min.js"></script>
<script src="js/websocket.js"></script>
<script src="js/calcunit.js"></script>
<script src="js/script.js"></script>
<div style="position: absolute; top: 10px; left: 20px;">
websocket server:<input name="ws-addr" id="ws-addr" value=""/><button id="reConnect">yes</button><br/>
send content:<input name="" id="send-val" value="cmd=orbs&k=thelist1"/><button id="btnSend">yes</button><br/>
<button id="btnEnableCalc">help calc</button><br/>
<!--<button id="btnHelp">help calc</button><br/>-->
<div id="ws-msg">
websocket not already.
</div>
</div>
<div style="position: absolute; top: 10px; right: 20px;">
Zoom: <button id="zoom_down"> - </button><input id="zoom" value="1.0" readonly/><button id="zoom_up"> + </button><br/>
<br/>
star me: <a href="https://github.com/uxff/gravity_sim_go" target="_blank">github.com/uxff/gravity_sim_go</a><br/>
dark style: <a href="/threejsnew/webgl_buffergeometry_points.html" target="_blank">link dark style</a><br/>
</div>
</body>
</html>