File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 458458} ) ( ) ; 
459459
460460
461+ /// remove-class.js 
462+ /// alias rc.js 
463+ ( function ( )  { 
464+     const  token  =  '{{1}}' ; 
465+     if  (  token  ===  ''  ||  token  ===  '{{1}}'  )  {  return ;  } 
466+     const  tokens  =  token . split ( / \s * \| \s * / ) ; 
467+     let  selector  =  '{{2}}' ; 
468+     if  (  selector  ===  ''  ||  selector  ===  '{{2}}'  )  { 
469+         selector  =  '.'  +  tokens . map ( a  =>  CSS . escape ( a ) ) . join ( ',.' ) ; 
470+     } 
471+     const  rmclass  =  function ( )  { 
472+         try  { 
473+             const  nodes  =  document . querySelectorAll ( selector ) ; 
474+             for  (  const  node  of  nodes  )  { 
475+                 node . classList . remove ( ...tokens ) ; 
476+             } 
477+         }  catch ( ex )  { 
478+         } 
479+     } ; 
480+     if  (  document . readyState  ===  'loading'  )  { 
481+         window . addEventListener ( 
482+             'DOMContentLoaded' , 
483+             rmclass , 
484+             {  capture : true ,  once : true  } 
485+         ) ; 
486+     }  else  { 
487+         rmclass ( ) ; 
488+     } 
489+ } ) ( ) ; 
490+ 
491+ 
461492/// requestAnimationFrame-if.js 
462493/// alias raf-if.js 
463494( function ( )  { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments