Socket
Socket
Sign inDemoInstall

anzhiyu-blog

Package Overview
Dependencies
0
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.6 to 1.0.7

categories/前端/index.html

8

js/clock.min.js

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

/**
* Minified by jsDelivr using Terser v5.3.5.
* Original file: /npm/hexo-butterfly-clock@1.0.6/lib/clock.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
fetch("https://wttr.in/"+returnCitySN.cip+'?format="%l+\\+%c+\\+%t+\\+%h"').then((c=>c.text())).then((c=>{if(document.getElementById("hexo_electric_clock")){var e=c.replace(/not found/g,"not found,not found").replace(/"/g,"").replace(/\+/g,"").replace(/,/g,"\\").replace(/ /g,"").replace(/°C/g,"");res_list=e.split("\\");var t=document.getElementById("hexo_electric_clock");clock_box_html=`\n <div class="clock-row">\n <span id="card-clock-clockdate" class="card-clock-clockdate"></span>\n <span class="card-clock-weather">${res_list[2]} ${res_list[3]} *C</span>\n <span class="card-clock-humidity">💧 ${res_list[4]}</span>\n </div>\n <div class="clock-row">\n <span id="card-clock-time" class="card-clock-time"></span>\n </div>\n <div class="clock-row">\n <span class="card-clock-ip">${returnCitySN.cip}</span>\n <span class="card-clock-location">${res_list[0]}</span>\n <span id="card-clock-dackorlight" class="card-clock-dackorlight"></span>\n </div>\n `;var n=["SUN","MON","TUE","WED","THU","FRI","SAT"];function l(){var c,e=new Date,t=a(e.getHours(),2)+":"+a(e.getMinutes(),2)+":"+a(e.getSeconds(),2),l=a(e.getFullYear(),4)+"-"+a(e.getMonth()+1,2)+"-"+a(e.getDate(),2)+" "+n[e.getDay()],o=e.getHours();if(o>12?(o-=12,c=" PM"):c=" AM",document.getElementById("card-clock-time")){var r=document.getElementById("card-clock-time"),s=document.getElementById("card-clock-clockdate"),d=document.getElementById("card-clock-dackorlight");r.innerHTML=t,s.innerHTML=l,d.innerHTML=c}}function a(c,e){for(var t="",n=0;n<e;n++)t+="0";return(t+c).slice(-e)}document.getElementById("card-clock-loading").innerHTML="",t.innerHTML=clock_box_html;setInterval(l,1e3);l(),console.log(res_list)}}));
fetch("https://restapi.amap.com/v3/ip?key=e2b04289e870b005374ee030148d64fd&s=rsv3").then(res=>res.json()).then(data=>{fetch(`https://devapi.qweather.com/v7/weather/now?location=${data.rectangle.split(";")[0]}&key=b16a1fa0e63c46a4b8f28abfb06ae3fe`).then(res2=>res2.json()).then(data2=>{if(document.getElementById("hexo_electric_clock")){var res_text1=data,res_text2=data2,clock_box=document.getElementById("hexo_electric_clock");let currentColor="#000";switch(res_text2.now.icon){case"100":currentColor="#fdcc45";break;case"101":currentColor="#fe6976";break;case"102":case"103":currentColor="#fe7f5b";break;case"104":case"150":case"151":case"152":case"153":case"154":currentColor="#2152d1";break;case"300":case"301":currentColor="#49b1f5";break;case"302":case"303":case"304":currentColor="#fdcc46";break;case"305":case"306":case"307":case"308":case"309":case"310":case"311":case"312":case"313":case"314":case"315":case"316":case"317":case"318":case"350":case"351":case"399":currentColor="#49b1f5";break;case"400":case"401":case"402":case"403":case"404":case"405":case"406":case"407":case"408":case"409":case"410":case"456":case"457":case"499":currentColor="#a3c2dc";break;case"500":case"501":case"502":case"503":case"504":case"507":case"508":case"509":case"510":case"511":case"512":case"513":case"514":case"515":currentColor="#97acba";break;case"800":case"801":case"802":case"803":case"804":case"805":case"806":case"807":currentColor="#2152d1";break;case"900":currentColor="red";break;case"901":currentColor="#179fff;";break;case"999":currentColor="red"}clock_box_html=`\n <div class="clock-row">\n <span id="card-clock-clockdate" class="card-clock-clockdate"></span>\n <span class="card-clock-weather"><i class="qi-${res_text2.now.icon}-fill" style="color: ${currentColor}"></i> ${res_text2.now.text} <span>${res_text2.now.temp}</span> ℃</span>\n <span class="card-clock-humidity">💧 ${res_text2.now.humidity}%</span>\n </div>\n <div class="clock-row">\n <span id="card-clock-time" class="card-clock-time"></span>\n </div>\n <div class="clock-row">\n <span class="card-clock-windDir"> <i class="qi-gale"></i> ${res_text2.now.windDir}</span>\n <span class="card-clock-location">${res_text1.city}</span>\n <span id="card-clock-dackorlight" class="card-clock-dackorlight"></span>\n </div>\n `;var week=["SUN","MON","TUE","WED","THU","FRI","SAT"],card_clock_loading_dom;function updateTime(){var cd=new Date,card_clock_time=zeroPadding(cd.getHours(),2)+":"+zeroPadding(cd.getMinutes(),2)+":"+zeroPadding(cd.getSeconds(),2),card_clock_date=zeroPadding(cd.getFullYear(),4)+"-"+zeroPadding(cd.getMonth()+1,2)+"-"+zeroPadding(cd.getDate(),2)+" "+week[cd.getDay()],card_clock_dackorlight=cd.getHours(),card_clock_dackorlight_str;if(card_clock_dackorlight>12?(card_clock_dackorlight-=12,card_clock_dackorlight_str=" P M"):card_clock_dackorlight_str=" A M",document.getElementById("card-clock-time")){var card_clock_time_dom=document.getElementById("card-clock-time"),card_clock_date_dom=document.getElementById("card-clock-clockdate"),card_clock_dackorlight_dom=document.getElementById("card-clock-dackorlight");card_clock_time_dom.innerHTML=card_clock_time,card_clock_date_dom.innerHTML=card_clock_date,card_clock_dackorlight_dom.innerHTML=card_clock_dackorlight_str}}function zeroPadding(num,digit){for(var zero="",i=0;i<digit;i++)zero+="0";return(zero+num).slice(-digit)}document.getElementById("card-clock-loading").innerHTML="",clock_box.innerHTML=clock_box_html;var timerID=setInterval(updateTime,1e3);updateTime()}})});

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

{"name":"anzhiyu-blog","version":"1.0.6","description":"博客静态资源","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/anzhiyu-c/anzhiyu-c.github.io.git"},"keywords":["anzhiyu","blog"],"author":"anzhiyu","license":"ISC","bugs":{"url":"https://github.com/anzhiyu-c/anzhiyu-c.github.io/issues"},"homepage":"https://github.com/anzhiyu-c/anzhiyu-c.github.io#readme"}
{"name":"anzhiyu-blog","version":"1.0.7","description":"博客静态资源","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/anzhiyu-c/anzhiyu-c.github.io.git"},"keywords":["anzhiyu","blog"],"author":"anzhiyu","license":"ISC","bugs":{"url":"https://github.com/anzhiyu-c/anzhiyu-c.github.io/issues"},"homepage":"https://github.com/anzhiyu-c/anzhiyu-c.github.io#readme"}

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

const workboxVersion="5.1.3";importScripts("https://storage.googleapis.com/workbox-cdn/releases/5.1.3/workbox-sw.js"),workbox.core.setCacheNameDetails({prefix:"安知鱼"}),workbox.core.skipWaiting(),workbox.core.clientsClaim(),workbox.precaching.precacheAndRoute([{revision:"fe4bea04b7746731dc351c506c515907",url:"./404.html"},{revision:"ef8554bd26c5f85a06ef674b01109424",url:"./index.html"},{revision:"7476995b016f5f8b01e78b9e843e339a",url:"./js/main.js"},{revision:"dbb0a73eedc208dacb93092ce1bad052",url:"./css/index.css"}],{directoryIndex:null}),workbox.precaching.cleanupOutdatedCaches(),workbox.routing.registerRoute(/\.(?:eot|ttf|woff|woff2)$/,new workbox.strategies.CacheFirst({cacheName:"fonts",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/^https:\/\/fonts\.googleapis\.com/,new workbox.strategies.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets"})),workbox.routing.registerRoute(/^https:\/\/fonts\.gstatic\.com/,new workbox.strategies.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.googleAnalytics.initialize();
const workboxVersion="5.1.3";importScripts("https://storage.googleapis.com/workbox-cdn/releases/5.1.3/workbox-sw.js"),workbox.core.setCacheNameDetails({prefix:"安知鱼"}),workbox.core.skipWaiting(),workbox.core.clientsClaim(),workbox.precaching.precacheAndRoute([{revision:"baa5aea996698b19694ea5a69ce497a9",url:"./404.html"},{revision:"10e8182a0444d0a0517c07d6b039d89b",url:"./index.html"},{revision:"7476995b016f5f8b01e78b9e843e339a",url:"./js/main.js"},{revision:"4910dd4c4349df20b3a86aa9d8d60491",url:"./css/index.css"}],{directoryIndex:null}),workbox.precaching.cleanupOutdatedCaches(),workbox.routing.registerRoute(/\.(?:eot|ttf|woff|woff2)$/,new workbox.strategies.CacheFirst({cacheName:"fonts",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/^https:\/\/fonts\.googleapis\.com/,new workbox.strategies.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets"})),workbox.routing.registerRoute(/^https:\/\/fonts\.gstatic\.com/,new workbox.strategies.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.googleAnalytics.initialize();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc