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>
<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>
</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() {
switch (this.toggle) {

View File

@ -1,4 +1,5 @@
<div class="card">
<div class="body">
<div class="card">
<label class="label">Ipv4</label>
<div>
<p><label class="outlabel">Ip:</label></p>
@ -6,8 +7,8 @@
<p><label class="outlabel">Binary:</label></p>
<p><label class="output">{{service.bin_dec_dict.Ipv4.bin}}</label></p>
</div>
</div>
<div class="card">
</div>
<div class="card">
<label class="label">Subnet Mask</label>
<div>
<p><label class="outlabel">Ip:</label></p>
@ -15,8 +16,8 @@
<p><label class="outlabel">Binary:</label></p>
<p><label>{{service.bin_dec_dict.Subnet.bin}}</label></p>
</div>
</div>
<div class="card">
</div>
<div class="card">
<label class="label">Broadcast</label>
<div>
<p><label class="outlabel">Ip:</label></p>
@ -24,8 +25,8 @@
<p><label class="outlabel">Binary:</label></p>
<p><label>{{service.bin_dec_dict.Broadcast.bin}}</label></p>
</div>
</div>
<div class="card">
</div>
<div class="card">
<label class="label">NetID</label>
<div>
<p><label class="outlabel">Ip:</label></p>
@ -33,8 +34,8 @@
<p><label class="outlabel">Binary:</label></p>
<p><label>{{service.bin_dec_dict.NetID.bin}}</label></p>
</div>
</div>
<div class="card">
</div>
<div class="card">
<label class="label">First Ip</label>
<div>
<p><label class="outlabel">Ip:</label></p>
@ -42,8 +43,8 @@
<p><label class="outlabel">Binary:</label></p>
<p><label>{{service.bin_dec_dict.FirstIP.bin}}</label></p>
</div>
</div>
<div class="card">
</div>
<div class="card">
<label class="label">Last Ip</label>
<div>
<p><label class="outlabel">Ip:</label></p>
@ -51,4 +52,5 @@
<p><label class="outlabel">Binary:</label></p>
<p><label>{{service.bin_dec_dict.LastIP.bin}}</label></p>
</div>
</div>
</div>

View File

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