diff options
Diffstat (limited to 'vid-webpack-master/src/app/shared/utils')
-rw-r--r-- | vid-webpack-master/src/app/shared/utils/iframe.service.ts | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/vid-webpack-master/src/app/shared/utils/iframe.service.ts b/vid-webpack-master/src/app/shared/utils/iframe.service.ts index ab93d1ac8..e1ef59f83 100644 --- a/vid-webpack-master/src/app/shared/utils/iframe.service.ts +++ b/vid-webpack-master/src/app/shared/utils/iframe.service.ts @@ -6,19 +6,19 @@ export class IframeService { addClassOpenModal(elementClassName: string) { const parentBodyElement = parent.document.getElementsByClassName(elementClassName)[0]; - if (parentBodyElement) { + if (parentBodyElement) { parentBodyElement.classList.add("modal-open"); } } removeClassCloseModal(elementClassName: string) { const parentBodyElement = parent.document.getElementsByClassName(elementClassName)[0]; - if (parentBodyElement) { + if (parentBodyElement) { parentBodyElement.classList.remove("modal-open"); } } - closeIframe(dialogService : DialogService, that){ + closeIframe(dialogService: DialogService, that) { this.removeClassCloseModal('content'); dialogService.removeDialog(that); setTimeout(() => { @@ -27,16 +27,17 @@ export class IframeService { } - addFullScreen(){ - let parentBodyElement = parent.document.getElementsByClassName('service-model-content')[0]; - if (parentBodyElement) { + + addFullScreen() { + let parentBodyElement = parent.document.getElementsByClassName('service-model-content')[0]; + if (parentBodyElement) { parentBodyElement.classList.add("full-screen"); } } - removeFullScreen(){ - let parentBodyElement = parent.document.getElementsByClassName('service-model-content')[0]; - if (parentBodyElement) { + removeFullScreen() { + let parentBodyElement = parent.document.getElementsByClassName('service-model-content')[0]; + if (parentBodyElement) { parentBodyElement.classList.remove("full-screen"); } } |