Added timespan even on overflow slots
This commit is contained in:
parent
da50ca0433
commit
ec067a0427
2 changed files with 4 additions and 3 deletions
5
app.js
5
app.js
|
@ -115,8 +115,9 @@ function colorRoom(roomTitle, node, time = NOW /* QuantumLeap */) {
|
||||||
block.className += isFree ? " room-free" :
|
block.className += isFree ? " room-free" :
|
||||||
currentLecture.title === "Unassigned" ? " room-unassigned" : " room-in-use";
|
currentLecture.title === "Unassigned" ? " room-unassigned" : " room-in-use";
|
||||||
|
|
||||||
block.querySelector('p').innerHTML = isFree ? 'Free (overflow)' :
|
const title = isFree ? "Free (overflow)" : currentLecture.title;
|
||||||
(currentLecture ? currentLecture.title : "Unassigned") +
|
|
||||||
|
block.querySelector('p').innerHTML = title +
|
||||||
"<br> (" + formatTime(currentLecture.start) + " - " +
|
"<br> (" + formatTime(currentLecture.start) + " - " +
|
||||||
formatTime(currentLecture.end) + ")";
|
formatTime(currentLecture.end) + ")";
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,6 +98,6 @@
|
||||||
homework)
|
homework)
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src='app.js?v=2'></script>
|
<script src='app.js?v=3'></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue