File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,33 @@ <h2>页面合法输入示例</h2>
9090 </ div >
9191 </ div >
9292
93+ < div id ="container "> </ div >
94+ < link rel ="stylesheet " href ="https://imsun.github.io/gitment/style/default.css ">
95+ < script src ="https://imsun.github.io/gitment/dist/gitment.browser.js "> </ script >
96+ < script >
97+ const myTheme = {
98+ render ( state , instance ) {
99+ const container = document . createElement ( 'div' )
100+ container . lang = "zh-CN"
101+ container . className = 'gitment-container gitment-root-container'
102+ container . appendChild ( instance . renderHeader ( state , instance ) )
103+ container . appendChild ( instance . renderEditor ( state , instance ) )
104+ container . appendChild ( instance . renderComments ( state , instance ) )
105+ container . appendChild ( instance . renderFooter ( state , instance ) )
106+ return container
107+ } ,
108+ }
109+ var gitment = new Gitment ( {
110+ owner : 'CB-X2-Jun' ,
111+ repo : 'CB-X2-Jun/Github_Proxy' ,
112+ oauth : {
113+ client_id : 'Ov23liBmLpGDqiz84Wqv' ,
114+ client_secret : 'af556c87e8c53600dfce3137cf298e61955ed643' ,
115+ } ,
116+ } )
117+ gitment . render ( 'container' )
118+ </ script >
119+
93120 < div class ="footer ">
94121 < div class ="footer-content ">
95122 < div class ="copyright ">
You can’t perform that action at this time.
0 commit comments