Fixed styles
This commit is contained in:
parent
fbf61d18e9
commit
9cf71507f7
@ -220,11 +220,12 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
lightboxTrigger.forEach(function (element) {
|
lightboxTrigger.forEach(function (element) {
|
||||||
element.addEventListener('click', function () {
|
element.addEventListener('click', function () {
|
||||||
const imgSrc = element.getAttribute('src');
|
const imgSrc = element.getAttribute('src');
|
||||||
textContent = ''
|
textContent = '';
|
||||||
try {
|
try {
|
||||||
textContent = element.closest('tr').querySelector('td:nth-child(3)').textContent; // Adjust the index accordingly
|
textContent = element.closest('tr').querySelector('td:nth-child(3)').textContent; // Adjust the index accordingly
|
||||||
lightboxText.textContent = textContent;
|
lightboxText.textContent = textContent;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
textContent = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
lightboxImage.setAttribute('src', imgSrc);
|
lightboxImage.setAttribute('src', imgSrc);
|
||||||
|
@ -211,13 +211,13 @@ body {
|
|||||||
|
|
||||||
<p class="card-footer-item">
|
<p class="card-footer-item">
|
||||||
<span>
|
<span>
|
||||||
<a class="is-size-7" style="color: #363636;" href="/{{ i['set_num'] }}">Inventory</a>
|
<a class="is-size-6" style="color: #363636;" href="/{{ i['set_num'] }}">Inventory</a>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="card-footer-item">
|
<p class="card-footer-item">
|
||||||
<span>
|
<span>
|
||||||
<a class="is-size-7" style="color: #363636;" href="/{{ i['set_num'] }}">Instructions</a>
|
<a class="is-size-6" style="color: #363636;" href="/{{ i['set_num'] }}">Instructions</a>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
Loading…
Reference in New Issue
Block a user