diff --git a/app/Http/Controllers/ClientController.php b/app/Http/Controllers/ClientController.php index ea9c35b..182991e 100644 --- a/app/Http/Controllers/ClientController.php +++ b/app/Http/Controllers/ClientController.php @@ -605,6 +605,9 @@ class ClientController extends Controller break; } } + if (count( explode('@', $r)) == 1){ + return abort(404); + } $method = explode('@', $r)[1]; $segments = $request->segments(); $routes = explode('/', $n); diff --git a/resources/views/segments/footer/SimpleFooter/screenshot.png b/resources/views/segments/footer/SimpleFooter/screenshot.png new file mode 100644 index 0000000..f870457 Binary files /dev/null and b/resources/views/segments/footer/SimpleFooter/screenshot.png differ diff --git a/resources/views/segments/slider/ParallaxSlider/ParallaxSlider.js b/resources/views/segments/slider/ParallaxSlider/ParallaxSlider.js index f563c1d..2d42d98 100644 --- a/resources/views/segments/slider/ParallaxSlider/ParallaxSlider.js +++ b/resources/views/segments/slider/ParallaxSlider/ParallaxSlider.js @@ -1,10 +1,10 @@ import {tns} from "tiny-slider/src/tiny-slider"; -var parallaxSlider ; +var parallaxSlider; document.addEventListener('DOMContentLoaded', () => { document.querySelectorAll('#ParallaxSliderTns')?.forEach(function (el) { - if (el.classList.contains('.tns-slider')){ + if (el.classList.contains('.tns-slider')) { console.log('ignore'); return 'ignore'; } @@ -56,13 +56,18 @@ document.addEventListener('DOMContentLoaded', () => { }); } -// Apply parallax on scroll and resize - window.addEventListener('scroll', applyParallax); - window.addEventListener('resize', applyParallax); + try { -// Initial application - applyParallax(); + // Apply parallax on scroll and resize + window.addEventListener('scroll', applyParallax); + window.addEventListener('resize', applyParallax); -// Reapply parallax when tiny-slider changes slides - parallaxSlider.events.on('transitionEnd', applyParallax); + // Initial application + applyParallax(); + + // Reapply parallax when tiny-slider changes slides + parallaxSlider.events.on('transitionEnd', applyParallax); + + } catch { + } });