-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor.html
191 lines (176 loc) · 13.8 KB
/
editor.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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/png" href="assets/kubu.png"/>
<title>Editor</title>
<link id="link-theme-css" rel="stylesheet" href="">
<script src="js/utils.js"></script>
<script src="js/classes.js"></script>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/toggle-bootstrap.min.css">
<link rel="stylesheet" href="css/toggle-bootstrap-dark.min.css">
<link rel="stylesheet" href="css/toggle-bootstrap-print.min.css">
<link rel="stylesheet" href="https://maxst.icons8.com/vue-static/landings/line-awesome/line-awesome/1.3.0/css/line-awesome.min.css">
</head>
<body class="bootstrap-dark">
<nav class="navbar navbar-expand-lg border-bottom navbar-themed" id="main-nav-bar">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse"
data-target="#navbarTogglerDemo03" aria-controls="navbarTogglerDemo03" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="index.html"><i class="las la-backspace mr-1"></i></a>
<div class="collapse navbar-collapse" id="navbarTogglerDemo03">
<ul class="navbar-nav mr-auto mt-2 mt-md-0">
<!-- FILE -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="javascript:;" id="FileDropdown" role="button" data-toggle="dropdown" data-auto-close="outside" aria-expanded="false">
<i class="las la-file-code"></i> File
</a>
<ul class="dropdown-menu" aria-labelledby="FileDropdown">
<li><a class="dropdown-item" href="javascript:;"><i class="las la-plus mr-1"></i> New</a></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-car mr-1"></i> Load Examples</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-tasks mr-1"></i> Selective Import</a></li>
<li>
<label type="button" class="dropdown-item">
<input type="file" style="display:none;" id="uploadcar" onchange="NUtils.loadFile('uploadcar');" multiple="">
<i class="las la-upload mr-1"></i> Import: File</a>
</label>
</li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-copy mr-1"></i> Import: Clipboard RAD</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-tasks mr-1"></i> Selective Export</a></li>
<li><a class="dropdown-item" href="javascript:;" onclick=""><i class="las la-download mr-1"></i> Export: RAD File</a></li>
<li><a class="dropdown-item" href="javascript:;" onclick=""><i class="las la-download mr-1"></i> Export: JSON File</a></li>
<li><a class="dropdown-item" href="javascript:;" onclick=""><i class="las la-copy mr-1"></i> Export: Clipboard RAD</a></li>
<li><a class="dropdown-item" href="javascript:;" onclick=""><i class="las la-copy mr-1"></i> Export: Clipboard JSON</a></li>
</ul>
</li>
<!-- POLYGONS -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="javascript:;" id="PolygonsDropdown" role="button" data-toggle="dropdown" data-auto-close="outside" aria-expanded="false">
<i class="las la-vector-square"></i> Polygons
<span class="badge bg-info" id="navbar-polycount">0</span>
</a>
<ul class="dropdown-menu" aria-labelledby="PolygonsDropdown">
<li><a class="dropdown-item" href="javascript:;"><i class="las la-plus mr-1"></i> Add</a></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-plus mr-1"></i> Bulk Add</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-expand mr-1"></i> Edit All</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-upload mr-1"></i> Import: File</a></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-copy mr-1"></i> Import: Clipboard</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-download mr-1"></i> Export: File</a></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-copy mr-1"></i> Export: Clipboard</a></li>
</ul>
</li>
<!-- COLORS -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="javascript:;" id="ColorsDropdown" role="button" data-toggle="dropdown" data-auto-close="outside" aria-expanded="false">
<i class="las la-tint" id="navbar-1stColor"></i><i class="las la-tint mr-1" id="navbar-2ndColor"></i> Colors
</a>
<ul class="dropdown-menu" aria-labelledby="ColorsDropdown">
<li><a class="dropdown-item" href="javascript:;"><i class="las la-fill mr-1"></i> Edit</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-upload mr-1"></i> Import: File</a></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-copy mr-1"></i> Import: Clipboard</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-download mr-1"></i> Export: File</a></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-copy mr-1"></i> Export: Clipboard</a></li>
</ul>
</li>
<!-- WHEELS -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="javascript:;" id="WheelsDropdown" role="button" data-toggle="dropdown" data-auto-close="outside" aria-expanded="false">
<i class="lab la-accessible-icon"></i> Wheels
</a>
<ul class="dropdown-menu" aria-labelledby="WheelsDropdown">
<li><a class="dropdown-item" href="javascript:;"><i class="las la-arrows-alt-h mr-1"></i> Edit</a></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-cog mr-1"></i> Autogenerate</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-upload mr-1"></i> Import: File</a></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-copy mr-1"></i> Import: Clipboard</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-download mr-1"></i> Export: File</a></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-copy mr-1"></i> Export: Clipboard</a></li>
</ul>
</li>
<!-- STATS -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="javascript:;" id="StatsDropdown" role="button" data-toggle="dropdown" data-auto-close="outside" aria-expanded="false">
<i class="las la-tachometer-alt"></i> Stats
</a>
<ul class="dropdown-menu" aria-labelledby="StatsDropdown">
<li><a class="dropdown-item" href="javascript:;"><i class="las la-signal mr-1"></i> Edit</a></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-cog mr-1"></i> Autogenerate</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-upload mr-1"></i> Import: File</a></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-copy mr-1"></i> Import: Clipboard</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-download mr-1"></i> Export: File</a></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-copy mr-1"></i> Export: Clipboard</a></li>
</ul>
</li>
<!-- PHYSICS -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="javascript:;" id="PhysicsDropdown" role="button" data-toggle="dropdown" data-auto-close="outside" aria-expanded="false">
<i class="las la-ruler-horizontal"></i> Physics
</a>
<ul class="dropdown-menu" aria-labelledby="PhysicsDropdown">
<li><a class="dropdown-item" href="javascript:;"><i class="las la-chart-line mr-1"></i> Edit</a></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-cog mr-1"></i> Autogenerate</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-upload mr-1"></i> Import: File</a></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-copy mr-1"></i> Import: Clipboard</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-download mr-1"></i> Export: File</a></li>
<li><a class="dropdown-item" href="javascript:;"><i class="las la-copy mr-1"></i> Export: Clipboard</a></li>
</ul>
</li>
<!-- MISC -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="javascript:;" id="MiscDropdown" role="button" data-toggle="dropdown" data-auto-close="outside" aria-expanded="false">
<i class="las la-stream"></i> Misc
</a>
<ul class="dropdown-menu" aria-labelledby="MiscDropdown">
<li><a class="dropdown-item" href="http://multiplayer.needformadness.com/" target="_blank"><i class="las la-download mr-1"></i> NFMM</a></li>
<li><a class="dropdown-item" href="https://github.com/k3rielit/mdns/tree/main/web-frontend" target="_blank"><i class="lab la-github mr-1"></i> GitHub</a></li>
<li><a class="dropdown-item" href="https://github.com/jimfoltz/NFM-for-SketchUp" target="_blank"><i class="lab la-sketch mr-1"></i> SketchUp Plugin</a></li>
<li><a class="dropdown-item" href="https://github.com/Cephalobyte/Blender-Scripts/blob/main/NeedForMadness/ModelToRad/ModelToRad.py" target="_blank"><i class="lab la-python mr-1"></i> Blender Plugin</a></li>
<li><a class="dropdown-item" href="https://discord.gg/rHQuj3Y" target="_blank"><i class="lab la-discord mr-1"></i> AIM Discord</a></li>
</ul>
</li>
</ul>
<ul class="form-inline navbar-nav my-2 my-lg-0">
<li class="nav-item mx-2">
<a class="nav-link" href="javascript:document.getElementsByTagName('body')[0].setAttribute('class', 'bootstrap-dark');"><i class="las la-moon mr-1"></i></a>
</li>
<li class="nav-item mx-2">
<a class="nav-link" href="javascript:document.getElementsByTagName('body')[0].setAttribute('class', 'bootstrap');"><i class="las la-sun mr-1"></i></a>
</li>
</ul>
</div>
</nav>
<!-- ---- -->
<!-- BODY -->
<!-- ---- -->
<div class="container-fluid">
<canvas id="canvas" style="border: 1px solid black;"></canvas>
</div>
<!-- SCRIPTS -->
<script src="js/edit.js"></script>
<script src="js/fiddle3dV2.js"></script>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>