Updated check for button vizability instead of window width.
This commit is contained in:
parent
356121e355
commit
c3e2272a6f
2 changed files with 4 additions and 5 deletions
|
@ -11,16 +11,15 @@ $(document).ready(function(){
|
||||||
$(".sticky").Stickyfill();
|
$(".sticky").Stickyfill();
|
||||||
|
|
||||||
var stickySideBar = function(){
|
var stickySideBar = function(){
|
||||||
var windowWidth = $(window).width();
|
if (!$(".author__urls-wrapper button").is(":visible")) {
|
||||||
if (windowWidth > 1024) {
|
|
||||||
// fix
|
// fix
|
||||||
Stickyfill.rebuild();
|
Stickyfill.rebuild();
|
||||||
Stickyfill.init();
|
Stickyfill.init();
|
||||||
$(".author__urls").show()
|
$(".author__urls").show();
|
||||||
} else {
|
} else {
|
||||||
// unfix
|
// unfix
|
||||||
Stickyfill.stop();
|
Stickyfill.stop();
|
||||||
$(".author__urls").hide()
|
$(".author__urls").hide();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
2
assets/js/main.min.js
vendored
2
assets/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue