<!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="dependencies/analytics.js"></script> <!--UI--> <script src="dependencies/jquery-2.1.3.js"></script> <script src="dependencies/underscore.js"></script> <!--backbone model/view framework--> <script src="dependencies/backbone.js"></script> <!--flatUI bootstrap theme--> <link href="dependencies/flatUI/css/vendor/bootstrap.min.css" rel="stylesheet"><!-- Loading Bootstrap --> <link href="dependencies/flatUI/css/flat-ui.css" rel="stylesheet"><!-- Loading Flat UI --> <script src="dependencies/flatUI/js/flat-ui.js"></script> <!--<script src="dependencies/flatUI/js/vendor/video.js"></script>--> <!--bootstrap slider--> <link href="dependencies/bootstrap-slider/bootstrap-slider.css" rel="stylesheet"> <script src="dependencies/bootstrap-slider/bootstrap-slider.js"></script> <!--threeJS--> <script src="dependencies/three.js"></script> <script src="dependencies/OrbitControls.js"></script> <!--stl import/export--> <script src="dependencies/loaders/FileSaver.min.js"></script> <script src="dependencies/THREE2STL.js"></script> <script src="dependencies/loaders/STLLoader.js"></script> <!--numerical javascript--> <script src="dependencies/numeric-1.2.6.js"></script> <script src="js/models/AllAppPLists.js"></script> <!--multi-threading--> <script src="js/multiThreading/worker.js"></script> <script src="js/multiThreading/persistentWorkers.js"></script><!--global workers--> <!--fea stuff--> <script src="js/fea/DmaNode.js"></script> <script src="js/fea/DmaBeam.js"></script> <script src="js/cells/DMACell.js"></script> <script src="js/cells/OctaFaceCell.js"></script> <script src="js/cells/OctaEdgeCell.js"></script> <script src="js/cells/OctaRotEdgeCell.js"></script> <script src="js/cells/OctaVertexCell.js"></script> <script src="js/cells/supercells/GIKSuperCell.js"></script> <script src="js/cells/DMACellFreeform.js"></script> <script src="js/cells/CubeCell.js"></script> <script src="js/cells/GIKCell.js"></script> <script src="js/cells/TruncatedCubeCell.js"></script> <script src="js/cells/KelvinCell.js"></script> <!--<script src="js/cells/TetraEdgeCell.js"></script>--> <!--<script src="js/cells/TetraFaceCell.js"></script>--> <script src="js/parts/DMAPart.js"></script> <script src="js/parts/GIKPart.js"></script> <script src="js/parts/OctaEdgeVoxPart.js"></script> <script src="js/parts/OctaFaceTriPart.js"></script> <!--models--> <script src="js/models/ThreeModel.js"></script> <script src="js/lattice/Lattice.js"></script> <script src="js/lattice/CubeLattice.js"></script> <script src="js/lattice/GIKLattice.js"></script> <script src="js/lattice/KelvinLattice.js"></script> <script src="js/lattice/OctaEdgeLattice.js"></script> <script src="js/lattice/OctaFaceLattice.js"></script> <script src="js/lattice/OctaFreeFormFaceLattice.js"></script> <script src="js/lattice/OctaRotEdgeLattice.js"></script> <script src="js/lattice/OctaVertexLattice.js"></script> <script src="js/lattice/TruncatedCubeLattice.js"></script> <script src="js/models/FillGeometry.js"></script> <script src="js/models/BasePlane.js"></script> <script src="js/models/extrudeVisualizer.js"></script> <script src="js/models/AppState.js"></script> <script src="js/cam/Machine.js"></script> <script src="js/cam/MachineOneBit.js"></script> <script src="js/cam/cam.js"></script> <script src="js/cam/ShopbotExporter.js"></script> <script src="js/cam/GCodeExporter.js"></script> <script src="js/cam/TinyGExporter.js"></script> <script src="js/models/GlobalFileSaver.js"></script> <!--views--> <script src="js/menus/MenuWrapperView.js"></script> <script src="js/menus/Navbar.js"></script> <script src="js/menus/NavViewMenu.js"></script> <script src="js/menus/Ribbon.js"></script> <script src="js/menus/LatticeMenuView.js"></script> <script src="js/menus/ImportMenuView.js"></script> <script src="js/menus/PartMenuView.js"></script> <script src="js/menus/SketchMenuView.js"></script> <script src="js/menus/ScriptMenuView.js"></script> <script src="js/menus/PhysicsMenuView.js"></script> <script src="js/menus/MaterialMenuView.js"></script> <script src="js/menus/OptimizationMenuView.js"></script> <script src="js/menus/AssemblerMenuView.js"></script> <script src="js/menus/AnimationMenuView.js"></script> <script src="js/menus/CamMenuView.js"></script> <script src="js/menus/SendMenuView.js"></script> <script src="js/threeViews/Highlighter.js"></script> <script src="js/threeViews/ThreeView.js"></script> <script src="js/main.js"></script> <link rel="stylesheet" type="text/css" href="css/main.css"> </head> <body> <nav id="globalNav" class="navbar navbar-inverse navbar-embossed" role="navigation"> <div class="navbar-header"> <a id="mainNavLink" class="navbar-brand" target="_blank" href="http://cba.mit.edu"><img id="logo" src="assets/imgs/logo.png"></a> </div> <div class="collapse navbar-collapse" id="navbar-collapse-01"> <ul class="nav navbar-nav navbar-left"> <li><a data-menu-id="navDesign" class="menuHoverControls" href="#">Design</a></li> <li><a data-menu-id="navSim" class="menuHoverControls" href="#">Simulate</a></li> <li><a data-menu-id="navAssemble" class="menuHoverControls" href="#">Assemble</a></li> <li class="dropdown navDropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">File <b class="caret"></b></a> <span class="dropdown-arrow"></span> <ul class="dropdown-menu"> <li><a class="saveJSON" href="#">Save JSON     (CTRL/⌘ + S)</a></li> <li><a data-toggle="modal" data-target="#saveAsModel" href="#">Save JSON As...     (CTRL/⌘ + Shift + S)</a></li> <li><a class="importJSON" href="#">Open JSON...     (CTRL/⌘ + O)</a></li> <li class="dropdown-submenu"> <a tabindex="-1">Demo Files<span class="pull-right fui-arrow-right"></span></a> <ul class="dropdown-menu"> <li><a data-file="oneBitBot.json" class="loadDemo" href="#">One Bit Assembly</a></li> </ul></li> <li class="divider"></li> <li class="dropdown-submenu"> <a tabindex="-1">Load User Settings<span class="pull-right fui-arrow-right"></span></a> <ul class="dropdown-menu"> <!--<li><a id="resetDefaultSettings" href="#">Reset Settings</a></li>--> <li><a data-file="ben.user" class="loadUser" href="#">Ben</a></li> <li><a data-file="matt.user" class="loadUser" href="#">Matt</a></li> <li><a data-file="will.user" class="loadUser" href="#">Will</a></li> <li><a class="importJSON" href="#">From File...</a></li> </ul> </li> <li><a id="saveUserSettings" data-toggle="modal" data-target="#saveUserModel" href="#">Save User Settings...</a></li> <li class="divider"></li> <li><a id="exportSTL" href="#">Export STL</a></li> </ul> </li> <li class="dropdown navDropdown"> <a href="#" class="dropdown-toggle" id="viewMenuDropdown" data-toggle="dropdown">View <b class="caret"></b></a> <span class="dropdown-arrow"></span> <ul id="navViewMenu" class="dropdown-menu"></ul> </li> <li><a data-menu-id="about" class="menuHoverControls" target="_blank" href="http://dma.cba.mit.edu/">About</a></li> </ul> <ul class="nav navbar-nav pull-right"> <li><a id="showHideMenu" href="#">Hide Menu >></a></li> </ul> </div><!-- /.navbar-collapse --> <input id="jsonInput" type="file"> </nav> <div class="modal fade" id="saveAsModel" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <p class="modal-title" >Enter File Name</p> </div> <div class="modal-body"> <input id="saveAsFileName" type="text" value="file" placeholder="Enter file name" class="form-control filename"> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> <button type="button" class="saveAsJSON btn btn-primary">Save</button> </div> </div> </div> </div> <div class="modal fade" id="saveUserModel" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <p class="modal-title" >Save User Settings</p> </div> <div class="modal-body"> <input id="saveUserFileName" type="text" value="user" placeholder="Enter file name" class="form-control filename"> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> <button type="button" class="saveUser btn btn-primary">Save</button> </div> </div> </div> </div> <div id="menuWrapper"><div id="menuHeader"></div><div id="menuContent"></div></div> <div id="navRibbon"></div> <div id="threeContainer"></div> </body> </html>