2024.7.13

This commit is contained in:
小赵同学 committed 2024-07-13 11:42:38 +08:00
1 parent 92ca74ac8a
commit 2c90fe1cbf
30 files changed
+588 -1268

No files matched your search

+72 -63
View File
@@ -18,6 +18,7 @@
<script src="https://usj.cc/usr/themes/Ying/js/jquery.barrager.js"></script>
<script src="/js/jquery.scrollUp.min.js"></script>
<script src="/js/pjax.js"></script>
<script>console.log("\n %c Amigo Theme %c https://usj.cc \n", "color: #fadfa3; background: #030307; padding:3px; font-size:12px;", "color: #ffffff;background: #16171a; padding: 3px; font-size: 12px;");</script>
<meta name="keywords" content="大学,教程,blog,优世界,优设计,博客,大学生博客,生活,文案," />
<meta name="template" content="Ying" />
@@ -63,12 +64,14 @@
<div id="pjax-container">
<h2>热力图</h2>
<div id="heatmap" style="
max-width: 600px;
<div class="post-content" itemprop="articleBody">
<h2 id="热力图">热力图</h2>
<div id="heatmap" style="
max-width: 1900px;
height: 180px;
padding: 2px;
text-align: center;"
text-align: center;
"
></div>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.3.0/dist/echarts.min.js"></script>
<script type="text/javascript">
@@ -89,72 +92,83 @@
var key = "2024-07-12";
var value = dataMap.get(key);
var wordCount = "0.0";
var wordCount = 1 ;
var link = "/post/demo05/";
var title = "Demo05";
if (value == null || wordCount > value[0]) {
dataMap.set(key, {wordCount, link, title});
if (value == null) {
dataMap.set(key, [{wordCount, link, title}]);
} else {
value.push({wordCount, link, title});
}
var key = "2024-07-11";
var value = dataMap.get(key);
var wordCount = "0.0";
var wordCount = 3 ;
var link = "/post/demo03/";
var title = "Demo03";
if (value == null || wordCount > value[0]) {
dataMap.set(key, {wordCount, link, title});
if (value == null) {
dataMap.set(key, [{wordCount, link, title}]);
} else {
value.push({wordCount, link, title});
}
var key = "2024-07-11";
var value = dataMap.get(key);
var wordCount = "0.1";
var wordCount = 111 ;
var link = "/post/demo01/";
var title = "Demo01";
if (value == null || wordCount > value[0]) {
dataMap.set(key, {wordCount, link, title});
if (value == null) {
dataMap.set(key, [{wordCount, link, title}]);
} else {
value.push({wordCount, link, title});
}
var key = "2024-07-11";
var value = dataMap.get(key);
var wordCount = "0.0";
var wordCount = 1 ;
var link = "/post/my-second-post/";
var title = "My Second Post";
if (value == null || wordCount > value[0]) {
dataMap.set(key, {wordCount, link, title});
if (value == null) {
dataMap.set(key, [{wordCount, link, title}]);
} else {
value.push({wordCount, link, title});
}
var key = "2024-07-11";
var value = dataMap.get(key);
var wordCount = "0.0";
var wordCount = 1 ;
var link = "/post/my-first-post/";
var title = "My First Post";
if (value == null || wordCount > value[0]) {
dataMap.set(key, {wordCount, link, title});
if (value == null) {
dataMap.set(key, [{wordCount, link, title}]);
} else {
value.push({wordCount, link, title});
}
var key = "2024-07-09";
var value = dataMap.get(key);
var wordCount = "0.0";
var wordCount = 3 ;
var link = "/post/helloworld/";
var title = "Helloworld";
if (value == null || wordCount > value[0]) {
dataMap.set(key, {wordCount, link, title});
if (value == null) {
dataMap.set(key, [{wordCount, link, title}]);
} else {
value.push({wordCount, link, title});
}var data = [];
for (const [key, value] of dataMap.entries()) {
data.push([key, value.wordCount]);
var sum = 0;
for (const v of value) {
sum += v.wordCount;
}
data.push([key, (sum / 1000).toFixed(1)]);
}
var startDate = new Date();
@@ -202,9 +216,20 @@
text: ''
},
tooltip: {
hideDelay: 1000,
enterable: true,
formatter: function (p) {
const post = dataMap.get(p.data[0]);
return post.title + ' | ' + post.wordCount + ' 千字';
const date = p.data[0];
const posts = dataMap.get(date);
var content = `${date}`;
for (const [i, post] of posts.entries()) {
content += "<br>";
var link = post.link;
var title = post.title;
var wordCount = (post.wordCount / 1000).toFixed(1);
content += `<a href="${link}" target="_blank">${title} | ${wordCount} k</a>`
}
return content;
}
},
visualMap: {
@@ -228,11 +253,11 @@
top: 80,
left: 20,
right: 4,
cellSize: ['auto', 12],
cellSize: ['auto', 13],
range: getRangeArr(),
itemStyle: {
color: '#F1F1F1',
borderWidth: 2.5,
borderWidth: 1.5,
borderColor: '#fff',
},
yearLabel: { show: false },
@@ -256,29 +281,34 @@
myChart.setOption(option);
myChart.on('click', function(params) {
if (params.componentType === 'series') {
const post = dataMap.get(params.data[0]);
const post = dataMap.get(params.data[0])[0];
const link = window.location.origin + post.link;
window.open(link, '_blank').focus();
}
});
</script>
<div class="post-content" itemprop="articleBody">
<h2 id="关于我">关于我</h2>
<h2 id="关于我">关于我</h2>
<p>00后,湖北襄阳人,目前大三本科在读</p>
<p>脾气超好,喜欢看求生类节目以及恐怖片</p>
<p>性格慢热,言语幽默,喜欢独处</p>
<p>喜欢用文字记录生活,是用心在写文章的宝藏博主</p>
<h2 id="我的计划">我的计划</h2>
<p><del>1.坚持背完不背单词一本单词书</del> [已于2023.3.3日实现]</p>
<p><del>2.23年5月份成功上岸</del> [已于2023.5.26日实现]</p>
<p><del>3.和朋友去看襄阳唐城夜场</del> [已于2023.5.12日实现]</p>
<p><del>4.体验独自进电子厂打工</del> [已于2023.6.3日实现并跑路]</p>
<p>5.通过四六级考试</p>
<p>6.考研上岸</p>
</div>
</div>
</div>
<div class="footer">
<div class="footer">
<nav class="nav" style="clear: both;">
© 2019 - 2024
<br>
@@ -296,29 +326,8 @@
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script>
var currentPath = "\/about\/";
document.addEventListener("pjax:send", function () {
var currentPath = "\/about\/";
});
</script>
<script type="module">
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
window.walineInit = walineInit;
window.initWaline = function() {
walineInit({
el: '#waline',
serverURL: 'https://waline.usj.cc',
});
};
</script>
</body>
</html>