Skip to content

Commit 1a323bf

Browse files
committed
Bugfix show less
1 parent 1fba78a commit 1a323bf

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎js/script.js‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,4 +386,15 @@ var scrollUpdate = function () {
386386
var footerBottom = $("#footer").position().top + $("#footer").height();
387387
var topLogo_footer = Math.round(bottomScreen - footerBottom - $(".menu").height());
388388
$("#logo3").css({ bottom: topLogo_footer });
389+
390+
391+
// ----------------------------------------------------------------------------
392+
// Show More/Less button
393+
var endOfProjects = scrollTop + $(window).height() - $('.top').height() - $('.header').height();
394+
if (endOfProjects < 130 ) {
395+
$(".buttonMore").css({position: 'fixed', bottom: 0});
396+
}
397+
else {
398+
$(".buttonMore").css({position: 'absolute', bottom: -50});
399+
}
389400
}

0 commit comments

Comments
 (0)