| | |
| | | } |
| | | , onrestore:{ |
| | | after: function () { |
| | | top.autoScroll = true; |
| | | let win = layx.getFrameContext('wcs-news'); |
| | | win.autoScroll = true |
| | | } |
| | | } |
| | | } |
| | |
| | | </body> |
| | | <script src="../static/js/jquery/jquery-3.3.1.min.js"></script> |
| | | <script> |
| | | top.autoScroll = true; |
| | | var autoScroll = true; |
| | | var asdsa = '1231'; |
| | | |
| | | function scrollUp(){ |
| | | const scrollUp = document.getElementById('scroll-up'); |
| | |
| | | }) |
| | | |
| | | $(document).on('click ','body', function () { |
| | | top.autoScroll = false; |
| | | autoScroll = false; |
| | | }) |
| | | |
| | | setInterval(()=>{ |
| | | $("body").append("<h1>Hello World</h1>"); |
| | | if (top.autoScroll) { |
| | | if (autoScroll) { |
| | | window.scrollTo(0, document.body.scrollHeight) |
| | | } |
| | | }, 500) |