File tree Expand file tree Collapse file tree 3 files changed +46
-5
lines changed Expand file tree Collapse file tree 3 files changed +46
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ var index = `<!DOCTYPE html><html>
1111    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 
1212    <title>GGG Tracker</title> 
1313    <link rel="shortcut icon" href="static/favicon.ico" /> 
14-     <link rel="stylesheet" type="text/css" href="static/style.css" /> 
14+     <link rel="stylesheet" type="text/css" href="static/style.css?v2 " /> 
1515    <link rel="alternate" type="application/rss+xml" title="GGG Tracker Forum Feed" href="rss" /> 
1616
1717    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> 
@@ -63,7 +63,7 @@ var index = `<!DOCTYPE html><html>
6363        </footer> 
6464    </div> 
6565
66-     <script src="static/index.js?v3 "></script> 
66+     <script src="static/index.js?v4 "></script> 
6767</body> 
6868</html>` 
6969
Original file line number Diff line number Diff line change 1- var  currentPage  =  undefined 
1+ var  currentPage  =  undefined ; 
2+ 
3+ var  POE  =  { 
4+     Forum : { 
5+         SpoilerClick : function ( element )  { 
6+             var  $spoiler  =  $ ( element ) . closest ( '.spoiler' ) ; 
7+             if  ( $spoiler . hasClass ( 'spoilerHidden' ) )  { 
8+                 $ ( element ) . val ( "Hide" ) ; 
9+                 $spoiler . removeClass ( 'spoilerHidden' ) ; 
10+             }  else  { 
11+                 $ ( element ) . val ( "Show" ) ; 
12+                 $spoiler . addClass ( 'spoilerHidden' ) ; 
13+             } 
14+         } , 
15+     } , 
16+ } ; 
217
318function  loadActivity ( )  { 
419    var  page  =  location . hash . replace ( / ^ # p a g e = / ,  '' ) ; 
520    if  ( currentPage  !==  undefined  &&  page  ==  currentPage )  { 
621        return ; 
722    } 
8-     var  previousPage  =  currentPage 
9-     currentPage  =  page 
23+     var  previousPage  =  currentPage ; 
24+     currentPage  =  page ; 
1025
1126    $ . get ( 'activity.json?next='  +  page ,  function ( data )  { 
1227        var  $tbody  =  $ ( '#activity-table tbody' ) ; 
Original file line number Diff line number Diff line change @@ -208,3 +208,29 @@ td.body blockquote {
208208    margin :  1.5em   10px  ;
209209    padding :  0.5em   10px  ;
210210}
211+ 
212+ .spoilerHidden  .spoilerContent  {
213+     display :  none;
214+ }
215+ 
216+ .spoilerTitle  input [type = "button" ] {
217+     margin-left :  8px  ;
218+     color :  # c9ba8a
219+     background-color :  # 0f0f0f
220+     border :  0 ;
221+     cursor :  pointer;
222+     text-decoration :  none;
223+ }
224+ 
225+ .spoilerTitle  input [type = "button" ]: hover  {
226+     text-decoration :  underline;
227+ }
228+ 
229+ .spoiler  {
230+     border :  1px   solid # 1a1a1a
231+     background-color :  # 323232
232+ }
233+ 
234+ .spoilerTitle ,  .spoilerContent  {
235+     padding :  8px  ;
236+ }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments