PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/casinoslot.games/ibid/wp-content/themes/ibid/js/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/casinoslot.games/ibid/wp-content/themes/ibid/js/jquery.wookmark.js

/*!
  jQuery Wookmark plugin 0.1
  @name jquery.wookmark.js
  @author Christoph Ono (chri@sto.ph or @gbks)
  @version 0.1
  @date 12/14/2011
  @category jQuery plugin
  @copyright (c) 2009-2011 Christoph Ono (www.wookmark.com)
  @license Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
*/
jQuery.fn.wookmark = function(options) {
  // Apply defaults for options if they are not provided.
  if(!options.container) options.container = jQuery(window);
  if(!options.offset) options.offset = 2;
  if(!options.itemWidth) {
    options.itemWidth = jQuery(this[0]).width();
  }
  
  // Calculate basic layout parameters.
  var columnWidth = options.itemWidth + options.offset;
  var containerWidth = options.container.width();
  var columns = Math.floor((containerWidth+options.offset)/columnWidth);
  var offset = Math.round((containerWidth - (columns*columnWidth-options.offset))/2);
  
  // Prepare Array to store height of columns.
  var heights = [];
  while(heights.length < columns) heights.push(0);
  
  // Loop over items.
  var item, top, left, i=0, k=0, length=this.length, shortest=null, shortestIndex=null, bottom = 0;
  for(; i<length; i++ ) {
    item = jQuery(this[i]);
    
    // Find the shortest column.
    shortest = null;
    shortestIndex = 0;
    for(k=0; k<columns; k++) {
      if(shortest == null || heights[k] < shortest) {
        shortest = heights[k];
        shortestIndex = k;
      }
    }
    
    // Postion the item.
    item.css({
      position: 'absolute',
      top: shortest+'px',
      left: (shortestIndex*columnWidth + offset)+'px'
    });
    
    // Update column height.
    heights[shortestIndex] = shortest + item.outerHeight() + options.offset;
    bottom = Math.max(bottom, heights[shortestIndex]);
  }
  
  // Set container height to height of the grid.
  options.container.css('height', bottom+'px');
  
  // Display items (if hidden).
  this.show();
};