PageSourceSearch

https://powerful-smoking.site/.s/t/1716/main.js

js powerful-smoking.site collected 2026-10-08 11:49:12 UTC 8,660 bytes, 239 lines download raw bytes

1$(document).ready(function() {
2    $('html').has('.forumContent').addClass('forum-page');
3    if (currentPageIdTemplate == 'invoices' || currentPageIdTemplate == 'checkout' || currentModuleTemplate == 'forum') {
4
5        $("table > tbody > tr > td").addClass('pageinvoices');
6    }
7});
8window.UcozApp = {}
9window.UcozApp.CustomRadio = (function() {
10    "use strict";
11    var customRadio = {};
12    function insertAfter(newNode, referenceNode) {
13        referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);
14    }
15    customRadio.init = function() {
16        var inputCollection = document.querySelectorAll('input[type="checkbox"], input[type="radio"]');
17        for (var i = 0; i < inputCollection.length; i++) {
18            if (inputCollection[i].offsetParent !== null) {
19                var customInput = document.createElement('span');
20                if (inputCollection[i].nextSibling &&
21                    (inputCollection[i].nextSibling.className == "customRadio" ||
22                        inputCollection[i].nextSibling.className == "customCheckbox")) {
23                    inputCollection[i].parentNode.removeChild(inputCollection[i].nextSibling)
24                }
25                customInput.className = inputCollection[i].type == 'radio' ? 'customRadio' : 'customCheckbox';
26                insertAfter(customInput, inputCollection[i]);
27                customInput.addEventListener('click', function(event) {
28                    event.preventDefault();
29                    var previusInput = this.previousSibling;
30                    if (previusInput.disabled) return false;
31                    if (this.className == 'customRadio') {
32                        previusInput.checked = true;
33                    } else {
34                        previusInput.checked = previusInput.checked ? false : true;
35                    }
36                    previusInput.onchange && previusInput.onchange();
37                    previusInput.onclick && previusInput.onclick();
38                });
39                inputCollection[i].style.display = 'none';
40            }
41        }
42    };
43    return customRadio;
44})();
45$('.shop-spec-filter-wrapper').on('click', '.spec-filter-title, .spec-subfilter-title', function() {
46    UcozApp.CustomRadio.init();
47});
48$('#TstSbm').one('click', function() {
49    $(document).ajaxComplete(function() {
50        UcozApp.CustomRadio.init();
51    })
52});
53if (typeof shopPageMore === "function") {
54    $(document).ajaxComplete(function() {
55        UcozApp.CustomRadio.init();
56    })
57};
58UcozApp.CustomRadio.init();
59
60
61(function ($) {
62    $.fn.uNavMenu = function () {
63        function init() {
64            if(!$('.navItemMore',this).length){
65                $('.uMenuRoot',this).append('<li class="navItemMore"><div class="nav_menu_toggler"><span></span><span></span><span></span></div><ul id="overflow"></ul></li>');
66            }
67            $('.uMenuRoot li.navItemMore',this).before($('#overflow > li',this));
68
69            var $navItemMore = $('.navItemMore',this),
70                $navItems = $('.uMenuRoot > li:not(.navItemMore)',this),
71                navItemWidth = $navItemMore.width(),
72                windowWidth = $('[id^="uNMenuDiv"]',this).width();
73
74            $navItems.each(function () {
75                navItemWidth += $(this).width();
76            });
77
78            navItemWidth > windowWidth ? $navItemMore.show() : $navItemMore.hide();
79
80            while (navItemWidth > windowWidth && window.innerWidth > 960) {
81                navItemWidth -= $navItems.last().width();
82                $navItems.last().prependTo('#overflow',this);
83                $navItems.splice(-1, 1);
84            }
85
86            $('.uMenuRoot',this).css({overflow: 'visible'});
87        }
88
89        return init.apply(this);
90    };
91})(jQuery);
92
93var umenu = function(){$('#catmenu').uNavMenu()};
94
95WebFontConfig = {
96    google: {
97        families: ['Open+Sans:400,600&subset=cyrillic,greek']
98    },
99    active: umenu
100};
101
102$(function($) {
103
104    window.onresize = umenu;
105    window.onload = umenu;
106
107    var parentLi = $('#main-menu li.uWithSubmenu');
108    $('> a', parentLi).after('<i class="material-icons menu_tog">keyboard_arrow_down</i>');
109
110    function changeMenuIcon() {
111        if (window.innerWidth < 961) {
112            $('#catmenu li.uWithSubmenu i').each(function() {
113                $(this).html() == 'keyboard_arrow_down' && $(this).html('add');
114            });
115        } else {
116            $('#catmenu li.uWithSubmenu i').html('keyboard_arrow_down');
117        }
118    };
119
120    changeMenuIcon();
121    $(window).resize(function() {
122        changeMenuIcon();
123    });
124
125    $('> i', parentLi).click(function() {
126        if (window.innerWidth < 961) {
127            if ($(this).text() == 'add') {
128                $(this).parent().addClass('over');
129                $(this).text('remove');
130            } else {
131                $(this).parent().removeClass('over');
132                $(this).text('add');
133            }
134        }
135    });
136
137    $('#show-menu').on('click', function() {
138        $("#uNMenuDiv1").toggleClass('openMenu');
139    });
140    var $mobSearch = $("#search-m-bd");
141    $('#show-search').click(function() {
142        $mobSearch.toggleClass('openSearch');
143    });
144
145    $(document).on('click', function(e) {
146        if ($(".uMenuRoot").has(e.target).length === 0 && $(e.target).attr('class') != 'show-menu') {
147            $("#uNMenuDiv1").removeClass('openMenu');
148        };
149
150        if ($("#search-m-bd").has(e.target).length === 0 && $(e.target).attr('class') != 'show-search') {
151            $('#search-m-bd').removeClass('openSearch');
152        }
153    });
154
155    $('.goOnTop').on('click', function(e) {
156        e.preventDefault();
157        $('body').animate({
158            scrollTop: 0
159        }, 1000)
160    });
161    jQuery(function(f) {
162        var element = f('.site-name');
163        f(window).scroll(function() {
164            element['fade' + (f(this).scrollTop() > 70 && window.innerWidth < 961 ? 'In' : 'Out')](300);
165        });
166    });
167    if ($('#cont-shop-invoices h1').length) {
168
169        $('#cont-shop-invoices h1 + table')
170            .addClass('status_table')
171            .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>')
172            .siblings('table, hr')
173            .addClass('filter_table');
174        var buttonToIcon = {
175            '#invoice-form-export': 'file_download',
176            '#invoice-form-print': 'print',
177            '#invoice-form-send-el-goods': 'forward'
178        }
179        convertToIcon(buttonToIcon);
180        $(document).ajaxComplete(function() {
181            convertToIcon(buttonToIcon);
182        });
183
184        $('.fil_togg_holder').on('click', function() {
185            var arrow = $(this).children('.arrow');
186            $('.filter_table').fadeToggle();
187            arrow.text(arrow.text() == 'keyboard_arrow_up' ? 'keyboard_arrow_down' : 'keyboard_arrow_up');
188        });
189
190        function convertToIcon(obj) {
191            for (var prop in obj) {
192                $(prop)
193                    .attr('title', $(prop).val())
194                    .addClass('material-icons')
195                    .val(obj[prop]);
196            }
197        }
198    }
199
200    $('.shop-spec-filter-wrapper').on('click', '.spec-filter-title, .spec-subfilter-title', function() {
201        UcozApp.CustomRadio.init();
202    });
203    $('#TstSbm, .pollreSultsBut').one('click', function() {
204        $(document).ajaxComplete(function() {
205            UcozApp.CustomRadio.init();
206        })
207    });
208    $('[id^="gbut"]').on('click', function() {
209        UcozApp.CustomRadio.init();
210    });
211    $('.ui-add-link').on('click', function() {
212        UcozApp.CustomRadio.init();
213    });
214
215    $('.opt_items').on('click', UcozApp.CustomRadio.init);
216    if (typeof shopPageMore === "function") {
217        $(document).ajaxComplete(function() {
218            UcozApp.CustomRadio.init();
219        })
220    }
221    $('.sidebox ul.cat-tree').removeAttr('style').removeClass('cat-tree');
222    var sdLi = $('.sidebox li:has(ul)').addClass('parent-li');
223    $(sdLi).each(function() {
224        $(this).prepend('<em>+</em>');
225    });
226    $('> em', sdLi).click(function() {
227        if ($(this).text() == '+') {
228            $(this).parent().addClass('over');
229            $(this).text('-');
230        } else {
231            $(this).parent().removeClass('over');
232            $(this).text('+');
233        }
234    });
235
236});
237
238
239

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.