@@ -175,23 +175,23 @@ function playground_text(playground) {
175175
176176 var buttons = document . createElement ( 'div' ) ;
177177 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>" ;
179179
180180 // add expand button
181181 var pre_block = block . parentNode ;
182182 pre_block . insertBefore ( buttons , pre_block . firstChild ) ;
183183
184184 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 ' ) ;
188188 e . target . title = 'Hide lines' ;
189189 e . target . setAttribute ( 'aria-label' , e . target . title ) ;
190190
191191 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 ' ) ;
195195 e . target . title = 'Show hidden lines' ;
196196 e . target . setAttribute ( 'aria-label' , e . target . title ) ;
197197
0 commit comments