PageSourceSearch

https://kojgorodok.ru/static/uil/export/project_mo_theme_short_03a…/scripts/make_phantoms.js?20260220202336

js kojgorodok.ru collected 2026-10-02 17:19:06 UTC 990 bytes, 27 lines download raw bytes

1$(window).on('load', function uil_init_mo_header_gallery() {
2
3    $('.uil-mo-header-gallery__list').each(function () {
4
5        var $list = $(this), list_width = $list.width();
6
7        // Удаление лишних фото
8        var top = $list.find('> li:first-child').position().top;
9        $list.find('> li').each(function () {
10            var $item = $(this);
11            if ($item.position().top > top)
12                $item.remove()
13        });
14
15        // Добавление недостающих фантомных фото
16        var item_width = $list.find('> li:first-child').outerWidth();
17        var right_edge = $list.find('> li:last-child').position().left + item_width;
18        var i = 1;
19        while (list_width - right_edge > item_width && i <= 100) {
20            i++;
21            $list.append('<li class="uil-mo-header-gallery__list__item"></li>');
22            right_edge = $list.find('> li:last-child').position().left + item_width;
23        }
24
25    });
26
27});

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.