这是一个名为海翕云的网站。该网站提供了一个获取token的功能,通过调用API接口实现。当用户点击按钮后,会触发open_to_others函数。

函数内部使用了XMLHttpRequest对象来进行网络请求。当请求的状态变为4(已完成)且响应状态码为200(成功)时,会执行以下操作:

  1. 打印响应文本到控制台;
  2. 将响应文本解析为JSON对象;
  3. 修改当前窗口的URL为目标URL,即从JSON对象中获取到的data.url属性值。

具体代码如下所示:

window.token = "IVfA4nrbiYawdDHbUcd6IZHyVVVFxR0wwJuAZkkr";

open_to_others = () => {
var e = new XMLHttpRequest();
e.onreadystatechange = function () {
4 === this.readyState && 200 === this.status && (
console.log(this.responseText),
console.log(JSON.parse(this.responseText)),
window.location.href = JSON.parse(this.responseText).data.url
);
};
e.open("GET", "https://kfapi.53kf.com/api/getOauthUrl?company_id=" + window.company_id, true);
e.send();
};

这段代码还包含了一些CSS样式,用于设置工具栏、文本容器和菜单面板的内边距、外边距和盒模型为border-box。