New bootstrap-based layout #30

Merged
Roflin merged 79 commits from bootstrap into master 2023-03-14 19:11:25 +01:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 5c2eff09b8 - Show all commits

View File

@ -4,14 +4,14 @@ function enableKeyDownNavigation() {
var target = document.getElementById("previous_photo").href; var target = document.getElementById("previous_photo").href;
if (target) { if (target) {
event.preventDefault(); event.preventDefault();
document.location.href = target + '#photo_frame'; document.location.href = target;
} }
} }
else if (event.keyCode == 39) { else if (event.keyCode == 39) {
var target = document.getElementById("next_photo").href; var target = document.getElementById("next_photo").href;
if (target) { if (target) {
event.preventDefault(); event.preventDefault();
document.location.href = target + '#photo_frame'; document.location.href = target;
} }
} }
}, false); }, false);

View File

@ -84,14 +84,14 @@ class PhotoPage extends Template
{ {
if ($this->previous_photo_url) if ($this->previous_photo_url)
echo ' echo '
<a href="', $this->previous_photo_url, '" id="previous_photo"><i class="bi bi-arrow-left"></i></a>'; <a href="', $this->previous_photo_url, '#photo_frame" id="previous_photo"><i class="bi bi-arrow-left"></i></a>';
else else
echo ' echo '
<span id="previous_photo"><i class="bi bi-arrow-left"></i></span>'; <span id="previous_photo"><i class="bi bi-arrow-left"></i></span>';
if ($this->next_photo_url) if ($this->next_photo_url)
echo ' echo '
<a href="', $this->next_photo_url, '" id="next_photo"><i class="bi bi-arrow-right"></i></a>'; <a href="', $this->next_photo_url, '#photo_frame" id="next_photo"><i class="bi bi-arrow-right"></i></a>';
else else
echo ' echo '
<span id="next_photo"><i class="bi bi-arrow-right"></i></span>'; <span id="next_photo"><i class="bi bi-arrow-right"></i></span>';