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.27 to 1.0.28

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(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.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())})})}),n.addEventListener("submit",function(e){e.preventDefault();var e=n.elements.phone.value,t=n.elements.password.value;e&&t?getLoginRegister("/login/password",{user_phone:e,user_password:t}):alert("\u8bf7\u8f93\u5165\u7528\u6237\u540d\u6216\u5bc6\u7801")}),a.addEventListener("submit",function(e){e.preventDefault();var e=a.elements.phone.value,t=a.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 n,a=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*a),a=i/a,n=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<=a?parseInt(a)+"\u5929\u524d":1<=n?parseInt(n)+"\u5c0f\u65f6\u524d":1<=i?parseInt(i)+"\u5206\u949f\u524d":"\u521a\u521a"}function getRandomObjects(e,t){var n=e.slice(0);for(let e=n.length-1;0<e;e--){var a=Math.floor(Math.random()*(e+1));[n[e],n[a]]=[n[a],n[e]]}return n.slice(0,t)}function getMinObjects(e){return e.reduce((e,t)=>t.num<e.num?t:e,e[0]).url}function getFastBannerItem(n){return new Promise(t=>{var e=sessionStorage.getItem(n+"_BANNER_LIST");/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)?e?(e=JSON.parse(e),t(e)):fastFetch("/quark/"+n).then(e=>{e=JSON.parse(atob(e.conteng));sessionStorage.setItem(n+"_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"),n=Math.floor(t.length/3),a=getRandomObjects(o,n);if(e.classList.remove("item_list"),0<a.length){for(let e=1;e<=n;e++){var i=a[e-1]||a[Math.floor(Math.random()*a.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"),n=Math.floor(t.length/4),a=getRandomObjects(o,n);if(e.classList.remove("text_list"),0<a.length){for(let e=1;e<=n;e++){var i=a[e-1]||a[Math.floor(Math.random()*a.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 n=await getFastBannerItem("catimg");e.forEach(function(e){var t=getRandomObjects(n,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 a=await getFastBannerItem("btmimg");e.forEach(function(e){var t=e.getAttribute("cid");e.classList.remove("res_img");let n=[];if(0<(n="CC231116055618Mf"===t?otherfast.btmimg.concat(getRandomObjects(a,1)):getRandomObjects(a=otherfast.btmimg.concat(a),3)).length){let t=document.createElement("div");t.classList.add("res_list"),n.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 n=await getFastBannerItem("vajimg"),n=getRandomObjects(otherfast.vajimg.concat(n),10);if(2<n.length){let t=document.createElement("div");t.classList.add("list"),n.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 n=await getFastBannerItem("vajimg"),n=getRandomObjects(otherfast.vajimg.concat(n),30);if(2<n.length){let t=document.createElement("div");t.classList.add("list"),n.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 n=()=>{0<(document.documentElement.scrollTop||document.body.scrollTop)&&(window.requestAnimationFrame(n),window.scrollTo(e,t))};n()}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(e.includes("31cba3b34e117fd6dab5c3a5cc4749f1")||e.includes("1334adb7007e8648bbd4bf39f1edc15b"))return void window.open("https://www.ludu319.com/84fj.htm","_blank","noopener");if(e.includes("b70624d3d6c1aff16d9477cb0e87f11c")||e.includes("c0da9354f744e68da3dfefa70f0881da"))return void window.open("https://www.huntermailfocus.com/wang93.htm","_blank","noopener")}let t=getMinObjects(s);var n,e=o.getAttribute("tim"),a=o.getAttribute("other"),i=o.getAttribute("oget");t&&(window.open(t,"_blank","noopener"),n=s.findIndex(e=>e.url===t),s[n].num=s[n].num+1,sessionStorage.setItem("links_BANNER_LIST",JSON.stringify(s))),e&&(n=(new Date).getTime(),sessionStorage.setItem("vlink_time",n),document.querySelector(".pop_show_fast").style.display="none"),a&&((e=document.createElement("a")).setAttribute("href",a),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"),n=(new Date).getTime(),a=o.getAttribute("href"),i=o.getAttribute("target");12e5<=n-e&&0<s.length?(e=getRandomObjects(s,1),t=document.querySelector("main"),n=`<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())})})}),n.addEventListener("submit",function(e){e.preventDefault();var e=n.elements.phone.value,t=n.elements.password.value;e&&t?getLoginRegister("/login/password",{user_phone:e,user_password:t}):alert("\u8bf7\u8f93\u5165\u7528\u6237\u540d\u6216\u5bc6\u7801")}),a.addEventListener("submit",function(e){e.preventDefault();var e=a.elements.phone.value,t=a.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 n,a=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*a),a=i/a,n=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<=a?parseInt(a)+"\u5929\u524d":1<=n?parseInt(n)+"\u5c0f\u65f6\u524d":1<=i?parseInt(i)+"\u5206\u949f\u524d":"\u521a\u521a"}function getRandomObjects(e,t){var n=e.slice(0);for(let e=n.length-1;0<e;e--){var a=Math.floor(Math.random()*(e+1));[n[e],n[a]]=[n[a],n[e]]}return n.slice(0,t)}function shuffleArray(t){for(let e=t.length-1;0<e;e--){var n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],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(n){return new Promise(t=>{var e=sessionStorage.getItem(n+"_BANNER_LIST");/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)?e?(e=shuffleArray(e=JSON.parse(e)),t(e)):fastFetch("/quark/"+n).then(e=>{e=shuffleArray(JSON.parse(atob(e.conteng)));sessionStorage.setItem(n+"_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"),n=Math.floor(t.length/3),a=getRandomObjects(o,n);if(e.classList.remove("item_list"),0<a.length){for(let e=1;e<=n;e++){var i=a[e-1]||a[Math.floor(Math.random()*a.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"),n=Math.floor(t.length/4),a=getRandomObjects(o,n);if(e.classList.remove("text_list"),0<a.length){for(let e=1;e<=n;e++){var i=a[e-1]||a[Math.floor(Math.random()*a.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 n=await getFastBannerItem("catimg");e.forEach(function(e){var t=getRandomObjects(n,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 a=await getFastBannerItem("btmimg");e.forEach(function(e){var t=e.getAttribute("cid");e.classList.remove("res_img");let n=[];if(0<(n="CC231116055618Mf"===t?otherfast.btmimg.concat(getRandomObjects(a,1)):getRandomObjects(a,3)).length){let t=document.createElement("div");t.classList.add("res_list"),n.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 n=await getFastBannerItem("vajimg"),n=getRandomObjects(otherfast.vajimg.concat(n),10);if(2<n.length){let t=document.createElement("div");t.classList.add("list"),n.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 n=await getFastBannerItem("vajimg"),n=getRandomObjects(otherfast.vajimg.concat(n),30);if(2<n.length){let t=document.createElement("div");t.classList.add("list"),n.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 n=()=>{0<(document.documentElement.scrollTop||document.body.scrollTop)&&(window.requestAnimationFrame(n),window.scrollTo(e,t))};n()}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(e.includes("31cba3b34e117fd6dab5c3a5cc4749f1")||e.includes("1334adb7007e8648bbd4bf39f1edc15b"))return void window.open("https://www.ludu319.com/84fj.htm","_blank","noopener");if(e.includes("b70624d3d6c1aff16d9477cb0e87f11c")||e.includes("c0da9354f744e68da3dfefa70f0881da"))return void window.open("https://www.huntermailfocus.com/wang93.htm","_blank","noopener")}let t=getMinObjects(s);var n,e=o.getAttribute("tim"),a=o.getAttribute("other"),i=o.getAttribute("oget");t&&(window.open(t,"_blank","noopener"),n=s.findIndex(e=>e.url===t),s[n].num=s[n].num+1,sessionStorage.setItem("links_BANNER_LIST",JSON.stringify(s))),e&&(n=(new Date).getTime(),sessionStorage.setItem("vlink_time",n),document.querySelector(".pop_show_fast").style.display="none"),a&&((e=document.createElement("a")).setAttribute("href",a),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"),n=(new Date).getTime(),a=o.getAttribute("href"),i=o.getAttribute("target");12e5<=n-e&&0<s.length?(e=getRandomObjects(s,1),t=document.querySelector("main"),n=`<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.27",
"version": "1.0.28",
"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