Commit aebc7440 authored by amandaghassaei's avatar amandaghassaei

small changes

parent 9e796289
......@@ -76,6 +76,7 @@ p{
top: 0;
left: -110px;
line-height: 10px;
color: #34495e;
}
#flatIndicator>img{
width:100%;
......@@ -87,6 +88,7 @@ p{
top: 0;
right: -110px;
line-height: 10px;
color: #34495e;
}
#foldedIndicator>img{
width:100%;
......
......@@ -1172,14 +1172,14 @@
<div class="sliderInput floatRight" id="creasePercentBottom">
<div class="flat-slider ui-slider ui-corner-all ui-slider-horizontal ui-widget ui-widget-content"></div>
</div>
<div id="flatIndicator" class="smallTxt">
<a href="#" id="flatIndicator" class="smallTxt">
<img src="assets/flatcraneSmall.png"/>
Flat
</div>
<div id="foldedIndicator" class="smallTxt">
</a>
<a href="#" id="foldedIndicator" class="smallTxt">
<img src="assets/foldedCraneSmall.png"/>
Folded
</div>
</a>
</div>
<div id="controlsLeft" class="flipped">
<div>
......
......@@ -469,6 +469,17 @@ function initControls(globals){
updateCreasePercent();
}, -100, 100);
setLink("#flatIndicator", function(){
globals.creasePercent = 0;
globals.shouldChangeCreasePercent = true;
updateCreasePercent();
});
setLink("#foldedIndicator", function(){
globals.creasePercent = 1;
globals.shouldChangeCreasePercent = true;
updateCreasePercent();
});
function updateCreasePercent(){
var val = (globals.creasePercent*100);
creasePercentSlider.slider('value', val);
......@@ -685,6 +696,7 @@ function initControls(globals){
$("#helper").hide();
});
function setButtonGroup(id, callback){
$(id+" a").click(function(e){
e.preventDefault();
......
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