0.0.76 upd range-slider

This commit is contained in:
2023-08-07 16:31:41 +03:00
parent 712287785a
commit eba4bd3735
3 changed files with 25 additions and 3 deletions

View File

@@ -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_extra_phone
{
@@ -1134,6 +1152,8 @@ input#id_extra_phone
}
/*my routes*/
.my_route{

View File

@@ -235,7 +235,7 @@ function sliderInit() {
instance,
min = 0,
max = 1000,
start_value = document.querySelector(".range-slider")
start_value = document.querySelector(".range-slider").value;
$range.ionRangeSlider({
skin: "round",
@@ -247,7 +247,9 @@ function sliderInit() {
grid: true,
grid_num: 5,
onStart: function(data) {
$input.prop("value", data.from);
if(data.from > 0){
$input.prop("value", data.from);
}
},
onChange: function(data) {
$input.prop("value", data.from);

View File

@@ -209,7 +209,7 @@
<hr>
<div class="extra-controls">
<input type="text" class="js-input" value="0" />
<input type="text" class="js-input" placeholder="Укажите вес" value="" />
</div>
<div class="range-slider">