Difference between revisions of "Template:Jscad"
Jump to navigation
Jump to search
OpenJsCad demo: Parametric Lamp Shade
Line 15: | Line 15: | ||
[[Category:Template]] | [[Category:Template]] | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
− | {{#tag: | + | {{#tag:html|<head> |
− | |||
<script src="/extensions/OpenJsCad/lightgl.js"></script> | <script src="/extensions/OpenJsCad/lightgl.js"></script> | ||
<script src="/extensions/OpenJsCad/csg.js"></script> | <script src="/extensions/OpenJsCad/csg.js"></script> | ||
Line 76: | Line 75: | ||
<body onload="onload()"> | <body onload="onload()"> | ||
<input type="submit" value="Update" onclick="updateSolid(); return false;"> | <input type="submit" value="Update" onclick="updateSolid(); return false;"> | ||
− | + | }} | |
</includeonly> | </includeonly> |
Revision as of 08:14, 10 June 2019
Usage
Put your JSCAD code inside a source tag and add a call of this template
<source lang='javascript'></source> {{jscad|code=function main() { } }}
Example