PageSourceSearch

https://zavod-lensvet.ru/catalog/view/theme/oct_ultrastore/js/main.js

js zavod-lensvet.ru collected 2026-10-08 11:47:08 UTC 1,642 bytes, 49 lines download raw bytes

1/*********** Function viewport ***********/
2function viewport() {
3    var e = window, a = 'inner';
4    if (!('innerWidth' in window)) {
5        a = 'client';
6        e = document.documentElement || document.body;
7    }
8    return { width: e[a + 'Width'], height: e[a + 'Height'] };
9}
10
11/*********** Function preloader ***********/
12function masked(element, status) {
13    if (status == true) {
14        $('<div/>').attr({'class': 'masked'}).prependTo(element);
15        $('<div class=\"masked_loading\" />').insertAfter($('.masked'));
16    } else {
17        $('.masked').remove();
18        $('.masked_loading').remove();
19    }
20}
21
22/*********** Function Show Location Map ***********/
23function octShowMap(content, selector) {
24    var octMap = $(selector);
25    if (octMap.hasClass('not_in')) {
26        octMap.html(content);
27        octMap.removeClass('not_in');
28    }
29}
30
31/*********** Function popups ***********/
32function octPopupCallPhone(location = '') {
33    masked('body', true);
34    $(".modal-backdrop").remove();
35    $.ajax({
36        type: 'post',
37        dataType: 'html',
38        data: { location: location },
39        url: '/index.php?route=extension/module/oct_popup_call_phone/getForm',
40        success: function(data) {
41            masked('body', false);
42            $('body').append(data);
43            $("#octPopupCallPhone").modal('show');
44        }
45    });
46}
47
48// УДАЛЕНЫ ВСЕ ОБРАБОТЧИКИ ОТПРАВКИ ФОРМ (FETCH), ВЫЗЫВАВШИЕ РЕДИРЕКТЫ
49// Теперь сайт не будет принудительно переходить на /thank-you-page

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.