2023-05-30 10:13:07 -07:00
|
|
|
<app-indexing-progress *ngIf="showLoadingIndicator"></app-indexing-progress>
|
|
|
|
|
2021-11-09 22:25:03 -03:00
|
|
|
<ng-container *ngIf="specialEvent">
|
|
|
|
<div class="pyro">
|
2024-01-25 01:41:49 +00:00
|
|
|
<div class="inner a"></div>
|
|
|
|
<div class="inner b"></div>
|
|
|
|
<div class="inner c"></div>
|
2021-11-09 22:25:03 -03:00
|
|
|
</div>
|
|
|
|
<div class="warning-label">{{ eventName }}</div>
|
|
|
|
</ng-container>
|
2021-11-12 20:24:15 +04:00
|
|
|
|
|
|
|
<div *ngIf="countdown > 0" class="warning-label">{{ eventName }} in {{ countdown | number }} block{{ countdown === 1 ? '' : 's' }}!</div>
|
|
|
|
|
2023-08-22 23:08:36 +09:00
|
|
|
<div class="blockchain-wrapper" [class.time-ltr]="timeLtr" [class.time-rtl]="!timeLtr" #blockchainWrapper>
|
2023-01-26 11:55:26 -06:00
|
|
|
<div id="blockchain-container" [dir]="timeLtr ? 'rtl' : 'ltr'" #blockchainContainer
|
2023-09-15 17:11:52 +02:00
|
|
|
[class.with-menu]="hasMenu"
|
2023-01-26 11:55:26 -06:00
|
|
|
(mousedown)="onMouseDown($event)"
|
2023-03-03 02:43:44 -06:00
|
|
|
(pointerdown)="onPointerDown($event)"
|
|
|
|
(touchmove)="onTouchMove($event)"
|
2023-01-26 11:55:26 -06:00
|
|
|
(dragstart)="onDragStart($event)"
|
|
|
|
(scroll)="onScroll($event)"
|
|
|
|
>
|
2023-08-22 23:08:36 +09:00
|
|
|
<app-blockchain
|
|
|
|
[containerWidth]="chainWidth"
|
|
|
|
[pageIndex]="pageIndex"
|
|
|
|
[pages]="pages"
|
|
|
|
[blocksPerPage]="blocksPerPage"
|
|
|
|
[minScrollWidth]="minScrollWidth"
|
|
|
|
[scrollableMempool]="true"
|
|
|
|
(mempoolOffsetChange)="onMempoolOffsetChange($event)"
|
|
|
|
></app-blockchain>
|
2023-01-26 11:55:26 -06:00
|
|
|
</div>
|
|
|
|
<div class="reset-scroll" [class.hidden]="pageIndex === 0" (click)="resetScroll()">
|
2023-02-14 17:24:48 +07:00
|
|
|
<fa-icon [icon]="['fas', 'circle-left']" [fixedWidth]="true"></fa-icon>
|
2023-01-26 11:55:26 -06:00
|
|
|
</div>
|
2020-03-22 17:44:36 +07:00
|
|
|
</div>
|
2020-03-11 16:31:37 +07:00
|
|
|
|
2023-10-29 01:27:19 +00:00
|
|
|
<ng-container *serverOnly>
|
|
|
|
<!-- disgusting hack to apply an initial scroll to server-side rendered blockchain bar -->
|
|
|
|
<img *ngIf="!stateService.isLiquid()" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="pixel" style="visibility: hidden; position: absolute;" onload="(() => { const b = document.getElementById('blockchain-container'); const d = document.getElementById('divider'); if (b && d) { b.scrollLeft = d.getBoundingClientRect().x - (window.innerWidth * (window.innerWidth >= 768 ? 0.5 : 0.95)); }})()">
|
|
|
|
<img *ngIf="stateService.isLiquid()" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="pixel" style="visibility: hidden; position: absolute;" onload="(() => { const b = document.getElementById('blockchain-container'); const d = document.getElementById('divider'); if (b && d) { b.scrollLeft = d.getBoundingClientRect().x - (window.innerWidth >= 768 ? 420 : (window.innerWidth * 0.5)); }})()">
|
|
|
|
</ng-container>
|
|
|
|
|
2020-03-22 17:44:36 +07:00
|
|
|
<router-outlet></router-outlet>
|