File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,11 @@ function addStaticButton(container) {
5252 container . innerHTML = `
5353 <a href="https://github.com/xiaohajiayou/Leetcode-Mastery-Scheduler"
5454 target="_blank"
55- style="text-decoration: none;">
56- <button class="btn custom-btn" style="padding: 4px 12px;">
57- <i class="fab fa-github"></i> Star
58- </button>
55+ style="text-decoration: none; display: inline-block;">
56+ <img alt="GitHub stars"
57+ src="https://img.shields.io/github/stars/xiaohajiayou/Leetcode-Mastery-Scheduler?style=social"
58+ height="20"
59+ style="margin: 0; vertical-align: middle;">
5960 </a>
6061 ` ;
6162}
@@ -65,7 +66,7 @@ document.addEventListener('DOMContentLoaded', function() {
6566 console . log ( 'DOM已加载,准备加载GitHub Star按钮' ) ;
6667
6768 // 立即尝试加载
68- loadGithubStar ( ) ;
69+ // loadGithubStar();
6970
7071 // 添加备份检查,如果5秒后容器仍然为空,则使用静态按钮
7172 setTimeout ( function ( ) {
@@ -74,5 +75,5 @@ document.addEventListener('DOMContentLoaded', function() {
7475 console . log ( '5秒后容器仍为空,添加静态按钮' ) ;
7576 addStaticButton ( container ) ;
7677 }
77- } , 3000 ) ;
78+ } , 3500 ) ;
7879} ) ;
You can’t perform that action at this time.
0 commit comments