Skip to content

Commit

Permalink
Site updated: 2024-06-25 08:47:58
Browse files Browse the repository at this point in the history
  • Loading branch information
thinklive1 committed Jun 25, 2024
1 parent df7e08c commit 7a3b3d1
Show file tree
Hide file tree
Showing 124 changed files with 2,582 additions and 1,275 deletions.
25 changes: 18 additions & 7 deletions about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ <h1 class="post-title" itemprop="name headline">about
<i class="fa fa-coffee"></i>
</span>
<span>站点阅读时长 &asymp;</span>
<span title="站点阅读时长">22:50</span>
<span title="站点阅读时长">22:49</span>
</span>
</div>
<div class="busuanzi-count">
Expand Down Expand Up @@ -493,9 +493,24 @@ <h1 class="post-title" itemprop="name headline">about
root1.style.setProperty('--highlight-foreground', '#bbb');
root1.style.setProperty('--btn-default-bg', '#777');
root1.style.setProperty('--menu-item-bg-color', '#777');
root1.style.setProperty('.post-body .note.warning', 'background: #777');
root1.style.setProperty('--note-warning-bg-color', '#777');
root1.style.setProperty('--note-info-bg-color', '#777');
root1.style.transition = 'all 0.5s ease';

}

else {
root1.style.setProperty('--content-bg-color', '#fff');
root1.style.setProperty('--text-color', '#111');
}
}

function DarkTrigger() {
console.log('dark!!')
let isDarkMode = getComputedStyle(document.documentElement).getPropertyValue('--content-bg-color').trim() === '#000';
console.log(isDarkMode)
if (isDarkMode) {
// 切换到暗模式
const warningNotes = document.querySelectorAll('.post-body .note.warning');
// 修改背景颜色
warningNotes.forEach(note => {
Expand All @@ -508,13 +523,9 @@ <h1 class="post-title" itemprop="name headline">about
note.style.background = '#666';
});
}

else {
root1.style.setProperty('--content-bg-color', '#fff');
root1.style.setProperty('--text-color', '#111');
}
}


</script>

<!--js: 线条特效-->
Expand Down
25 changes: 18 additions & 7 deletions archives/2023/09/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ <h1 class="site-title">thinklive</h1>
<i class="fa fa-coffee"></i>
</span>
<span>站点阅读时长 &asymp;</span>
<span title="站点阅读时长">22:50</span>
<span title="站点阅读时长">22:49</span>
</span>
</div>
<div class="busuanzi-count">
Expand Down Expand Up @@ -545,9 +545,24 @@ <h1 class="site-title">thinklive</h1>
root1.style.setProperty('--highlight-foreground', '#bbb');
root1.style.setProperty('--btn-default-bg', '#777');
root1.style.setProperty('--menu-item-bg-color', '#777');
root1.style.setProperty('.post-body .note.warning', 'background: #777');
root1.style.setProperty('--note-warning-bg-color', '#777');
root1.style.setProperty('--note-info-bg-color', '#777');
root1.style.transition = 'all 0.5s ease';

}

else {
root1.style.setProperty('--content-bg-color', '#fff');
root1.style.setProperty('--text-color', '#111');
}
}

function DarkTrigger() {
console.log('dark!!')
let isDarkMode = getComputedStyle(document.documentElement).getPropertyValue('--content-bg-color').trim() === '#000';
console.log(isDarkMode)
if (isDarkMode) {
// 切换到暗模式
const warningNotes = document.querySelectorAll('.post-body .note.warning');
// 修改背景颜色
warningNotes.forEach(note => {
Expand All @@ -560,13 +575,9 @@ <h1 class="site-title">thinklive</h1>
note.style.background = '#666';
});
}

else {
root1.style.setProperty('--content-bg-color', '#fff');
root1.style.setProperty('--text-color', '#111');
}
}


</script>

<!--js: 线条特效-->
Expand Down
25 changes: 18 additions & 7 deletions archives/2023/11/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ <h1 class="site-title">thinklive</h1>
<i class="fa fa-coffee"></i>
</span>
<span>站点阅读时长 &asymp;</span>
<span title="站点阅读时长">22:50</span>
<span title="站点阅读时长">22:49</span>
</span>
</div>
<div class="busuanzi-count">
Expand Down Expand Up @@ -545,9 +545,24 @@ <h1 class="site-title">thinklive</h1>
root1.style.setProperty('--highlight-foreground', '#bbb');
root1.style.setProperty('--btn-default-bg', '#777');
root1.style.setProperty('--menu-item-bg-color', '#777');
root1.style.setProperty('.post-body .note.warning', 'background: #777');
root1.style.setProperty('--note-warning-bg-color', '#777');
root1.style.setProperty('--note-info-bg-color', '#777');
root1.style.transition = 'all 0.5s ease';

}

else {
root1.style.setProperty('--content-bg-color', '#fff');
root1.style.setProperty('--text-color', '#111');
}
}

function DarkTrigger() {
console.log('dark!!')
let isDarkMode = getComputedStyle(document.documentElement).getPropertyValue('--content-bg-color').trim() === '#000';
console.log(isDarkMode)
if (isDarkMode) {
// 切换到暗模式
const warningNotes = document.querySelectorAll('.post-body .note.warning');
// 修改背景颜色
warningNotes.forEach(note => {
Expand All @@ -560,13 +575,9 @@ <h1 class="site-title">thinklive</h1>
note.style.background = '#666';
});
}

else {
root1.style.setProperty('--content-bg-color', '#fff');
root1.style.setProperty('--text-color', '#111');
}
}


</script>

<!--js: 线条特效-->
Expand Down
25 changes: 18 additions & 7 deletions archives/2023/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ <h1 class="site-title">thinklive</h1>
<i class="fa fa-coffee"></i>
</span>
<span>站点阅读时长 &asymp;</span>
<span title="站点阅读时长">22:50</span>
<span title="站点阅读时长">22:49</span>
</span>
</div>
<div class="busuanzi-count">
Expand Down Expand Up @@ -605,9 +605,24 @@ <h1 class="site-title">thinklive</h1>
root1.style.setProperty('--highlight-foreground', '#bbb');
root1.style.setProperty('--btn-default-bg', '#777');
root1.style.setProperty('--menu-item-bg-color', '#777');
root1.style.setProperty('.post-body .note.warning', 'background: #777');
root1.style.setProperty('--note-warning-bg-color', '#777');
root1.style.setProperty('--note-info-bg-color', '#777');
root1.style.transition = 'all 0.5s ease';

}

else {
root1.style.setProperty('--content-bg-color', '#fff');
root1.style.setProperty('--text-color', '#111');
}
}

function DarkTrigger() {
console.log('dark!!')
let isDarkMode = getComputedStyle(document.documentElement).getPropertyValue('--content-bg-color').trim() === '#000';
console.log(isDarkMode)
if (isDarkMode) {
// 切换到暗模式
const warningNotes = document.querySelectorAll('.post-body .note.warning');
// 修改背景颜色
warningNotes.forEach(note => {
Expand All @@ -620,13 +635,9 @@ <h1 class="site-title">thinklive</h1>
note.style.background = '#666';
});
}

else {
root1.style.setProperty('--content-bg-color', '#fff');
root1.style.setProperty('--text-color', '#111');
}
}


</script>

<!--js: 线条特效-->
Expand Down
45 changes: 28 additions & 17 deletions archives/2024/01/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ <h1 class="site-title">thinklive</h1>
</div>

<div class="post-title">
<a class="post-title-link" href="/thinklive/29916/" itemprop="url">
<span itemprop="name">blacksouls原著梗解析</span>
<a class="post-title-link" href="/thinklive/15197/" itemprop="url">
<span itemprop="name">基于c++ primer plus的读书笔记</span>
</a>
</div>

Expand All @@ -385,8 +385,8 @@ <h1 class="site-title">thinklive</h1>
</div>

<div class="post-title">
<a class="post-title-link" href="/thinklive/15197/" itemprop="url">
<span itemprop="name">基于c++ primer plus的读书笔记</span>
<a class="post-title-link" href="/thinklive/29916/" itemprop="url">
<span itemprop="name">blacksouls原著梗解析</span>
</a>
</div>

Expand All @@ -405,8 +405,8 @@ <h1 class="site-title">thinklive</h1>
</div>

<div class="post-title">
<a class="post-title-link" href="/thinklive/48468/" itemprop="url">
<span itemprop="name">基于斯坦福cs106l的c++编程规范笔记</span>
<a class="post-title-link" href="/thinklive/16615/" itemprop="url">
<span itemprop="name">基于斯坦福cs106b的c++数据结构笔记</span>
</a>
</div>

Expand All @@ -425,8 +425,8 @@ <h1 class="site-title">thinklive</h1>
</div>

<div class="post-title">
<a class="post-title-link" href="/thinklive/16615/" itemprop="url">
<span itemprop="name">基于斯坦福cs106b的c++数据结构笔记</span>
<a class="post-title-link" href="/thinklive/27780/" itemprop="url">
<span itemprop="name">javaweb备忘录</span>
</a>
</div>

Expand Down Expand Up @@ -465,8 +465,8 @@ <h1 class="site-title">thinklive</h1>
</div>

<div class="post-title">
<a class="post-title-link" href="/thinklive/27780/" itemprop="url">
<span itemprop="name">javaweb备忘录</span>
<a class="post-title-link" href="/thinklive/11069/" itemprop="url">
<span itemprop="name">基于北大前沿计算实践课和missing semester的linux等编程工具笔记</span>
</a>
</div>

Expand Down Expand Up @@ -511,7 +511,7 @@ <h1 class="site-title">thinklive</h1>
<i class="fa fa-coffee"></i>
</span>
<span>站点阅读时长 &asymp;</span>
<span title="站点阅读时长">22:50</span>
<span title="站点阅读时长">22:49</span>
</span>
</div>
<div class="busuanzi-count">
Expand Down Expand Up @@ -688,9 +688,24 @@ <h1 class="site-title">thinklive</h1>
root1.style.setProperty('--highlight-foreground', '#bbb');
root1.style.setProperty('--btn-default-bg', '#777');
root1.style.setProperty('--menu-item-bg-color', '#777');
root1.style.setProperty('.post-body .note.warning', 'background: #777');
root1.style.setProperty('--note-warning-bg-color', '#777');
root1.style.setProperty('--note-info-bg-color', '#777');
root1.style.transition = 'all 0.5s ease';

}

else {
root1.style.setProperty('--content-bg-color', '#fff');
root1.style.setProperty('--text-color', '#111');
}
}

function DarkTrigger() {
console.log('dark!!')
let isDarkMode = getComputedStyle(document.documentElement).getPropertyValue('--content-bg-color').trim() === '#000';
console.log(isDarkMode)
if (isDarkMode) {
// 切换到暗模式
const warningNotes = document.querySelectorAll('.post-body .note.warning');
// 修改背景颜色
warningNotes.forEach(note => {
Expand All @@ -703,13 +718,9 @@ <h1 class="site-title">thinklive</h1>
note.style.background = '#666';
});
}

else {
root1.style.setProperty('--content-bg-color', '#fff');
root1.style.setProperty('--text-color', '#111');
}
}


</script>

<!--js: 线条特效-->
Expand Down
Loading

0 comments on commit 7a3b3d1

Please sign in to comment.