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.13 to 1.0.14

2

editors/web2/js/cartoon.js

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

let orderBtn=document.getElementById("order"),btn=(orderBtn.addEventListener("click",function(){let e=document.querySelector(".chapter_list");for(var t=e.getElementsByTagName("a"),t=Array.prototype.slice.call(t).reverse();e.firstChild;)e.removeChild(e.firstChild);t.forEach(function(t){e.appendChild(t)}),"1"===orderBtn.getAttribute("type")?(orderBtn.setAttribute("type","2"),orderBtn.innerHTML='<i class="i-icon i-order-descending"></i>\u6b63\u5e8f'):(orderBtn.setAttribute("type","1"),orderBtn.innerHTML='<i class="i-icon i-order-ascending"></i>\u5012\u5e8f')}),document.querySelector(".box .left .label"));function addHistoryCartoon(e,r){var t;localStorage.getItem("nikename")&&(t=location.pathname.split("/").pop().split(".")[0],getFetch(`/plugin/cartoon/resource/status?id=${t}&type=${e}&status=`+r).then(t=>{2===e&&r?(alert("\u6536\u85cf\u6210\u529f\uff01"),btn.setAttribute("type","cav"),btn.innerHTML='<i class="i-icon i-heart-filled"></i>\u53d6\u6d88\u6536\u85cf'):2!==e||r||(alert("\u5df2\u53d6\u6d88\u6536\u85cf\uff01"),btn.setAttribute("type","fav"),btn.innerHTML='<i class="i-icon i-heart"></i>\u6536\u85cf')}))}btn.addEventListener("click",function(t){var e=localStorage.getItem("nikename"),r=btn.getAttribute("type");e?addHistoryCartoon(2,"fav"===r):openPopShowTap()}),addHistoryCartoon(1,!0);
let orderBtn=document.getElementById("order"),btn=(orderBtn.addEventListener("click",function(){let e=document.querySelector(".chapter_list");for(var t=e.getElementsByTagName("a"),t=Array.prototype.slice.call(t).reverse();e.firstChild;)e.removeChild(e.firstChild);t.forEach(function(t){e.appendChild(t)}),"1"===orderBtn.getAttribute("type")?(orderBtn.setAttribute("type","2"),orderBtn.innerHTML='<i class="i-icon i-order-descending"></i>\u6b63\u5e8f'):(orderBtn.setAttribute("type","1"),orderBtn.innerHTML='<i class="i-icon i-order-ascending"></i>\u5012\u5e8f')}),document.querySelector(".box .left .label"));function addHistoryCartoon(e,n){var t;localStorage.getItem("nikename")&&(t=location.pathname.split("/").pop().split(".")[0],getFetch(`/plugin/cartoon/resource/status?id=${t}&type=${e}&status=`+n).then(t=>{2===e&&n?(alert("\u6536\u85cf\u6210\u529f\uff01"),btn.setAttribute("type","cav"),btn.innerHTML='<i class="i-icon i-heart-filled"></i>\u53d6\u6d88\u6536\u85cf'):2!==e||n||(alert("\u5df2\u53d6\u6d88\u6536\u85cf\uff01"),btn.setAttribute("type","fav"),btn.innerHTML='<i class="i-icon i-heart"></i>\u6536\u85cf')}))}async function getFastTxtList(){var t=await getFastBannerItem("ItmTxt");if(0!==t.length){var n,i,r=document.querySelectorAll(".chapter_list a"),a=Math.floor(r.length/4),o=getRandomObjects(t,a);let e=0;for(let t=0;t<r.length;t++)(t+1)%4==0&&((n=document.createElement("a")).className="label ulink",i=o[e]||o[Math.floor(Math.random()*o.length)],n.setAttribute("cid",i.id),n.setAttribute("link",i.links),n.innerHTML=`<span><i class="i-icon i-ad"></i> ${i.title}</span>`,r[t].parentNode.insertBefore(n,r[t].nextSibling),e++);clickFastTap()}}btn.addEventListener("click",function(t){var e=localStorage.getItem("nikename"),n=btn.getAttribute("type");e?addHistoryCartoon(2,"fav"===n):openPopShowTap()}),addHistoryCartoon(1,!0),getFastTxtList();
{
"name": "htmxskyjs",
"private": false,
"version": "1.0.13",
"version": "1.0.14",
"description": "high power tools for html",

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

Sorry, the diff of this file is not supported yet

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