diff options
author | Michael Scherle | 2017-03-28 19:49:55 +0200 |
---|---|---|
committer | Michael Scherle | 2017-03-28 19:49:55 +0200 |
commit | d6b66c1ef1bf25517a6f4cb0d7d332b7cbcfb7a2 (patch) | |
tree | 38cd1e9f4da5c3352b44449c90c10b803a758c6f /modules-available/locationinfo/frontend | |
parent | frontend: panel added basic arraning alg (diff) | |
download | slx-admin-d6b66c1ef1bf25517a6f4cb0d7d332b7cbcfb7a2.tar.gz slx-admin-d6b66c1ef1bf25517a6f4cb0d7d332b7cbcfb7a2.tar.xz slx-admin-d6b66c1ef1bf25517a6f4cb0d7d332b7cbcfb7a2.zip |
frontend: doorsign added font scaling for calendar
Diffstat (limited to 'modules-available/locationinfo/frontend')
-rwxr-xr-x | modules-available/locationinfo/frontend/doorsign.html | 18 |
1 files changed, 16 insertions, 2 deletions
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);
|