summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/frontend
diff options
context:
space:
mode:
authorMichael Scherle2017-03-28 19:49:55 +0200
committerMichael Scherle2017-03-28 19:49:55 +0200
commitd6b66c1ef1bf25517a6f4cb0d7d332b7cbcfb7a2 (patch)
tree38cd1e9f4da5c3352b44449c90c10b803a758c6f /modules-available/locationinfo/frontend
parentfrontend: panel added basic arraning alg (diff)
downloadslx-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-xmodules-available/locationinfo/frontend/doorsign.html18
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);