HEX
Server: Apache
System: Linux efa57bbe-abb1-400d-2985-3b056fbc2701.secureserver.net 6.1.147-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 24 12:33:32 EDT 2025 x86_64
User: root (0)
PHP: 8.0.30.4
Disabled: NONE
Upload Files
File: /var/www/wp-content/plugins/ocean-extra/assets/js/fixedFooter.js
var $j 					= jQuery.noConflict(),
	$window 			= $j( window ),
	$lastWindowWidth 	= $window.width(),
	$lastWindowHeight 	= $window.height();

$window.on( 'load', function() {
	"use strict";
	// Fixed footer
	oceanwpFixedFooter();
} );

$window.resize( function() {
	"use strict";

	var $windowWidth  = $window.width(),
		$windowHeight = $window.height();

    if ( $lastWindowWidth !== $windowWidth
    	|| $lastWindowHeight !== $windowHeight ) {
        oceanwpFixedFooter();
    }

} );

/* ==============================================
FIXED FOOTER
============================================== */
function oceanwpFixedFooter() {
	"use strict"

    if ( ! $j( 'body' ).hasClass( 'has-fixed-footer' ) ) {
        return;
    }

    // Set main vars
    var $mainHeight 		= $j( '#main' ).outerHeight(),
    	$htmlHeight 		= $j( 'html' ).height(),
    	$adminbarHeight		= oceanwpGetAdminbarHeight(),
    	$minHeight 			= $mainHeight + ( $window.height() - $htmlHeight - $adminbarHeight );

    // Add min height
    $j( '#main' ).css( 'min-height', $minHeight );

}