'); $(".back-top").css("left", left).hide().click(function() { $('html, body').animate({ scrollTop: 0 }, 200); }); $(document).scroll(function() { if ($(this).scrollTop() < 50) { $(".back-top").hide('slow'); } else { $(".back-top").show('slow'); } }); } var h = $("body").height() var contentH = $(".share-details").height() if (contentH < h) { $(window.parent.document).find('.layui-layer-close1').css("display", "block") } $(document).scroll(function() { var c = $(this).scrollTop(); if (Math.ceil(h < c)) { $(window.parent.document).find('.layui-layer-close1').css("display", "block") } }) uParse('.aContent', { rootPath: '/' }) });