From d6b66c1ef1bf25517a6f4cb0d7d332b7cbcfb7a2 Mon Sep 17 00:00:00 2001 From: Michael Scherle Date: Tue, 28 Mar 2017 19:49:55 +0200 Subject: frontend: doorsign added font scaling for calendar --- modules-available/locationinfo/frontend/doorsign.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'modules-available/locationinfo/frontend/doorsign.html') diff --git a/modules-available/locationinfo/frontend/doorsign.html b/modules-available/locationinfo/frontend/doorsign.html index 386ab6d6..1aceb19d 100755 --- a/modules-available/locationinfo/frontend/doorsign.html +++ b/modules-available/locationinfo/frontend/doorsign.html @@ -1009,8 +1009,22 @@ optional: if (height < 30) { height = 30; } - - + // Scale calendar font + console.log(height); + if(height > 120){ + cal.weekCalendar("option","textSize",28); + } + else if(height > 100){ + cal.weekCalendar("option","textSize",24); + } else if(height > 80) { + cal.weekCalendar("option","textSize",22); + } else if(height > 70) { + cal.weekCalendar("option","textSize",20); + } else if (height > 60) { + cal.weekCalendar("option","textSize",14); + } else { + cal.weekCalendar("option","textSize",13); + } cal.weekCalendar("option", "timeslotHeight", height); if (room.openingTimesCalendar != null) { cal.weekCalendar("updateFreeBusy", room.openingTimesCalendar); -- cgit v1.2.3-55-g7522