javascript Magic Carpet Footer显示#bb #footer #ani
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript Magic Carpet Footer显示#bb #footer #ani相关的知识,希望对你有一定的参考价值。
//Magic carpet footer reveal for beaver themer
add_action( 'wp_enqueue_scripts', 'frame_enqueue_scripts', 1005 );
function frame_enqueue_scripts()
{
wp_enqueue_script( 'footer-reveal', get_stylesheet_directory_uri() . '/js/footer-reveal.js', array(), '1.0', true );
wp_enqueue_script( 'footer-reveal-init', get_stylesheet_directory_uri() . '/js/footer-reveal-init.js', array(), '1.0', true );
}
(function($) {
$.fn.footerReveal = function(options) {
var $this = $(this),
$prev = $this.prev(),
$win = $(window),
defaults = $.extend ({
shadow : true,
shadowOpacity: 0.8,
zIndex : -100
}, options ),
settings = $.extend(true, {}, defaults, options);
if ($this.outerHeight() <= $win.outerHeight() && $this.offset().top >= $win.outerHeight()) {
$this.css({
'z-index' : defaults.zIndex,
position : 'fixed',
bottom : 0
});
if (defaults.shadow) {
$prev.css ({
'-moz-box-shadow' : '0 20px 30px -20px rgba(0,0,0,' + defaults.shadowOpacity + ')',
'-webkit-box-shadow' : '0 20px 30px -20px rgba(0,0,0,' + defaults.shadowOpacity +')',
'box-shadow' : '0 20px 30px -20px rgba(0,0,0,' + defaults.shadowOpacity + ')'
});
}
$win.on('load resize footerRevealResize', function() {
$this.css({
'width' : $prev.outerWidth()
});
$prev.css({
'margin-bottom' : $this.outerHeight()
});
});
}
return this;
};
}) (jQuery);
(function($){
$('footer.fl-builder-content').footerReveal({shadow: false});
})(jQuery);
以上是关于javascript Magic Carpet Footer显示#bb #footer #ani的主要内容,如果未能解决你的问题,请参考以下文章
Magic Gems(矩阵快速幂优化dp)
javascript Wild Magic.js
codeforces 632F. Magic Matrix
E - Aladdin and the Flying Carpet
hdu5834 Magic boy Bi Luo with his excited tree 树形dp
LightOJ 1341(Aladdin and the Flying Carpet )算术基本定理