PageSourceSearch

https://newhorizonumc.com/wp-content/mu-plugins/src/sfadmin/admin/js/footerLogo.js?ver=2.4.27

js newhorizonumc.com collected 2026-10-06 04:41:47 UTC 1,282 bytes, 25 lines download raw bytes

1jQuery(function($){
2    var colorLogo = function(){
3        //Not always <section> it may be a <footer> elementor-section.
4        var bottom = $('.elementor-location-footer>.elementor-section').last();
5        if( bottom.length < 1 ) bottom =  $('.elementor-section-wrap>.elementor-section').last();
6        
7        var color = bottom.css('background-color');
8        if (color === 'transparent' || color === 'rgba(0, 0, 0, 0)' || color === 'none' || _.isUndefined(color) ) {
9            color = $('body').css('background-color') || color; //change, if not null
10        }
11        //TODO could get fancy here with getting canvas colors like in adminPL.js
12        var strRGB = color.match( /^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/ ) ||
13                     color.match( /^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d+)\)$/ );
14        if (strRGB && strRGB.length >= 4) {
15            //Is it closer to white or black? white has 255,255,255, sums to 765
16            if (1*strRGB[1] + 1*strRGB[2] + 1*strRGB[3] > 383) {//closer to white, black looks better:
17                $('.fl_l').addClass('black').removeClass('white');
18            } else {
19                $('.fl_l').addClass('white').removeClass('black');
20            }
21        }
22    }
23    colorLogo();
24    $(window).on('load',colorLogo);
25});

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.