webglmapview/webviewgl.htm

121 lines
5.6 KiB
HTML

<!doctype html>
<html>
<head>
<title> Map View Web Edition </title>
<script src="js/three.js"></script>
<script src="js/decimal.min.js"></script>
<script src="js/OrbitControls.js"></script>
<script src="js/three-text2d.js"></script>
<script src="js/Detector.js"></script>
<script src="js/mapviewgl.js"></script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Raleway:400,700,700i" rel="stylesheet">
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> -->
<link href="styles/styles.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=" crossorigin="anonymous"></script>
<script src="js/GUI.Utils.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-80748037-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div id="container"></div>
<div class="menu-button" id="hotdog"> &#9776; </div>
<div id="controls" class="wvg-controls active">
<div id="wrapper">
<ul class="wvg-navbar">
<li class="wvg-tablink wvg-tab-active" onclick="openTab(event,'Find');">Find</li>
<li class="wvg-tablink" onclick="openTab(event,'Plan');">Plan</li>
<li class="wvg-tablink" onclick="openTab(event,'Intel');">Intel</li>
<li class="wvg-tablink" onclick="openTab(event,'Info');">Info</li>
</ul>
<div class="wvg-tools wvg-first" id="Find">
<span class="tool-header"> Find Object By Name </span>
<span>
<select id="findbyselect">
<option value=''></option>
</select> <br />
<input type="checkbox" name="objtype" id="cbp" value="planets" checked><label for="cbp"> Planets</label> <input type="checkbox" name="objtype" id="cbs" value="stations" > <label for="cbs">Stations</label>
<button id="submitfindbyname" class="btn">Find</button>
</span>
<span class="toolsep"></span>
<span>
<label>Target Data</label>
<p id="findbydata"> </p>
</span>
</div>
<div class="wvg-tools" id="Plan">
<span class="tool-header"> Route Planner </span>
<span>
<label for="pointa">Point A</label>
<select id="pointa" name="Point_A">
<!-- Options will generated in code -->
</select>
<br />
<label for="pointb"> Point B </label>
<select id="pointb" name="Point_B">
<!-- Options will generated in code -->
</select>
<label for="speed">Travel Speed</label>
<input type="text" id="speed" value="14">
<select id="speedunit" name="Speed Unit">
<option value='WF'>Warp Factor</option>
<option value='PC/s'>PC/s</option>
<option value='SU/s'>SU/s</option>
</select>
<br />
<button id="calctnd" class="btn">Calculate</button>
</span>
<br />
<br />
<select multiple="multiple" id="route_output" class="select-route-map">
<option> No route calculated </option>
</select>
<span class="calc_data"><br />
From: <b id="cal_start">Empty</b> <br />
To: <b id="cal_end">Empty</b><br />
Distance: <b id="cal_dist">Unknown</b><br />
ETA @ <b id="cal_speed">Unknown</b> : <b id="cal_eta">Unknown</b>
</span>
</div>
<div class="wvg-tools" id="Intel">
<span class="tool-header"> Route Prediction </span>
<span>
<input type="text" class="rpcoord" id="x" value="x" style="width:3vw;">
<input type="text" class="rpcoord" id="y" value="y" style="width:3vw;">
<input type="text" class="rpcoord" id="z" value="z" style="width:3vw;"><br /><br />
<input type="text" class="rpcoord" id="azmuth" value="azmuth" style="width:3.1vw;"><label for='inclination'> mark </label>
<input type="text" class="rpcoord" id="inclination" value="inclination" style="width:3.5vw;"> <br /><br />
<label for="intel_frame">Coordinate Frame</label>
<select id="intel_frame">
<option val="Galactic"> Galactic </option>
</select>
</span>
<span>
Perdicted Destination: <b id="intel_predicted"></b>
<button id="calcpredict" class="btn">Predict</button>
</span>
</div>
<div class="wvg-tools" id="Info">
<span> This tool was designed by Frey @ ATSMUSH. It is based on MapView for ATS with data used from the Navcomp MUSHClient plugin with permission. </span>
</div>
</div>
<div class="reset-container"><span class="reset-button"> Reset </span></div>
</div>
</body>
</html>