summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/frontend/doorsign.html
diff options
context:
space:
mode:
authorMichael Scherle2017-01-20 15:19:58 +0100
committerMichael Scherle2017-01-20 15:19:58 +0100
commitde4554ce5a148d8b6f326f292483369d600f93e1 (patch)
treebbdd94705e83ee0e2d42cfa598734b3cd0c05bc9 /modules-available/locationinfo/frontend/doorsign.html
parentMerge branch 'location-info-panel' of git.openslx.org:openslx-ng/slx-admin in... (diff)
downloadslx-admin-de4554ce5a148d8b6f326f292483369d600f93e1.tar.gz
slx-admin-de4554ce5a148d8b6f326f292483369d600f93e1.tar.xz
slx-admin-de4554ce5a148d8b6f326f292483369d600f93e1.zip
frontend: added 4 state for pcs
Diffstat (limited to 'modules-available/locationinfo/frontend/doorsign.html')
-rwxr-xr-xmodules-available/locationinfo/frontend/doorsign.html14
1 files changed, 12 insertions, 2 deletions
diff --git a/modules-available/locationinfo/frontend/doorsign.html b/modules-available/locationinfo/frontend/doorsign.html
index d95ccbb6..44f7e495 100755
--- a/modules-available/locationinfo/frontend/doorsign.html
+++ b/modules-available/locationinfo/frontend/doorsign.html
@@ -1166,27 +1166,37 @@ optional:
if (imgobj != null) {
var img;
+ // Pc free
if (update[i].pcState == "0") {
- //add time to prevent caching
if (supportSvg) {
img = "img/pc_free";
} else {
imgobj.style.backgroundColor = "green";
}
freePcs++;
+ // Pc in use
} else if (update[i].pcState == "1") {
if (supportSvg) {
img = "img/pc_used";
} else {
imgobj.style.backgroundColor = "red";
}
- } else {
+ // PC off
+ } else if(update[i].pcState == "2"){
+ if (supportSvg) {
+ img = "img/pc_off";
+ } else {
+ imgobj.style.backgroundColor = "black";
+ }
+ freePcs++;
+ }else {
if (supportSvg) {
img = "img/pc_defect";
} else {
imgobj.style.backgroundColor = "black";
}
}
+
if (imgobj != null && supportSvg) {
if (eInkMode) {
img = img + "_eink";