0.0.76 upd range-slider
This commit is contained in:
@@ -1097,6 +1097,24 @@ div.from_to_place>div>select{
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*Input for cargo-weight*/
|
||||||
|
.js-input {
|
||||||
|
display: block;
|
||||||
|
height: 60px;
|
||||||
|
width: 394px;
|
||||||
|
border-radius: 15px;
|
||||||
|
border: 2px solid #E6E6E6;
|
||||||
|
color: #272424;
|
||||||
|
font-family: Inter;
|
||||||
|
font-size: 16px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 22px;
|
||||||
|
appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
input#id_phone,
|
input#id_phone,
|
||||||
input#id_extra_phone
|
input#id_extra_phone
|
||||||
{
|
{
|
||||||
@@ -1134,6 +1152,8 @@ input#id_extra_phone
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*my routes*/
|
/*my routes*/
|
||||||
|
|
||||||
.my_route{
|
.my_route{
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ function sliderInit() {
|
|||||||
instance,
|
instance,
|
||||||
min = 0,
|
min = 0,
|
||||||
max = 1000,
|
max = 1000,
|
||||||
start_value = document.querySelector(".range-slider")
|
start_value = document.querySelector(".range-slider").value;
|
||||||
|
|
||||||
$range.ionRangeSlider({
|
$range.ionRangeSlider({
|
||||||
skin: "round",
|
skin: "round",
|
||||||
@@ -247,7 +247,9 @@ function sliderInit() {
|
|||||||
grid: true,
|
grid: true,
|
||||||
grid_num: 5,
|
grid_num: 5,
|
||||||
onStart: function(data) {
|
onStart: function(data) {
|
||||||
$input.prop("value", data.from);
|
if(data.from > 0){
|
||||||
|
$input.prop("value", data.from);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onChange: function(data) {
|
onChange: function(data) {
|
||||||
$input.prop("value", data.from);
|
$input.prop("value", data.from);
|
||||||
|
|||||||
@@ -209,7 +209,7 @@
|
|||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<div class="extra-controls">
|
<div class="extra-controls">
|
||||||
<input type="text" class="js-input" value="0" />
|
<input type="text" class="js-input" placeholder="Укажите вес" value="" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="range-slider">
|
<div class="range-slider">
|
||||||
|
|||||||
Reference in New Issue
Block a user