PageSourceSearch

https://www.mhoo.cn/js/jquery-banner.js

js mhoo.cn collected 2026-10-09 21:24:31 UTC 1,223 bytes, 28 lines download raw bytes

1$(document).ready(function() {�
2    startTimer();�
3    var timer;�
4    var slideCount = $('.banner-thumbs li').length;�
5    var currSlide = $('.banner-thumbs li').filter('.curr').index();�
6    var nextSlide = currSlide + 1;�
7    var fadeSpeed = 1000;�
8    function startTimer() {�
9        timer = setInterval(function() {�
10            $('.banner-item').eq(currSlide).fadeOut(fadeSpeed);�
11            $('.banner-item, .banner-thumbs li').removeClass('curr');�
12            $('.banner-item').eq(nextSlide).addClass('curr').fadeIn(fadeSpeed);�
13            $('.banner-thumbs li').eq(nextSlide).addClass('curr');�
14            currSlide = nextSlide;�
15            nextSlide = currSlide + 1 < slideCount ? currSlide + 1 : 0;�
16        }, 6000);�
17    }�
18    $('.banner-thumbs li').click(function() {�
19        clearInterval(timer);�
20        startTimer();�
21        currSlide = $(this).index();�
22        nextSlide = currSlide + 1 < slideCount ? currSlide + 1 : 0;;�
23        $('.banner-item').fadeOut(fadeSpeed);�
24        $('.banner-item, .banner-thumbs li').removeClass('curr');�
25        $('.banner-item').eq($(this).index()).addClass('curr').fadeIn(fadeSpeed);�
26        $(this).addClass('curr');�
27    });�
28});

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.