Lines Matching refs:state
244 /* add default state */
264 /* current state of the toggler: */
265 var state = 'auto';
266 if (t.classList.contains('show')) state = 'show';
267 if (t.classList.contains('hide')) state = 'hide';
268 if (t.classList.contains('alt')) state = 'alt';
270 /* set new state: */
272 if (state == 'show') { newState = 'hide' }
273 else if (state == 'hide') { newState = 'show' }
274 else if (state == 'alt') { newState = 'auto' }
276 t.classList.remove(state);