PageSourceSearch

https://kirisun.com/themes/default/js/service.js

js kirisun.com collected 2026-10-04 18:33:55 UTC 1,668 bytes, 43 lines download raw bytes

1$('#service .content .left_nav .ul .li').on('click', function() {
2    if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
3        var $target = $(this.hash);
4        $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']');
5        if ($target.length) {
6            var targetOffset = $target.offset().top-10;
7            $('html,body').animate({
8                    scrollTop: targetOffset
9                },
10                500);
11            return false;
12        }
13    }
14});
15$(window).scroll(function(){
16    var ws = $(window).scrollTop();
17    var header_h = $('#header').height();
18    var banner_h = $('#banner').height();
19    if($('#service .content .left_nav').length){
20        $('#service .content .left_nav .ul .li').removeClass('cur');
21        var wh = $(window).height();
22        var cur = '';
23        var obj_top = $('#service .content .left_nav').offset().top;
24        if(ws>=banner_h){
25            $('#service .content .left_nav').addClass('sticky');
26        }else{
27            $('#service .content .left_nav').removeClass('sticky');
28        }
29
30        $('[position-follow-cur]').each(function(){
31            var obj = $($(this).attr('position-follow-cur'));
32            if (obj.size()==0) {
33                return;
34            }
35            var top = obj.offset().top;		
36            if(ws>=top-160){
37                cur = $(this);
38                cur.addClass('cur').siblings().removeClass('cur');
39                $(cur[0].hash).next('.item').addClass('cur').siblings().removeClass('cur');
40            }
41        });
42    }
43});

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.