PageSourceSearch

https://intervalwatch.ru/bitrix/templates/interval/components/cust…/feedback.modal/script.js

js intervalwatch.ru collected 2026-10-08 16:26:51 UTC 1,830 bytes, 59 lines download raw bytes

1function getMessage( msg, type, delay, callback ){
2    switch(type){
3        case 'error':
4            cssClass = 'red-popup-thor';
5            break;
6        case 'accept':
7            cssClass = 'green-popup-thor';
8            break;
9        case 'message':
10        default:
11            cssClass = 'popup-thor';
12    }
13
14    if( delay == undefined && !isNaN( parseInt( delay ) ) ){
15        delay = 3000;
16    } else {
17        delay = parseInt( delay );
18    }
19
20    if( $('#message-box').length == 0 ){
21        $('body').append('<div class="tip-message" id="message-box"><div class="tip-hold"><a href="#" class="btn-close" onclick="$(\'#message-box\').remove();">close</a><span>' + msg + '</span></div></div>');
22    } else {
23        if( $('#message-box').css('display') == 'none' ){
24            $('#message-box').removeClass('red-popup-thor green-popup-thor popup-thor').addClass(cssClass).find('span').html(msg);
25        } else {
26            $('#message-box').remove();
27            $('body').append('<div class="tip-message" id="message-box"><div class="tip-hold"><a href="#" class="btn-close">close</a><span>' + msg + '</span></div></div>');
28        }
29    }
30    $('#message-box').addClass(cssClass);
31    $('#message-box').fadeIn(200).delay(delay).fadeOut(400);
32
33    if (callback)
34    {
35        setTimeout(callback,delay);
36    }
37
38}
39
40function check_form_fields(form)
41{
42    $(form).find('input, textarea').each(function()
43    {
44        $(this).focus(function()
45        {
46            if ($(this).val() == $(this).attr('alt'))
47            {
48                $(this).val('');
49            }
50        });
51        $(this).blur(function()
52        {
53            if ($(this).val() == '')
54            {
55                $(this).val($(this).attr('alt'));
56            }
57        });
58    });
59}

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.