This commit is contained in:
root 2019-08-29 13:37:40 +05:30
parent c6b3646834
commit 1285afeee0
2 changed files with 10 additions and 3 deletions

View File

@ -1,12 +1,12 @@
<div [ngClass]="{'mobile_table alt_color' : true, hght_40: item.id != clickValue }" id="hash_{{blockdetails.blockchain_block_height}}" #item >
<div [ngClass]="{'mobile_table' : true, hght_40: item.id != clickValue }" id="hash_{{blockdetails.blockchain_block_height}}" #item >
<div class="my-animation">
<div class="row">
<div class="row" [ngStyle]="{ 'background-color': blockdetails.zibra_colour }">
<div class="col-6 col-md-3 tble_col">
<div class="block_div"> <span *ngIf="item.id != clickValue" (click)="onClickPlus(blockdetails.blockchain_block_height);" class="expnd_blck"><i class="fa fa-plus"></i></span>
<span *ngIf="item.id == clickValue" (click)="onClickMinus(blockdetails.blockchain_block_height);" class="expnd_blck"><i class="fa fa-minus"></i></span><h6>Height</h6><span class="blck_value link_to_detail" routerLink="/blockdetail/{{ blockdetails.blockchain_block_height }}">{{ blockdetails.blockchain_block_height }}</span></div>
</div>
<div class="col-6 col-md-3 tble_col">
<div [title]="blockdetails.blockchain_block_hash" routerLink="/blockdetail/{{ blockdetails.blockchain_block_hash }}" class="block_div link_to_detail"><h6>Hash</h6><span class="blck_value">{{ blockdetails.hashstart
<div [title]="blockdetails.blockchain_block_hash" routerLink="/blockdetail/{{ blockdetails.blockchain_block_hash }}" class="block_div"><h6>Hash</h6><span class="blck_value">{{ blockdetails.hashstart
}}<span
*ngFor="let color of blockdetails.hasharray"
class="hash"

View File

@ -21,6 +21,7 @@ export class LatestblocksComponent implements OnInit {
public DifferentList: any = [];
public blockAppend: any;
public blockdetails: any;
public zibra_color = "#f3f4f2";
public lastblock: any;
public clickValue: any;
public clickPeer: any;
@ -119,6 +120,12 @@ export class LatestblocksComponent implements OnInit {
this.blockAppend['output_count'] = DifferentList.output_count;
this.blockAppend['kernal_count'] = DifferentList.kernal_count;
this.blockAppend['hashstart'] = DifferentList.hashstart;
this.blockAppend['zibra_colour'] = this.zibra_color;
if(this.zibra_color == "#f3f4f2"){
this.zibra_color = "#dadada";
}else{
this.zibra_color = "#f3f4f2";
}
this.blockAppend['hashend'] = DifferentList.hashend;
this.blockAppend['hasharray'] = DifferentList.hasharray;
this.blockAppend['target_difficulty_cuckaroo'] = DifferentList.target_difficulty_cuckaroo;