Subversion Repositories SmartDukaan

Rev

Rev 11269 | Rev 12159 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11269 Rev 11456
Line 56... Line 56...
56
          <div class="filter-head clearfix">
56
          <div class="filter-head clearfix">
57
            <div class="clear" onclick="clearfilter(event)">Clear</div>
57
            <div class="clear" onclick="clearfilter(event)">Clear</div>
58
            <div class="apply" onclick="applyFilter(event)">Apply</div>
58
            <div class="apply" onclick="applyFilter(event)">Apply</div>
59
          </div><!--btn-hldr-->
59
          </div><!--btn-hldr-->
60
          <div class="filter-name">Price(Rs.)<span>+</span></div>
60
          <div class="filter-name">Price(Rs.)<span>+</span></div>
61
          <div class="filter-options clearfix" style="display:none" >
61
          <div class="filter-options ch-filter clearfix" style="display:none" >
62
          <div style="position:relative; height:40px;padding:10px;box-sizing: border-box;-webkit-box-sizing: border-box;width: 85%;left: 6%;">
62
          <div style="position:relative; height:40px;padding:10px 0;box-sizing: border-box;-webkit-box-sizing: border-box;">
63
            <span id="exTO" class="slider-input"><?php echo $results->minPrice; ?></span>
63
            <span id="exTO" class="slider-input"><?php echo $results->minPrice; ?></span>
64
            <span id="exFR" class="slider-input"><?php echo $results->maxPrice; ?></span>
64
            <span id="exFR" class="slider-input"><?php echo $results->maxPrice; ?></span>
65
          </div>
65
          </div>
66
          <div class="clear"></div>
66
          <div class="clear"></div>
67
          
67
          
Line 161... Line 161...
161
              var right = $($(".noUiSlider").find("a")[1]).offset().left;
161
              var right = $($(".noUiSlider").find("a")[1]).offset().left;
162
              var width = $(".noUiSlider").width();
162
              var width = $(".noUiSlider").width();
163
           
163
           
164
              // var left1 = $('#exTO').offset().left;
164
              // var left1 = $('#exTO').offset().left;
165
              // var left2 = $('#exFR').offset().left  
165
              // var left2 = $('#exFR').offset().left  
166
              console.log(right-left);
-
 
167
              if((right - left) > 70)
166
              if((right - left) > 70)
168
              {
167
              {
169
                $("#exTO").css({
168
                $("#exTO").css({
170
                  left: ((left/width * 100) - 8 ) + '%'
169
                  left: ((left/width * 100) - 8 ) + '%'
171
                });
170
                });
172
                $("#exFR").css({
171
                $("#exFR").css({
173
                  left: ((right/width * 100) - 15 ) + '%'
172
                  left: ((right/width * 100) - 15 ) + '%'
174
                })  
173
                }); 
175
              }
174
              }
176
             
175
             
177
           }
176
           }
178
           
177
           
179
        });
178
        });
-
 
179
        
-
 
180
        
180
    
181
    
181
      </script>
182
      </script>