Skip to content

Commit

Permalink
🎉auto update by Gmeek action
Browse files Browse the repository at this point in the history
  • Loading branch information
cao-gift committed Jul 20, 2024
1 parent 4603439 commit 20cf351
Show file tree
Hide file tree
Showing 26 changed files with 546 additions and 178 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
### :page_facing_up: [12](https://blog.freeblock.cn/tag.html)
### :speech_balloon: 0
### :hibiscus: 53203
### :alarm_clock: 2024-07-16 17:21:55
### :alarm_clock: 2024-07-20 08:12:29
### Powered by :heart: [Gmeek](https://github.com/Meekdai/Gmeek)
2 changes: 1 addition & 1 deletion blogBase.json

Large diffs are not rendered by default.

23 changes: 12 additions & 11 deletions docs/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href='https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/Primer/21.0.7/primer.css' rel='stylesheet' />

<link rel="icon" href="https://bu.dusays.com/2024/04/15/661d2848e143a.jpg">
<meta name="description" content="## 建站时间
2018年秋
Expand All @@ -21,6 +22,7 @@
<title>关于</title>



</head>
<style>
body{box-sizing: border-box;min-width: 200px;max-width: 900px;margin: 20px auto;padding: 45px;font-size: 16px;font-family: sans-serif;line-height: 1.25;}
Expand Down Expand Up @@ -78,29 +80,28 @@ <h2>联系</h2>
<div style="font-size:small;margin-top:8px;float:right;"></div>

</div>
<div id="footer">Copyright © <span id="year"></span><a href="https://blog.freeblock.cn"> 星源笔记 </a>
<p><a href="https://beian.miit.gov.cn/" target="_blank">鲁ICP备2024101898号-1</a>
<span id="runday"></span>Powered by <a href="https://meekdai.com/Gmeek.html" target="_blank">Gmeek</a>
</p>
<div id="footer"><div id="footer1">Copyright © <span id="copyrightYear"></span> <a href="https://blog.freeblock.cn">星源笔记</a></div>
<div id="footer2"><span id="filingNum"><a href="https://beian.miit.gov.cn/" target="_blank">鲁ICP备2024101898号-1</a></span>
<span id="runday"></span><span>Powered by <a href="https://meekdai.com/Gmeek.html" target="_blank">Gmeek</a></span>
</div>

<script>
var now=new Date();
document.getElementById("copyrightYear").innerHTML=now.getFullYear();

if("08/16/2018"!=""){
var now=new Date();
var startSite=new Date("08/16/2018");
var diff=now.getTime()-startSite.getTime();
var diffDay=Math.floor(diff/(1000*60*60*24));
document.getElementById("year").innerHTML=now.getFullYear();
if("鲁ICP备2024101898号-1"!=""){document.getElementById("runday").innerHTML=" • "+"网站运行"+diffDay+"天"+" • ";}
else{document.getElementById("runday").innerHTML="网站运行"+diffDay+"天"+" • ";}
document.getElementById("runday").innerHTML="网站运行"+diffDay+"天"+" • ";
}
</script>
</div>
</script></div>
</body>
<script>
var IconList={'sun': 'M8 10.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5zM8 12a4 4 0 100-8 4 4 0 000 8zM8 0a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0V.75A.75.75 0 018 0zm0 13a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 018 13zM2.343 2.343a.75.75 0 011.061 0l1.06 1.061a.75.75 0 01-1.06 1.06l-1.06-1.06a.75.75 0 010-1.06zm9.193 9.193a.75.75 0 011.06 0l1.061 1.06a.75.75 0 01-1.06 1.061l-1.061-1.06a.75.75 0 010-1.061zM16 8a.75.75 0 01-.75.75h-1.5a.75.75 0 010-1.5h1.5A.75.75 0 0116 8zM3 8a.75.75 0 01-.75.75H.75a.75.75 0 010-1.5h1.5A.75.75 0 013 8zm10.657-5.657a.75.75 0 010 1.061l-1.061 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zm-9.193 9.193a.75.75 0 010 1.06l-1.06 1.061a.75.75 0 11-1.061-1.06l1.06-1.061a.75.75 0 011.061 0z', 'moon': 'M9.598 1.591a.75.75 0 01.785-.175 7 7 0 11-8.967 8.967.75.75 0 01.961-.96 5.5 5.5 0 007.046-7.046.75.75 0 01.175-.786zm1.616 1.945a7 7 0 01-7.678 7.678 5.5 5.5 0 107.678-7.678z', 'sync': 'M1.705 8.005a.75.75 0 0 1 .834.656 5.5 5.5 0 0 0 9.592 2.97l-1.204-1.204a.25.25 0 0 1 .177-.427h3.646a.25.25 0 0 1 .25.25v3.646a.25.25 0 0 1-.427.177l-1.38-1.38A7.002 7.002 0 0 1 1.05 8.84a.75.75 0 0 1 .656-.834ZM8 2.5a5.487 5.487 0 0 0-4.131 1.869l1.204 1.204A.25.25 0 0 1 4.896 6H1.25A.25.25 0 0 1 1 5.75V2.104a.25.25 0 0 1 .427-.177l1.38 1.38A7.002 7.002 0 0 1 14.95 7.16a.75.75 0 0 1-1.49.178A5.5 5.5 0 0 0 8 2.5Z', 'home': 'M6.906.664a1.749 1.749 0 0 1 2.187 0l5.25 4.2c.415.332.657.835.657 1.367v7.019A1.75 1.75 0 0 1 13.25 15h-3.5a.75.75 0 0 1-.75-.75V9H7v5.25a.75.75 0 0 1-.75.75h-3.5A1.75 1.75 0 0 1 1 13.25V6.23c0-.531.242-1.034.657-1.366l5.25-4.2Zm1.25 1.171a.25.25 0 0 0-.312 0l-5.25 4.2a.25.25 0 0 0-.094.196v7.019c0 .138.112.25.25.25H5.5V8.25a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 .75.75v5.25h2.75a.25.25 0 0 0 .25-.25V6.23a.25.25 0 0 0-.094-.195Z', 'github': 'M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z'};
var utterancesLoad=0;

console.log("\n %c Gmeek last https://github.com/Meekdai/Gmeek \n\n","padding:5px 0;background:#02d81d;color:#fff");
console.log("\n %c Gmeek last https://github.com/Meekdai/Gmeek \n","padding:5px 0;background:#02d81d;color:#fff");
</script>

<script>
Expand Down
16 changes: 16 additions & 0 deletions docs/assets/GmeekBSZ.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
function createBSZ() {
var postBody = document.getElementById('postBody');
if (postBody){
postBody.insertAdjacentHTML('afterend','<div id="busuanzi_container_page_pv" style="display:none;float:left;margin-top:8px;font-size:small;">本文浏览量<span id="busuanzi_value_page_pv"></span>次</div>');
}
var runday = document.getElementById('runday');
runday.insertAdjacentHTML('afterend', '<div id="busuanzi_container_site_pv" style="display:none;">总浏览量<span id="busuanzi_value_site_pv"></span>次 • </div>');
}

document.addEventListener("DOMContentLoaded", function() {
createBSZ();
var element = document.createElement('script');
element.src = '//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js';
document.head.appendChild(element);
console.log("\n %c GmeekBSZ Plugins https://github.com/Meekdai/Gmeek \n","padding:5px 0;background:#bc4c00;color:#fff");
});
58 changes: 58 additions & 0 deletions docs/assets/GmeekTOC.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
function loadResource(type, attributes, callback) {
var element;
if (type === 'script') {
element = document.createElement('script');
element.src = attributes.src;
element.onload = callback;
} else if (type === 'link') {
element = document.createElement('link');
element.rel = attributes.rel;
element.href = attributes.href;
} else if (type === 'style') {
element = document.createElement('style');
element.rel = 'stylesheet';
element.appendChild(document.createTextNode(attributes.css));
}
document.head.appendChild(element);
}

function createTOC() {
var tocElement = document.createElement('div');
tocElement.className = 'toc';
var contentContainer = document.getElementById('content');
if (contentContainer.firstChild) {
contentContainer.insertBefore(tocElement, contentContainer.firstChild);
} else {
contentContainer.appendChild(tocElement);
}
}

document.addEventListener("DOMContentLoaded", function() {
createTOC();
var css = '.toc {position:fixed;top:130px;left:50%;transform: translateX(50%) translateX(300px);width:200px;padding-left:30px;}@media (max-width: 1249px) {.toc{position:static;top:auto;left:auto;transform:none;padding:10px;margin-bottom:20px;background-color:#eee;}}';
loadResource('style', {css: css});

loadResource('script', { src: 'https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/tocbot/4.27.4/tocbot.min.js' }, function() {
tocbot.init({
tocSelector: '.toc',
contentSelector: '.markdown-body',
headingSelector: 'h1, h2, h3, h4, h5, h6',
scrollSmooth: true,
scrollSmoothOffset: -10,
headingsOffset: 10,
});
});

loadResource('link', { rel: 'stylesheet', href: 'https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/tocbot/4.27.4/tocbot.css' });

const headings = document.querySelectorAll('.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6');
headings.forEach((heading) => {
if (!heading.id) {
heading.id = heading.textContent.trim().replace(/\s+/g, '-');
}
});

var footerPlaceholder = document.createElement('div');
footerPlaceholder.style.height = window.innerHeight + 'px';
document.body.appendChild(footerPlaceholder);
});
119 changes: 119 additions & 0 deletions docs/assets/LoadingBar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
(function () {
function loadjQuery(callback) {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://blog.liyifan.xyz/lib/jquery.min.js';
script.onload = callback;
document.head.appendChild(script);
}

function createLoader() {
// 创建CSS样式
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = `
.loaderbg {
background-color: #fff;
width: 100%;
height: 100%;
overflow: hidden;
position: fixed;
left: 0;
top: 0;
z-index: 99999999;
visibility: visible;
}
.spinner {
position: absolute;
top: 50%;
left: 50%;
margin-left: -25px;
margin-top: -30px;
width: 50px;
height: 60px;
text-align: center;
font-size: 10px;
}
.spinner > .double {
background: #49a9ee;
height: 100%;
width: 6px;
display: inline-block;
animation: stretchDelay 1.2s infinite ease-in-out;
}
.spinner .rect2 { animation-delay: -1.1s; }
.spinner .rect3 { animation-delay: -1.0s; }
.spinner .rect4 { animation-delay: -0.9s; }
.spinner .rect5 { animation-delay: -0.8s; }
@keyframes stretchDelay {
0%, 40%, 100% { transform: scaleY(0.4); }
20% { transform: scaleY(1); }
}
`;
document.head.appendChild(style);

// 创建加载条HTML
var loader = document.createElement('div');
loader.className = 'loaderbg';
loader.innerHTML = `
<div class="spinner">
<div class="double rect1"></div>
<div class="double rect2"></div>
<div class="double rect3"></div>
<div class="double rect4"></div>
<div class="double rect5"></div>
</div>
`;
document.body.appendChild(loader);

return loader;
}

function hideLoader(loader) {
loader.style.visibility = 'hidden';
}

function showLoader(loader) {
loader.style.visibility = 'visible';
}

function loadingSpinner(options) {
var settings = {
duration: 3000,
onComplete: function () {}
};

// 合并用户配置
if (options) {
for (var key in options) {
if (options.hasOwnProperty(key)) {
settings[key] = options[key];
}
}
}

var loader = createLoader();

// 页面加载完成后隐藏加载条
window.addEventListener('load', function () {
hideLoader(loader);
settings.onComplete();
});

return {
show: function () { showLoader(loader); },
hide: function () { hideLoader(loader); }
};
}


// 加载jQuery并初始化插件
loadjQuery(function () {
loadingSpinner({
duration: 3000,
onComplete: function () {
console.log("页面加载完成啦!");
}
});
});
})();
87 changes: 87 additions & 0 deletions docs/assets/rain.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@

const rainstyle = document.createElement('style');
rainstyle.type = 'text/css';
rainstyle.innerHTML = `
* {
padding: 0;
margin: 0;
}
.raincontent {
width: 100%;
height: 100%;
}
#rainBox {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
pointer-events: none;
}
.rain {
position: absolute;
width: 2px;
height: 50px;
background: linear-gradient(rgba(255,255,255,.3),rgba(255,255,255,.6));
}
`;
document.head.appendChild(rainstyle);

// 创建结构
const raincontent = document.createElement('div');
raincontent.classList.add('raincontent');
const rainBox = document.createElement('div');
rainBox.id = 'rainBox';
raincontent.appendChild(rainBox);
document.body.appendChild(raincontent);

// 获取rainBox元素
const box = document.getElementById('rainBox');

// 定义box的高度和宽度
let boxHeight = box.clientHeight;
let boxWidth = box.clientWidth;

// 窗口加载时更新box的高度和宽度
window.onload = function () {
boxHeight = box.clientHeight;
boxWidth = box.clientWidth;
};

// 窗口大小变化时更新box的高度和宽度
window.onresize = function () {
boxHeight = box.clientHeight;
boxWidth = box.clientWidth;
};

// 每隔50毫秒添加一个新的雨点
setInterval(() => {
// 创建一个新的div元素表示雨点
const rain = document.createElement('div');

// 添加类名'rain'到雨点元素
rain.classList.add('rain');

// 设置雨点的初始位置
rain.style.top = '0px';
rain.style.left = Math.random() * boxWidth + 'px';

// 设置雨点的随机透明度
rain.style.opacity = Math.random();

// 将雨点元素添加到rainBox中
box.appendChild(rain);

// 每隔20毫秒更新雨点的位置,使其下落
let race = 1;
const timer = setInterval(() => {
// 如果雨点到达底部,则清除定时器并移除雨点
if (parseInt(rain.style.top) > boxHeight) {
clearInterval(timer);
box.removeChild(rain);
}
// 增加雨点的下落速度
race++;
rain.style.top = parseInt(rain.style.top) + race + 'px';
}, 20);
}, 50);
Loading

0 comments on commit 20cf351

Please sign in to comment.