PageSourceSearch

https://www.claims.vcf.gov/assets/js/vcf/common/vcf.blockui.js?v=12.1

js vcf.gov collected 2026-10-02 05:18:11 UTC 3,372 bytes, 92 lines download raw bytes

1
2var vcf = vcf || {};
3(function (window, document, $, undefined) {
4
5
6    /// <summary>
7    /// 
8    /// </summary>
9    if (!$.blockUI) {
10        return;
11    }
12
13    // wrApper function to  block element(indicate loading)
14    vcf.blockUI = function(options) {
15        options = $.extend(true, {}, options);
16        var html = '';
17        if (options.animate) {
18            html = '<div class="loading-message ' + (options.boxed ? 'loading-message-boxed' : '') + '">' +
19                '<div class="block-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>' + '</div>';
20        } else if (options.iconOnly) {
21            html = '<div class="loading-message ' + (options.boxed ? 'loading-message-boxed' : '') + '"><img src="' +
22                this.getGlobalImgPath() + 'loading-spinner-grey.gif" align=""></div>';
23        } else if (options.textOnly) {
24            html = '<div class="loading-message ' + (options.boxed ? 'loading-message-boxed' : '') +
25                '"><span>&nbsp;&nbsp;' + (options.message ? options.message : 'LOADING...') + '</span></div>';
26        } else {
27            html = '<div class="loading-message ' + (options.boxed ? 'loading-message-boxed' : '') + '">"' +
28                '<span class="text-semibold"><i class="icon-spinner4 spinner position-left"></i>&nbsp; ' +
29                (options.message ? options.message : 'Please wait...') + '</span></div>';
30        }
31
32        if (options.target) { // element blocking
33            var el = $(options.target);
34            if (el.height() <= ($(window).height())) {
35                options.cenrerY = true;
36            }
37            el.block({
38                message: html,
39                baseZ: options.zIndex ? options.zIndex : 1000,
40                centerY: options.cenrerY !== undefined ? options.cenrerY : false,
41                css: {
42                    top: '10%',
43                    border: '0',
44                    padding: '0',
45                    backgroundColor: 'none'
46                },
47                overlayCSS: {
48                    backgroundColor: options.overlayColor ? options.overlayColor : '#000',
49                    opacity: options.boxed ? 0.05 : 0.1,
50                    cursor: 'wait'
51                }
52            });
53        } else { // page blocking
54            $.blockUI({
55                message: html,
56                baseZ: options.zIndex ? options.zIndex : 1000,
57                css: {
58                    border: '0',
59                    padding: '0',
60                    backgroundColor: 'none'
61                },
62                overlayCSS: {
63                    backgroundColor: options.overlayColor ? options.overlayColor : '#000',
64                    opacity: options.boxed ? 0.05 : 0.1,
65                    cursor: 'wait'
66                }
67            });
68        }
69    };
70
71    // wrApper function to  un-block element(finish loading)
72    vcf.unblockUI = function(target) {
73        if (target) {
74            $(target).unblock({
75                onUnblock: function() {
76                    $(target).css('position', '');
77                    $(target).css('zoom', '');
78                }
79            });
80        } else {
81            $.unblockUI();
82        }
83    };
84
85
86})(window, document, window.jQuery);
87
88
89
90
91
92

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.