q78kgblog 0.0.0-1720441708496 → 0.0.0-1720859005089
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/404.html +3 -3
- package/about/index.html +5 -5
- package/archives/2023/02/index.html +4 -4
- package/archives/2023/04/index.html +4 -4
- package/archives/2023/05/index.html +4 -4
- package/archives/2023/08/index.html +4 -4
- package/archives/2023/09/index.html +4 -4
- package/archives/2023/index.html +4 -4
- package/archives/2024/01/index.html +4 -4
- package/archives/2024/02/index.html +4 -4
- package/archives/2024/index.html +4 -4
- package/archives/index.html +4 -4
- package/atom.xml +9 -9
- package/baidusitemap.xml +8 -8
- package/bangumis/index.html +4 -4
- package/bigpie/index.html +3 -3
- package/categories/Hexo/index.html +4 -4
- package/categories/index.html +3 -3
- package/categories//345/271/264/347/273/210/346/200/273/347/273/223/index.html +4 -4
- package/categories//347/264/240/346/235/220/index.html +4 -4
- package/categories//351/227/262/350/201/212/346/235/202/350/260/210/index.html +4 -4
- package/content.json +1 -1
- package/css/404page.css +1 -65
- package/css/ariasakablog.css +1 -6669
- package/css/commentBarrage.css +1 -118
- package/css/danmaku.css +1 -106
- package/css/essay.css +1 -306
- package/css/iconfont.css +1 -55
- package/css/index.css +1 -7006
- package/css/people.css +1 -18
- package/css/stylessimple.css +1 -40
- package/css/swiperstyle.css +1 -567
- package/fcircle/index.html +3 -3
- package/fontawesome/index.html +3 -3
- package/index.html +11 -11
- package/js/aplayersave.js +1 -268
- package/js/baiduhistory.js +1 -76
- package/js/browser.js +1 -35
- package/js/calendar.js +1 -380
- package/js/cate.js +1 -22
- package/js/commentBarrage.js +17 -232
- package/js/commentsCount.js +1 -43
- package/js/copy.js +1 -23
- package/js/countup.js +1 -209
- package/js/cursor.js +1 -82
- package/js/danmaku.js +0 -106
- package/js/day.js +13 -195
- package/js/dianzan.js +1 -249
- package/js/dis.js +4 -252
- package/js/dist/baiduhistory.dev.js +1 -102
- package/js/dist/bbtalk.dev.js +159 -12872
- package/js/dist/bbtalklunbo.dev.js +1 -45
- package/js/dist/calendar.dev.js +1 -395
- package/js/dist/fixbugpjax.dev.js +1 -8
- package/js/dist/gongnong.dev.js +1 -565
- package/js/dist/heimu.dev.js +1 -19
- package/js/dist/links.dev.js +1 -13
- package/js/dist/main.dev.js +5 -843
- package/js/dist/resizeTop.dev.js +1 -50
- package/js/dist/seo.dev.js +1 -33
- package/js/dist/twikoo.all.min.dev.js +946 -1
- package/js/fixbugpjax.js +1 -7
- package/js/fixed_card_widget.js +1 -46
- package/js/fps.js +1 -58
- package/js/gitalker.js +1 -11
- package/js/heimu.js +1 -16
- package/js/hide.show.js +1 -17
- package/js/languages.js +1 -511
- package/js/latest.js +1 -49
- package/js/local-search.js +2 -476
- package/js/lunar.js +1 -1071
- package/js/lyxTalk.js +1 -12
- package/js/main.js +5 -781
- package/js/nav.js +1 -30
- package/js/noie.js +1 -3
- package/js/owo.js +1 -52
- package/js/people.js +2 -175
- package/js/randomFriend.js +1 -95
- package/js/resizeTop.js +1 -43
- package/js/rightmenu.js +3 -333
- package/js/sakura.js +1 -164
- package/js/search/algolia.js +4 -154
- package/js/search/local-search.js +1 -188
- package/js/settings.js +3 -343
- package/js/sitetime.js +1 -25
- package/js/smooth-scrolling.js +1 -546
- package/js/sw-toolbox.js +1 -16
- package/js/swiperinit.js +1 -23
- package/js/tw_cn.js +1 -100
- package/js/utils.js +1 -278
- package/js/welcome.js +1 -107
- package/js/welcomeconsole.js +1 -23
- package/links/index.html +3 -3
- package/othersite/index.html +3 -3
- package/package.json +1 -1
- package/posts/164ef646/index.html +6 -6
- package/posts/228c2ef8/index.html +6 -6
- package/posts/a9a6c1fb/index.html +6 -6
- package/posts/c262e439/index.html +6 -6
- package/posts/c81531cf/index.html +6 -6
- package/posts/ccdf7cfc/index.html +6 -6
- package/posts/de1f83f4/index.html +6 -6
- package/posts/e54f7476/index.html +6 -6
- package/sitemap.xml +49 -49
- package/sw.js +2 -193
- package/swReg.js +1 -29
- package/tags/AI/index.html +5 -5
- package/tags/Butterfly/index.html +5 -5
- package/tags/Cloudflare/index.html +5 -5
- package/tags/DiffSinger/index.html +5 -5
- package/tags/Hexo/index.html +5 -5
- package/tags/Next/index.html +5 -5
- package/tags/RAID/index.html +5 -5
- package/tags/Vercel/index.html +5 -5
- package/tags/Workers/index.html +5 -5
- package/tags/index.html +3 -3
- package/tags//344/270/273/351/242/230/index.html +5 -5
- package/tags//345/206/231/344/275/234/index.html +5 -5
- package/tags//345/245/263/346/200/247/346/204/217/350/257/206/index.html +5 -5
- package/tags//345/255/246/344/271/240/index.html +5 -5
- package/tags//345/256/266/351/207/214/344/272/221/index.html +5 -5
- package/tags//345/271/264/347/273/210/346/200/273/347/273/223/index.html +5 -5
- package/tags//346/212/230/350/205/276/index.html +5 -5
- package/tags//346/227/245/345/270/270/index.html +5 -5
- package/tags//346/234/215/345/212/241/345/231/250/index.html +5 -5
- package/tags//346/265/252/346/275/256/index.html +5 -5
- package/tags//347/256/200/347/210/261/index.html +5 -5
- package/tags//350/207/252/345/212/250/346/240/207/346/263/250/index.html +5 -5
- package/tags//350/256/272/346/226/207/index.html +5 -5
- package/tags//350/260/267/346/255/214/347/277/273/350/257/221/index.html +5 -5
- package/tags//350/264/237/350/275/275/345/235/207/350/241/241/index.html +5 -5
- package/tags//351/207/221/345/217/245/index.html +5 -5
- package/tags//351/255/224/346/224/271/index.html +5 -5
package/js/fixbugpjax.js
CHANGED
@@ -1,7 +1 @@
|
|
1
|
-
|
2
|
-
var evt = document.createEvent("HTMLEvents");
|
3
|
-
evt.initEvent("pjax:complete", false, false);
|
4
|
-
window.dispatchEvent(evt);
|
5
|
-
document.addEventListener('pjax:complete', (e) => {
|
6
|
-
$("#setting-buttons").show();
|
7
|
-
})
|
1
|
+
var evt=document.createEvent("HTMLEvents");evt.initEvent("pjax:complete",!1,!1),window.dispatchEvent(evt),document.addEventListener("pjax:complete",e=>{$("#setting-buttons").show()});
|
package/js/fixed_card_widget.js
CHANGED
@@ -1,46 +1 @@
|
|
1
|
-
|
2
|
-
function FixedCardWidget(type,name,index){
|
3
|
-
// 根据id或class选择元素
|
4
|
-
if (type === "id"){
|
5
|
-
var tempcard = document.getElementById(name);
|
6
|
-
}
|
7
|
-
else{
|
8
|
-
var tempcard = document.getElementsByClassName(name)[index];
|
9
|
-
}
|
10
|
-
// 若元素存在
|
11
|
-
if (tempcard) {
|
12
|
-
// 首先判断是否存在fixed-card-widget类
|
13
|
-
if (tempcard.className.indexOf('fixed-card-widget') > -1){
|
14
|
-
// 存在则移除
|
15
|
-
RemoveFixedCardWidget();
|
16
|
-
}
|
17
|
-
else{
|
18
|
-
// 不存在则先初始化防止卡片叠加
|
19
|
-
RemoveFixedCardWidget();
|
20
|
-
//新建退出蒙版
|
21
|
-
CreateQuitBox();
|
22
|
-
// 再添加固定卡片样式
|
23
|
-
tempcard.classList.add('fixed-card-widget');
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
//创建一个蒙版,作为退出键使用
|
28
|
-
function CreateQuitBox(){
|
29
|
-
var quitBox = `<div id="quit-box" onclick="RemoveFixedCardWidget()"></div>`
|
30
|
-
var asideContent = document.getElementById('aside-content');
|
31
|
-
asideContent.insertAdjacentHTML("beforebegin",quitBox)
|
32
|
-
}
|
33
|
-
// 移除卡片方法
|
34
|
-
function RemoveFixedCardWidget(){
|
35
|
-
var activedItems = document.querySelectorAll('.fixed-card-widget');
|
36
|
-
if (activedItems) {
|
37
|
-
for (i = 0; i < activedItems.length; i++) {
|
38
|
-
activedItems[i].classList.remove('fixed-card-widget');
|
39
|
-
}
|
40
|
-
}
|
41
|
-
//移除退出蒙版
|
42
|
-
var quitBox = document.getElementById('quit-box');
|
43
|
-
if (quitBox) quitBox.remove();
|
44
|
-
}
|
45
|
-
// 常规先初始化,确保切换页面后不会有固定卡片留存
|
46
|
-
RemoveFixedCardWidget()
|
1
|
+
function FixedCardWidget(e,t,n){if(e==="id")var d=document.getElementById(t);else var d=document.getElementsByClassName(t)[n];d&&(d.className.indexOf("fixed-card-widget")>-1?RemoveFixedCardWidget():(RemoveFixedCardWidget(),CreateQuitBox(),d.classList.add("fixed-card-widget")))}function CreateQuitBox(){var e='<div id="quit-box" onclick="RemoveFixedCardWidget()"></div>',t=document.getElementById("aside-content");t.insertAdjacentHTML("beforebegin",e)}function RemoveFixedCardWidget(){var e=document.querySelectorAll(".fixed-card-widget");if(e)for(i=0;i<e.length;i++)e[i].classList.remove("fixed-card-widget");var t=document.getElementById("quit-box");t&&t.remove()}RemoveFixedCardWidget();
|
package/js/fps.js
CHANGED
@@ -1,58 +1 @@
|
|
1
|
-
document.addEventListener(
|
2
|
-
document.addEventListener('DOMContentLoaded', fps);
|
3
|
-
function fps(){
|
4
|
-
if(window.localStorage.getItem("fpson")=="1"){
|
5
|
-
var rAF = function () {
|
6
|
-
return (
|
7
|
-
window.requestAnimationFrame ||
|
8
|
-
window.webkitRequestAnimationFrame ||
|
9
|
-
function (callback) {
|
10
|
-
window.setTimeout(callback, 1000 / 60);
|
11
|
-
}
|
12
|
-
);
|
13
|
-
}();
|
14
|
-
var frame = 0;
|
15
|
-
var allFrameCount = 0;
|
16
|
-
var lastTime = Date.now();
|
17
|
-
var lastFameTime = Date.now();
|
18
|
-
var loop = function () {
|
19
|
-
var now = Date.now();
|
20
|
-
var fs = (now - lastFameTime);
|
21
|
-
var fps = Math.round(1000 / fs);
|
22
|
-
|
23
|
-
lastFameTime = now;
|
24
|
-
// 不置 0,在动画的开头及结尾记录此值的差值算出 FPS
|
25
|
-
allFrameCount++;
|
26
|
-
frame++;
|
27
|
-
|
28
|
-
if (now > 1000 + lastTime) {
|
29
|
-
var fps = Math.round((frame * 1000) / (now - lastTime));
|
30
|
-
if(fps<=6){
|
31
|
-
var kd=`<span style="color:#bd0000">卡成ppt</span>`
|
32
|
-
}
|
33
|
-
else if(fps<=10){
|
34
|
-
var kd=`<span style="color:red">电竞级帧率</span>`
|
35
|
-
}
|
36
|
-
else if(fps<=14){
|
37
|
-
var kd=`<span style="color:yellow">难受</span>`
|
38
|
-
}
|
39
|
-
else if(fps<24){
|
40
|
-
var kd=`<span style="color:orange">卡</span>`
|
41
|
-
}
|
42
|
-
else if(fps<=40){
|
43
|
-
var kd=`<span style="color:green">...</span>`
|
44
|
-
}
|
45
|
-
else{
|
46
|
-
var kd=`<span style="color:#425aef">正常</span>`
|
47
|
-
}
|
48
|
-
document.getElementById("fps").innerHTML=`FPS:${fps} ${kd}`;
|
49
|
-
frame = 0;
|
50
|
-
lastTime = now;
|
51
|
-
};
|
52
|
-
|
53
|
-
rAF(loop);
|
54
|
-
}
|
55
|
-
|
56
|
-
loop();
|
57
|
-
}
|
58
|
-
else{$("#fps").hide()}}
|
1
|
+
document.addEventListener("pjax:complete",fps),document.addEventListener("DOMContentLoaded",fps);function fps(){if(window.localStorage.getItem("fpson")=="1"){var d=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,16.666666666666668)}}(),o=0,i=0,t=Date.now(),r=Date.now(),s=function(){var e=Date.now(),p=e-r,n=Math.round(1e3/p);if(r=e,i++,o++,e>1e3+t){var n=Math.round(o*1e3/(e-t));if(n<=6)var a='<span style="color:#bd0000">\u5361\u6210ppt</span>';else if(n<=10)var a='<span style="color:red">\u7535\u7ADE\u7EA7\u5E27\u7387</span>';else if(n<=14)var a='<span style="color:yellow">\u96BE\u53D7</span>';else if(n<24)var a='<span style="color:orange">\u5361</span>';else if(n<=40)var a='<span style="color:green">...</span>';else var a='<span style="color:#425aef">\u6B63\u5E38</span>';document.getElementById("fps").innerHTML=`FPS:${n} ${a}`,o=0,t=e}d(s)};s()}else $("#fps").hide()}
|
package/js/gitalker.js
CHANGED
@@ -1,11 +1 @@
|
|
1
|
-
var gitalk
|
2
|
-
clientID: 'e9c8a4c42b9bd57da9d9',
|
3
|
-
clientSecret: '51b45e474eaf45a0b89f25e081da82a69fd47a09',
|
4
|
-
repo: 'lyxofficial.github.io',
|
5
|
-
owner: 'lyxofficial',
|
6
|
-
admin: ['lyxofficial'],
|
7
|
-
id: location.pathname, // Ensure uniqueness and length less than 50
|
8
|
-
distractionFreeMode: false // Facebook-like distraction free mode
|
9
|
-
})
|
10
|
-
|
11
|
-
gitalk.render('gitalk-container')
|
1
|
+
var gitalk=new Gitalk({clientID:"e9c8a4c42b9bd57da9d9",clientSecret:"51b45e474eaf45a0b89f25e081da82a69fd47a09",repo:"lyxofficial.github.io",owner:"lyxofficial",admin:["lyxofficial"],id:location.pathname,distractionFreeMode:!1});gitalk.render("gitalk-container");
|
package/js/heimu.js
CHANGED
@@ -1,16 +1 @@
|
|
1
|
-
|
2
|
-
$(document).ready(function(){
|
3
|
-
var l=document.querySelectorAll("s>em,del");
|
4
|
-
for(i=0;i<l.length;i++){
|
5
|
-
try{
|
6
|
-
if(l[i].className!=="noheimu"){
|
7
|
-
l[i].title="你知道的太多了";
|
8
|
-
l[i].setAttribute("data-toggle","tooltip");
|
9
|
-
}
|
10
|
-
}
|
11
|
-
catch(e){
|
12
|
-
|
13
|
-
}
|
14
|
-
|
15
|
-
}
|
16
|
-
})}
|
1
|
+
window.location.href.indexOf("posts")!==-1&&$(document).ready(function(){var t=document.querySelectorAll("s>em,del");for(i=0;i<t.length;i++)try{t[i].className!=="noheimu"&&(t[i].title="\u4F60\u77E5\u9053\u7684\u592A\u591A\u4E86",t[i].setAttribute("data-toggle","tooltip"))}catch{}});
|
package/js/hide.show.js
CHANGED
@@ -1,17 +1 @@
|
|
1
|
-
function isInViewPortOfOne (
|
2
|
-
const viewPortHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
|
3
|
-
const offsetTop = el.offsetTop
|
4
|
-
const scrollTop = document.documentElement.scrollTop
|
5
|
-
const top = offsetTop - scrollTop
|
6
|
-
return top <= viewPortHeight
|
7
|
-
}
|
8
|
-
$(window).scroll(function () {
|
9
|
-
if(isInViewPortOfOne(document.getElementsByTagName("footer")[0])){
|
10
|
-
$(".aplayer .aplayer-body").hide();
|
11
|
-
$("#fps").hide();
|
12
|
-
}
|
13
|
-
else{
|
14
|
-
$(".aplayer .aplayer-body").show();
|
15
|
-
$("#fps").show();
|
16
|
-
}
|
17
|
-
})
|
1
|
+
function isInViewPortOfOne(e){const o=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,t=e.offsetTop,n=document.documentElement.scrollTop;return t-n<=o}$(window).scroll(function(){isInViewPortOfOne(document.getElementsByTagName("footer")[0])?($(".aplayer .aplayer-body").hide(),$("#fps").hide()):($(".aplayer .aplayer-body").show(),$("#fps").show())});
|