This commit is contained in:
marcusferl@weifer.de 2022-09-06 12:38:03 +02:00
parent 2117b9c90d
commit 01b19c43db
4 changed files with 60 additions and 52 deletions

View File

@ -1,6 +1,6 @@
<div [ngClass]="[mode]" class="header"> <div [ngClass]="[mode]" class="header">
<div> <div>
<h1>Ipv4 Converter</h1> <h1 #hover (mouseenter)="onMouseEnter(hover)" (mouseleave)="onMouseOut(hover)">Ipv4 Converter</h1>
<mat-slide-toggle class="toggle" (toggleChange)="stylemode()">{{toggleText}} </mat-slide-toggle> <mat-slide-toggle class="toggle" (toggleChange)="stylemode()">{{toggleText}} </mat-slide-toggle>
</div> </div>

View File

@ -13,6 +13,15 @@ export class HeaderComponent implements OnInit {
}
onMouseEnter(hover: HTMLElement) {
hover.style.color = "red";
}
onMouseOut(hover: HTMLElement) {
hover.style.color = "black";
} }
stylemode() { stylemode() {
switch (this.toggle) { switch (this.toggle) {

View File

@ -1,3 +1,4 @@
<div class="body">
<div class="card"> <div class="card">
<label class="label">Ipv4</label> <label class="label">Ipv4</label>
<div> <div>
@ -52,3 +53,4 @@
<p><label>{{service.bin_dec_dict.LastIP.bin}}</label></p> <p><label>{{service.bin_dec_dict.LastIP.bin}}</label></p>
</div> </div>
</div> </div>
</div>

View File

@ -14,6 +14,7 @@
margin-left: 5px; margin-left: 5px;
margin-right: 5px; margin-right: 5px;
} }
.label { .label {
@ -26,7 +27,3 @@
width: 20px; width: 20px;
margin-right: 100px; margin-right: 100px;
} }
body {
background-color: black;
}