Skip to content

Commit

Permalink
Site updated: 2023-11-15 00:12:00
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteveg committed Nov 14, 2023
1 parent c6831ed commit a0b9657
Show file tree
Hide file tree
Showing 24 changed files with 417 additions and 266 deletions.
93 changes: 66 additions & 27 deletions 2022/07/27/hello-world/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<script id="fluid-configs">
var Fluid = window.Fluid || {};
Fluid.ctx = Object.assign({}, Fluid.ctx)
var CONFIG = {"hostname":"github.com","root":"/infiniteveg/infiniteveg.github.io/","version":"1.9.2","typing":{"enable":false,"typeSpeed":70,"cursorChar":"_","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"follow_dnt":true,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/infiniteveg/infiniteveg.github.io/local-search.xml"};
var CONFIG = {"hostname":"github.com","root":"/infiniteveg/infiniteveg.github.io/","version":"1.9.4","typing":{"enable":false,"typeSpeed":70,"cursorChar":"_","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"follow_dnt":true,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/infiniteveg/infiniteveg.github.io/local-search.xml"};

if (CONFIG.web_analytics.follow_dnt) {
var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
Expand Down Expand Up @@ -116,7 +116,7 @@
<li class="nav-item">
<a class="nav-link" href="/infiniteveg/infiniteveg.github.io/">
<i class="iconfont icon-home-fill"></i>
首页
<span>首页</span>
</a>
</li>

Expand All @@ -128,7 +128,7 @@
<li class="nav-item">
<a class="nav-link" href="/infiniteveg/infiniteveg.github.io/archives/">
<i class="iconfont icon-archive-fill"></i>
归档
<span>归档</span>
</a>
</li>

Expand All @@ -140,7 +140,7 @@
<li class="nav-item">
<a class="nav-link" href="/infiniteveg/infiniteveg.github.io/categories/">
<i class="iconfont icon-category-fill"></i>
分类
<span>分类</span>
</a>
</li>

Expand All @@ -152,7 +152,7 @@
<li class="nav-item">
<a class="nav-link" href="/infiniteveg/infiniteveg.github.io/tags/">
<i class="iconfont icon-tags-fill"></i>
标签
<span>标签</span>
</a>
</li>

Expand All @@ -164,23 +164,24 @@
<li class="nav-item">
<a class="nav-link" href="/infiniteveg/infiniteveg.github.io/about/">
<i class="iconfont icon-user-fill"></i>
关于
<span>关于</span>
</a>
</li>



<li class="nav-item" id="search-btn">
<a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
&nbsp;<i class="iconfont icon-search"></i>&nbsp;
<i class="iconfont icon-search"></i>
</a>
</li>



<li class="nav-item" id="color-toggle-btn">
<a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
<a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">
<i class="iconfont icon-dark" id="color-toggle-icon"></i>
</a>
</li>

</ul>
Expand Down Expand Up @@ -322,21 +323,23 @@ <h3 id="deploy-to-remote-sites"><a class="markdownIt-Anchor" href="#deploy-to-re
</div>


<div class="license-meta-item">
<div>许可协议</div>
<div>



<div class="license-meta-item">
<div>许可协议</div>
<div>

<a target="_blank" href="https://creativecommons.org/licenses/by/4.0/">
<span class="hint--top hint--rounded" aria-label="BY - 署名">
<i class="iconfont icon-by"></i>
</span>
</a>


<a target="_blank" href="https://creativecommons.org/licenses/by/4.0/">
<span class="hint--top hint--rounded" aria-label="BY - 署名">
<i class="iconfont icon-by"></i>
</span>
</a>



</div>
</div>
</div>

</div>
<div class="license-icon iconfont"></div>
</div>
Expand Down Expand Up @@ -373,7 +376,10 @@ <h3 id="deploy-to-remote-sites"><a class="markdownIt-Anchor" href="#deploy-to-re

<aside class="sidebar" style="margin-left: -1rem">
<div id="toc">
<p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
<p class="toc-header">
<i class="iconfont icon-list"></i>
<span>目录</span>
</p>
<div class="toc-body" id="toc-body"></div>
</div>

Expand Down Expand Up @@ -418,6 +424,12 @@ <h3 id="deploy-to-remote-sites"><a class="markdownIt-Anchor" href="#deploy-to-re
<script>
Fluid.utils.createScript('https://lib.baomitu.com/mermaid/8.14.0/mermaid.min.js', function() {
mermaid.initialize({"theme":"default"});

Fluid.events.registerRefreshCallback(function() {
if ('mermaid' in window) {
mermaid.init();
}
});
});
</script>

Expand Down Expand Up @@ -513,22 +525,34 @@ <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
var boardCtn = jQuery('#board-ctn');
var boardTop = boardCtn.offset().top;

window.tocbot.init({
window.tocbot.init(Object.assign({
tocSelector : '#toc-body',
contentSelector : '.markdown-body',
headingSelector : CONFIG.toc.headingSelector || 'h1,h2,h3,h4,h5,h6',
linkClass : 'tocbot-link',
activeLinkClass : 'tocbot-active-link',
listClass : 'tocbot-list',
isCollapsedClass: 'tocbot-is-collapsed',
collapsibleClass: 'tocbot-is-collapsible',
collapseDepth : CONFIG.toc.collapseDepth || 0,
scrollSmooth : true,
headingsOffset : -boardTop
});
includeTitleTags: true,
headingsOffset : -boardTop,
}, CONFIG.toc));
if (toc.find('.toc-list-item').length > 0) {
toc.css('visibility', 'visible');
}

Fluid.events.registerRefreshCallback(function() {
if ('tocbot' in window) {
tocbot.refresh();
var toc = jQuery('#toc');
if (toc.length === 0 || !tocbot) {
return;
}
if (toc.find('.toc-list-item').length > 0) {
toc.css('visibility', 'visible');
}
}
});
});
</script>

Expand Down Expand Up @@ -557,6 +581,21 @@ <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
window.anchors.options.class = 'anchorjs-link-left';
}
window.anchors.add(res.join(', '));

Fluid.events.registerRefreshCallback(function() {
if ('anchors' in window) {
anchors.removeAll();
var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
var res = [];
for (var item of el) {
res.push('.markdown-body > ' + item.trim());
}
if (CONFIG.anchorjs.placement === 'left') {
anchors.options.class = 'anchorjs-link-left';
}
anchors.add(res.join(', '));
}
});
});
</script>

Expand Down
93 changes: 66 additions & 27 deletions 2022/07/27/信息论/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<script id="fluid-configs">
var Fluid = window.Fluid || {};
Fluid.ctx = Object.assign({}, Fluid.ctx)
var CONFIG = {"hostname":"github.com","root":"/infiniteveg/infiniteveg.github.io/","version":"1.9.2","typing":{"enable":false,"typeSpeed":70,"cursorChar":"_","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"follow_dnt":true,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/infiniteveg/infiniteveg.github.io/local-search.xml"};
var CONFIG = {"hostname":"github.com","root":"/infiniteveg/infiniteveg.github.io/","version":"1.9.4","typing":{"enable":false,"typeSpeed":70,"cursorChar":"_","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"follow_dnt":true,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/infiniteveg/infiniteveg.github.io/local-search.xml"};

if (CONFIG.web_analytics.follow_dnt) {
var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
Expand Down Expand Up @@ -120,7 +120,7 @@
<li class="nav-item">
<a class="nav-link" href="/infiniteveg/infiniteveg.github.io/">
<i class="iconfont icon-home-fill"></i>
首页
<span>首页</span>
</a>
</li>

Expand All @@ -132,7 +132,7 @@
<li class="nav-item">
<a class="nav-link" href="/infiniteveg/infiniteveg.github.io/archives/">
<i class="iconfont icon-archive-fill"></i>
归档
<span>归档</span>
</a>
</li>

Expand All @@ -144,7 +144,7 @@
<li class="nav-item">
<a class="nav-link" href="/infiniteveg/infiniteveg.github.io/categories/">
<i class="iconfont icon-category-fill"></i>
分类
<span>分类</span>
</a>
</li>

Expand All @@ -156,7 +156,7 @@
<li class="nav-item">
<a class="nav-link" href="/infiniteveg/infiniteveg.github.io/tags/">
<i class="iconfont icon-tags-fill"></i>
标签
<span>标签</span>
</a>
</li>

Expand All @@ -168,23 +168,24 @@
<li class="nav-item">
<a class="nav-link" href="/infiniteveg/infiniteveg.github.io/about/">
<i class="iconfont icon-user-fill"></i>
关于
<span>关于</span>
</a>
</li>



<li class="nav-item" id="search-btn">
<a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
&nbsp;<i class="iconfont icon-search"></i>&nbsp;
<i class="iconfont icon-search"></i>
</a>
</li>



<li class="nav-item" id="color-toggle-btn">
<a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
<a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">
<i class="iconfont icon-dark" id="color-toggle-icon"></i>
</a>
</li>

</ul>
Expand Down Expand Up @@ -380,21 +381,23 @@ <h2 id="即时可译码"><a class="markdownIt-Anchor" href="#即时可译码"></
</div>


<div class="license-meta-item">
<div>许可协议</div>
<div>



<div class="license-meta-item">
<div>许可协议</div>
<div>

<a target="_blank" href="https://creativecommons.org/licenses/by/4.0/">
<span class="hint--top hint--rounded" aria-label="BY - 署名">
<i class="iconfont icon-by"></i>
</span>
</a>


<a target="_blank" href="https://creativecommons.org/licenses/by/4.0/">
<span class="hint--top hint--rounded" aria-label="BY - 署名">
<i class="iconfont icon-by"></i>
</span>
</a>



</div>
</div>
</div>

</div>
<div class="license-icon iconfont"></div>
</div>
Expand Down Expand Up @@ -437,7 +440,10 @@ <h2 id="即时可译码"><a class="markdownIt-Anchor" href="#即时可译码"></

<aside class="sidebar" style="margin-left: -1rem">
<div id="toc">
<p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
<p class="toc-header">
<i class="iconfont icon-list"></i>
<span>目录</span>
</p>
<div class="toc-body" id="toc-body"></div>
</div>

Expand Down Expand Up @@ -482,6 +488,12 @@ <h2 id="即时可译码"><a class="markdownIt-Anchor" href="#即时可译码"></
<script>
Fluid.utils.createScript('https://lib.baomitu.com/mermaid/8.14.0/mermaid.min.js', function() {
mermaid.initialize({"theme":"default"});

Fluid.events.registerRefreshCallback(function() {
if ('mermaid' in window) {
mermaid.init();
}
});
});
</script>

Expand Down Expand Up @@ -577,22 +589,34 @@ <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
var boardCtn = jQuery('#board-ctn');
var boardTop = boardCtn.offset().top;

window.tocbot.init({
window.tocbot.init(Object.assign({
tocSelector : '#toc-body',
contentSelector : '.markdown-body',
headingSelector : CONFIG.toc.headingSelector || 'h1,h2,h3,h4,h5,h6',
linkClass : 'tocbot-link',
activeLinkClass : 'tocbot-active-link',
listClass : 'tocbot-list',
isCollapsedClass: 'tocbot-is-collapsed',
collapsibleClass: 'tocbot-is-collapsible',
collapseDepth : CONFIG.toc.collapseDepth || 0,
scrollSmooth : true,
headingsOffset : -boardTop
});
includeTitleTags: true,
headingsOffset : -boardTop,
}, CONFIG.toc));
if (toc.find('.toc-list-item').length > 0) {
toc.css('visibility', 'visible');
}

Fluid.events.registerRefreshCallback(function() {
if ('tocbot' in window) {
tocbot.refresh();
var toc = jQuery('#toc');
if (toc.length === 0 || !tocbot) {
return;
}
if (toc.find('.toc-list-item').length > 0) {
toc.css('visibility', 'visible');
}
}
});
});
</script>

Expand Down Expand Up @@ -621,6 +645,21 @@ <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
window.anchors.options.class = 'anchorjs-link-left';
}
window.anchors.add(res.join(', '));

Fluid.events.registerRefreshCallback(function() {
if ('anchors' in window) {
anchors.removeAll();
var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
var res = [];
for (var item of el) {
res.push('.markdown-body > ' + item.trim());
}
if (CONFIG.anchorjs.placement === 'left') {
anchors.options.class = 'anchorjs-link-left';
}
anchors.add(res.join(', '));
}
});
});
</script>

Expand Down
Loading

0 comments on commit a0b9657

Please sign in to comment.