PageSourceSearch

https://www.ishumei.com/static/html/widget/header/header_0f13c16.js

js ishumei.com collected 2026-10-03 21:30:22 UTC 2,950 bytes, 1 lines download raw bytes

1define("pc/html/widget/header/header.es6",function(e,t,i){"use strict";var n=e("pc/js/utils/utils.es6"),r=$("body"),a=function(e){return $.get("/new/track",e)},o=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},d=function(){var e=(0,n.getCurrentPathName)(),t=/^\/([a-zA-Z]+)\//i,i=e.match(t),r="index";return r=i?i[1]?i[1]:r:"index"},c=function(){var e=n.Cookie.get("sm_saas_tokenId"),t={ignoreLogin:!0,tokenId:e},i=(0,n.getUrlName)().console;$.ajax({type:"GET",dataType:"jsonp",url:i+"/api/user/info",data:t,success:function(e){var t=e.nickName,n=e.account,a=e.userId;t||n||a?($("#header-login").text(t||n||a),$("#header-login").attr("href",i+"/new"),$("#header-login").attr("title",t||n||a),$(".sign-wrapper").data("loginStatus",!0)):($("#header-login").text("登录"),$("#header-login").attr("title","登录"),$("#header-login").attr("href",""+i),r.find('a[href="'+i+'/new"]').attr("href","/account/register.html"))},error:function(e){}})},l=function(){var e=n.Cookie.get("ISHUMEI_WWW_userUid");return e||(e=o(),n.Cookie.set("ISHUMEI_WWW_userUid",e,{path:"/"})),e};!function(){setTimeout(function(){var e={timestamp:+new Date,firstKeyUrl:n.Storage.get("firstKeyUrl"),url:window.location.pathname,uid:n.Cookie.get("ISHUMEI_WWW_userUid")||l(),deviceId:window.SMSdk?SMSdk.getDeviceId():""};a(e)},500)}(),document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState?c():document.visibilityState});var s=function(){return!!window.ActiveXObject||"ActiveXObject"in window};$(window).scroll(function(){u()});
1var u=function(){var e=$("#homePge").val();0===$(window).scrollTop()&&e?$(".header-wrapper").addClass("header-scroll"):$(".header-wrapper").removeClass("header-scroll")};$("#index-help").click(function(e){e.preventDefault();var t=(0,n.getUrlName)().help;window.open(t)}),$("#index_intl").click(function(e){e.preventDefault();var t=(0,n.getUrlName)().intl;location.href=t}),$("#header-login").click(function(e){e.preventDefault();var t=(0,n.getUrlName)().console;window.open(t+"/new?dateTime="+(new Date).getTime())}),$(".baidu-track").on("click",function(e){var t=$(this).data("track");window._hmt&&window._hmt.push(["_trackEvent",t])}),$("#freeRegister").on("click",function(e){n.Cookie.get("ISHUMEI_WWW_userUid")||n.Cookie.set("ISHUMEI_WWW_userUid",o(),{path:"/"});var t={timestamp:+new Date,name:"免费试用",uid:n.Cookie.get("ISHUMEI_WWW_userUid")||l(),deviceId:window.SMSdk?SMSdk.getDeviceId():""};a(t)}),u(),function(){n.Cookie.get("SM_GW_IE");s()?($("#ieHint").show(),$(".header-wrapper").addClass("addHeader")):($("#ieHint").hide(),$(".header-wrapper").removeClass("addHeader"))}(),function(){var e=(0,n.getNewHost)();$(".admin-link").attr("href",e+"/new"),$(".sign-in-link").attr("href",e+"/")}(),c(),function(){var e=d();r.find(".header-wrapper").find(".nav-li[data-type="+e+"]").addClass("active")}()});

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.