From eba4bd37355d2387da710493744805547ed2a9c2 Mon Sep 17 00:00:00 2001 From: ArtemB Date: Mon, 7 Aug 2023 16:31:41 +0300 Subject: [PATCH] 0.0.76 upd range-slider --- static/css/styles.css | 20 ++++++++++++++++++++ static/js/user_profile.js | 6 ++++-- templates/blocks/profile/b_new_route.html | 2 +- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index bdb5779..1d00cc3 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -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{ diff --git a/static/js/user_profile.js b/static/js/user_profile.js index d29f8b3..660d489 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -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); diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index 5b5bc8d..0232bb1 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -209,7 +209,7 @@
- +