diff --git a/src/auditoriums-info.js b/src/auditoriums-info.js
index 626c658..6d5ed73 100644
--- a/src/auditoriums-info.js
+++ b/src/auditoriums-info.js
@@ -56,6 +56,8 @@ function deletePrevious(container) {
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('.auditorium-polygon, .auditorium-text').forEach(function(element) {
element.addEventListener('click', function() {
+ clearAnimation();
+
let auditoriumElement = this.parentNode;
let container = document.getElementById('footer');
diff --git a/src/index-main.html b/src/index-main.html
index 0f5611c..383c3d9 100644
--- a/src/index-main.html
+++ b/src/index-main.html
@@ -42,80 +42,80 @@
diff --git a/src/index.js b/src/index.js
index e926bc7..81084b6 100644
--- a/src/index.js
+++ b/src/index.js
@@ -44,3 +44,4 @@ function getHyphenatedDate(date) {
+
diff --git a/src/start-picture.js b/src/start-picture.js
index aa779a9..dfc39cb 100644
--- a/src/start-picture.js
+++ b/src/start-picture.js
@@ -27,6 +27,13 @@ info.forEach((image, index) => {
const button = document.getElementById('linkButton');
+if (localStorage.getItem('lastVisitedPage')) {
+ location.href = localStorage.getItem('lastVisitedPage');
+}
+
button.addEventListener('click', function() {
window.location.href = this.querySelector('a').getAttribute('href');
-});
\ No newline at end of file
+ localStorage.setItem('lastVisitedPage', 'index-main.html');
+});
+
+