23 lines
508 B
TypeScript
23 lines
508 B
TypeScript
import {Component, OnInit} from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-landingpage',
|
|
templateUrl: './landingpage.component.html',
|
|
styleUrls: ['./landingpage.component.css']
|
|
})
|
|
export class LandingpageComponent implements OnInit {
|
|
|
|
copied = false;
|
|
|
|
constructor() {}
|
|
|
|
ngOnInit(): void {}
|
|
|
|
copyUrl(): void {
|
|
navigator.clipboard.writeText('https://api.nachklang.art/calendar/events/public/ical').then(() => {
|
|
this.copied = true;
|
|
setTimeout(() => { this.copied = false; }, 2500);
|
|
});
|
|
}
|
|
}
|