From: Bastian Dehn Date: Fri, 10 Jun 2022 19:13:03 +0000 (+0200) Subject: add: subtitles html create X-Git-Tag: v1.0^2~5^2~5 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=ecdbc0f7ccaf4326c29bfd5a738ace72f7375a4f;p=speisekarten-editor.git add: subtitles html create --- diff --git a/src/app/html-export.service.ts b/src/app/html-export.service.ts index 8d2d2d9..ff913cf 100644 --- a/src/app/html-export.service.ts +++ b/src/app/html-export.service.ts @@ -33,8 +33,20 @@ export class HtmlExportService for (let i = 0; i < titles.length; i++) { titlestring += '

' + titles[i].Title + '

'; + titlestring += this.createHtmlSubtitles(titles[i].Subtitles); } return titlestring; } + + private createHtmlSubtitles(subtitles: ISubtitle[]): string + { + let subtitlestring = ""; + + for (let i = 0; i < subtitles.length; i++) { + subtitlestring += '

' + subtitles[i].Subtitle + '

'; + } + + return subtitlestring; + } }