text: !function(){function o(){var o=$(window).scrollTop();o>=d?s.gotopShow():s.gotopHide()}function t(){var o=!0;$(window).on("touchstart",function(t){o=!1;var e=t.originalEvent.touches,i=e[0].screenY;$(this).on("touchmove",function(o){var t=o.originalEvent.touches,e=t[0].screenY,n=e-i,d=$(window).scrollTop();d>0?(n<-10&&s.gotopHide(),n>10&&s.gotopShow()):s.gotopHide()}).one("touchend",function(){$(this).off("touchmove touchend"),o=!0})}),$(window).on("scroll",function(){if(o){var t=$(window).scrollTop();0===t&&s.gotopHide()}})}var e={parentBox:$("body"),right:8,bottom:40,zindex:110,hasReport:!1,reportFun:null,isMobile:!1,hasFreeAd:!0,vipDiscount:!1};/Android|webOS|iPhone|iPod|BlackBerry/i.test(window.navigator.userAgent)?e.hasFreeAd=!1:e.hasFreeAd=!0,e.vipDiscount=document.location.href.indexOf("/vip_code")!=-1;var i=!1,n="http"===location.protocol.substr(0,4)?"":"http:";$("<link/>",{rel:"stylesheet",type:"text/css",href:n+"//csdnimg.cn/public/common/gotop/css/goTop.min.css?v20180912133540"}).appendTo("head");var s=$('<div class="meau-gotop-box">    <a href="#" id="backtop" class="btn-meau" title="返回顶部">      <svg xmlns="http://www.w3.org/2000/svg" width="19" height="12">        <path d="M9.314 0l9.313 9.314-2.12 2.121-7.193-7.192-7.193 7.192L0 9.314z" fill="#FFF" fill-rule="evenodd" />      </svg>    </a>  </div>'),d=$(window).height();s.gotopShow=function(){$(this).find("a#backtop").fadeIn(200).css("display","flex")},s.gotopHide=function(){$(this).find("a#backtop").fadeOut(200)},s.find("a#backtop").click(function(o){o.preventDefault(),$("html,body").animate({scrollTop:0},200),e.isMobile&&s.gotopHide()});var c=function(n){if(i=!0,void 0!==n&&"object"==typeof n&&$.extend(e,n),e.hasReport)if(null===e.reportFun)console.warn("请设置内容举报方法");else{var c=$('<a href="#" id="reportContent" class="btn-meau" title="举报">                            <svg xmlns="http://www.w3.org/2000/svg" width="18" height="22"><path d="M0 13.028V3.365L9 0l9 3.365v9.663C18 17.983 13.97 22 9 22s-9-4.017-9-8.972zm2-8.282v8.282c0 3.854 3.134 6.978 7 6.978s7-3.124 7-6.978V4.746L9 2.13 2 4.746zm6 10.276h2v1.993H8v-1.993zm0-8.973h2v6.979H8V6.049z" fill="#FFF" fill-rule="nonzero"/></svg>                          </a>');s.append(c),c.click(function(o){o.preventDefault(),e.reportFun()})}if(e.hasFreeAd){var p=$('<a href="https://download.csdn.net/vip_code?utm=buyvip" id="adContent" class="btn-meau">                          </a>');s.prepend(p)}if(e.vipDiscount){var a=$('<a href="#" id="vipContent">                      <div class="discount"></div>                        <div class="vip-code"><h4>学生购买VIP卡</h4>                        <p>请先扫码进入官方QQ群</p>                        <div class="img"></div>                        <p>CSDN学生VIP【官方】</p>                        <p>群号：18479155</p>                        </div></a>');s.prepend(a)}e.isMobile&&s.addClass("wap"),e.parentBox.append(s),s.css({right:e.right+"px",bottom:e.bottom+"px","z-index":e.zindex}),e.isMobile?t():($(window).resize(function(){d=$(window).height(),o()}),$(window).scroll(o))};window.GoTop=c,setTimeout(function(){i||c(),$(document).on("mouseenter","#vipContent",function(o){$(".vip-code").show()}),$(document).on("mouseout","#vipContent",function(o){$(".vip-code").hide()})},200)}();