forked from jscad/OpenJSCAD.org
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheditor.html
More file actions
156 lines (129 loc) · 6.2 KB
/
Copy patheditor.html
File metadata and controls
156 lines (129 loc) · 6.2 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
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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<!--
== OpenJSCAD.org, Copyright (c) 2013-2017 by Rene K. Mueller <spiritdude@gmail.com>, Licensed under MIT License ==
with some code from OpenJsCad processfile.html by Joost Nieuwenhuijse
in conjunction with csg.js, openjscad.js, lightgl.js by various authors (see them listed in the individual files)
Purpose:
More modern interface for OpenJsCad as published at http://joostn.github.com/OpenJsCad/
-->
<meta http-equiv=Pragma content=no-cache>
<meta http-equiv=Expires content=-1>
<meta http-equiv=CACHE-CONTROL content=NO-CACHE>
<title>Mobility Shield Builder - Editor</title>
<link rel="shortcut icon" href="imgs/favicon.png" type="image/x-png">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="stylesheet" href="openjscad.css" type="text/css">
</head>
<body>
<script src="dist/index.js"></script>
<!-- top left header (logo and error message) -->
<div id="header">
<img src="imgs/title.png">
<div id="errordiv"></div>
</div>
<!-- sliding tab (help, links, examples, options, etc) -->
<div id="menu">
<img id="menuHandle" src="imgs/menuHandleVLIn.png">
<nav>
<div id="menuVersion"></div>
<p/>
<table class="info">
<tr><td class="infoView" colspan=2>3D View</td></tr>
<tr><td align="right" class="infoOperation">Rotate XZ</td><td class="infoKey">Left Mouse</td></tr>
<tr><td align="right" class="infoOperation">Pan</td><td class="infoKey">Middle Mouse or SHIFT + Left Mouse</td></tr>
<tr><td align="right" class="infoOperation">Rotate XY</td><td class="infoKey">Right Mouse or ALT + Left Mouse</td></tr>
<tr><td align="right" class="infoOperation">Zoom In/Out</td><td class="infoKey">Wheel Mouse or CTRL + Left Mouse</td></tr>
</table>
<p>
<a class="navlink" href="http://mobilityshield.com" target="_blank" rel="publisher"><img src="imgs/home.png" style="externalLink;margin-bottom: -3px;"> Home Page</a>
<br/><span class="menuSubInfo">All starts here</span>
</p>
</p>
<div id="examplesTitle" class="navlink"><a href='#' onclick='return false'><img src="imgs/list.png" style="externalLink;margin-bottom: -3px;"> Examples</a></div>
<div id="examples"></div>
<span class="menuSubInfo">Dozens of parts to customize</span>
<p/>
<p>
<a class="navlink" href="http://mobilityshield.com/blog/" target="_blank"><img src="imgs/news.png" style="externalLink;margin-bottom: -3px;"> Blog</a>
<br/><span class="menuSubInfo">Announcements of recent developments</span>
</p>
<p><a class="navlink about" href="#" ><img src="imgs/info.png" style="externalLink;margin-bottom: -3px;"> About</a></p>
<p> <p/>
<p> <p/>
<p>
<a class="navlink" href="https://twitter.com/mobilityshield" target="_blank"><img src="imgs/twitter.png" style="externalLink;margin-bottom: -3px;"> Twitter: @mobilityshield</a>
<br/><span class="menuSubInfo">Follow us on Twitter to get the latest updates! =)</span>
</p>
</nav>
</div> <!-- /menu -->
<!-- about dialog -->
<div id="about">
<img src="imgs/title.png">
<div id="aboutVersion" ></div>
<p><a href="http://www.mobilityshield.com/" target="_blank">Mobility Shield</a> <b>Builder</b> made by <a xmlns:cc="http://creativecommons.org/ns#" href="http://www.jrodrigo.com" property="cc:attributionName" rel="cc:attributionURL" target="_blank">J.Rodrigo</a>.</p>
<p><a href="https://github.com/Spiritdude/OpenJSCAD.org" target="_blank">OpenJSCAD</a> by Joost Nieuwenhuijse (core), ené K. Müller (core, CLI & GUI), Stefan Baumann (core), Z3 Dev (core, CLI & GUI), Mark Moissette (core, CLI & GUI), Eduard Bespalov (core), Gary Hogdson (OpenSCAD translator).</p>
<p><a href="https://github.com/evanw/csg.js/" target="_blank">csg.js</a> core & improvements by Evan Wallace, Eduard Bespalov, Joost Nieuwenhuijse, Alexandre Girard.</p>
<p>Additional libraries & tools: xmldom, sax, browserify, babel.</p>
<p>
<b>Mobility Shield Builder is licensed under MIT License.</b>
</p>
<p>
<br/><a class="okButton" href='#'> OK </a>
</p>
</div> <!-- about -->
<!-- editor -->
<div id="editFrame">
<div>
<img id="editHandle" src="imgs/editHandleIn.png"></img>
</div>
<div id="editor">
// -- OpenJSCAD.org logo
function main() {
return union(
difference(
cube({size: 3, center: true}),
sphere({r:2, center: true})
),
intersection(
sphere({r: 1.3, center: true}),
cube({size: 2.1, center: true})
)
).translate([0,0,1.5]).scale(10);
}
</div>
</div> <!-- editor -->
<!-- design viewer -->
<div oncontextmenu="return false;" id="viewerContext"></div> <!-- avoiding popup when right mouse is clicked -->
<!-- design parameters -->
<div id="parametersdiv"></div>
<div id="selectdiv"></div>
<!-- design information (status message, download buttons, drag and drop area, etc) -->
<div id="tail">
<div id="statusdiv"></div>
<div id="filedropzone">
<div id="filedropzone_empty">
</div>
<div id="filedropzone_input">
<p>
<label class="input-control">Add Supported Files: <input type="file" id="files-input" accept="*/*" multiple="1"></input></label>
</p>
</div>
<div id="filedropzone_filled">
<span id="currentfile">...</span>
<div id="filebuttons">
<button id="getstlbutton" style="display:none" onclick="getStl();">Get STL</button>
<button id="reloadAllFiles">Reload</button>
<!--button onclick="parseFile(gCurrentFile,true,false);">Debug (see below)</button-->
<label for="autoreload">Auto Reload</label><input type="checkbox" name="autoreload" value="" id="autoreload">
</div>
</div>
</div>
</div> <!-- tail -->
<!-- footer (version, copyright) -->
<div id="footer">
</div>
</body>
</html>