PageSourceSearch

https://freelance.ru/assets/92d1cab4/tabs.js?v=1790795496

js freelance.ru collected 2026-10-01 08:35:19 UTC 907 bytes, 26 lines download raw bytes

1$(document).ready(function() {
2
3    let currentHash = window.location.hash;
4
5    $('.list-tabs li').removeClass('active');
6
7    // Находим вкладку, чья ссылка совпадает с фрагментом URL и добавляем ей класс 'active'
8    if (currentHash) {
9        // Сравниваем фрагмент URL с href ссылок
10        $('.list-tabs li a').each(function() {
11            if (this.hash === currentHash) {
12                $(this).parent('li').addClass('active');
13            }
14        });
15    }
16
17    $('.list-tabs li').click(function() {
18        // Убираем класс 'active' со всех элементов
19        $('.list-tabs li').removeClass('active');
20
21        // Добавляем класс 'active' только на тот элемент, по которому кликнули
22        $(this).addClass('active');
23    });
24});
25
26

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.