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" :
|
||||
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) + ")";
|
||||
}
|
||||
|
|
|
@ -98,6 +98,6 @@
|
|||
homework)
|
||||
</div>
|
||||
|
||||
<script src='app.js?v=2'></script>
|
||||
<script src='app.js?v=3'></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue