PageSourceSearch

https://dialog-auto.ru/local/templates/main/assets/bx-js/city-select/city-select.js

js dialog-auto.ru collected 2026-09-29 09:12:56 UTC 1,234 bytes, 30 lines download raw bytes

1"use strict";
2
3$(function () {
4  $('.city-select__text').click(function () {
5    $('.city-select__text').not(this).removeClass('is-active').next().slideUp();
6    $(this).toggleClass('is-active').next().slideToggle();
7  });
8  $('.city-select__option').click(function () {
9    var value = $(this).text(),
10      data = $(this).attr('data-select');
11    $(this).parent().find('.city-select__option').removeClass('is-active');
12    $(this).addClass('is-active').closest('.city-select__dropdown').slideUp().end().closest('.city-select').find('.city-select__input').val(value).end().find('.city-select__text').toggleClass('is-active').find('span').text(data);
13  });
14  $('.js-city-select-confirm').click(function (e) {
15    e.preventDefault();
16    $(this).closest('.city-select__dropdown').slideUp();
17    location.reload();
18  });
19  $('.js-city-select-choose').click(function (e) {
20    e.preventDefault();
21    $(this).closest('.city-select__dropdown').addClass('city-select__dropdown_active');
22  });
23  $(document).mousedown(function (e) {
24    var targetBlock = $('.city-select');
25    if (targetBlock.has(e.target).length === 0) {
26      $('.city-select__dropdown').slideUp();
27      $('.city-select__text').removeClass('is-active');
28    }
29  });
30});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.