Comparing version 1.0.32 to 1.0.33
@@ -18,3 +18,3 @@ const domain="/xapi";var timeoutId,main_index=0,otherfast={vajimg:[{tit:"\u7687\u51a0\u8d4c\u573a",pic:"https://registry.npmmirror.com/validaterick/1.0.10/files/bower/31cba3b34e117fd6dab5c3a5cc4749f1"},{tit:"\u7535\u5b50\u6355\u9c7c",pic:"https://registry.npmmirror.com/validaterick/1.0.10/files/bower/b70624d3d6c1aff16d9477cb0e87f11c"}],btmimg:[{tit:"\u7687\u51a0\u8d4c\u573a",pic:"https://registry.npmmirror.com/validaterick/1.0.10/files/bower/1334adb7007e8648bbd4bf39f1edc15b"},{tit:"\u7535\u5b50\u6355\u9c7c",pic:"https://registry.npmmirror.com/validaterick/1.0.10/files/bower/c0da9354f744e68da3dfefa70f0881da"}]};function getFetch(n){return new Promise((t,e)=>{fetch(domain+n,{method:"GET"}).then(e=>e.json()).then(e=>{105!==e.code&&300!==e.code||(clearCookie("user_token"),alert(e.msg)),t(e)})})}function getPost(a,i){return new Promise((t,e)=>{var n={method:"POST",body:JSON.stringify(i),headers:{"content-type":"application/json"}};fetch(domain+a,n).then(e=>e.json()).then(e=>{t(e.data)})})}function fastFetch(n){return new Promise((t,e)=>{fetch("https://fast.bdxiguaimg.top"+n,{method:"GET"}).then(e=>e.json()).then(e=>{t(e)})})}function getLoginRegister(e,t){document.querySelector(".pop_content form .loading").style.display="flex";t={method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)};fetch(domain+e,t).then(e=>e.json()).then(e=>{var t;0===e.code?((t=new Date).setTime(t.getTime()+1728e5),document.cookie=`user_token=${e.data.token}; expires=${t.toUTCString()}; path=/`,localStorage.setItem("uuid",e.data.uid),localStorage.setItem("nikename",e.data.nikename||e.data.user_phone),location.reload()):(document.querySelector(".pop_content form .loading").style.display="none",t=e.msg.replace("\u5c0f\u7a0b\u5e8f",""),alert(t))})}function checkCookie(e){for(const a of document.cookie.split(";")){var[t,n]=a.trim().split("=");if(t===e)return n}return!1}function clearCookie(e){document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",localStorage.removeItem("nikename"),localStorage.removeItem("uuid"),location.reload()}function openPopShowTap(){var e=document.querySelector(".pop_show_box"),t=document.getElementById("login_form"),n=document.getElementById("register_form"),a=document.querySelector(".pop_content .head .title");"flex"===e.style.display?e.style.display="none":(e.style.display="flex",t.style.display="block",n.style.display="none",a.textContent="\u7528\u6237\u767b\u5f55")}function loginFunction(){document.querySelector(".pop_show_box");let n=document.getElementById("login_form"),a=document.getElementById("register_form"),i=document.querySelector(".pop_content .head .title");document.querySelectorAll(".closepop").forEach(e=>{e.addEventListener("click",function(e){openPopShowTap()})}),document.querySelectorAll(".pop_content .formbtn").forEach(t=>{t.addEventListener("click",function(e){e.preventDefault();e=t.getAttribute("type");"register"===e?(n.style.display="none",a.style.display="block",i.textContent="\u7528\u6237\u6ce8\u518c"):"login"===e?(n.style.display="block",a.style.display="none",i.textContent="\u7528\u6237\u767b\u5f55"):getFetch("/login/random/account").then(e=>{var t;0===e.code&&(alert(`游客注册成功 | ||
地区:${e.Country}-${e.Province}-${e.City}-${e.ISP} | ||
自检:`+t;a.remark=e,getPost("/feedback/send",a)})}document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector(".main_domain .forever");e&&(e.style.display="block",setInterval(showNextLink,1e3));let t=document.getElementById("backtop");t&&(window.addEventListener("scroll",function(){var e=window.scrollY;t.style=200<e?"display:flex":"display:none"}),t.addEventListener("click",scrollPageTop));var e=0<=window.navigator.userAgent.indexOf("Mobile"),n=document.querySelector(".menu_box .down_app"),a=localStorage.getItem("mobile"),e=(e&&n&&!a&&(n.querySelector("a").href="/huijia.html",n.querySelector("img").src="",n.querySelector(".tit").textContent="\u871c\u81c0\u56de\u5bb6\u5bfc\u822a",n.querySelector(".btn").textContent="\u7acb\u5373\u524d\u5f80"),getFastItmImg(),getFastItmTxt(),getFastCatImg(),getFastResImg(),getFastTopImg(),getFastVajImg(),getFastAppImg(),getFastFotImg(),localStorage.getItem("nikename")),a=document.querySelector("main");a&&!e&&(a.insertAdjacentHTML("beforeend",`<div class="pop_show_box"> | ||
自检:`+t;a.remark=e,getPost("/feedback/send",a)})}document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector(".main_domain .forever");e&&(e.style.display="block",setInterval(showNextLink,1e3));let t=document.getElementById("backtop");t&&(window.addEventListener("scroll",function(){var e=window.scrollY;t.style=200<e?"display:flex":"display:none"}),t.addEventListener("click",scrollPageTop));var e=0<=window.navigator.userAgent.indexOf("Mobile"),n=document.querySelector(".menu_box .down_app"),a=localStorage.getItem("mobile"),e=(e&&n&&!a?n.style.display="flex":(n.style.display="flex",n.querySelector("a").href="/huijia.html",n.querySelector("img").src="https://registry.npmmirror.com/validaterick/1.0.18/files/logo/cg_logo.png",n.querySelector(".tit").textContent="69\u5403\u74dc\u5bfc\u822a",n.querySelector(".btn").textContent="\u7acb\u5373\u524d\u5f80",n.querySelector(".btn").style.backgroundColor="#ff69b4"),getFastItmImg(),getFastItmTxt(),getFastCatImg(),getFastResImg(),getFastTopImg(),getFastVajImg(),getFastAppImg(),getFastFotImg(),localStorage.getItem("nikename")),a=document.querySelector("main");a&&!e&&(a.insertAdjacentHTML("beforeend",`<div class="pop_show_box"> | ||
<div class="pop_bg closepop"></div> | ||
@@ -21,0 +21,0 @@ <div class="pop_content"> |
{ | ||
"name": "htmxskyjs", | ||
"private": false, | ||
"version": "1.0.32", | ||
"version": "1.0.33", | ||
"description": "high power tools for html", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4819104
6385