Skip to content

Commit

Permalink
Site updated: 2024-02-09 18:19:34
Browse files Browse the repository at this point in the history
  • Loading branch information
boa-z committed Feb 9, 2024
1 parent 7c33709 commit 867c3cb
Show file tree
Hide file tree
Showing 48 changed files with 4,498 additions and 517 deletions.
20 changes: 10 additions & 10 deletions 2023/10/09/Game-Porting-Toolkit/index.html

Large diffs are not rendered by default.

17 changes: 9 additions & 8 deletions 2023/10/09/Playcover/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2023/10/09/homebrew/index.html

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions 2023/10/10/Signals-and-Systems/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2023/10/10/verilog/index.html

Large diffs are not rendered by default.

193 changes: 193 additions & 0 deletions 2024/02/09/Latex/index.html

Large diffs are not rendered by default.

285 changes: 285 additions & 0 deletions 2024/02/09/Linux/index.html

Large diffs are not rendered by default.

213 changes: 213 additions & 0 deletions 2024/02/09/Markdown/index.html

Large diffs are not rendered by default.

175 changes: 175 additions & 0 deletions 2024/02/09/Mathematica/index.html

Large diffs are not rendered by default.

188 changes: 188 additions & 0 deletions 2024/02/09/Matlab/index.html

Large diffs are not rendered by default.

223 changes: 223 additions & 0 deletions 2024/02/09/docker/index.html

Large diffs are not rendered by default.

177 changes: 177 additions & 0 deletions 2024/02/09/hexo/index.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions about/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions archives/2023/10/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions archives/2023/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions archives/2024/02/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions archives/2024/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions archives/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions archives/page/2/index.html

Large diffs are not rendered by default.

161 changes: 0 additions & 161 deletions categories/apple/index.html

This file was deleted.

20 changes: 10 additions & 10 deletions categories/code/index.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions categories/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions categories/memo/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions categories/study/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4290,14 +4290,15 @@ h1.page-title + .tag-cloud-list {
margin: 20px auto;
}
#sidebar #sidebar-menus .menus_items {
padding: 0 5px;
padding: 0 10px;
}
#sidebar #sidebar-menus .menus_items .site-page {
position: relative;
display: block;
padding: 6px 30px 6px 22px;
padding: 3px 28px 3px 20px;
color: var(--font-color);
font-size: 1.15em;
border-radius: 6px;
}
#sidebar #sidebar-menus .menus_items .site-page:hover {
background: var(--text-bg-hover);
Expand Down
160 changes: 122 additions & 38 deletions index.html

Large diffs are not rendered by default.

35 changes: 17 additions & 18 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ document.addEventListener('DOMContentLoaded', function () {
const { highlightCopy, highlightLang, highlightHeightLimit, plugin } = highLight
const isHighlightShrink = GLOBAL_CONFIG_SITE.isHighlightShrink
const isShowTool = highlightCopy || highlightLang || isHighlightShrink !== undefined
const $figureHighlight = plugin === 'highlighjs' ? document.querySelectorAll('figure.highlight') : document.querySelectorAll('pre[class*="language-"]')
const $figureHighlight = plugin === 'highlight.js' ? document.querySelectorAll('figure.highlight') : document.querySelectorAll('pre[class*="language-"]')

if (!((isShowTool || highlightHeightLimit) && $figureHighlight.length)) return

Expand All @@ -75,23 +75,23 @@ document.addEventListener('DOMContentLoaded', function () {
const highlightShrinkEle = isHighlightShrink !== undefined ? '<i class="fas fa-angle-down expand"></i>' : ''
const highlightCopyEle = highlightCopy ? '<div class="copy-notice"></div><i class="fas fa-paste copy-button"></i>' : ''

const copy = (text, ctx) => {
const alertInfo = (ele, text) => {
if (GLOBAL_CONFIG.Snackbar !== undefined) {
btf.snackbarShow(text)
} else {
const prevEle = ele.previousElementSibling
prevEle.textContent = text
prevEle.style.opacity = 1
setTimeout(() => { prevEle.style.opacity = 0 }, 800)
}
}

const copy = ctx => {
if (document.queryCommandSupported && document.queryCommandSupported('copy')) {
document.execCommand('copy')
if (GLOBAL_CONFIG.Snackbar !== undefined) {
btf.snackbarShow(GLOBAL_CONFIG.copy.success)
} else {
const prevEle = ctx.previousElementSibling
prevEle.textContent = GLOBAL_CONFIG.copy.success
prevEle.style.opacity = 1
setTimeout(() => { prevEle.style.opacity = 0 }, 700)
}
alertInfo(ctx, GLOBAL_CONFIG.copy.success)
} else {
if (GLOBAL_CONFIG.Snackbar !== undefined) {
btf.snackbarShow(GLOBAL_CONFIG.copy.noSupport)
} else {
ctx.previousElementSibling.textContent = GLOBAL_CONFIG.copy.noSupport
}
alertInfo(ctx, GLOBAL_CONFIG.copy.noSupport)
}
}

Expand All @@ -105,8 +105,7 @@ document.addEventListener('DOMContentLoaded', function () {
range.selectNodeContents($buttonParent.querySelectorAll(`${preCodeSelector}`)[0])
selection.removeAllRanges()
selection.addRange(range)
const text = selection.toString()
copy(text, ele.lastChild)
copy(ele.lastChild)
selection.removeAllRanges()
$buttonParent.classList.remove('copy-true')
}
Expand Down Expand Up @@ -783,7 +782,7 @@ document.addEventListener('DOMContentLoaded', function () {
const commentContainer = document.getElementById('post-comment')
const handleSwitchBtn = () => {
commentContainer.classList.toggle('move')
if (!switchDone) {
if (!switchDone && typeof loadOtherComment === 'function') {
switchDone = true
loadOtherComment()
}
Expand Down
12 changes: 6 additions & 6 deletions link/index.html

Large diffs are not rendered by default.

189 changes: 189 additions & 0 deletions page/2/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions tags/EE/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions tags/Hexo/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions tags/IC-design/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions tags/LaTeX/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions tags/Linux/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions tags/Markdown/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions tags/Math/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions tags/Mathematica/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions tags/Matlab/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions tags/Playcover/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions tags/Web/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions tags/Writing/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions tags/docker/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions tags/gaming/index.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions tags/iOS/index.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions tags/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions tags/macOS/index.html

Large diffs are not rendered by default.

161 changes: 0 additions & 161 deletions tags/study/index.html

This file was deleted.

14 changes: 7 additions & 7 deletions tags/verilog/index.html

Large diffs are not rendered by default.

0 comments on commit 867c3cb

Please sign in to comment.