PageSourceSearch

https://www.ifxbank.com/i/js/mistakes_v2.js

js ifxbank.com collected 2026-10-08 02:25:40 UTC 2,850 bytes, 85 lines download raw bytes

1(function($) {
2    var statusmistake = true;
3
4    $(document).ready(function(){
5        $('body').on('keypress', function(e) {
6
7            if (e.keyCode == 10) {
8                if (e.ctrlKey && statusmistake) {
9                    statusmistake = false;
10                
11                    $('.mistakeblock').removeClass('hide');
12                    
13                    var doc = (e.srcElement !== undefined)? ((e.srcElement.document !== undefined)? e.srcElement.document : e.srcElement) : e.currentTarget;
14                    
15                    if(doc.ownerDocument !== null){
16                        doc = doc.ownerDocument;
17                    }
18
19                    $('[data-mislink]').val(doc.location.href);
20                    $('[data-mistext]').text(getSelectText(doc));
21                }
22            }
23        });
24        
25        $('body').click(function(event){
26            var target = $(event.target);
27            object_click = target.parents('.mistakeblock__conteiner__one').html();
28            
29            //если клик мимо нашего блока, выполняем действие
30            if(object_click == null ){
31                closeMistake();
32            }
33        });
34        
35        $('body').on('click', '[data-missend]', function(){
36            var blockerror = $('.mistakeblock__form__error');
37            
38            blockerror.html();
39            blockerror.removeClass('red green');
40        
41            $.ajax({
42                type: "GET",
43                url: root + "mistakes_v2.php",
44                data: $('.mistakeblock__form').serialize(), 
45                beforeSend: function(){
46                    $('.mistakeblock__conteiner__btn').removeClass('hide');
47                },  
48                success: function(html){
49                    $('.mistakeblock__conteiner__btn').addClass('hide');
50                    
51                    if(html == 'text_send_1'){blockerror.html(text_mis1); blockerror.addClass('red');}
52                    if(html == 'text_send_2'){blockerror.html(text_mis2); blockerror.addClass('green');}
53                    if(html == 'text_send_3'){blockerror.html(text_mis3); blockerror.addClass('red');}
54                }
55            });
56            return false;
57        });
58
59        $('body').on('click', '[data-misclose]', function(){
60            closeMistake();
61        });
62    });
63    
64    function getSelectText(doc){
65        var txt = '';
66        
67        if (!doc){
68            doc = document;
69        }
70        
71        if (doc.getSelection){
72            txt = doc.getSelection();
73        }else if (doc.selection){
74            txt = doc.selection.createRange().text;
75        }
76        
77        return txt;
78    }
79    
80    function closeMistake(){
81        $('.mistakeblock').addClass('hide');
82        
83        statusmistake = true;
84    }
85})(window.jQuery);

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.