responsive on last 2

This commit is contained in:
Zsolt Ero
2024-01-31 18:30:24 +01:00
parent 851019e562
commit 864d0da963

View File

@@ -45,10 +45,10 @@ pricingSlider.on('update', function (values, _) {
tooltip.classList.remove('last')
if (document.documentElement.clientWidth < 500) {
if (value === 0) {
if (value <= 1) {
tooltip.classList.add('first')
}
if (value === priceNumbers.length - 1) {
if (value >= priceNumbers.length - 2) {
tooltip.classList.add('last')
}
}