File tree Expand file tree Collapse file tree 7 files changed +21
-56
lines changed Expand file tree Collapse file tree 7 files changed +21
-56
lines changed Original file line number Diff line number Diff line change @@ -425,8 +425,7 @@ <h1 id="101宿舍"><a href="#101宿舍" class="headerlink" title="101宿舍"></a
425
425
426
426
< div class ="comments " id ="comments ">
427
427
428
- < div onclick ="showGitment() " id ="gitment-display-button "> Show comments from Gitment</ div >
429
- < div id ="gitment-container " style ="display:none "> </ div >
428
+ < div id ="gitment-container "> </ div >
430
429
431
430
</ div >
432
431
@@ -731,7 +730,7 @@ <h1 id="101宿舍"><a href="#101宿舍" class="headerlink" title="101宿舍"></a
731
730
var gitment = new Gitmint ( {
732
731
id : window . location . pathname ,
733
732
owner : 'githubcpc' ,
734
- repo : 'https:// githubcpc.github.io' ,
733
+ repo : 'githubcpc.github.io' ,
735
734
736
735
lang : "zh-Hans" || navigator . language || navigator . systemLanguage || navigator . userLanguage ,
737
736
@@ -746,11 +745,7 @@ <h1 id="101宿舍"><a href="#101宿舍" class="headerlink" title="101宿舍"></a
746
745
}
747
746
748
747
749
- function showGitment ( ) {
750
- document . getElementById ( "gitment-display-button" ) . style . display = "none" ;
751
- document . getElementById ( "gitment-container" ) . style . display = "block" ;
752
- renderGitment ( ) ;
753
- }
748
+ renderGitment ( ) ;
754
749
755
750
</ script >
756
751
Original file line number Diff line number Diff line change @@ -417,8 +417,7 @@ <h1 class="post-title" itemprop="name headline">hello,cpc</h1>
417
417
418
418
< div class ="comments " id ="comments ">
419
419
420
- < div onclick ="showGitment() " id ="gitment-display-button "> Show comments from Gitment</ div >
421
- < div id ="gitment-container " style ="display:none "> </ div >
420
+ < div id ="gitment-container "> </ div >
422
421
423
422
</ div >
424
423
@@ -698,7 +697,7 @@ <h1 class="post-title" itemprop="name headline">hello,cpc</h1>
698
697
var gitment = new Gitmint ( {
699
698
id : window . location . pathname ,
700
699
owner : 'githubcpc' ,
701
- repo : 'https:// githubcpc.github.io' ,
700
+ repo : 'githubcpc.github.io' ,
702
701
703
702
lang : "zh-Hans" || navigator . language || navigator . systemLanguage || navigator . userLanguage ,
704
703
@@ -713,11 +712,7 @@ <h1 class="post-title" itemprop="name headline">hello,cpc</h1>
713
712
}
714
713
715
714
716
- function showGitment ( ) {
717
- document . getElementById ( "gitment-display-button" ) . style . display = "none" ;
718
- document . getElementById ( "gitment-container" ) . style . display = "block" ;
719
- renderGitment ( ) ;
720
- }
715
+ renderGitment ( ) ;
721
716
722
717
</ script >
723
718
Original file line number Diff line number Diff line change @@ -467,8 +467,7 @@ <h2 id="下载源码"><a href="#下载源码" class="headerlink" title="下载
467
467
468
468
< div class ="comments " id ="comments ">
469
469
470
- < div onclick ="showGitment() " id ="gitment-display-button "> Show comments from Gitment</ div >
471
- < div id ="gitment-container " style ="display:none "> </ div >
470
+ < div id ="gitment-container "> </ div >
472
471
473
472
</ div >
474
473
@@ -773,7 +772,7 @@ <h2 id="下载源码"><a href="#下载源码" class="headerlink" title="下载
773
772
var gitment = new Gitmint ( {
774
773
id : window . location . pathname ,
775
774
owner : 'githubcpc' ,
776
- repo : 'https:// githubcpc.github.io' ,
775
+ repo : 'githubcpc.github.io' ,
777
776
778
777
lang : "zh-Hans" || navigator . language || navigator . systemLanguage || navigator . userLanguage ,
779
778
@@ -788,11 +787,7 @@ <h2 id="下载源码"><a href="#下载源码" class="headerlink" title="下载
788
787
}
789
788
790
789
791
- function showGitment ( ) {
792
- document . getElementById ( "gitment-display-button" ) . style . display = "none" ;
793
- document . getElementById ( "gitment-container" ) . style . display = "block" ;
794
- renderGitment ( ) ;
795
- }
790
+ renderGitment ( ) ;
796
791
797
792
</ script >
798
793
Original file line number Diff line number Diff line change @@ -300,8 +300,7 @@ <h1 class="post-title" itemprop="name headline">about</h1>
300
300
301
301
< div class ="comments " id ="comments ">
302
302
303
- < div onclick ="showGitment() " id ="gitment-display-button "> Show comments from Gitment</ div >
304
- < div id ="gitment-container " style ="display:none "> </ div >
303
+ < div id ="gitment-container "> </ div >
305
304
306
305
</ div >
307
306
@@ -581,7 +580,7 @@ <h1 class="post-title" itemprop="name headline">about</h1>
581
580
var gitment = new Gitmint ( {
582
581
id : window . location . pathname ,
583
582
owner : 'githubcpc' ,
584
- repo : 'https:// githubcpc.github.io' ,
583
+ repo : 'githubcpc.github.io' ,
585
584
586
585
lang : "zh-Hans" || navigator . language || navigator . systemLanguage || navigator . userLanguage ,
587
586
@@ -596,11 +595,7 @@ <h1 class="post-title" itemprop="name headline">about</h1>
596
595
}
597
596
598
597
599
- function showGitment ( ) {
600
- document . getElementById ( "gitment-display-button" ) . style . display = "none" ;
601
- document . getElementById ( "gitment-container" ) . style . display = "block" ;
602
- renderGitment ( ) ;
603
- }
598
+ renderGitment ( ) ;
604
599
605
600
</ script >
606
601
Original file line number Diff line number Diff line change @@ -296,8 +296,7 @@ <h1 class="post-title" itemprop="name headline">categories</h1>
296
296
297
297
< div class ="comments " id ="comments ">
298
298
299
- < div onclick ="showGitment() " id ="gitment-display-button "> Show comments from Gitment</ div >
300
- < div id ="gitment-container " style ="display:none "> </ div >
299
+ < div id ="gitment-container "> </ div >
301
300
302
301
</ div >
303
302
@@ -577,7 +576,7 @@ <h1 class="post-title" itemprop="name headline">categories</h1>
577
576
var gitment = new Gitmint ( {
578
577
id : window . location . pathname ,
579
578
owner : 'githubcpc' ,
580
- repo : 'https:// githubcpc.github.io' ,
579
+ repo : 'githubcpc.github.io' ,
581
580
582
581
lang : "zh-Hans" || navigator . language || navigator . systemLanguage || navigator . userLanguage ,
583
582
@@ -592,11 +591,7 @@ <h1 class="post-title" itemprop="name headline">categories</h1>
592
591
}
593
592
594
593
595
- function showGitment ( ) {
596
- document . getElementById ( "gitment-display-button" ) . style . display = "none" ;
597
- document . getElementById ( "gitment-container" ) . style . display = "block" ;
598
- renderGitment ( ) ;
599
- }
594
+ renderGitment ( ) ;
600
595
601
596
</ script >
602
597
Original file line number Diff line number Diff line change @@ -296,8 +296,7 @@ <h1 class="post-title" itemprop="name headline">schedule</h1>
296
296
297
297
< div class ="comments " id ="comments ">
298
298
299
- < div onclick ="showGitment() " id ="gitment-display-button "> Show comments from Gitment</ div >
300
- < div id ="gitment-container " style ="display:none "> </ div >
299
+ < div id ="gitment-container "> </ div >
301
300
302
301
</ div >
303
302
@@ -577,7 +576,7 @@ <h1 class="post-title" itemprop="name headline">schedule</h1>
577
576
var gitment = new Gitmint ( {
578
577
id : window . location . pathname ,
579
578
owner : 'githubcpc' ,
580
- repo : 'https:// githubcpc.github.io' ,
579
+ repo : 'githubcpc.github.io' ,
581
580
582
581
lang : "zh-Hans" || navigator . language || navigator . systemLanguage || navigator . userLanguage ,
583
582
@@ -592,11 +591,7 @@ <h1 class="post-title" itemprop="name headline">schedule</h1>
592
591
}
593
592
594
593
595
- function showGitment ( ) {
596
- document . getElementById ( "gitment-display-button" ) . style . display = "none" ;
597
- document . getElementById ( "gitment-container" ) . style . display = "block" ;
598
- renderGitment ( ) ;
599
- }
594
+ renderGitment ( ) ;
600
595
601
596
</ script >
602
597
Original file line number Diff line number Diff line change @@ -303,8 +303,7 @@ <h1 class="post-title" itemprop="name headline">tags</h1>
303
303
304
304
< div class ="comments " id ="comments ">
305
305
306
- < div onclick ="showGitment() " id ="gitment-display-button "> Show comments from Gitment</ div >
307
- < div id ="gitment-container " style ="display:none "> </ div >
306
+ < div id ="gitment-container "> </ div >
308
307
309
308
</ div >
310
309
@@ -584,7 +583,7 @@ <h1 class="post-title" itemprop="name headline">tags</h1>
584
583
var gitment = new Gitmint ( {
585
584
id : window . location . pathname ,
586
585
owner : 'githubcpc' ,
587
- repo : 'https:// githubcpc.github.io' ,
586
+ repo : 'githubcpc.github.io' ,
588
587
589
588
lang : "zh-Hans" || navigator . language || navigator . systemLanguage || navigator . userLanguage ,
590
589
@@ -599,11 +598,7 @@ <h1 class="post-title" itemprop="name headline">tags</h1>
599
598
}
600
599
601
600
602
- function showGitment ( ) {
603
- document . getElementById ( "gitment-display-button" ) . style . display = "none" ;
604
- document . getElementById ( "gitment-container" ) . style . display = "block" ;
605
- renderGitment ( ) ;
606
- }
601
+ renderGitment ( ) ;
607
602
608
603
</ script >
609
604
You can’t perform that action at this time.
0 commit comments