|
@@ -63,15 +63,15 @@
|
|
|
);
|
|
|
});
|
|
|
|
|
|
- let footerHeight = $("#footer").height();
|
|
|
- let bodyHeight = $("body").height()
|
|
|
// 滑到 footer 區塊隱藏下方選單
|
|
|
- $(window).scroll(function () {
|
|
|
- let height = (bodyHeight - footerHeight) - 600;
|
|
|
- if ($(window).scrollTop() > height) {
|
|
|
- $('.mb-menu').css("opacity", "0");
|
|
|
- } else {
|
|
|
- $('.mb-menu').css("opacity", "1");
|
|
|
- }
|
|
|
- });
|
|
|
+ // let footerHeight = $("#footer").height();
|
|
|
+ // let bodyHeight = $("body").height()
|
|
|
+ // $(window).scroll(function () {
|
|
|
+ // let height = (bodyHeight - footerHeight) - 600;
|
|
|
+ // if ($(window).scrollTop() > height) {
|
|
|
+ // $('.mb-menu').css("opacity", "0");
|
|
|
+ // } else {
|
|
|
+ // $('.mb-menu').css("opacity", "1");
|
|
|
+ // }
|
|
|
+ // });
|
|
|
</script>
|