Revision 60866
Added by Konstantinos Triantafyllou almost 3 years ago
about.component.ts | ||
---|---|---|
55 | 55 |
this.subs.push(this._piwikService.trackView(this.properties, this.title).subscribe()); |
56 | 56 |
} |
57 | 57 |
} |
58 |
|
|
59 |
goTo(id: string) { |
|
60 |
const yOffset = -100; |
|
61 |
const element = document.getElementById(id); |
|
62 |
if(element) { |
|
63 |
const y = element.getBoundingClientRect().top + window.pageYOffset + yOffset; |
|
64 |
window.scrollTo({top: y, behavior: 'smooth'}); |
|
65 |
} |
|
66 |
} |
|
67 | 58 |
|
68 | 59 |
changeTab(index: number) { |
69 | 60 |
UIkit.switcher(this.tabs.nativeElement).show(index); |
Also available in: Unified diff
[Graph | Trunk]: Create Team and References pages. Change about architecture images