diff --git a/clients/anim/index.html b/clients/anim/index.html
index 04ea147..206e430 100644
--- a/clients/anim/index.html
+++ b/clients/anim/index.html
@@ -32,18 +32,22 @@
.label {
color: #00a0cc;
font-size: 11px;
- max-width: 140px;
- max-height: 38px;
+ width: 140px;
+ height: 38px;
padding: 3px;
overflow: hidden;
word-wrap: break-word;
}
+ .label.grey {
+ color: #888;
+ }
#timer {
position: absolute;
top: 40px;
right: 20px;
font-size: 16px;
- color: #888; }
+ color: #888;
+ }
#menu {
position: absolute;
top: 550px;
@@ -119,18 +123,18 @@
-
-
-
-
-
-
-
-
Cafeteria
-
Hof
-
VIP
-
Workshops
-
Foyer
+
+
+
+
+
+
+
+
Cafeteria
+
Hof
+
VIP
+
Workshops
+
Foyer
diff --git a/clients/anim/main.js b/clients/anim/main.js
index 19eafa1..f02aa61 100644
--- a/clients/anim/main.js
+++ b/clients/anim/main.js
@@ -64,6 +64,12 @@ function init() {
}
}
nearFieldGrid = nearFieldGrid.sort( function (a,b) { return (a.r == b.r) ? (a.a - b.a) : (a.r - b.r);} );
+
+ sessions.forEach(function (session) {
+ session.startTime = session.startInt + (parseInt(session.date.substr(8,2),10)-5)*(24*60);
+ session.endTime = session.startTime + session.duration;
+ session.stage = (session.room.substr(0,5) == 'stage') ? parseInt(session.room.substr(6,1), 10) : undefined;
+ })
}
function start() {
@@ -102,6 +108,17 @@ function renderTime() {
}
function updateData() {
+ var stages = ['', '', '', '', '', '', '', ''];
+ sessions.forEach(function (session) {
+ if ((session.startTime <= currentTime) && (currentTime < session.endTime)) {
+ if (session.stage !== undefined) {
+ stages[session.stage] = 'Stage '+session.stage+': '+session.title;
+ }
+ }
+ });
+ for (var i = 1; i <= 7; i++) $('#stage'+i).html(stages[i]);
+
+
data.matrix.forEach(function (times, index) {
var timeId = time2index[Math.floor(currentTime)];