change repo

This commit is contained in:
Ruben Kallinich
2024-07-11 10:44:44 +02:00
commit 4a034b660f
88 changed files with 21963 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
import { Component, Input } from '@angular/core';
import { CookieService } from 'ngx-cookie-service';
import { DataInput } from '../services/data-input';
@Component({
selector: 'LL-cookie-banner',
templateUrl: './cookie-banner.component.html',
styleUrls: ['./cookie-banner.component.css']
})
export class CookieBannerComponent {
privacyPolice: any;
currentLanguage: string = 'english';
constructor(
private cookieServ: CookieService,
){}
giveConsent(){
this.cookieServ.set('cookieConsent', 'true');
this.setNecessaryCookies();
}
setNecessaryCookies(){
this.cookieServ.set('exampleCookie', 'exampleValue');
this.cookieServ.set('authCookie', 'authValue');
}
revokeConsent(){
this.cookieServ.delete('cookieConsent');
this.cookieServ.delete('exampleCookie');
this.cookieServ.delete('authCookie');
}
hasConsent(): boolean{
return this.cookieServ.get('cookieConsent') === 'true';
}
changeLanguage(language: string) {
this.currentLanguage = language;
this.cookieServ.set('selectedLanguage', language);
// Füge hier den Code zum Laden der Datenschutzrichtlinieninhalte in der ausgewählten Sprache hinzu
}
}