PageSourceSearch

https://chingiskhanfilm.ru/.s/t/1714/main.js

js chingiskhanfilm.ru collected 2026-10-02 11:31:40 UTC 5,015 bytes, 152 lines download raw bytes

1$(document).ready(function () {
2
3    $('html').has('.forumContent').addClass('forum-page');
4
5    $('#sFltLst').parent('div').css('position', 'relative');
6    var loginForm = $('#uidLogForm').html();
7    $(".loginformMobile").append(loginForm);
8
9    if (currentPageIdTemplate == 'invoices' || currentPageIdTemplate == 'checkout' || currentModuleTemplate == 'forum') {
10        $("table > tbody > tr > td").addClass('pageinvoices');
11    }
12
13});
14
15
16(function ($) {
17    $.fn.uNavMenu = function () {
18        function init() {
19            if(!$('.navItemMore',this).length){
20                $('.uMenuRoot',this).append('<li class="navItemMore"><div class="nav_menu_toggler"><span></span><span></span><span></span></div><ul id="overflow"></ul></li>');
21            }
22            $('.uMenuRoot li.navItemMore',this).before($('#overflow > li',this));
23
24            var $navItemMore = $('.navItemMore',this),
25                $navItems = $('.uMenuRoot > li:not(.navItemMore)',this),
26                navItemWidth = $navItemMore.width(),
27                windowWidth = $('[id^="uNMenuDiv"]',this).width();
28
29            $navItems.each(function () {
30                navItemWidth += $(this).width();
31            });
32
33            navItemWidth > windowWidth ? $navItemMore.show() : $navItemMore.hide();
34
35            while (navItemWidth > windowWidth && window.innerWidth > 960) {
36                navItemWidth -= $navItems.last().width();
37                $navItems.last().prependTo('#overflow',this);
38                $navItems.splice(-1, 1);
39            }
40
41            $('.uMenuRoot',this).css({overflow: 'visible'});
42        }
43
44        return init.apply(this);
45    };
46})(jQuery);
47
48var umenu = function(){$('#catmenu').uNavMenu()};
49
50
51$(function ($) {
52
53    $('[id^="uNMenuDiv"]').append('<div class="close-menu"><i class="material-icons">close</i></div>');
54
55    window.onresize = umenu;
56    window.onload = umenu;
57
58    var parentLi = $('.main-menu li.uWithSubmenu');
59    $('> a', parentLi).after('<i class="material-icons menu_tog">keyboard_arrow_down</i>');
60
61    function changeMenuIcon() {
62        if (window.innerWidth < 961) {
63            $('#catmenu li.uWithSubmenu i').each(function () {
64                $(this).html() == 'keyboard_arrow_down' && $(this).html('add');
65            });
66        } else {
67            $('#catmenu li.uWithSubmenu i').html('keyboard_arrow_down');
68        }
69    };
70
71    changeMenuIcon();
72    $(window).resize(function () {
73        changeMenuIcon();
74    });
75
76    $('> i', parentLi).click(function () {
77        if (window.innerWidth < 961) {
78            if ($(this).text() == 'add') {
79                $(this).parent().addClass('over');
80                $(this).text('remove');
81            } else {
82                $(this).parent().removeClass('over');
83                $(this).text('add');
84            }
85        }
86    });
87
88    $('.show-menu').on('click', function () {
89        $("#uNMenuDiv1").toggleClass('openMenu');
90    });
91    var $mobSearch = $("#search-m-bd");
92    $('#show-search').on('click', function () {
93        $mobSearch.css('display', 'block');
94        $('#search-m-bd .queryField').focus();
95    });
96
97
98    $(document).on('click', function (e) {
99        if ($(".uMenuRoot").has(e.target).length === 0 && $(e.target).attr('class') != 'show-menu') {
100            $("#uNMenuDiv1").removeClass('openMenu');
101        }
102
103        if ($("#search-m-bd").has(e.target).length === 0 && $(e.target).attr('class') != 'show-search') {
104            $mobSearch.css('display', 'none');
105        }
106    });
107
108
109    if ($('#cont-shop-invoices h1').length) {
110
111        $('#cont-shop-invoices h1 + table')
112            .addClass('status_table')
113            .after('<div class="fil_togg_wrapper"><div class="fil_togg_holder"><span class="material-icons">storage</span><span class="material-icons arrow">keyboard_arrow_down</span></div></div>')
114            .siblings('table, hr')
115            .addClass('filter_table');
116        var buttonToIcon = {
117            '#invoice-form-export': 'file_download',
118            '#invoice-form-print': 'print',
119            '#invoice-form-send-el-goods': 'forward'
120
121        }
122        convertToIcon(buttonToIcon);
123        $(document).ajaxComplete(function () {
124            convertToIcon(buttonToIcon);
125        });
126
127        $('.fil_togg_holder').on('click', function () {
128            var arrow = $(this).children('.arrow');
129            $('.filter_table').fadeToggle();
130            arrow.text(arrow.text() == 'keyboard_arrow_up' ? 'keyboard_arrow_down' : 'keyboard_arrow_up');
131        });
132
133        function convertToIcon(obj) {
134            for (var prop in obj) {
135                $(prop)
136                    .attr('title', $(prop).val())
137                    .addClass('material-icons')
138                    .val(obj[prop]);
139            }
140        }
141    }
142    ;
143    $('.uTable').wrap('<div class="x-scroll"></div>');
144    $('#order-table').wrap('<div class="x-scroll"></div>');
145});
146
147WebFontConfig = {
148    google: {
149        families: ['Open+Sans:400,600&subset=cyrillic,greek']
150    },
151    active: umenu
152};

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.