From 91c9c8a7de7a67f3a4f4bbfb6e6e94f49392970a Mon Sep 17 00:00:00 2001 From: antoshkaxxr Date: Thu, 13 Jun 2024 01:03:55 +0500 Subject: [PATCH] some fixes --- src/auditoriums-info.js | 2 + src/index-main.html | 118 ++++++++++++++++++++-------------------- src/index.js | 1 + src/start-picture.js | 9 ++- 4 files changed, 70 insertions(+), 60 deletions(-) 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'); +}); + +