PageSourceSearch

https://www.hisheji.com/wp-content/plugins/wp-auto-top/wp-auto-top.js?ver=6.7.1

js hisheji.com collected 2026-10-08 05:20:32 UTC 1,937 bytes, 56 lines download raw bytes

1/**
2 * Plugin Name: wp auto top
3 * Plugin URI: http://wordpress.org/plugins/wp-auto-top/
4 * Description: 博客侧边滑动,返回顶部,查看评论的小工具
5 * Version: 2.93
6 * Author: overtrue
7 * Author URI: http://weibo.com/joychaocc
8 */
9var wpAutoTopSpeed = wpAutoTopSpeed || 1;
10if (wpAutoTopSpeed < 1) {
11    wpAutoTopSpeed = 1
12};
13var wpAutoTopScroll=1;
14wpAutoTopSpeed = parseInt(wpAutoTopSpeed);
15wpAutoTopScroll = parseInt(wpAutoTopScroll);
16
17jQuery(document).ready(function($) {
18    _body = (window.opera) ? (document.compatMode == "CSS1Compat" ? $("html") : $("body")) : $("html,body");
19    $("#wp-auto-top-top").mouseover(function() {
20        wpAutoTopScroll && WpAutoTopGoUp()
21    }).mouseout(function() {
22        wpAutoTopScroll && clearTimeout(WpAutoTopTimer)
23    }).click(function() {
24        _body.animate({
25            scrollTop: 0
26        }, 400)
27    });
28    $("#wp-auto-top-bottom").mouseover(function() {
29        wpAutoTopScroll && WpAutoTopGoDown()
30    }).mouseout(function() {
31        wpAutoTopScroll && clearTimeout(WpAutoTopTimer)
32    }).click(function() {
33        _body.animate({
34            scrollTop: $(document).height()
35        }, 400)
36    });
37    $("#wp-auto-top-comment").click(function() {
38        if (typeof commentPositionId == 'undefined' || $(commentPositionId).length < 1) commentPositionId = '#comments';
39        if (typeof commentPositionId == 'undefined') commentPositionId = '[name="comments"]';
40        _body.animate({
41            scrollTop: $(commentPositionId).offset().top
42        }, 400)
43    })
44});
45
46function WpAutoTopGoUp() {
47    _wd = jQuery(window);
48    _wd.scrollTop(_wd.scrollTop() - wpAutoTopSpeed);
49    WpAutoTopTimer = setTimeout("WpAutoTopGoUp()", 10)
50};
51
52function WpAutoTopGoDown() {
53    _wd = jQuery(window);
54    _wd.scrollTop(_wd.scrollTop() + wpAutoTopSpeed);
55    WpAutoTopTimer = setTimeout("WpAutoTopGoDown()", 10)
56};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.