Message content

This commit is contained in:
shunmugam 2019-10-17 14:05:33 +05:30
parent 8401df2444
commit d82f107ae9
4 changed files with 12 additions and 3 deletions

View File

@ -103,8 +103,8 @@
</div> </div>
</div> </div>
</nav> </nav>
<p class="note_tag text-center">"Mining in August was on testnet; mainnet launched with an initial money supply of precisely zero units on <span class="font-weight-bold">September 2</span>." <p *ngIf="showContent" class="note_tag text-center">"Mining in August was on testnet; mainnet launched with an initial money supply of precisely zero units on <span class="font-weight-bold">September 2</span>."
<span class="float-right font-weight-bold">X</span> <span (click)="removeText()" class="float-right font-weight-bold">X</span>
</p> </p>
<div *ngIf="TimeArr" class="d-sm-none text-center"> <div *ngIf="TimeArr" class="d-sm-none text-center">

View File

@ -11,6 +11,7 @@ import { HttpParams } from '@angular/common/http';
}) })
export class HeaderComponent implements OnInit { export class HeaderComponent implements OnInit {
TimeArr: any; TimeArr: any;
showContent=true;
constructor( constructor(
@Inject(DOCUMENT) private document: Document, @Inject(DOCUMENT) private document: Document,
private chartService: ChartService, private chartService: ChartService,
@ -42,4 +43,8 @@ export class HeaderComponent implements OnInit {
public ChangeTheme() { public ChangeTheme() {
this.document.body.classList.toggle('dark_theme'); this.document.body.classList.toggle('dark_theme');
} }
public removeText(){
this.showContent=0;
}
} }

View File

@ -1393,6 +1393,7 @@ export class GraphListComponent implements OnInit {
tickformat: '%m-%d', tickformat: '%m-%d',
rangemode: 'nonnegative', rangemode: 'nonnegative',
fixedrange: true, fixedrange: true,
tickangle: -45,
tick0:Tdate[0], tick0:Tdate[0],
dtick: dtickval dtick: dtickval
}, },

View File

@ -805,4 +805,7 @@ body.dark_theme {
transform: scale3D(0, 0, 1); transform: scale3D(0, 0, 1);
} }
} }
.note_tag{background: #bf9b30; position: fixed; width: 100%; bottom: 0; padding: 10px; color: #fff; z-index: 2; margin: 0;} .note_tag{background: #bf9b30; position: fixed; width: 100%; bottom: 0; padding: 10px; color: #fff; z-index: 2; margin: 0;}
.note_tag span{
cursor: pointer;
}