Created
July 21, 2017 01:27
-
-
Save rdegges/d01bba5f8df9d88ac1d9afd8d36f3286 to your computer and use it in GitHub Desktop.
Crypto Compare table.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table class="table table-hover"> | |
<thead> | |
<tr> | |
<td>Rank</td> | |
<td>Name</td> | |
<td>Symbol</td> | |
<td>Price (USD)</td> | |
<td>1H</td> | |
<td>1D</td> | |
<td>1W</td> | |
<td>Market Cap (USD)</td> | |
</thead> | |
<tbody> | |
<tr v-for="coin in coins"> | |
<td>{{ coin.rank }}</td> | |
<td><img v-bind:src="getCoinImage(coin.symbol)"> {{ coin.name }}</td> | |
<td>{{ coin.symbol }}</td> | |
<td>{{ coin.price_usd | currency }}</td> | |
<td> | |
<span v-if="coin.percent_change_1h > 0">+</span>{{ coin.percent_change_1h }}% | |
</td> | |
<td> | |
<span v-if="coin.percent_change_24h > 0">+</span>{{ coin.percent_change_24h }}% | |
</td> | |
<td> | |
<span v-if="coin.percent_change_7d > 0">+</span>{{ coin.percent_change_7d }}% | |
</td> | |
<td>{{ coin.market_cap_usd | currency }}</td> | |
</tr> | |
</tbody> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment