Files
Calendar_Frontend/src/app/pages/landingpage/landingpage.component.ts
T
2026-05-02 14:29:23 +02:00

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);
});
}
}