2DU 8 år sedan
förälder
incheckning
25ed9e49cc
2 ändrade filer med 12 tillägg och 20 borttagningar
  1. 7 7
      app.py
  2. 5 13
      views/css/style.css

+ 7 - 7
app.py

@@ -2252,7 +2252,7 @@ def topic(name = None, sub = None):
                 div += '<table id="toron"> \
                             <tbody> \
                                 <tr> \
-                                    <td id="toroncolorred"> \
+                                    <td id="toron_color_red"> \
                                         <a href="#' + dain['id'] + '">#' + dain['id'] + '</a> ' + ip + ' <span style="float:right;">' + dain['date'] + '</span> \
                                     </td> \
                                 </tr> \
@@ -2314,16 +2314,16 @@ def topic(name = None, sub = None):
             ip = ip_pas(dain['ip'], 1)
                     
             if(dain['top'] == '1'):
-                color = 'blue'
+                color = '_blue'
             elif(dain['ip'] == start):
-                color = 'green'
+                color = '_green'
             else:
                 color = ''
                          
             div += '<table id="toron"> \
                         <tbody> \
                             <tr> \
-                                <td id="toroncolor' + color + '"> \
+                                <td id="toron_color' + color + '"> \
                                     <a href="javascript:void(0);" id="' + str(i + 1) + '">#' + str(i + 1) + '</a> ' + ip + chad + ban + ' <span style="float:right;">' + dain['date'] + '</span> \
                                 </td> \
                             </tr> \
@@ -2389,7 +2389,7 @@ def close_topic_list(name = None):
                     <table id="toron"> \
                         <tbody> \
                             <tr> \
-                                <td id="toroncolorgreen"> \
+                                <td id="toron_color_green"> \
                                     <a href="javascript:void(0);" id="1">#1</a> ' + ip + ' <span style="float:right;">' + row[0]['date'] + '</span> \
                                 </td> \
                             </tr> \
@@ -2453,7 +2453,7 @@ def agree_topic_list(name = None):
                     <table id="toron"> \
                         <tbody> \
                             <tr> \
-                                <td id="toroncolorgreen"> \
+                                <td id="toron_color_green"> \
                                     <a href="javascript:void(0);" id="1">#1</a> ' + ip + ' <span style="float:right;">' + topic_data[0]['date'] + '</span> \
                                 </td> \
                             </tr> \
@@ -2523,7 +2523,7 @@ def topic_list(name = None):
                         <table id="toron"> \
                             <tbody> \
                                 <tr> \
-                                    <td id="toroncolorgreen"> \
+                                    <td id="toron_color_green"> \
                                         <a href="javascript:void(0);" id="1">#1</a> ' + ip + ' <span style="float:right;">' + aa[0]['date'] + '</span> \
                                     </td> \
                                 </tr> \

+ 5 - 13
views/css/style.css

@@ -378,15 +378,15 @@ body {
     width: 100%;
 }
 
-#toroncolorgreen {
+#toron_color_green {
     background-color: #B0D3AD;
 }
 
-#toroncolorred {
+#toron_color_red {
     background-color: #f3c2c2;
 }
 
-#toroncolor {
+#toron_color {
     background-color: #d5d5d5;
 }
 
@@ -416,18 +416,10 @@ body {
     z-index: 10000;
 }
 
-#toroncolorstop {
-    background: #9dd5e1;
-}
-
 #bl {
     background: gainsboro;
 }
 
-#toroncoloradmin {
-    background-color: #F5C1C1;
-}
-
 @media (min-width: 768px) {
     .four-fifths {
         width: 85%;
@@ -510,11 +502,11 @@ pre span {
     }        
 }
 
-td#block {
+#block {
     background: gainsboro;
 }
 
-td#toroncolorblue {
+#toron_color_blue {
     background: #c1ebff;
 }