Hc Sticky

14.51

$(function(){
$main = $("#main-wrapper");
$sidebar = $("#sidebar-wrapper");
$window = $(window)

responsive_sticky = function(){
if ($main.height() < $sidebar.height()){
$main.hcSticky();
if ($main.width() == $sidebar.width()){
$main.hcSticky("off");
} else {
$main.hcSticky("on");
}
} else if ($sidebar.height() < $main.height()){
$sidebar.hcSticky();
if ($main.width() == $sidebar.width()){
$sidebar.hcSticky("off");
} else {
$sidebar.hcSticky("on");
}
}
}

responsive_sticky();
$window.resize(function(){
responsive_sticky();
});
});

Download aplikasi android Muhammad Zaini DI SINI

You Might Also Like

0 komentar

Back to top