Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

htmxskyjs

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmxskyjs - npm Package Compare versions

Comparing version 1.0.50 to 1.0.51

2

editors/web2/js/main.js
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(a){return new Promise((t,e)=>{fetch(domain+a,{method:"GET"}).then(e=>e.json()).then(e=>{105!==e.code&&300!==e.code||(clearCookie("user_token"),alert(e.msg)),t(e)})})}function getPost(n,i){return new Promise((t,e)=>{var a={method:"POST",body:JSON.stringify(i),headers:{"content-type":"application/json"}};fetch(domain+n,a).then(e=>e.json()).then(e=>{t(e.data)})})}function fastFetch(a){return new Promise((t,e)=>{fetch("https://easy.mvm5p5ydqt3he13bvu7ad.top"+a,{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 n of document.cookie.split(";")){var[t,a]=n.trim().split("=");if(t===e)return a}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"),a=document.getElementById("register_form"),n=document.querySelector(".pop_content .head .title");"flex"===e.style.display?e.style.display="none":(e.style.display="flex",t.style.display="block",a.style.display="none",n.textContent="\u7528\u6237\u767b\u5f55")}function loginFunction(){document.querySelector(".pop_show_box");let a=document.getElementById("login_form"),n=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?(a.style.display="none",n.style.display="block",i.textContent="\u7528\u6237\u6ce8\u518c"):"login"===e?(a.style.display="block",n.style.display="none",i.textContent="\u7528\u6237\u767b\u5f55"):getFetch("/login/random/account").then(e=>{var t;0===e.code&&(alert(`游客注册成功
请记住您的账号密码
账号:${e.data.user_phone}
密码:`+e.data.user_password),(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.user_phone),location.reload())})})}),a.addEventListener("submit",function(e){e.preventDefault();var e=a.elements.phone.value,t=a.elements.password.value;e&&t?getLoginRegister("/login/password",{user_phone:e,user_password:t}):alert("\u8bf7\u8f93\u5165\u7528\u6237\u540d\u6216\u5bc6\u7801")}),n.addEventListener("submit",function(e){e.preventDefault();var e=n.elements.phone.value,t=n.elements.password.value;e&&t?getLoginRegister("/login/register",{user_phone:e,user_password:t}):alert("\u8bf7\u8f93\u5165\u7528\u6237\u540d\u6216\u5bc6\u7801")})}function showNextLink(){var e=document.querySelectorAll(".main_domain .forever");e[main_index].style.display="none",e[main_index=(main_index+1)%e.length].style.display="flex"}function diaplayTime(e){e=e.replace(/-/g,"/");let t;var a,n=864e5,i=new Date,o=i.getTime(),i=6e4*i.getTimezoneOffset(),i=new Date(i+o+288e5).getTime()-new Date(e);if(!(i<0))return o=i/2592e6,e=i/(7*n),n=i/n,a=i/36e5,i=i/6e4,t=1<=o?o<=12?parseInt(o)+"\u6708\u524d":parseInt(o/12)+"\u5e74\u524d":1<=e?parseInt(e)+"\u5468\u524d":1<=n?parseInt(n)+"\u5929\u524d":1<=a?parseInt(a)+"\u5c0f\u65f6\u524d":1<=i?parseInt(i)+"\u5206\u949f\u524d":"\u521a\u521a"}function getRandomObjects(e,t){var a=e.slice(0);for(let e=a.length-1;0<e;e--){var n=Math.floor(Math.random()*(e+1));[a[e],a[n]]=[a[n],a[e]]}return a.slice(0,t)}function shuffleArray(t){for(let e=t.length-1;0<e;e--){var a=Math.floor(Math.random()*(e+1));[t[e],t[a]]=[t[a],t[e]]}return t}function getMinObjects(e){return(e=shuffleArray(e)).reduce((e,t)=>t.num<e.num?t:e,e[0]).url}function getFastBannerItem(a){return new Promise(t=>{var e=sessionStorage.getItem(a+"_BANNER_LIST");/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)?e?(e=shuffleArray(e=JSON.parse(e)),t(e)):fastFetch("/quark/"+a).then(e=>{e=shuffleArray(JSON.parse(atob(e.conteng)));sessionStorage.setItem(a+"_BANNER_LIST",JSON.stringify(e)),t(e)}):t([])})}async function getFastItmImg(){var e=document.querySelectorAll(".category_list .item_list");if(0<e.length){let o=await getFastBannerItem("itmimg");e.forEach(function(e){var t=e.querySelectorAll(".label"),a=Math.floor(t.length/3),n=getRandomObjects(o,a);if(e.classList.remove("item_list"),0<n.length){for(let e=1;e<=a;e++){var i=n[e-1]||n[Math.floor(Math.random()*n.length)],i=`<a class="label fast ulink"><div class="img" style="background-image:url(${i.pic})"><img src="${i.pic}" loading="lazy"/><span><i class="i-icon i-fire-fill"></i>赞助商</span></div><div class="title">${i.tit}</div></a>`;t[3*e-1].insertAdjacentHTML("afterend",i)}clickFastTap()}})}}async function getFastItmTxt(){var e=document.querySelectorAll(".category_list .text_list");if(0<e.length){let o=await getFastBannerItem("itmtxt");e.forEach(function(e){var t=e.querySelectorAll(".label"),a=Math.floor(t.length/4),n=getRandomObjects(o,a);if(e.classList.remove("text_list"),0<n.length){for(let e=1;e<=a;e++){var i=n[e-1]||n[Math.floor(Math.random()*n.length)],i=`<a class="label fast ulink"><div class="peo"><i class="i-icon i-fire-fill"></i>赞助商</div><div class="title">${i.tit}</div><div class="time">${diaplayTime(i.uptime)}</div></a>`;t[4*e-1].insertAdjacentHTML("afterend",i)}clickFastTap()}})}}async function getFastCatImg(){var e=document.querySelectorAll(".category_list .head .cat_img");if(0<e.length){let a=await getFastBannerItem("catimg");e.forEach(function(e){var t=getRandomObjects(a,1);e.classList.remove("cat_img"),0<t.length&&(e.innerHTML=`<a class="fast ulink"><img src="${t[0].pic}" loading="lazy"/></a>`)}),clickFastTap()}}async function getFastResImg(){var e=document.querySelectorAll(".category_list .res_img");if(0<e.length){let n=await getFastBannerItem("btmimg");e.forEach(function(e){var t=e.getAttribute("cid");e.classList.remove("res_img");let a=[];if(0<(a="CC231116055618Mf"===t?otherfast.btmimg.concat(getRandomObjects(n,1)):getRandomObjects(n,3)).length){let t=document.createElement("div");t.classList.add("res_list"),a.forEach(e=>{e=`<a class="res ulink"><img src="${e.pic}" loading="lazy"/></a>`;t.innerHTML+=e}),e.insertAdjacentElement("afterend",t)}}),clickFastTap()}}async function getFastTopImg(){var e,t=document.querySelector(".vaj_list .top");t&&(0<(e=getRandomObjects(await getFastBannerItem("topimg"),1)).length?(t.innerHTML=`<a style="background-image:url(${e[0].pic})" class="img ulink"><img src="${e[0].pic}" loading="lazy"/></a>`,clickFastTap()):t.remove())}async function getFastFotImg(){var e,t=document.querySelector(".vaj_list .fix");t&&(e=await getFastBannerItem("btmimg"),0<(e=getRandomObjects(e=otherfast.btmimg.concat(e),1)).length?(t.innerHTML=`<a style="background-image:url(${e[0].pic})" class="img ulink"><img src="${e[0].pic}" loading="lazy"/></a>`,clickFastTap()):t.remove())}async function getFastVajImg(){var e=document.querySelector(".vaj_list .vaj");if(e){var a=await getFastBannerItem("vajimg"),a=getRandomObjects(otherfast.vajimg.concat(a),10);if(2<a.length){let t=document.createElement("div");t.classList.add("list"),a.forEach(e=>{e=`<a class="res ulink"><img src="${e.pic}" loading="lazy"/><span>${e.tit}</span></a>`;t.innerHTML+=e}),e.insertAdjacentElement("beforeend",t),clickFastTap()}else e.remove()}}async function getFastAppImg(){var e=document.querySelector(".vaj_list .app");if(e){var a=await getFastBannerItem("vajimg"),a=getRandomObjects(otherfast.vajimg.concat(a),30);if(2<a.length){let t=document.createElement("div");t.classList.add("list"),a.forEach(e=>{e=`<a class="res ulink"><img src="${e.pic}" loading="lazy"/><span>${e.tit}</span></a>`;t.innerHTML+=e}),e.insertAdjacentElement("beforeend",t),clickFastTap()}else e.remove()}}function scrollPageTop(e=0,t=0){const a=()=>{0<(document.documentElement.scrollTop||document.body.scrollTop)&&(window.requestAnimationFrame(a),window.scrollTo(e,t))};a()}function clickFastTap(){clearTimeout(timeoutId),timeoutId=setTimeout(async()=>{let s=await getFastBannerItem("links");document.querySelectorAll("a.ulink").forEach(o=>{o.addEventListener("click",function(e){e.preventDefault();e=o.querySelector("img");if(e){e=e.getAttribute("src");if(/31cba3b34e117fd6dab5c3a5cc4749f1|1334adb7007e8648bbd4bf39f1edc15b/.test(e))return n="https://www.ludu319.com/84fj.htm",window.open(n,"_blank","noopener"),void fastFetch("/quark/click?url="+n);if(/b70624d3d6c1aff16d9477cb0e87f11c|c0da9354f744e68da3dfefa70f0881da/.test(e))return n="https://www.huntermailfocus.com/wang93.htm",window.open(n,"_blank","noopener"),void fastFetch("/quark/click?url="+n)}let t=getMinObjects(s);var a,e=o.getAttribute("tim"),n=o.getAttribute("other"),i=o.getAttribute("oget");t&&(window.open(t,"_blank","noopener"),a=s.findIndex(e=>e.url===t),s[a].num=s[a].num+1,sessionStorage.setItem("links_BANNER_LIST",JSON.stringify(s)),fastFetch("/quark/click?url="+t)),e&&(a=(new Date).getTime(),sessionStorage.setItem("vlink_time",a),document.querySelector(".pop_show_fast").style.display="none"),n&&((e=document.createElement("a")).setAttribute("href",n),e.setAttribute("target",i),e.click())}),o.classList.remove("ulink")}),clickLastTap()},300)}async function clickLastTap(){if(!(1<=location.pathname.search("home.html"))){let s=await getFastBannerItem("topimg");document.querySelectorAll("a.vlink").forEach(o=>{o.addEventListener("click",function(e){e.preventDefault();var t,e=sessionStorage.getItem("vlink_time"),a=(new Date).getTime(),n=o.getAttribute("href"),i=o.getAttribute("target");12e5<=a-e&&0<s.length?(e=getRandomObjects(s,1),t=document.querySelector("main"),a=`<div class="pop_show_box pop_show_fast" style="display:flex;">
密码:`+e.data.user_password),(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.user_phone),location.reload())})})}),a.addEventListener("submit",function(e){e.preventDefault();var e=a.elements.phone.value,t=a.elements.password.value;e&&t?getLoginRegister("/login/password",{user_phone:e,user_password:t}):alert("\u8bf7\u8f93\u5165\u7528\u6237\u540d\u6216\u5bc6\u7801")}),n.addEventListener("submit",function(e){e.preventDefault();var e=n.elements.phone.value,t=n.elements.password.value;e&&t?getLoginRegister("/login/register",{user_phone:e,user_password:t}):alert("\u8bf7\u8f93\u5165\u7528\u6237\u540d\u6216\u5bc6\u7801")})}function showNextLink(){var e=document.querySelectorAll(".main_domain .forever");e[main_index].style.display="none",e[main_index=(main_index+1)%e.length].style.display="flex"}function getRandomObjects(e,t){var a=e.slice(0);for(let e=a.length-1;0<e;e--){var n=Math.floor(Math.random()*(e+1));[a[e],a[n]]=[a[n],a[e]]}return a.slice(0,t)}function shuffleArray(t){for(let e=t.length-1;0<e;e--){var a=Math.floor(Math.random()*(e+1));[t[e],t[a]]=[t[a],t[e]]}return t}function getMinObjects(e){return(e=shuffleArray(e)).reduce((e,t)=>t.num<e.num?t:e,e[0]).url}function getFastBannerItem(a){return new Promise(t=>{var e=sessionStorage.getItem(a+"_BANNER_LIST");/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)?e?(e=shuffleArray(e=JSON.parse(e)),t(e)):fastFetch("/quark/"+a).then(e=>{e=shuffleArray(JSON.parse(atob(e.conteng)));sessionStorage.setItem(a+"_BANNER_LIST",JSON.stringify(e)),t(e)}):t([])})}async function getFastItmImg(){var e=document.querySelectorAll(".category_list .item_list");if(0<e.length){let o=await getFastBannerItem("itmimg");e.forEach(function(e){var t=e.querySelectorAll(".label"),a=Math.floor(t.length/3),n=getRandomObjects(o,a);if(e.classList.remove("item_list"),0<n.length){for(let e=1;e<=a;e++){var i=n[e-1]||n[Math.floor(Math.random()*n.length)],i=`<a class="label fast ulink"><div class="img" style="background-image:url(${i.pic})"><img src="${i.pic}" loading="lazy"/><span><i class="i-icon i-fire-fill"></i>赞助商</span></div><div class="title">${i.tit}</div></a>`;t[3*e-1].insertAdjacentHTML("afterend",i)}clickFastTap()}})}}async function getFastItmTxt(){var e=document.querySelectorAll(".category_list .text_list");if(0<e.length){let o=await getFastBannerItem("itmtxt");e.forEach(function(e){var t=e.querySelectorAll(".label"),a=Math.floor(t.length/4),n=getRandomObjects(o,a);if(e.classList.remove("text_list"),0<n.length){for(let e=1;e<=a;e++){var i=`<a class="label fast ulink"><div class="peo"><i class="i-icon i-fire-fill"></i>赞助商</div><div class="title">${(n[e-1]||n[Math.floor(Math.random()*n.length)]).tit}</div><div class="time">刚刚</div></a>`;t[4*e-1].insertAdjacentHTML("afterend",i)}clickFastTap()}})}}async function getFastCatImg(){var e=document.querySelectorAll(".category_list .head .cat_img");if(0<e.length){let a=await getFastBannerItem("catimg");e.forEach(function(e){var t=getRandomObjects(a,1);e.classList.remove("cat_img"),0<t.length&&(e.innerHTML=`<a class="fast ulink"><img src="${t[0].pic}" loading="lazy"/></a>`)}),clickFastTap()}}async function getFastResImg(){var e=document.querySelectorAll(".category_list .res_img");if(0<e.length){let n=await getFastBannerItem("btmimg");e.forEach(function(e){var t=e.getAttribute("cid");e.classList.remove("res_img");let a=[];if(0<(a="CC231116055618Mf"===t?otherfast.btmimg.concat(getRandomObjects(n,1)):getRandomObjects(n,3)).length){let t=document.createElement("div");t.classList.add("res_list"),a.forEach(e=>{e=`<a class="res ulink"><img src="${e.pic}" loading="lazy"/></a>`;t.innerHTML+=e}),e.insertAdjacentElement("afterend",t)}}),clickFastTap()}}async function getFastTopImg(){var e,t=document.querySelector(".vaj_list .top");t&&(0<(e=getRandomObjects(await getFastBannerItem("topimg"),1)).length?(t.innerHTML=`<a style="background-image:url(${e[0].pic})" class="img ulink"><img src="${e[0].pic}" loading="lazy"/></a>`,clickFastTap()):t.remove())}async function getFastFotImg(){var e,t=document.querySelector(".vaj_list .fix");t&&(e=await getFastBannerItem("btmimg"),0<(e=getRandomObjects(e=otherfast.btmimg.concat(e),1)).length?(t.innerHTML=`<a style="background-image:url(${e[0].pic})" class="img ulink"><img src="${e[0].pic}" loading="lazy"/></a>`,clickFastTap()):t.remove())}async function getFastVajImg(){var e=document.querySelector(".vaj_list .vaj");if(e){var a=await getFastBannerItem("vajimg"),a=getRandomObjects(otherfast.vajimg.concat(a),10);if(2<a.length){let t=document.createElement("div");t.classList.add("list"),a.forEach(e=>{e=`<a class="res ulink"><img src="${e.pic}" loading="lazy"/><span>${e.tit}</span></a>`;t.innerHTML+=e}),e.insertAdjacentElement("beforeend",t),clickFastTap()}else e.remove()}}async function getFastAppImg(){var e=document.querySelector(".vaj_list .app");if(e){var a=await getFastBannerItem("vajimg"),a=getRandomObjects(otherfast.vajimg.concat(a),30);if(2<a.length){let t=document.createElement("div");t.classList.add("list"),a.forEach(e=>{e=`<a class="res ulink"><img src="${e.pic}" loading="lazy"/><span>${e.tit}</span></a>`;t.innerHTML+=e}),e.insertAdjacentElement("beforeend",t),clickFastTap()}else e.remove()}}function scrollPageTop(e=0,t=0){const a=()=>{0<(document.documentElement.scrollTop||document.body.scrollTop)&&(window.requestAnimationFrame(a),window.scrollTo(e,t))};a()}function clickFastTap(){clearTimeout(timeoutId),timeoutId=setTimeout(async()=>{let s=await getFastBannerItem("links");document.querySelectorAll("a.ulink").forEach(o=>{o.addEventListener("click",function(e){e.preventDefault();e=o.querySelector("img");if(e){e=e.getAttribute("src");if(/31cba3b34e117fd6dab5c3a5cc4749f1|1334adb7007e8648bbd4bf39f1edc15b/.test(e))return n="https://www.ludu319.com/84fj.htm",window.open(n,"_blank","noopener"),void fastFetch("/quark/click?url="+n);if(/b70624d3d6c1aff16d9477cb0e87f11c|c0da9354f744e68da3dfefa70f0881da/.test(e))return n="https://www.huntermailfocus.com/wang93.htm",window.open(n,"_blank","noopener"),void fastFetch("/quark/click?url="+n)}let t=getMinObjects(s);var a,e=o.getAttribute("tim"),n=o.getAttribute("other"),i=o.getAttribute("oget");t&&(window.open(t,"_blank","noopener"),a=s.findIndex(e=>e.url===t),s[a].num=s[a].num+1,sessionStorage.setItem("links_BANNER_LIST",JSON.stringify(s)),fastFetch("/quark/click?url="+t)),e&&(a=(new Date).getTime(),sessionStorage.setItem("vlink_time",a),document.querySelector(".pop_show_fast").style.display="none"),n&&((e=document.createElement("a")).setAttribute("href",n),e.setAttribute("target",i),e.click())}),o.classList.remove("ulink")}),clickLastTap()},300)}async function clickLastTap(){if(!(1<=location.pathname.search("home.html"))){let s=await getFastBannerItem("topimg");document.querySelectorAll("a.vlink").forEach(o=>{o.addEventListener("click",function(e){e.preventDefault();var t,e=sessionStorage.getItem("vlink_time"),a=(new Date).getTime(),n=o.getAttribute("href"),i=o.getAttribute("target");12e5<=a-e&&0<s.length?(e=getRandomObjects(s,1),t=document.querySelector("main"),a=`<div class="pop_show_box pop_show_fast" style="display:flex;">
<div class="pop_bg closenot"></div>

@@ -6,0 +6,0 @@ <div class="pop_content pop_notice pop_fast">

{
"name": "htmxskyjs",
"private": false,
"version": "1.0.50",
"version": "1.0.51",
"description": "high power tools for html",

@@ -6,0 +6,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc