| 
									
										
										
										
											2022-02-17 11:41:34 +09:00
										 |  |  | <div [class]="widget === false ? 'container-xl' : ''"> | 
					
						
							| 
									
										
										
										
											2022-02-16 21:20:28 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-17 11:41:34 +09:00
										 |  |  |   <div class="card-header mb-0 mb-lg-4" [style]="widget ? 'display:none' : ''"> | 
					
						
							| 
									
										
										
										
											2022-02-17 09:41:05 +09:00
										 |  |  |     <form [formGroup]="radioGroupForm" class="formRadioGroup" *ngIf="(difficultyObservable$ | async) as diffChanges"> | 
					
						
							|  |  |  |       <div class="btn-group btn-group-toggle" ngbRadioGroup name="radioBasic" formControlName="dateSpan"> | 
					
						
							|  |  |  |         <label ngbButtonLabel class="btn-primary btn-sm" [routerLink]="['/mining/difficulty' | relativeUrl]" *ngIf="diffChanges.availableTimespanDay >= 90"> | 
					
						
							|  |  |  |           <input ngbButton type="radio" [value]="'3m'" fragment="3m"> 3M | 
					
						
							|  |  |  |         </label> | 
					
						
							|  |  |  |         <label ngbButtonLabel class="btn-primary btn-sm" [routerLink]="['/mining/difficulty' | relativeUrl]" *ngIf="diffChanges.availableTimespanDay >= 180"> | 
					
						
							|  |  |  |           <input ngbButton type="radio" [value]="'6m'" fragment="6m"> 6M | 
					
						
							|  |  |  |         </label> | 
					
						
							|  |  |  |         <label ngbButtonLabel class="btn-primary btn-sm" [routerLink]="['/mining/difficulty' | relativeUrl]" *ngIf="diffChanges.availableTimespanDay >= 365"> | 
					
						
							|  |  |  |           <input ngbButton type="radio" [value]="'1y'" fragment="1y"> 1Y | 
					
						
							|  |  |  |         </label> | 
					
						
							|  |  |  |         <label ngbButtonLabel class="btn-primary btn-sm" [routerLink]="['/mining/difficulty' | relativeUrl]" *ngIf="diffChanges.availableTimespanDay >= 730"> | 
					
						
							|  |  |  |           <input ngbButton type="radio" [value]="'2y'" fragment="2y"> 2Y | 
					
						
							|  |  |  |         </label> | 
					
						
							|  |  |  |         <label ngbButtonLabel class="btn-primary btn-sm" [routerLink]="['/mining/difficulty' | relativeUrl]" *ngIf="diffChanges.availableTimespanDay >= 1095"> | 
					
						
							|  |  |  |           <input ngbButton type="radio" [value]="'3y'" fragment="3y"> 3Y | 
					
						
							|  |  |  |         </label> | 
					
						
							|  |  |  |         <label ngbButtonLabel class="btn-primary btn-sm"> | 
					
						
							|  |  |  |           <input ngbButton type="radio" [value]="'all'" [routerLink]="['/mining/difficulty' | relativeUrl]" fragment="all"> ALL | 
					
						
							|  |  |  |         </label> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </form> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-22 00:17:41 +09:00
										 |  |  |   <div *ngIf="difficultyObservable$ | async" class="mb-5" echarts [initOpts]="chartInitOptions" [options]="chartOptions"></div> | 
					
						
							|  |  |  |   <div class="text-center loadingGraphs" *ngIf="isLoading"> | 
					
						
							|  |  |  |     <div class="spinner-border text-light"></div> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-17 11:41:34 +09:00
										 |  |  |   <table class="table table-borderless table-sm text-center" *ngIf="!widget"> | 
					
						
							| 
									
										
										
										
											2022-02-16 22:56:06 +09:00
										 |  |  |     <thead> | 
					
						
							|  |  |  |       <tr> | 
					
						
							|  |  |  |         <th i18n="mining.rank">Block</th> | 
					
						
							|  |  |  |         <th i18n="block.timestamp">Timestamp</th> | 
					
						
							|  |  |  |         <th i18n="mining.difficulty">Difficulty</th> | 
					
						
							|  |  |  |         <th i18n="mining.change">Change</th> | 
					
						
							|  |  |  |       </tr> | 
					
						
							|  |  |  |     </thead> | 
					
						
							| 
									
										
										
										
											2022-02-17 09:41:05 +09:00
										 |  |  |     <tbody *ngIf="(difficultyObservable$ | async) as diffChanges"> | 
					
						
							|  |  |  |       <tr *ngFor="let diffChange of diffChanges.data"> | 
					
						
							|  |  |  |         <td><a [routerLink]="['/block' | relativeUrl, diffChange.height]">{{ diffChange.height }}</a></td> | 
					
						
							|  |  |  |         <td>‎{{ diffChange.timestamp * 1000 | date:'yyyy-MM-dd HH:mm' }}</td> | 
					
						
							| 
									
										
										
										
											2022-02-17 10:15:41 +09:00
										 |  |  |         <td class="d-none d-md-block">{{ formatNumber(diffChange.difficulty, locale, '1.2-2') }}</td> | 
					
						
							|  |  |  |         <td class="d-block d-md-none">{{ diffChange.difficultyShorten }}</td> | 
					
						
							| 
									
										
										
										
											2022-02-17 09:41:05 +09:00
										 |  |  |         <td [style]="diffChange.change >= 0 ? 'color: #42B747' : 'color: #B74242'">{{ formatNumber(diffChange.change, locale, '1.2-2') }}%</td> | 
					
						
							| 
									
										
										
										
											2022-02-16 22:56:06 +09:00
										 |  |  |       </tr> | 
					
						
							|  |  |  |     </tbody> | 
					
						
							|  |  |  |   </table> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-16 21:20:28 +09:00
										 |  |  | </div> |