PageSourceSearch

https://giga.com.sg/Blocks/OutSystemsUIWeb/Utilities/ButtonLoading.en.js?55

js giga.com.sg collected 2026-09-24 10:33:54 UTC 788 bytes, 34 lines download raw bytes

1var ButtonLoading = function() {
2    
3    // Objects
4    var elemId;
5    var IsLoading;
6    var button;
7    
8    var start = function(widgetId, isLoading) {
9        
10        elemId = document.getElementById(widgetId);
11        button = elemId.querySelector('.btn');
12        IsLoading = (isLoading === 'True');
13
14        button.addEventListener('keydown', onButtonKeypress);
15        
16    };
17    
18    var onButtonKeypress = function(e){
19    
20        if((e.keyCode == "13" || e.keyCode == "32") && IsLoading) {
21          e.preventDefault();
22        } else {
23            button.removeEventListener('keydown', onButtonKeypress); 
24            return true;
25        }
26
27    };
28
29    return {
30        init: function(widgetId, isLoading) {
31            start(widgetId, isLoading);
32        }
33    };
34};

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.