<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"> //åŠ¨æ€è®¾ç½®ä¾§è¾¹æ&nbsp;æ»šåŠ¨
 $(function () {
    var offset_top = $('.right_nav').offset().top; //èŽ·å–å³ä¾§å¯¼èˆªè·ç¦»é¡¶éƒ¨çš„é«˜åº¦
    var begin = 0,
       end = 0,
       timer = null;
    $('.right_nav li:last').hide(); //å…ˆå°†å›žåˆ°é¡¶éƒ¨éšè—

    $(window).scroll(function (evt) {
       clearInterval(timer);
       var scroll_top = $(window).scrollTop();
       end = offset_top + scroll_top;
       scroll_top &gt; 100 ? $('.right_nav li:last').fadeIn() : $('.right_nav li:last').fadeOut(); //æ»šåŠ¨è·ç¦»åˆ¤æ–­æ˜¯å¦æ˜¾ç¤ºå›žåˆ°é¡¶éƒ¨

       timer = setInterval(function () { //æ»šåŠ¨å®šæ—¶å™¨
          begin = begin + (end - begin) * 0.2;
          if (Math.round(begin) === end) {
             clearInterval(timer);
          }
       }, 10);
    });
 });

 //å³ä¾§å¯¼èˆªä¼¸ç¼©æ•ˆæžœ
 var right_nav = $(".right_nav");
 var tempS;
 $(".right_nav").hover(function () {
       var thisObj = $(this);
       tempS = setTimeout(function () {
          thisObj.find("li").each(function (i) {
             var tA = $(this);
             setTimeout(function () {
                tA.animate({
                   right: "0"
                }, 200);
             }, 50 * i);
          });
       }, 200);
    },
    function () {
       if (tempS) {
          clearTimeout(tempS);
       }
       $(this).find("li").each(function (i) {
          var tA = $(this);
          setTimeout(function () {
             tA.animate({
                right: "-70"
             }, 200, function () {});
          }, 50 * i);
       });
    });

 //å³ä¾§å¯¼èˆªç‚¹å‡»äº‹ä»¶
 $(".right_nav li").each(function (i) {
    if (i == 0 || i == 1 || i == 2) {
       $(this).mouseover(function () {
          $(this).children(".hideBox").stop().fadeIn();
          right_nav.css('overflow', 'visible')
       });
       $(this).mouseout(function () {
          $(this).children(".hideBox").hide();
          right_nav.css('overflow', 'hidden')
       });
    } else if (i == 3) {
       $(this).click(function () {
          //location.href = 'https://www.baidu.com/';
       })
    } else if (i == 4) {
       $(this).click(function () {
          $('body,html').animate({
             scrollTop: 0
          }, 400);
       })
    }
 })</pre></body></html>