Commit eefcad8d authored by amandaghassaei's avatar amandaghassaei
Browse files

small changes

parent 35582cf1
......@@ -274,9 +274,14 @@ span.modal-close{
}
#svgViewer{
max-width: 100%;
max-height: 300px;
float: right;
width: 100%;
height: 100%;
position: absolute;
z-index: 3;
top:0px;
right:0;
background: white;
display: none;
}
svg{
width: 100%;
......
......@@ -370,8 +370,8 @@
<li><a id="exportSTL" href="#">Save Simulation as STL...</a></li>
</ul>
</li>
<li><a data-menu-id="navDesign" class="menuHoverControls" href="#">Pattern</a></li>
<li><a data-menu-id="navSim" class="menuHoverControls" href="#">Simulation</a></li>
<li><a id="navPattern" href="#">Pattern</a></li>
<li><a id="navSimulation" href="#">Simulation</a></li>
<li><a id="about" class="menuHoverControls" target="_blank" href="#">About</a></li>
</ul>
......@@ -383,11 +383,13 @@
<div id="threeContainer"></div>
<canvas id="gpuMathCanvas"></canvas>
<div id="controls">
<b>Fold Settings:</b><br/><br/>
<div class="sliderInput" id="creasePercent">
<span class="label-slider">Crease Percent : </span><div class="flat-slider ui-slider ui-corner-all ui-slider-horizontal ui-widget ui-widget-content"></div>
<input value="" placeholder="" class="form-control" type="text">
</div>
<br/><br/><br/>
<b>Stiffness Settings:</b><br/><br/>
<div class="sliderInput" id="axialStiffness">
<span class="label-slider">Axial Stiffness : </span><div class="flat-slider ui-slider ui-corner-all ui-slider-horizontal ui-widget ui-widget-content"></div>
<input value="" placeholder="" class="form-control" type="text">
......@@ -400,9 +402,9 @@
<span class="label-slider">Panel Stiffness : </span><div class="flat-slider ui-slider ui-corner-all ui-slider-horizontal ui-widget ui-widget-content"></div>
<input value="" placeholder="" class="form-control" type="text">
</div>
<div id="svgViewer"></div>
<div class="extraSpace"></div>
</div>
<div id="svgViewer"></div>
<div id="controlsLeft" class="flipped">
<div>
......
......@@ -26,6 +26,22 @@ function initControls(globals){
saveSTL();
});
setLink("#navPattern", function(){
globals.navMode = "pattern";
$("#navPattern").parent().addClass("open");
$("#navSimulation").parent().removeClass("open");
$("#svgViewer").show();
});
$("#navSimulation").parent().addClass("open");
$("#navPattern").parent().removeClass("open");
setLink("#navSimulation", function(){
globals.navMode = "simulation";
$("#navSimulation").parent().addClass("open");
$("#navPattern").parent().removeClass("open");
$("#svgViewer").hide();
});
setCheckbox("#dynamic", globals.simType == "dynamic", function(val){
globals.simType = val;
});
......
......@@ -7,6 +7,8 @@ function initGlobals(){
var _globals = {
navMode: "simulation",
//view
colorMode: "color",
color1: "ec008b",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment