@@ -175,23 +175,23 @@ function playground_text(playground) {
175
175
176
176
var buttons = document . createElement ( 'div' ) ;
177
177
buttons . className = 'buttons' ;
178
- buttons . innerHTML = "<button class=\"fa fa-expand \" title=\"Show hidden lines\" aria-label=\"Show hidden lines\"></button>" ;
178
+ buttons . innerHTML = "<button class=\"fa fa-eye \" title=\"Show hidden lines\" aria-label=\"Show hidden lines\"></button>" ;
179
179
180
180
// add expand button
181
181
var pre_block = block . parentNode ;
182
182
pre_block . insertBefore ( buttons , pre_block . firstChild ) ;
183
183
184
184
pre_block . querySelector ( '.buttons' ) . addEventListener ( 'click' , function ( e ) {
185
- if ( e . target . classList . contains ( 'fa-expand ' ) ) {
186
- e . target . classList . remove ( 'fa-expand ' ) ;
187
- e . target . classList . add ( 'fa-compress ' ) ;
185
+ if ( e . target . classList . contains ( 'fa-eye ' ) ) {
186
+ e . target . classList . remove ( 'fa-eye ' ) ;
187
+ e . target . classList . add ( 'fa-eye-slash ' ) ;
188
188
e . target . title = 'Hide lines' ;
189
189
e . target . setAttribute ( 'aria-label' , e . target . title ) ;
190
190
191
191
block . classList . remove ( 'hide-boring' ) ;
192
- } else if ( e . target . classList . contains ( 'fa-compress ' ) ) {
193
- e . target . classList . remove ( 'fa-compress ' ) ;
194
- e . target . classList . add ( 'fa-expand ' ) ;
192
+ } else if ( e . target . classList . contains ( 'fa-eye-slash ' ) ) {
193
+ e . target . classList . remove ( 'fa-eye-slash ' ) ;
194
+ e . target . classList . add ( 'fa-eye ' ) ;
195
195
e . target . title = 'Show hidden lines' ;
196
196
e . target . setAttribute ( 'aria-label' , e . target . title ) ;
197
197
0 commit comments