HEX
Server: Apache/2.4.65 (Debian)
System: Linux web6 5.10.0-36-amd64 #1 SMP Debian 5.10.244-1 (2025-09-29) x86_64
User: innocamp (1028)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/thwoodlg/public_html/wp-content/themes/dt-the7/js-lite/legacy.js
jQuery(document).ready(function($){
    var $body = $("body"),
        $window = $(window),
        adminH = $('#wpadminbar').height(),
        header = $('.masthead:not(.side-header):not(.side-header-v-stroke)').height();
     
 /* !-Smart benefits & logos resize */
    $.fn.smartGrid = function() {
        return this.each(function() {
            var $this = $(this),
                colNum = parseInt($this.attr("data-columns")),
                colMinWidth = parseInt($this.attr("data-width")),
                contWidth = $this.width();

            for ( ; Math.floor(contWidth/colNum) < colMinWidth; ) {
                colNum--;
                if (colNum <= 1) break;
            }

            $("> .wf-cell", $this).css({
                width: (100/colNum).toFixed(6) + "%",
                display: "inline-block"
            });
        });
    };

    var $benLogColl = $(".benefits-grid, .logos-grid");
    $benLogColl.smartGrid();
    $window.on("debouncedresize", function () {
        $benLogColl.smartGrid();
    });

        var projectPost = $(".project-post");
        var phantomHeight = 0;

    if($(".phantom-sticky").length > 0){
        var $phantom = $(".masthead:not(.side-header):not(.side-header-v-stroke)"),
            $phantomVisibility = 1;
    }else{
        var $phantom = $("#phantom"),
            $phantomVisibility = $phantom.css("display")=="block";
    }

    if ($(".mobile-header-bar").css('display') !== 'none') {
        var $headerBar = $(".mobile-header-bar");
        if($(".phantom-sticky").length > 0){
            if($(".sticky-header .masthead.side-header").length > 0 || $(".overlay-navigation .masthead.side-header").length > 0){
                var $phantom = $(".mobile-header-bar").parent(".masthead:not(.side-header)");
            }else{
                var $phantom = $(".mobile-header-bar").parent();
            }
        }
    }else{
        var $headerBar = $(".masthead:not(.side-header):not(.side-header-v-stroke) .header-bar");
    }

    $window.on("debouncedresize", function( event ) {
        
        //Set full height stripe
        $(".stripe").each(function(){
            var $_this = $(this),
                $_this_min_height = $_this.attr("data-min-height");
            if($.isNumeric($_this_min_height)){
                $_this.css({
                    "minHeight": $_this_min_height + "px"
                });
            }else if(!$_this_min_height){
                $_this.css({
                    "minHeight": 0
                });
            }else if($_this_min_height.search( '%' ) > 0){
                $_this.css({
                    "minHeight": $window.height() * (parseInt($_this_min_height)/100) + "px"
                });
            }else{
                $_this.css({
                    "minHeight": $_this_min_height
                });
            };
        });
    }).trigger( "debouncedresize" );
})