File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -366,6 +366,19 @@ document.getElementById('minimise-btn').addEventListener('click', () => {
366366  renderLeaderboard ( ) ; 
367367} ) ; 
368368
369+ document . getElementById ( "info-btn" ) . addEventListener ( "click" ,  ( )  =>  { 
370+   document . getElementById ( "info-popup" ) . style . display  =  "block" ; 
371+ } ) ; 
372+ 
373+ document . getElementById ( "popup-close" ) . addEventListener ( "click" ,  ( )  =>  { 
374+   document . getElementById ( "info-popup" ) . style . display  =  "none" ; 
375+ } ) ; 
376+ 
377+ window . addEventListener ( "click" ,  ( e )  =>  { 
378+   if  ( e . target . id  ===  "info-popup" )  { 
379+     document . getElementById ( "info-popup" ) . style . display  =  "none" ; 
380+   } 
381+ } ) ; 
369382
370383/* 
371384// Reload matches every 30 seconds 
Original file line number Diff line number Diff line change @@ -300,4 +300,32 @@ a:active {
300300  width :  0%  ;
301301  background-color :  # 4CAF50 ;
302302  transition :  width 0.2s   ease;
303- }  
303+ }  
304+ 
305+ .popup-box  {
306+   display :  none; /* hidden by default */ 
307+   position :  fixed;
308+   z-index :  1000 ;
309+   left :  0 ; top :  0 ;
310+   width :  100%  ; height :  100%  ;
311+   background-color :  rgba (0 ,  0 ,  0 ,  0.5 ); /* dim background */ 
312+ }
313+ 
314+ .popup-content  {
315+   background-color :  # 1e1e1e ;
316+   color :  white;
317+   margin :  10%   auto;
318+   padding :  1rem   2rem  ;
319+   border-radius :  8px  ;
320+   width :  90%  ;
321+   max-width :  400px  ;
322+   position :  relative;
323+ }
324+ 
325+ # popup-close  {
326+   position :  absolute;
327+   top :  0.5rem  ;
328+   right :  0.8rem  ;
329+   font-size :  1.2rem  ;
330+   cursor :  pointer;
331+ }
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments