From 6e9877629093b320223c947eb1ad8af0cb43162d Mon Sep 17 00:00:00 2001 From: vesem Date: Wed, 4 Aug 2021 07:03:25 -0400 Subject: [PATCH] Started mobile web interface --- src/main/webapp/app/home/home.component.ts | 1 + src/main/webapp/app/responsive.service.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/webapp/app/home/home.component.ts b/src/main/webapp/app/home/home.component.ts index 16f736d0..d4844530 100644 --- a/src/main/webapp/app/home/home.component.ts +++ b/src/main/webapp/app/home/home.component.ts @@ -43,6 +43,7 @@ export class HomeComponent implements OnInit, OnDestroy { this.responsiveService.getMobileStatus().subscribe(isMobile => { this.isMobile = isMobile; }) + console.log(this.isMobile) // this.responsiveService.checkWidth(); } diff --git a/src/main/webapp/app/responsive.service.ts b/src/main/webapp/app/responsive.service.ts index 91e77b29..e08147cb 100644 --- a/src/main/webapp/app/responsive.service.ts +++ b/src/main/webapp/app/responsive.service.ts @@ -19,12 +19,13 @@ export class ResponsiveService { // tslint:disable-next-line:typedef getMobileStatus(): Observable { - console.log(this.isMobile) + // console.log(this.isMobile) return this.isMobile.asObservable(); } // tslint:disable-next-line:typedef public checkWidth() { + console.log(window.innerWidth) // tslint:disable-next-line:prefer-const if (window.innerWidth <= 768) { this.screenWidth = 'sm';