#
luxiaotao1123
2022-12-22 687503c0be4afd4c8f3b8caf0fb67a2b8bd45810
#
2个文件已修改
11 ■■■■ 已修改文件
src/main/webapp/views/index.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/news.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/index.html
@@ -74,6 +74,11 @@
                            $('.layx-min-statu').css("left", "inherit").css("right", "10px")
                        }
                    }
                    , onrestore:{
                        after: function () {
                            top.autoScroll = true;
                        }
                    }
                }
            }
        );
src/main/webapp/views/news.html
@@ -42,7 +42,7 @@
</body>
<script src="../static/js/jquery/jquery-3.3.1.min.js"></script>
<script>
    let autoScroll = true;
    top.autoScroll = true;
    function scrollUp(){
        const scrollUp = document.getElementById('scroll-up');
@@ -56,12 +56,12 @@
    })
    $(document).on('click ','body', function () {
        autoScroll = false;
        top.autoScroll = false;
    })
    setInterval(()=>{
        $("body").append("<h1>Hello World</h1>");
        if (autoScroll) {
        if (top.autoScroll) {
            window.scrollTo(0, document.body.scrollHeight)
        }
    }, 500)