在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:pratikabu/scrolltotop开源软件地址:https://github.com/pratikabu/scrolltotop开源编程语言:JavaScript 60.7%开源软件介绍:Scroll To TopScroll to top and vice versa in a desktop browser. A browser extension for Chrome, Firefox, Safari, Opera. Release Notes | @scrolltotop | Discuss Download:
Contribute:
How to Build:Currently the build system is based on Apache Ant.
BookmarkletIf someone does not like installing an extension. Then you can create this Bookmark in your bookmark toolbar. This bookmarklet will scroll up or down based on the location of your screen. Bookmark Name: ↑↓ javascript:(function () {var paBody = document.body, paHtml = document.documentElement, paMaxY = Math.max(paBody.scrollHeight, paBody.offsetHeight, paHtml.clientHeight, paHtml.scrollHeight, paHtml.offsetHeight) - window.innerHeight, paBreakPoint = 300; if(window.scrollY > paBreakPoint || paBreakPoint >= paMaxY && window.scrollY != 0) window.scroll({top: 0, behavior: 'smooth'}); else window.scroll({top: paMaxY, behavior: 'smooth'});})(); Read more about the author. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论