Skip to content

Commit

Permalink
fix layout bug
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-thepie committed Sep 23, 2024
1 parent c718ee3 commit c353774
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h4><span class="time"></span> – <span class="endtime"></span> <span class="t
</template>

<template id="ptbooking-template">
<li><span name="name"></span> <span name="time"></span> <span><span name="building"> </span> <span
<li><span name="name"></span> <span name="time"></span> <span><span name="building"></span> <span
name="room"></span></span> </li>
</template>

Expand Down
2 changes: 1 addition & 1 deletion docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function populateEvent(day, event) {
const li = document.querySelector('#ptbooking-template').content.cloneNode(true).firstElementChild;
li.querySelector('[name="name"]').textContent = `🎓 ${booking.staff}`;
const [buildingobj] = data.buildings.filter(br => br.code === booking.building);
li.querySelector('[name="building"]').innerHTML = `<a href="${buildingobj.url}">🏫 ${buildingobj.name}</a>`;
li.querySelector('[name="building"]').innerHTML = `🏫 <a href="${buildingobj.url}">${buildingobj.name}</a>`;
li.querySelector('[name="room"]').textContent = booking.room;
li.querySelector('[name="time"]').textContent = `⏰ ${booking.time.padStart(2, '0')}:00`;
ul.append(li);
Expand Down
2 changes: 1 addition & 1 deletion docs/staff/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h4><span class="time"></span> – <span class="endtime"></span> <span class="t
</template>

<template id="ptbooking-template">
<li><span name="name"></span> <span name="time"></span> <span><span name="building"> </span> <span
<li><span name="name"></span> <span name="time"></span> <span><span name="building"></span> <span
name="room"></span></span> </li>
</template>

Expand Down
2 changes: 1 addition & 1 deletion docs/staff/staff.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function createEvent(event) {
const li = document.querySelector('#ptbooking-template').content.cloneNode(true).firstElementChild;
li.querySelector('[name="name"]').textContent = `🎓 ${booking.staff}`;
const [buildingobj] = data.buildings.filter(br => br.code === booking.building);
li.querySelector('[name="building"]').innerHTML = `<a href="${buildingobj.url}">🏫 ${buildingobj.name}</a>`;
li.querySelector('[name="building"]').innerHTML = `🏫 <a href="${buildingobj.url}">${buildingobj.name}</a>`;
li.querySelector('[name="room"]').textContent = booking.room;
li.querySelector('[name="time"]').textContent = `⏰ ${booking.time.padStart(2, '0')}:00`;
ul.append(li);
Expand Down

0 comments on commit c353774

Please sign in to comment.