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" : 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) + ")";
} }

View File

@ -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>