diff --git a/Submission Receipt.pdf b/Submission Receipt.pdf new file mode 100644 index 0000000000000000000000000000000000000000..38c3b51315c4237823e119b2f461dae7a4939974 Binary files /dev/null and b/Submission Receipt.pdf differ diff --git a/assets/img/stop-asian-hate.jpg b/assets/img/stop-asian-hate.jpg index 3c53e6fc8430e66e2c1505976d74fa19cd3f1b00..af988cf8ba861819f25d58e25c782c5ee98141b3 100644 Binary files a/assets/img/stop-asian-hate.jpg and b/assets/img/stop-asian-hate.jpg differ diff --git a/scripts/slides.js b/scripts/slides.js index c9ee9149b1b4dddc92c01446fa695a2139e16b96..a57d5f0f20066a4a86fdf18b45573aaa6e50eb43 100644 --- a/scripts/slides.js +++ b/scripts/slides.js @@ -18,17 +18,9 @@ function scrollSlide(slideNumber) { }); } -/** - * [Reset scroll if window resized.] -**/ - +// Initialise Slides let currSlide = 0; -window.addEventListener('resize', () => { - scrollSlide(0); - currSlide = 0; -}) - // Move slides to the left lControl.addEventListener('click', () => { currSlide > 0 ? currSlide-- : currSlide = slides.length - 1; diff --git a/scripts/tablist.js b/scripts/tablist.js index b24cb288a5a6ad4d6ac9961de3ddc5d7c013803d..7573c4b2e053a05eecdd1d2dac6528e8307a842d 100644 --- a/scripts/tablist.js +++ b/scripts/tablist.js @@ -4,6 +4,8 @@ const tabs = Array.from(document.querySelectorAll('.tablist [role="tab"]')); const directionsContent = document.querySelector('.tablist--content'); + +// Array of every direction const directions = [ `<p>The M Shed is located on the harbourside, a five to 10 minute walk from the city centre or a 20 minute walk from Bristol Temple Meads train station.</p>`, @@ -32,6 +34,7 @@ const directions = [ <p>For timetables please visit the <a href="https://travelwest.info/" target="_blank" rel="noopener">TravelWest website</a>.</p>` ]; +// Code to replace direction for each corresponding tab for (let i = 0; i < tabs.length; i++) { tabs[i].addEventListener('click', () => { tabs.forEach(tab => { diff --git a/styles.css b/styles.css index cc1e57fba1f77d4bca6afb2bb09e895b32b4ffe0..3baf6e52cac576d551b7a880baba156db7ae6ee4 100644 --- a/styles.css +++ b/styles.css @@ -793,7 +793,7 @@ grid-auto-rows: auto; } - .hero picture img, .hero figure picture img { + .hero > picture img, .hero > figure picture img { height: 100%; } @@ -1289,7 +1289,7 @@ padding: 2rem; } - #home .hero picture { + #home .hero > picture { display: none; } @@ -1403,6 +1403,10 @@ -webkit-backdrop-filter: initial; backdrop-filter: initial; } + + #location main > div > section:last-of-type p a { + margin-left: 0; + } }