Skip to content

Commit

Permalink
feat(post): 修复夜间模式
Browse files Browse the repository at this point in the history
  • Loading branch information
李济芝 committed Mar 15, 2024
1 parent 7e95c45 commit 38ec1a0
Show file tree
Hide file tree
Showing 264 changed files with 3,908 additions and 309 deletions.
1 change: 0 additions & 1 deletion blog-site/public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ <h3><a href="http://localhost:1313/iblog/">首页</a></h3>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,6 @@ <h3 id="资源网站">资源网站</h3>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ <h1>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/en/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ <h3><a href="http://localhost:1313/iblog/">Home</a></h3>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/en/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ <h1>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/en/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ <h1>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/en/tags/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ <h1>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,6 @@ <h2><a href='/iblog/posts/essays/clean-code/'>整洁的代码</a></h2>




</body>

</html>
2 changes: 1 addition & 1 deletion blog-site/public/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<lastBuildDate>Thu, 14 Mar 2024 00:00:00 +0000</lastBuildDate>
<atom:link href="http://localhost:1313/iblog/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>强制复制网站文字</title>
<title>如何强制复制网站文字</title>
<link>http://localhost:1313/iblog/posts/essays/force-copy-website-text/</link>
<pubDate>Thu, 14 Mar 2024 00:00:00 +0000</pubDate>
<guid>http://localhost:1313/iblog/posts/essays/force-copy-website-text/</guid>
Expand Down
23 changes: 1 addition & 22 deletions blog-site/public/js/autodarkmode.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@

// 夜间模式使用
(function (){
function darkModelOptions(){
return {
right: '32px', // default: '32px'
bottom: 'unset', // default: '32px'
// left: '32px', // default: 'unset'
time: '0.3s', // default: '0.3s'
mixColor: '#f7f7f7', // default: '#fff'
backgroundColor: '#f7f7f7', // default: '#fff'
buttonColorDark: '#212121', // default: '#100f2c'
buttonColorLight: '#f7f7f7', // default: '#fff'
saveInCookies: false, // default: true,
autoMatchOsTheme: true // default: true
}
}

// 自动调用夜间模式
const hours = new Date().getHours();
if (hours >= 21 && hours <= 5){
new Darkmode(darkModelOptions()).toggle();
}
})()

843 changes: 843 additions & 0 deletions blog-site/public/page/2/index.html

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion blog-site/public/page/3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,6 @@ <h2><a href='/iblog/posts/java/rookie-operation/'>Java运算</a></h2>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/page/4/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,6 @@ <h2><a href='/iblog/posts/toy/js-loadding-lazy/'>Js懒加载</a></h2>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/page/5/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ <h2><a href='/iblog/posts/toy/js-birthday-gift/'>Js生日礼物</a></h2>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/books/books-daodejing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2890,7 +2890,6 @@ <h2 id="第八十一章">第八十一章</h2>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/books/books-sunzibingfa/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,6 @@ <h2 id="用间">用间</h2>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/books/java-books/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ <h2 id="post_single_title">Java电子书</h2>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/cas-principle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,6 @@ <h3 id="缺点">缺点</h3>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/clean-code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,6 @@ <h3 id="代码结构">代码结构</h3>




</body>

</html>
Original file line number Diff line number Diff line change
Expand Up @@ -6554,7 +6554,6 @@ <h3 id="贪心算法">贪心算法</h3>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/dev-idea/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,6 @@ <h3 id="快速开发">快速开发</h3>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/docker-start/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,6 @@ <h2 id="docker基本操作">docker基本操作</h2>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/elasticsearch/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2636,7 +2636,6 @@ <h3 id="document模型设计httpsdoocsgithubioadvanced-javadocshigh-concurrencye




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/eye-beam/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3132,7 +3132,6 @@ <h3 id="死锁编码及定位分析">死锁编码及定位分析</h3>




</body>

</html>
24 changes: 23 additions & 1 deletion blog-site/public/posts/essays/force-copy-website-text/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,32 @@ <h2 id="利用js脚本">利用js脚本</h2>
<script src="http://localhost:1313/iblog/js/utils.js"></script>
<script src="http://localhost:1313/iblog/js/html2md.js"></script>
<script src="http://localhost:1313/iblog/js/htmlexport.js"></script>
<script src="http://localhost:1313/iblog/js/autodarkmode.js"></script>



<script>
function addDarkmodeWidget(){

const hours = new Date().getHours();
if (hours >= 19 || hours <= 5){
new Darkmode({
right: '32px',
bottom: 'unset',

time: '0.3s',
mixColor: '#f7f7f7',
backgroundColor: '#f7f7f7',
buttonColorDark: '#212121',
buttonColorLight: '#f7f7f7',
saveInCookies: false,
autoMatchOsTheme: true
}).toggle();
}
}
window.addEventListener('load', addDarkmodeWidget);
</script>





Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,6 @@ <h3 id="资源管理">资源管理</h3>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/java-bugs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ <h2 id="post_single_title">如何减少及解决bug</h2>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/java-code-rule/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2100,7 +2100,6 @@ <h4 id="使用枚举代替ifelse">使用枚举代替if..else</h4>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/java-design/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,6 @@ <h2 id="预案设计">预案设计</h2>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/java-dict/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,6 @@ <h2 id="dns">DNS</h2>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/java-hashmap/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,6 @@ <h3 id="什么时机进行扩容">什么时机进行扩容</h3>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/java-improve/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,6 @@ <h4 id="架构优化">架构优化</h4>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/java-lock/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,6 @@ <h2 id="共享锁读锁">共享锁(读锁)</h2>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/java-mq/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,6 @@ <h3 id="消息积压">消息积压</h3>




</body>

</html>
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ <h3 id="没有时间重构">没有时间重构</h3>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/java-redis/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3770,7 +3770,6 @@ <h3 id="场景2">场景2</h3>




</body>

</html>
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,6 @@ <h4 id="springboot">SpringBoot</h4>




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/java-syntax-sugar/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,6 @@ <h3 id="总结">总结</h3>




</body>

</html>
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,6 @@ <h3 id="jdk18版本的currenthashmap的实现原理">JDK1.8版本的CurrentHashM




</body>

</html>
1 change: 0 additions & 1 deletion blog-site/public/posts/essays/java-transaction/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,6 @@ <h2 id="分布式解决方案对比">分布式解决方案对比</h2>




</body>

</html>
Loading

0 comments on commit 38ec1a0

Please sign in to comment.