WebRoot/js/banner.js

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

$(function(){
    $("#focusBar li").css("width",$(window).width());
    $("a.arrL").mouseover(function(){stopFocusAm();}).mouseout(function(){starFocustAm();}).click(function(){prePage()});
    $("a.arrR").mouseover(function(){stopFocusAm();}).mouseout(function(){starFocustAm();}).click(function(){nextPage()});
    $("#focusBar li").mouseover(function(){stopFocusAm();}).mouseout(function(){starFocustAm();});
    starFocustAm();

    var timerFID;

    function nextPage() {
        changeFocus(true);
    }
    function prePage() {
        changeFocus(false);
    }

    var currentFocusI=1;
    var changeingFocus = false;
    function changeFocus(dir) {
        if($("#focusBar li").length <= 1) return;
        if(changeingFocus) return;
        changeingFocus = true;
        
        $("#focusIndex"+nextI).stop(false,true);
        $("#focusIndex"+nextI+" .focusL").stop(false,true);
        $("#focusIndex"+nextI+" .focusR").stop(false,true);
        
        var nextI = dir?currentFocusI+1:currentFocusI-1;
        nextI = nextI>$("#focusBar li").length?1:(nextI<1?$("#focusBar li").length:nextI);
        //var focusWidth = $(window).width()>1000?1000:$(window).width();
        $("#focusIndex"+currentFocusI).css("width",$(window).width());
        $("#focusIndex"+nextI).css("width",$(window).width());
        if(dir) {
            $("#focusIndex"+nextI).css("left",$(window).width());
            $("#focusIndex"+nextI+" .focusL").css("left",$(window).width()/2);
            $("#focusIndex"+nextI+" .focusR").css("left",$(window).width()/2);
            $("#focusIndex"+currentFocusI).show();
            $("#focusIndex"+nextI).show();
            
            $("#focusIndex"+currentFocusI+" .focusL").animate({left: -($(window).width()/2+1000)},300,'easeInExpo');
            $("#focusIndex"+currentFocusI+" .focusR").animate({left: -($(window).width()/2+1000)},500,'easeInExpo',function(){
                    $("#focusIndex"+nextI+" .focusL").animate({left: -600},1000,'easeInOutCirc');
                    $("#focusIndex"+nextI+" .focusR").animate({left: -600},1200,'easeInOutCirc');
                    
                    $("#focusIndex"+currentFocusI).animate({left: -$(window).width()},1000,'easeOutExpo');
                    $("#focusIndex"+nextI).animate({left: 0},1000,'easeOutExpo',function(){
                            $("#focusIndex"+currentFocusI).hide();
                            currentFocusI = nextI;
                            changeingFocus = false;
                    });
            });
        } else {
            $("#focusIndex"+nextI).css("left",-$(window).width());
            $("#focusIndex"+nextI+" .focusL").css("left",-($(window).width()/2+1000));
            $("#focusIndex"+nextI+" .focusR").css("left",-($(window).width()/2+1000));
            $("#focusIndex"+currentFocusI).show();
            $("#focusIndex"+nextI).show();
            
            $("#focusIndex"+currentFocusI+" .focusR").animate({left: $(window).width()/2},300,'easeInExpo');
            $("#focusIndex"+currentFocusI+" .focusL").animate({left: $(window).width()/2},500,'easeInExpo',function(){
后面还有 26 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。