Added timespan even on overflow slots

This commit is contained in:
Claudio Maggioni 2020-09-23 09:39:04 +02:00
parent da50ca0433
commit ec067a0427
2 changed files with 4 additions and 3 deletions

5
app.js
View File

@ -115,8 +115,9 @@ function colorRoom(roomTitle, node, time = NOW /* QuantumLeap */) {
block.className += isFree ? " room-free" :
currentLecture.title === "Unassigned" ? " room-unassigned" : " room-in-use";
block.querySelector('p').innerHTML = isFree ? 'Free (overflow)' :
(currentLecture ? currentLecture.title : "Unassigned") +
const title = isFree ? "Free (overflow)" : currentLecture.title;
block.querySelector('p').innerHTML = title +
"<br> (" + formatTime(currentLecture.start) + " - " +
formatTime(currentLecture.end) + ")";
}

View File

@ -98,6 +98,6 @@
homework)
</div>
<script src='app.js?v=2'></script>
<script src='app.js?v=3'></script>
</body>
</html>