A
A
AirDemon2021-07-22 14:47:49
1C-Bitrix
AirDemon, 2021-07-22 14:47:49

How to reduce the values ​​displayed when moving the filter slider and adding dimension?

There is a filter input, it has values ​​from one to tens of billions. The filter displays the instrument frequencies. And now it is necessary that when the slider moves, the values ​​\u200b\u200bchange their dimension and round off. from 1 to 999 Hz, if the number has become larger, then from 1 to 999 kHz, etc.
I figured out the placeholder and now it displays everything correctly, and you start moving and there are these huge numbers. What piece of code is responsible for displaying these numbers, I have no idea.
In general, I have no idea where to dig. The filter works on js (sort of). Site on Bitrix.

js filter - https://yadi.sk/d/5L9X-_LJUb4k8w
php filter template - https://yadi.sk/d/H3TtmsQ4bJ810Q
Well, the site, the last filter from the bottom "RF frequency max., Hz" - https:/ /test4test.ru/catalog/r... y_spektra/

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question