Skip to content

Commit

Permalink
🎉auto update by Gmeek action
Browse files Browse the repository at this point in the history
  • Loading branch information
cao-gift committed Jul 20, 2024
1 parent 7161c61 commit da88f50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
### :page_facing_up: [12](https://blog.freeblock.cn/tag.html)
### :speech_balloon: 0
### :hibiscus: 53203
### :alarm_clock: 2024-07-20 21:07:55
### :alarm_clock: 2024-07-20 21:12:36
### Powered by :heart: [Gmeek](https://github.com/Meekdai/Gmeek)
3 changes: 2 additions & 1 deletion docs/assets/GmeekTOC.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function createTOC() {

document.addEventListener("DOMContentLoaded", function() {
createTOC();
var css = '.toc {position:fixed;top:130px;left:50%;transform: translateX(50%) translateX(300px);width:200px;padding-left:30px;}@media (max-width: 1249px) {.toc{position:static;top:auto;left:auto;transform:none;padding:10px;margin-bottom:20px;background-color:#eee;}}';
var css = '.toc {position:fixed;top:130px;left:50%;transform: translateX(50%) translateX(300px);width:200px;padding-left:30px;}@media (max-width: 1249px) {.toc{position:static;top:auto;left:auto;transform:none;padding:10px;margin-bottom:20px;background-color:var(--color-open-muted);}}';
loadResource('style', {css: css});

loadResource('script', { src: 'https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/tocbot/4.27.4/tocbot.min.js' }, function() {
Expand All @@ -55,4 +55,5 @@ document.addEventListener("DOMContentLoaded", function() {
var footerPlaceholder = document.createElement('div');
footerPlaceholder.style.height = window.innerHeight + 'px';
document.body.appendChild(footerPlaceholder);
console.log("\n %c GmeekTOC Plugins https://github.com/Meekdai/Gmeek \n","padding:5px 0;background:#C333D0;color:#fff");
});

0 comments on commit da88f50

Please sign in to comment.