diff --git a/src/app/components/home/_dialogs/imprint/imprint.component.html b/src/app/components/home/_dialogs/imprint/imprint.component.html index 238866fee112d15404449513cfbdd9b51c1fb3ce..d149c1e1131ea650680e054eba49f396cdbad4e2 100644 --- a/src/app/components/home/_dialogs/imprint/imprint.component.html +++ b/src/app/components/home/_dialogs/imprint/imprint.component.html @@ -7,6 +7,11 @@ <mat-dialog-content tabindex="0"> <app-imprint-en *ngIf="currentLang=='en'"></app-imprint-en> <app-imprint-de *ngIf="currentLang=='de'"></app-imprint-de> + <iframe [src]="safeURL" + scrolling="no" + marginHeight="0" + marginWidth="0" + style="height: 220px; width: 370px; border: none"></iframe> </mat-dialog-content> <app-dialog-action-buttons diff --git a/src/app/components/home/_dialogs/imprint/imprint.component.ts b/src/app/components/home/_dialogs/imprint/imprint.component.ts index b85bddb49db7cb9e6a1cd52a207b717519abb4b9..07014074878d819eeb711b7f07cb67f98e09ba64 100644 --- a/src/app/components/home/_dialogs/imprint/imprint.component.ts +++ b/src/app/components/home/_dialogs/imprint/imprint.component.ts @@ -1,5 +1,6 @@ import { Component, OnInit } from '@angular/core'; import { MatDialogRef } from '@angular/material/dialog'; +import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser'; @Component({ selector: 'app-imprint', @@ -9,12 +10,17 @@ import { MatDialogRef } from '@angular/material/dialog'; export class ImprintComponent implements OnInit { deviceType: string; currentLang: string; + safeURL: SafeResourceUrl; - constructor(private dialogRef: MatDialogRef<ImprintComponent>) { + + constructor(private dialogRef: MatDialogRef<ImprintComponent>, + private sanitizer: DomSanitizer) { } ngOnInit() { this.currentLang = localStorage.getItem('currentLang'); + this.safeURL = this.sanitizer + .bypassSecurityTrustResourceUrl('https://www.openhub.net/p/frag-jetzt/widgets/project_factoids_stats'); } /**