Updated the button texts.
This commit is contained in:
parent
8adccdc296
commit
7f0a1e78d7
@ -18,14 +18,19 @@
|
||||
<div id="topmenubuttons">
|
||||
<div class="btn-group mx-auto" role="group">
|
||||
<!--removed this from the <i: tooltip="Huis" placement="bottom"-->
|
||||
<a routerLink="home" (mouseout)="mouseOut('home')" (mouseover)="mouseOver('home')"><i class="fa fa-home fa-fw fa-2x" aria-hidden="true"></i></a>
|
||||
<a routerLink="posts" (mouseout)="mouseOut('posts')" (mouseover)="mouseOver('posts')"><i class="fa fa-sticky-note fa-fw fa-2x" aria-hidden="true"></i></a>
|
||||
<a routerLink="cv" (mouseout)="mouseOut('cv')" (mouseover)="mouseOver('cv')"><i class="fa fa-id-badge fa-fw fa-2x" aria-hidden="true"></i></a>
|
||||
<a (click)="toggleLanguage()" (mouseout)="mouseOut('language setting')" (mouseover)="mouseOver('language setting')"><i class="fa fa-language fa-fw fa-2x" aria-hidden="true"></i></a>
|
||||
<a routerLink="home" (mouseout)="mouseOut('home')" (mouseover)="mouseOver('home')"><i
|
||||
class="fa fa-home fa-fw fa-2x" aria-hidden="true"></i></a>
|
||||
<a routerLink="posts" (mouseout)="mouseOut('posts')" (mouseover)="mouseOver('posts')"><i
|
||||
class="fa fa-sticky-note fa-fw fa-2x" aria-hidden="true"></i></a>
|
||||
<a routerLink="cv" (mouseout)="mouseOut('cv')" (mouseover)="mouseOver('cv')"><i
|
||||
class="fa fa-id-badge fa-fw fa-2x" aria-hidden="true"></i></a>
|
||||
<a (click)="toggleLanguage()" (mouseout)="mouseOut('lang')"
|
||||
(mouseover)="mouseOver('lang')"><i class="fa fa-language fa-fw fa-2x"
|
||||
aria-hidden="true"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--row-->
|
||||
<!--row-->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
@ -78,7 +78,20 @@ export class RootComponent implements OnInit {
|
||||
|
||||
mouseOver(s: string) {
|
||||
// console.log('mouseover!' + s);
|
||||
this.mousingOver = s;
|
||||
// do some translation
|
||||
let language = this.stateService.getLanguage();
|
||||
if (s === 'lang') {
|
||||
if (language == 'nl') {
|
||||
this.mousingOver = 'Taal: Nederlands';
|
||||
} else if (language = 'en') {
|
||||
this.mousingOver = 'Language: English';
|
||||
} else {
|
||||
this.mousingOver = 'Language: Yaaarrrr matey!';
|
||||
}
|
||||
} else {
|
||||
// default: use the passed string
|
||||
this.mousingOver = s;
|
||||
}
|
||||
}
|
||||
|
||||
mouseOut(s: string) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user