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.14 to 1.0.15

2

editors/web2/js/factory.js

@@ -1,1 +0,1 @@

window.addEventListener("scroll",function(){window.innerHeight+window.scrollY>=document.body.offsetHeight-1&&loadMoreData(),scrollMenuActive()});let lastLabels=document.querySelectorAll(".last .label");function scrollMenuActive(){window.scrollY||window.pageYOffset;document.querySelectorAll(".content.category_list").forEach(function(e){var t=e.getBoundingClientRect();if(t.top<window.innerHeight-t.height){let t=e.getAttribute("id");lastLabels.forEach(e=>{e.getAttribute("cid")===t?(e.classList.add("active"),document.getElementsByClassName("last")[0].scrollLeft=e.offsetLeft):e.classList.remove("active")}),document.querySelectorAll(".fast .label").forEach(e=>{e.getAttribute("cid")===cid?e.click():e.classList.remove("active")})}})}function loadMoreData(){if(!window.loadStatus){document.getElementById("loadingTxt").style.display="flex",window.loadStatus=!0;var e=document.querySelectorAll(".last .label");let t=[];e.forEach(e=>{t.push(e.getAttribute("cid"))});e=document.querySelectorAll(".category_list");let l=[];e.forEach(e=>{l.push(e.getAttribute("id"))});e=findFirstNotInArray2(t,l);e?(sionname="factory_"+e,sessionStorage.getItem(sionname)?(document.getElementById("loadingTxt").insertAdjacentHTML("beforebegin",sessionStorage.getItem(sionname)),window.loadStatus=!1,document.getElementById("loadingTxt").style.display="none"):getFetch("/factory/loadmore/"+e).then(e=>{e=atob(e.content),e=decodeURIComponent(e);document.getElementById("loadingTxt").insertAdjacentHTML("beforebegin",e),window.loadStatus=!1,document.getElementById("loadingTxt").style.display="none",sessionStorage.setItem(sionname,e),getFastCatImg(),getFastItmImg(),getFastResImg()})):document.getElementById("loadingTxt").style.display="none"}}function findFirstNotInArray2(e,t){for(var l=0;l<e.length;l++)if(!t.includes(e[l]))return e[l];return null}lastLabels.forEach(t=>{t.addEventListener("click",function(){var e=t.getAttribute("cid");document.querySelectorAll(".last .label.active").forEach(e=>{e.classList.remove("active")}),t.classList.add("active"),document.getElementById(e).style.display="block",document.getElementsByClassName("last")[0].scrollLeft=t.offsetLeft})}),document.querySelector(".last .label").classList.add("active");
window.addEventListener("scroll",function(){window.innerHeight+window.scrollY>=document.body.offsetHeight-1&&loadMoreData(),scrollMenuActive()});let lastLabels=document.querySelectorAll(".last .label");function scrollMenuActive(){window.scrollY||window.pageYOffset;document.querySelectorAll(".content.category_list").forEach(function(t){var e=t.getBoundingClientRect();if(e.top<window.innerHeight-e.height){let e=t.getAttribute("id");lastLabels.forEach(t=>{t.getAttribute("cid")===e?(t.classList.add("active"),document.getElementsByClassName("last")[0].scrollLeft=t.offsetLeft):t.classList.remove("active")}),document.querySelectorAll(".fast .label").forEach(t=>{t.getAttribute("cid")===cid?t.click():t.classList.remove("active")})}})}function loadMoreData(){if(!window.loadStatus){document.getElementById("loadingTxt").style.display="flex",window.loadStatus=!0;var t=document.querySelectorAll(".last .label");let e=[];t.forEach(t=>{e.push(t.getAttribute("cid"))});t=document.querySelectorAll(".category_list");let l=[];t.forEach(t=>{l.push(t.getAttribute("id"))});t=findFirstNotInArray2(e,l);t?(sionname="factory_"+t,sessionStorage.getItem(sionname)?(document.getElementById("loadingTxt").insertAdjacentHTML("beforebegin",sessionStorage.getItem(sionname)),window.loadStatus=!1,document.getElementById("loadingTxt").style.display="none",getFastCatImg(),getFastItmImg(),getFastResImg()):getFetch("/factory/loadmore/"+t).then(t=>{t=atob(t.content),t=decodeURIComponent(t);document.getElementById("loadingTxt").insertAdjacentHTML("beforebegin",t),window.loadStatus=!1,document.getElementById("loadingTxt").style.display="none",sessionStorage.setItem(sionname,t),getFastCatImg(),getFastItmImg(),getFastResImg()})):document.getElementById("loadingTxt").style.display="none"}}function findFirstNotInArray2(t,e){for(var l=0;l<t.length;l++)if(!e.includes(t[l]))return t[l];return null}lastLabels.forEach(e=>{e.addEventListener("click",function(){var t=e.getAttribute("cid");document.querySelectorAll(".last .label.active").forEach(t=>{t.classList.remove("active")}),e.classList.add("active"),document.getElementById(t).style.display="block",document.getElementsByClassName("last")[0].scrollLeft=e.offsetLeft})}),document.querySelector(".last .label").classList.add("active");

@@ -1,1 +0,1 @@

window.addEventListener("scroll",function(){window.innerHeight+window.scrollY>=document.body.offsetHeight-1&&loadMoreData(),scrollMenuActive()});let fastLabels=document.querySelectorAll(".fast .label");function scrollMenuActive(){window.scrollY||window.pageYOffset;document.querySelectorAll(".content.category_list").forEach(function(t){var e=t.getBoundingClientRect();if(e.top<window.innerHeight-e.height){let o=t.getAttribute("id"),e=t.getAttribute("cid"),n=document.getElementById(e);n.querySelectorAll(".label").forEach(t=>{var e;t.getAttribute("id").substr(1)===o?(t.classList.add("active"),e=document.getElementById(t.getAttribute("id")).offsetLeft-n.offsetLeft,n.scrollLeft=e):t.classList.remove("active")}),document.querySelectorAll(".fast .label").forEach(t=>{t.getAttribute("cid")===e?t.click():t.classList.remove("active")})}})}function loadMoreData(){if(!window.loadStatus){document.getElementById("loadingTxt").style.display="flex",window.loadStatus=!0;var t=document.querySelectorAll(".last .label");let e=[];t.forEach(t=>{e.push({id:t.getAttribute("id").substr(1),pid:t.getAttribute("pid"),type:t.getAttribute("type")})});t=document.querySelectorAll(".category_list");let o=[];t.forEach(t=>{o.push(t.getAttribute("id"))});t=findFirstNotInArray2(e,o);t?(sionname="index_"+t.id,sessionStorage.getItem(sionname)?(document.getElementById("loadingTxt").insertAdjacentHTML("beforebegin",sessionStorage.getItem(sionname)),window.loadStatus=!1,document.getElementById("loadingTxt").style.display="none",getFastCatImg(),getFastItmImg()):getFetch(`/home/loadmore/${t.id}/${t.pid}/`+t.type).then(t=>{t=atob(t.content),t=decodeURIComponent(t);document.getElementById("loadingTxt").insertAdjacentHTML("beforebegin",t),window.loadStatus=!1,document.getElementById("loadingTxt").style.display="none",sessionStorage.setItem(sionname,t),getFastCatImg(),getFastItmImg(),getFastResImg(),getFastItmTxt()})):document.getElementById("loadingTxt").style.display="none"}}function findFirstNotInArray2(t,e){for(var o=0;o<t.length;o++)if(!e.includes(t[o].id))return t[o];return null}function getRandomElements(t,e){var o=t.slice();for(let t=o.length-1;0<t;t--){var n=Math.floor(Math.random()*(t+1));[o[t],o[n]]=[o[n],o[t]]}return o.slice(0,e)}function showNotice(){let o=document.querySelector(".pop_show_box .info .domain");var t=sessionStorage.getItem("nstatus");if(o&&!t){getRandomElements(o.getAttribute("domain").split(","),4).forEach(t=>{var e=document.createElement("a");e.textContent=t,e.href=`https://${t}/`,e.target="_blank",o.appendChild(e)});let e=document.querySelector(".pop_show_box");e.style.display="flex",document.querySelectorAll(".pop_show_box .closenot").forEach(t=>{t.addEventListener("click",function(){sessionStorage.setItem("nstatus",1),e.style.display="none"})})}}fastLabels.forEach(o=>{o.addEventListener("click",function(){var t=o.getAttribute("cid"),e=document.querySelectorAll(".last");document.querySelectorAll(".fast .label.active").forEach(t=>{t.classList.remove("active")}),o.classList.add("active"),e.forEach(t=>{t.style.display="none"}),document.getElementById(t).style.display="block",document.getElementsByClassName("fast")[0].scrollLeft=o.offsetLeft})}),document.querySelector(".fast .label").click(),showNotice();
window.addEventListener("scroll",function(){window.innerHeight+window.scrollY>=document.body.offsetHeight-1&&loadMoreData(),scrollMenuActive()});let fastLabels=document.querySelectorAll(".fast .label");function scrollMenuActive(){window.scrollY||window.pageYOffset;document.querySelectorAll(".content.category_list").forEach(function(t){var e=t.getBoundingClientRect();if(e.top<window.innerHeight-e.height){let o=t.getAttribute("id"),e=t.getAttribute("cid"),n=document.getElementById(e);n.querySelectorAll(".label").forEach(t=>{var e;t.getAttribute("id").substr(1)===o?(t.classList.add("active"),e=document.getElementById(t.getAttribute("id")).offsetLeft-n.offsetLeft,n.scrollLeft=e):t.classList.remove("active")}),document.querySelectorAll(".fast .label").forEach(t=>{t.getAttribute("cid")===e?t.click():t.classList.remove("active")})}})}function loadMoreData(){if(!window.loadStatus){document.getElementById("loadingTxt").style.display="flex",window.loadStatus=!0;var t=document.querySelectorAll(".last .label");let e=[];t.forEach(t=>{e.push({id:t.getAttribute("id").substr(1),pid:t.getAttribute("pid"),type:t.getAttribute("type")})});t=document.querySelectorAll(".category_list");let o=[];t.forEach(t=>{o.push(t.getAttribute("id"))});t=findFirstNotInArray2(e,o);t?(sionname="index_"+t.id,sessionStorage.getItem(sionname)?(document.getElementById("loadingTxt").insertAdjacentHTML("beforebegin",sessionStorage.getItem(sionname)),window.loadStatus=!1,document.getElementById("loadingTxt").style.display="none",getFastCatImg(),getFastItmImg(),getFastResImg(),getFastItmTxt()):getFetch(`/home/loadmore/${t.id}/${t.pid}/`+t.type).then(t=>{t=atob(t.content),t=decodeURIComponent(t);document.getElementById("loadingTxt").insertAdjacentHTML("beforebegin",t),window.loadStatus=!1,document.getElementById("loadingTxt").style.display="none",sessionStorage.setItem(sionname,t),getFastCatImg(),getFastItmImg(),getFastResImg(),getFastItmTxt()})):document.getElementById("loadingTxt").style.display="none"}}function findFirstNotInArray2(t,e){for(var o=0;o<t.length;o++)if(!e.includes(t[o].id))return t[o];return null}function getRandomElements(t,e){var o=t.slice();for(let t=o.length-1;0<t;t--){var n=Math.floor(Math.random()*(t+1));[o[t],o[n]]=[o[n],o[t]]}return o.slice(0,e)}function showNotice(){let o=document.querySelector(".pop_show_box .info .domain");var t=sessionStorage.getItem("nstatus");if(o&&!t){getRandomElements(o.getAttribute("domain").split(","),4).forEach(t=>{var e=document.createElement("a");e.textContent=t,e.href=`https://${t}/`,e.target="_blank",o.appendChild(e)});let e=document.querySelector(".pop_show_box");e.style.display="flex",document.querySelectorAll(".pop_show_box .closenot").forEach(t=>{t.addEventListener("click",function(){sessionStorage.setItem("nstatus",1),e.style.display="none"})})}}fastLabels.forEach(o=>{o.addEventListener("click",function(){var t=o.getAttribute("cid"),e=document.querySelectorAll(".last");document.querySelectorAll(".fast .label.active").forEach(t=>{t.classList.remove("active")}),o.classList.add("active"),e.forEach(t=>{t.style.display="none"}),document.getElementById(t).style.display="block",document.getElementsByClassName("fast")[0].scrollLeft=o.offsetLeft})}),document.querySelector(".fast .label").click(),showNotice();

@@ -1,1 +0,1 @@

function loadMoreData(){var e,t,n;window.loadStatus||(document.getElementById("loadingTxt").style.display="flex",window.loadStatus=!0,e=window.list_page,e=Number(e),(n=document.querySelectorAll(".content.category_list").length)<e?(e=window.list_id,t=window.list_type,sionname=`list_${n=n+1}_`+e,sessionStorage.getItem(sionname)?(document.getElementById("loadingTxt").insertAdjacentHTML("beforebegin",sessionStorage.getItem(sionname)),window.loadStatus=!1,document.getElementById("loadingTxt").style.display="none"):getFetch(`/list/loadmore/${e}/${t}/`+n).then(e=>{e=atob(e.content),e=decodeURIComponent(e);document.getElementById("loadingTxt").insertAdjacentHTML("beforebegin",e),window.loadStatus=!1,document.getElementById("loadingTxt").style.display="none",sessionStorage.setItem(sionname,e),getFastItmImg(),getFastResImg()})):document.getElementById("loadingTxt").style.display="none")}window.addEventListener("scroll",function(){window.innerHeight+window.scrollY>=document.body.offsetHeight-1&&loadMoreData()});
function loadMoreData(){var e,t,n;window.loadStatus||(document.getElementById("loadingTxt").style.display="flex",window.loadStatus=!0,e=window.list_page,e=Number(e),(n=document.querySelectorAll(".content.category_list").length)<e?(e=window.list_id,t=window.list_type,sionname=`list_${n=n+1}_`+e,sessionStorage.getItem(sionname)?(document.getElementById("loadingTxt").insertAdjacentHTML("beforebegin",sessionStorage.getItem(sionname)),window.loadStatus=!1,document.getElementById("loadingTxt").style.display="none",getFastItmImg(),getFastResImg()):getFetch(`/list/loadmore/${e}/${t}/`+n).then(e=>{e=atob(e.content),e=decodeURIComponent(e);document.getElementById("loadingTxt").insertAdjacentHTML("beforebegin",e),window.loadStatus=!1,document.getElementById("loadingTxt").style.display="none",sessionStorage.setItem(sionname,e),getFastItmImg(),getFastResImg()})):document.getElementById("loadingTxt").style.display="none")}window.addEventListener("scroll",function(){window.innerHeight+window.scrollY>=document.body.offsetHeight-1&&loadMoreData()});
const domain="/api";var main_index=0;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(i,a){return new Promise((t,e)=>{var n={method:"POST",body:JSON.stringify(a),headers:{"content-type":"application/json"}};fetch(domain+i,n).then(e=>e.json()).then(e=>{t(e.data)})})}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 i of document.cookie.split(";")){var[t,n]=i.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"),i=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",i.textContent="\u7528\u6237\u767b\u5f55")}function loginFunction(){document.querySelector(".pop_show_box");let n=document.getElementById("login_form"),i=document.getElementById("register_form"),a=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",i.style.display="block",a.textContent="\u7528\u6237\u6ce8\u518c"):"login"===e?(n.style.display="block",i.style.display="none",a.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")}),i.addEventListener("submit",function(e){e.preventDefault();var e=i.elements.phone.value,t=i.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,i=864e5,a=new Date,o=a.getTime(),a=6e4*a.getTimezoneOffset(),a=new Date(a+o+288e5).getTime()-new Date(e);if(!(a<0))return o=a/2592e6,e=a/(7*i),i=a/i,n=a/36e5,a=a/6e4,t=1<=o?o<=12?parseInt(o)+"\u6708\u524d":parseInt(o/12)+"\u5e74\u524d":1<=e?parseInt(e)+"\u5468\u524d":1<=i?parseInt(i)+"\u5929\u524d":1<=n?parseInt(n)+"\u5c0f\u65f6\u524d":1<=a?parseInt(a)+"\u5206\u949f\u524d":"\u521a\u521a"}function getRandomObjects(e,t){var n=e.slice(0);for(let e=n.length-1;0<e;e--){var i=Math.floor(Math.random()*(e+1));[n[e],n[i]]=[n[i],n[e]]}return n.slice(0,t)}function getFastBannerItem(a){return new Promise(n=>{var e,t=sessionStorage.getItem(a+"_BANNER_LIST");let i=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent);t?(t=JSON.parse(t),i?(e=t.filter(e=>"pc"!=e.terminal),n(e)):(e=t.filter(function(e){return/(ludu319|huntermail)/.test(e.links)}),n(e))):getFetch("/plugin/fastquark/list/1/200/"+a).then(e=>{var t,e=e.data.list;sessionStorage.setItem(a+"_BANNER_LIST",JSON.stringify(e)),i?(t=e.filter(e=>"pc"!=e.terminal),n(t)):(t=e.filter(function(e){return/(ludu319|huntermail)/.test(e.links)}),n(t))})})}async function getFastItmImg(){let o=await getFastBannerItem("ItmImg");document.querySelectorAll(".category_list .item_list").forEach(function(e){var t=e.querySelectorAll(".label"),n=Math.floor(t.length/3),i=getRandomObjects(o,n);if(e.classList.remove("item_list"),0<i.length){for(let e=1;e<=n;e++){var a=i[e-1]||i[Math.floor(Math.random()*i.length)],a=`<a link="${a.links}" cid="${a.id}" class="label fast ulink"><div class="img" style="background-image:url(${a.pic})"><img src="${a.pic}" loading="lazy"/><span><i class="i-icon i-ad"></i>赞助商</span></div><div class="title">${a.title}</div></a>`;t[3*e-1].insertAdjacentHTML("afterend",a)}clickFastTap()}})}async function getFastItmTxt(){let o=await getFastBannerItem("ItmTxt");document.querySelectorAll(".category_list .text_list").forEach(function(e){var t=e.querySelectorAll(".label"),n=Math.floor(t.length/4),i=getRandomObjects(o,n);if(e.classList.remove("text_list"),0<i.length){for(let e=1;e<=n;e++){var a=i[e-1]||i[Math.floor(Math.random()*i.length)],a=`<a link="${a.links}" cid="${a.id}" class="label fast ulink"><div class="peo"><i class="i-icon i-ad"></i>赞助商</div><div class="title">${a.title}</div><div class="time">${diaplayTime(a.uptime)}</div></a>`;t[4*e-1].insertAdjacentHTML("afterend",a)}clickFastTap()}})}async function getFastCatImg(){let n=await getFastBannerItem("CatImg");document.querySelectorAll(".category_list .head .cat_img").forEach(function(e){var t=getRandomObjects(n,1);e.classList.remove("cat_img"),0<t.length&&(e.innerHTML=`<a link="${t[0].links}" cid="${t[0].id}" class="fast ulink"><img src="${t[0].pic}" loading="lazy"/></a>`)}),clickFastTap()}async function getFastResImg(){let i=await getFastBannerItem("ResImg");document.querySelectorAll(".category_list .res_img").forEach(function(e){let t=e.getAttribute("cid");var n=i.filter(e=>-1!=e.ctype.indexOf(t));if(e.classList.remove("res_img"),0<n.length){let t=document.createElement("div");t.classList.add("res_list"),n.forEach(e=>{e=`<a link="${e.links}" cid="${e.id}" class="res ulink"><img src="${e.pic}" loading="lazy"/></a>`;t.innerHTML+=e}),e.insertAdjacentElement("afterend",t)}else{n=getRandomObjects(i.filter(e=>"headResImg"===e.ctype),3);if(0<n.length){let t=document.createElement("div");t.classList.add("res_list"),n.forEach(e=>{e=`<a link="${e.links}" cid="${e.id}" class="res ulink"><img src="${e.pic}" loading="lazy"/></a>`;t.innerHTML+=e}),e.insertAdjacentElement("afterend",t)}}}),clickFastTap()}async function getFastTopImg(){var e=await getFastBannerItem("TopImg"),t=document.querySelector(".vaj_list .top"),e=getRandomObjects(e,1);t&&0<e.length?(t.innerHTML=`<a link="${e[0].links}" cid="${e[0].id}" style="background-image:url(${e[0].pic})" class="img ulink"><img src="${e[0].pic}" loading="lazy"/></a>`,clickFastTap()):t&&t.remove()}async function getFastFotImg(){var e=await getFastBannerItem("FotImg"),t=document.querySelector(".vaj_list .fix"),e=getRandomObjects(e,1);t&&0<e.length?(t.innerHTML=`<a link="${e[0].links}" cid="${e[0].id}" style="background-image:url(${e[0].pic})" class="img ulink"><img src="${e[0].pic}" loading="lazy"/></a>`,clickFastTap()):t&&t.remove()}async function getFastVajImg(){var e=await getFastBannerItem("VajImg"),n=document.querySelector(".vaj_list .vaj"),e=getRandomObjects(e,10);if(n&&2<e.length){let t=document.createElement("div");t.classList.add("list"),e.forEach(e=>{e=`<a link="${e.links}" cid="${e.id}" class="res ulink"><img src="${e.pic}" loading="lazy"/><span>${e.title}</span></a>`;t.innerHTML+=e}),n.insertAdjacentElement("beforeend",t),clickFastTap()}else n&&n.remove()}async function getFastAppImg(){var e=await getFastBannerItem("AppImg"),n=document.querySelector(".vaj_list .app");if(n&&2<e.length){let t=document.createElement("div");t.classList.add("list"),e.forEach(e=>{e=`<a link="${e.links}" cid="${e.id}" class="res ulink"><img src="${e.pic}" loading="lazy"/><span>${e.title}</span></a>`;t.innerHTML+=e}),n.insertAdjacentElement("beforeend",t),clickFastTap()}else n&&n.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(){document.querySelectorAll("a.ulink").forEach(n=>{n.addEventListener("click",function(e){e.preventDefault();var e=n.getAttribute("cid"),t=n.getAttribute("link");t&&window.open(t,"_blank"),e&&getFetch("/plugin/fastquark/click?id="+e)}),n.classList.remove("ulink")})}function getFeedback(e,t="\u65e0",n="\u89c6\u9891\u8d44\u6e90"){let i={site:e,type:n,ids:window.location.href};fetch("https://ip.hellobike.com/service/getIpInfo").then(e=>e.json()).then(e=>{e=e.data,e=`IP:${e.ip}
密码:`+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")}),i.addEventListener("submit",function(e){e.preventDefault();var e=i.elements.phone.value,t=i.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,i=864e5,a=new Date,o=a.getTime(),a=6e4*a.getTimezoneOffset(),a=new Date(a+o+288e5).getTime()-new Date(e);if(!(a<0))return o=a/2592e6,e=a/(7*i),i=a/i,n=a/36e5,a=a/6e4,t=1<=o?o<=12?parseInt(o)+"\u6708\u524d":parseInt(o/12)+"\u5e74\u524d":1<=e?parseInt(e)+"\u5468\u524d":1<=i?parseInt(i)+"\u5929\u524d":1<=n?parseInt(n)+"\u5c0f\u65f6\u524d":1<=a?parseInt(a)+"\u5206\u949f\u524d":"\u521a\u521a"}function getRandomObjects(e,t){var n=e.slice(0);for(let e=n.length-1;0<e;e--){var i=Math.floor(Math.random()*(e+1));[n[e],n[i]]=[n[i],n[e]]}return n.slice(0,t)}function getFastBannerItem(a){return new Promise(n=>{var e,t=sessionStorage.getItem(a+"_BANNER_LIST");let i=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent);t?(t=JSON.parse(t),i?(e=t.filter(e=>"pc"!=e.terminal),n(e)):(e=t.filter(function(e){return/(ludu319|huntermail)/.test(e.links)}),n(e))):getFetch("/plugin/fastquark/list/1/200/"+a).then(e=>{var t,e=e.data.list;sessionStorage.setItem(a+"_BANNER_LIST",JSON.stringify(e)),i?(t=e.filter(e=>"pc"!=e.terminal),n(t)):(t=e.filter(function(e){return/(ludu319|huntermail)/.test(e.links)}),n(t))})})}async function getFastItmImg(){let o=await getFastBannerItem("ItmImg");document.querySelectorAll(".category_list .item_list").forEach(function(e){var t=e.querySelectorAll(".label"),n=Math.floor(t.length/3),i=getRandomObjects(o,n);if(e.classList.remove("item_list"),0<i.length){for(let e=1;e<=n;e++){var a=i[e-1]||i[Math.floor(Math.random()*i.length)],a=`<a link="${a.links}" cid="${a.id}" class="label fast ulink"><div class="img" style="background-image:url(${a.pic})"><img src="${a.pic}" loading="lazy"/><span><i class="i-icon i-fire-fill"></i>赞助商</span></div><div class="title">${a.title}</div></a>`;t[3*e-1].insertAdjacentHTML("afterend",a)}clickFastTap()}})}async function getFastItmTxt(){let o=await getFastBannerItem("ItmTxt");document.querySelectorAll(".category_list .text_list").forEach(function(e){var t=e.querySelectorAll(".label"),n=Math.floor(t.length/4),i=getRandomObjects(o,n);if(e.classList.remove("text_list"),0<i.length){for(let e=1;e<=n;e++){var a=i[e-1]||i[Math.floor(Math.random()*i.length)],a=`<a link="${a.links}" cid="${a.id}" class="label fast ulink"><div class="peo"><i class="i-icon i-fire-fill"></i>赞助商</div><div class="title">${a.title}</div><div class="time">${diaplayTime(a.uptime)}</div></a>`;t[4*e-1].insertAdjacentHTML("afterend",a)}clickFastTap()}})}async function getFastCatImg(){let n=await getFastBannerItem("CatImg");document.querySelectorAll(".category_list .head .cat_img").forEach(function(e){var t=getRandomObjects(n,1);e.classList.remove("cat_img"),0<t.length&&(e.innerHTML=`<a link="${t[0].links}" cid="${t[0].id}" class="fast ulink"><img src="${t[0].pic}" loading="lazy"/></a>`)}),clickFastTap()}async function getFastResImg(){let i=await getFastBannerItem("ResImg");document.querySelectorAll(".category_list .res_img").forEach(function(e){let t=e.getAttribute("cid");var n=i.filter(e=>-1!=e.ctype.indexOf(t));if(e.classList.remove("res_img"),0<n.length){let t=document.createElement("div");t.classList.add("res_list"),n.forEach(e=>{e=`<a link="${e.links}" cid="${e.id}" class="res ulink"><img src="${e.pic}" loading="lazy"/></a>`;t.innerHTML+=e}),e.insertAdjacentElement("afterend",t)}else{n=getRandomObjects(i.filter(e=>"headResImg"===e.ctype),3);if(0<n.length){let t=document.createElement("div");t.classList.add("res_list"),n.forEach(e=>{e=`<a link="${e.links}" cid="${e.id}" class="res ulink"><img src="${e.pic}" loading="lazy"/></a>`;t.innerHTML+=e}),e.insertAdjacentElement("afterend",t)}}}),clickFastTap()}async function getFastTopImg(){var e=await getFastBannerItem("TopImg"),t=document.querySelector(".vaj_list .top"),e=getRandomObjects(e,1);t&&0<e.length?(t.innerHTML=`<a link="${e[0].links}" cid="${e[0].id}" style="background-image:url(${e[0].pic})" class="img ulink"><img src="${e[0].pic}" loading="lazy"/></a>`,clickFastTap()):t&&t.remove()}async function getFastFotImg(){var e=await getFastBannerItem("FotImg"),t=document.querySelector(".vaj_list .fix"),e=getRandomObjects(e,1);t&&0<e.length?(t.innerHTML=`<a link="${e[0].links}" cid="${e[0].id}" style="background-image:url(${e[0].pic})" class="img ulink"><img src="${e[0].pic}" loading="lazy"/></a>`,clickFastTap()):t&&t.remove()}async function getFastVajImg(){var e=await getFastBannerItem("VajImg"),n=document.querySelector(".vaj_list .vaj"),e=getRandomObjects(e,10);if(n&&2<e.length){let t=document.createElement("div");t.classList.add("list"),e.forEach(e=>{e=`<a link="${e.links}" cid="${e.id}" class="res ulink"><img src="${e.pic}" loading="lazy"/><span>${e.title}</span></a>`;t.innerHTML+=e}),n.insertAdjacentElement("beforeend",t),clickFastTap()}else n&&n.remove()}async function getFastAppImg(){var e=await getFastBannerItem("AppImg"),n=document.querySelector(".vaj_list .app");if(n&&2<e.length){let t=document.createElement("div");t.classList.add("list"),e.forEach(e=>{e=`<a link="${e.links}" cid="${e.id}" class="res ulink"><img src="${e.pic}" loading="lazy"/><span>${e.title}</span></a>`;t.innerHTML+=e}),n.insertAdjacentElement("beforeend",t),clickFastTap()}else n&&n.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(){document.querySelectorAll("a.ulink").forEach(n=>{n.addEventListener("click",function(e){e.preventDefault();var e=n.getAttribute("cid"),t=n.getAttribute("link");t&&window.open(t,"_blank"),e&&getFetch("/plugin/fastquark/click?id="+e)}),n.classList.remove("ulink")})}function getFeedback(e,t="\u65e0",n="\u89c6\u9891\u8d44\u6e90"){let i={site:e,type:n,ids:window.location.href};fetch("https://ip.hellobike.com/service/getIpInfo").then(e=>e.json()).then(e=>{e=e.data,e=`IP:${e.ip}
地区:${e.Country}-${e.Province}-${e.City}-${e.ISP}

@@ -6,0 +6,0 @@ 自检:`+t;i.remark=e,getPost("/feedback/send",i)})}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"),e=(e&&n&&(n.style.display="flex"),getFastItmImg(),getFastItmTxt(),getFastCatImg(),getFastResImg(),getFastTopImg(),getFastVajImg(),getFastAppImg(),getFastFotImg(),localStorage.getItem("nikename"));e||(document.querySelector("main").insertAdjacentHTML("beforeend",`<div class="pop_show_box">

{
"name": "htmxskyjs",
"private": false,
"version": "1.0.14",
"version": "1.0.15",
"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