"use strict"; jQuery(document).ready(function() { jQuery(function () { if(!document.querySelector('.woof-slide-out-div')){ return; } document.querySelector('.woof-slide-out-div').removeAttribute('style'); jQuery('.woof-slide-out-div').css('opacity', 0.95); jQuery.each(jQuery('.woof-slide-out-div'), function(i,item){ var key=jQuery(item).data("key"); jQuery(item).tabSlideOut({ tabHandle: '.woof-handle.'+key, //class of the element that will be your tab tabImage: jQuery(item).data('image'), //link to the image for the tab *required* tabImageHeight: jQuery(item).data('image_h') + 'px', //height of tab image *required* tabImageWidth: jQuery(item).data('image_w') + 'px', //width of tab image *required* tabLocation: jQuery(item).data('location'), //side of screen where tab lives, top, right, bottom, or left bounceSpeed: jQuery(item).data('speed'), //speed of animation action: jQuery(item).data('action'), //options: 'click' or 'hover', action to trigger animation offset: jQuery(item).data('toppos'), //position from the top // fixedPosition: true, //options: true makes it stick(fixed position) on scroll onLoadSlideOut: jQuery(item).data('onloadslideout') }); if(woof_slideout_screenHeight()-jQuery(item).position().top