-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
77 lines (67 loc) · 2.41 KB
/
index.html
File metadata and controls
77 lines (67 loc) · 2.41 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Stellaris Save Visualizer</title>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
<script src="https://d3js.org/d3.v5.min.js"></script>
</head>
<body>
<table>
<tbody>
<tr>
<td>1.</td>
<td>
<a href="README.md" target="_blank">README</a>
</td>
</tr>
<tr>
<td>2.</td>
<td>
<span>Convert your save to JSON (if you haven't already)</span>
</td>
<td>
<form id="s3" method="post" enctype="multipart/form-data">
<input type="file" name="file">
<input type="submit" value="Upload">
</form>
</td>
<td>
<span id="processing-status"></span>
</td>
</tr>
<tr>
<td>3.</td>
<td>
<span>Open JSON file</span>
</td>
<td>
<input type="file" onchange="loadFile(this, Map.renderCallback('#map'));">
<button onclick="zoom(1/1.1, '#map');">zoom -</button>
<button onclick="resetZoom('#map');">reset</button>
<button onclick="zoom(1.1, '#map');">zoom +</button>
</td>
</tr>
</tbody>
</table>
<div>
<svg id="map"></svg>
</div>
<script type="text/javascript" src="static/js/input/s3.js"></script>
<script type="text/javascript" src="static/js/input/file.js"></script>
<script type="text/javascript" src="static/js/input/resize.js"></script>
<script type="text/javascript" src="static/js/data/string.js"></script>
<script type="text/javascript" src="static/js/data/colors.js"></script>
<script type="text/javascript" src="static/js/game/base.js"></script>
<script type="text/javascript" src="static/js/game/star.js"></script>
<script type="text/javascript" src="static/js/game/empire.js"></script>
<script type="text/javascript" src="static/js/game/starbase.js"></script>
<script type="text/javascript" src="static/js/game/hyperlane.js"></script>
<script type="text/javascript" src="static/js/game/bypass.js"></script>
<script type="text/javascript" src="static/js/game/wormhole.js"></script>
<script type="text/javascript" src="static/js/game/gamestate.js"></script>
<script type="text/javascript" src="static/js/render/map.js"></script>
</body>
</html>