Skip to content
Snippets Groups Projects
Commit 0746be84 authored by Hidayatullah Wildan Ghaly Buchary's avatar Hidayatullah Wildan Ghaly Buchary
Browse files

style: add style on obtain-unobtain CHALLENGE

parent 1e6810d8
No related merge requests found
...@@ -77,15 +77,15 @@ foreach ($customers as $item) { ...@@ -77,15 +77,15 @@ foreach ($customers as $item) {
$achievementList .= '<td>'.$item["threshold"].'</td> '; $achievementList .= '<td>'.$item["threshold"].'</td> ';
$achievementList .= '<td>'; $achievementList .= '<td>';
if ($claimStatus){ if ($claimStatus){
$achievementList .= '<button id="cobtain" onclick=#>Obtained </button>'; $achievementList .= '<button id="obtain" class="obtain">Obtained </button>';
} else { } else {
$achievementList .= '<button id="obtain-not" onclick=#>Unobtained </button>'; $achievementList .= '<button id="obtain-not" class="obtain-not">Unobtained </button>';
} }
$achievementList .= '</td><td>'; $achievementList .= '</td><td>';
if (!$claimStatus){ if (!$claimStatus){
$achievementList .= '<button id="claim" onclick=claimFunction(' .$user_id. ',' .$item["id"]. ')>Claim</button>'; $achievementList .= '<button id="claim" class="claim" onclick=claimFunction(' .$user_id. ',' .$item["id"]. ')>Claim</button>';
} else { } else {
$achievementList .= '<button id="claim-not" onclick=unclaimFunction(' .$user_id. ',' .$item["id"]. ')>Unclaim</button>'; $achievementList .= '<button id="claim-not" class="claim-not" onclick=unclaimFunction(' .$user_id. ',' .$item["id"]. ')>Unclaim</button>';
} }
$achievementList .= '</td></tr>'; $achievementList .= '</td></tr>';
} }
......
.obtain {
background-color: rgb(0, 255, 0);
}
.obtain-not {
background-color: rgb(255, 0, 0);
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment