File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -204,3 +204,16 @@ a.button
204
204
border-left 4px solid transparent
205
205
border-right 4px solid transparent
206
206
border-top 5px solid #c c c
207
+
208
+ .gitter-open-chat-button
209
+ background-color : #4f c0 8d ;
210
+ text-transform : none ;
211
+ -webkit- transition : opacity 1s ease ;
212
+ -moz- transition : opacity 1s ease ;
213
+ -ms- transition : opacity 1s ease ;
214
+ -o- transition : opacity 1s ease ;
215
+ transition : opacity 1s ease ;
216
+ opacity : 0
217
+
218
+ & is-displayed
219
+ opacity : 1 ;
Original file line number Diff line number Diff line change 7
7
initApiSpecLinks ( )
8
8
initLocationHashFuzzyMatching ( )
9
9
}
10
+ initChat ( )
11
+
12
+ function initChat ( ) {
13
+ var script = document . createElement ( "script" ) ;
14
+ window . gitter = {
15
+ chat : {
16
+ options : {
17
+ room : "vuejs-fr/vue"
18
+ }
19
+ }
20
+ } ;
21
+ script . src = "https://sidecar.gitter.im/dist/sidecar.v1.js" ;
22
+ script . async = true ;
23
+ script . defer = true ;
24
+ document . body . appendChild ( script ) ;
25
+ ( function changeOpenChat ( ) {
26
+ var name = document . getElementsByClassName ( "gitter-open-chat-button" ) [ 0 ] ;
27
+ if ( name ) {
28
+ name . innerHTML = 'Chat rapide' ;
29
+ name . classList . add ( "is-displayed" ) ;
30
+ } else {
31
+ setTimeout ( changeOpenChat , 200 ) ;
32
+ }
33
+ } ( ) ) ;
34
+ }
10
35
11
36
function initApiSpecLinks ( ) {
12
37
var apiContent = document . querySelector ( '.content.api' )
You can’t perform that action at this time.
0 commit comments