OSDN Git Service

[modify]2段組みと1段組みの表で行ごとの色分けを区別
authorHabu <habu@users.sourceforge.jp>
Mon, 16 Apr 2018 12:44:38 +0000 (21:44 +0900)
committerHabu <habu@users.sourceforge.jp>
Mon, 16 Apr 2018 12:44:38 +0000 (21:44 +0900)
score/css/score-table.css
score/killer_ranking.php
score/popularity_ranking.php
score/score_ranking.php

index 3a71b2d..cc50954 100644 (file)
@@ -47,8 +47,13 @@ table.score tbody td.sex
        text-align: center;
 }
 
-table.score tbody tr:nth-child(4n+1) td,
-table.score tbody tr:nth-child(4n+2) td
+table.two_rows tbody tr:nth-child(4n+1) td,
+table.two_rows tbody tr:nth-child(4n+2) td
+{
+         background-color: #f9b69a;
+}
+
+table.one_row tbody tr:nth-child(odd) td
 {
          background-color: #f9b69a;
 }
index 13b85a3..1865aa1 100644 (file)
@@ -28,7 +28,7 @@ fwrite(
     $fp,
     <<<EOM
 <h2>変愚蛮怒 死因ランキング</h2>
-<table class="score">
+<table class="score one_row">
 <thead>
 <tr>
 <th>回数</th>
index bac4509..0fb402a 100644 (file)
@@ -15,7 +15,7 @@ function print_popularity_table($fp, $stat, $id_name, $name)
         $fp,
         <<<EOM
 <div id="{$id_name}">
-<table class="tablesorter score statistics_table">
+<table class="tablesorter score statistics_table one_row">
 <thead>
 <tr>
 <th>$name</th>
@@ -77,7 +77,7 @@ function print_realm_popularity_table($fp, $stat, $id_name)
         fwrite(
             $fp,
             <<<EOM
-<table class="tablesorter score statistics_table" id="${id_name}">
+<table class="tablesorter score statistics_table one_row" id="${id_name}">
 <thead>
 <tr>
 <th>{$class_name}</th>
index 74ee09b..9025790 100644 (file)
@@ -98,7 +98,7 @@ function print_score_table($fp, $scores, $rank_start)
     fwrite(
         $fp,
         <<<EOM
-<table class="score">
+<table class="score two_rows">
 <thead>
 <tr>
 <th rowspan="2">順位</th>