403Webshell
Server IP : 156.238.232.47  /  Your IP : 216.73.216.150
Web Server : nginx/1.25.3
System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : www ( 1000)
PHP Version : 8.3.25
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/data/wwwroot/2025_11_27_01/skin/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/data/wwwroot/2025_11_27_01/skin/js/evenheights.js
/*!
 * jQuery Even Heights plugin
 * Author: Glen Cheney
 * Modified: 2014-03-08
 * Dependencies: jQuery 1.2.6+
 * Sets a jQuery collection to all be the same height
 * If you need to set multiple collection, please use `$.evenHeights( collectionsArray )`
 * because it is much faster
 */

(function( $ ) {
  'use strict';

  function getTallest( $elements ) {
    var tallest = 0;
    $elements.each(function() {
      if ( this.offsetHeight > tallest ) {
        tallest = this.offsetHeight;
      }
    });
    return tallest;
  }


  $.fn.evenHeights = function() {
    return this.css( 'height', '' ).css( 'height', getTallest( this ) );
  };


  /**
   * For groups of elements which should be the same height. Using this method
   * will create far less style recalculations and layouts.
   * @param {Array.<jQuery>} groups Array of jQuery collections.
   * @return {Array.<number>} An array containing the pixel value of the
   *     tallest element for each group.
   */
  $.evenHeights = function( groups ) {
    var winners = [];

    // First, reset the height for every element.
    // This is done first, otherwise we dirty the DOM on each loop!
    $.each(groups, function( i, $elements ) {
      $elements.css( 'height', '' );
    });

    // Now, measure heights in each group and save the tallest value. Instead of
    // setting the height value for the entire group, save it. If it were set,
    // the next iteration in the loop would have to recalculate styles in the DOM
    $.each(groups, function( i, $elements ) {
      winners.push( getTallest( $elements ) );
    });

    // Lastly, set them all.
    $.each(groups, function( i, $elements ) {
      $elements.css( 'height', winners[ i ] );
    });

    return winners;
  };
})(window.$);


Youez - 2016 - github.com/yon3zu
LinuXploit