403Webshell
Server IP : 85.158.181.41  /  Your IP : 216.73.217.12
Web Server : Apache
System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64
User : moncbefd ( 1024)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moncbefd/www.moneta.at/admin/javascript/engine/compatibility/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/admin/javascript/engine/compatibility/sticky_footer.js
/* --------------------------------------------------------------
 sticky_footer.js 2015-09-14 gm
 Gambio GmbH
 http://www.gambio.de
 Copyright (c) 2015 Gambio GmbH
 Released under the GNU General Public License (Version 2)
 [http://www.gnu.org/licenses/gpl-2.0.html]
 --------------------------------------------------------------
 */

/**
 * ## Handle footer position for backend.
 *
 * This module will handle the footer position on scrolling or whenever the page window size changes.
 *
 * @module Compatibility/sticky_footer
 */
gx.compatibility.module(
    'sticky_footer',

    [],

    /**  @lends module:Compatibility/sticky_footer */

    function (data) {

        'use strict';

        // ------------------------------------------------------------------------
        // VARIABLES DEFINITION
        // ------------------------------------------------------------------------

        var
            /**
             * Module Selector
             *
             * @var {object}
             */
            $this = $(this),

            /**
             * Copyright Element Selector
             *
             * @var {object}
             */
            $copyright = $('.main-bottom-copyright'),

            /**
             * Footer Offset Top
             *
             * @var {int}
             */
            initialOffsetTop = $this.offset().top,

            /**
             * Default Options
             *
             * @type {object}
             */
            defaults = {},

            /**
             * Final Options
             *
             * @var {object}
             */
            options = $.extend(true, {}, defaults, data),

            /**
             * Module Object
             *
             * @type {object}
             */
            module = {};

        // ------------------------------------------------------------------------
        // EVENT HANDLERS
        // ------------------------------------------------------------------------

        var _checkOffset = function () {
            var copyrightOffsetTop = $copyright.offset().top;
            if (copyrightOffsetTop == 0) {
                copyrightOffsetTop = 50; // default value to avoid a bug refs #55075
            }
            if (($(document).scrollTop() + window.innerHeight) < copyrightOffsetTop) {
                $this.css('position', 'fixed');
            } else if ($this.offset().top + $this.height() >= copyrightOffsetTop) {
                $this.css('position', 'absolute');
            }
        };

        var _fixMainContentHeight = function () {
            if (initialOffsetTop + $this.height() <= window.innerHeight) {
                var newContentHeight = window.innerHeight - $('.main-page-content').offset().top;
                $('.main-page-content').css('min-height', newContentHeight + 'px');
                // First table of the page needs to be also resized.
                $('td.columnLeft2').parents('table:first').css('min-height', newContentHeight + 'px');
            }
        };

        // ------------------------------------------------------------------------
        // INITIALIZATION
        // ------------------------------------------------------------------------

        module.init = function (done) {
            // Delay the footer position by some time until so that most elements are rendered
            // properly. Adjust the timeout interval approximately.
            setTimeout(function () {
                _fixMainContentHeight();

                $(window)
                    .on('scroll', _checkOffset)
                    .on('resize', _checkOffset)
                    .on('resize', _fixMainContentHeight);
                _checkOffset();
            }, 300);

            done();
        };

        return module;
    });

Youez - 2016 - github.com/yon3zu
LinuXploit