fixed some bugs

pull/49/head
A1Gard 2 months ago
parent 6c45d9a8e7
commit 70132d9ed6

@ -605,6 +605,9 @@ class ClientController extends Controller
break; break;
} }
} }
if (count( explode('@', $r)) == 1){
return abort(404);
}
$method = explode('@', $r)[1]; $method = explode('@', $r)[1];
$segments = $request->segments(); $segments = $request->segments();
$routes = explode('/', $n); $routes = explode('/', $n);

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

@ -1,10 +1,10 @@
import {tns} from "tiny-slider/src/tiny-slider"; import {tns} from "tiny-slider/src/tiny-slider";
var parallaxSlider ; var parallaxSlider;
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
document.querySelectorAll('#ParallaxSliderTns')?.forEach(function (el) { document.querySelectorAll('#ParallaxSliderTns')?.forEach(function (el) {
if (el.classList.contains('.tns-slider')){ if (el.classList.contains('.tns-slider')) {
console.log('ignore'); console.log('ignore');
return 'ignore'; return 'ignore';
} }
@ -56,13 +56,18 @@ document.addEventListener('DOMContentLoaded', () => {
}); });
} }
// Apply parallax on scroll and resize try {
window.addEventListener('scroll', applyParallax);
window.addEventListener('resize', applyParallax);
// Initial application // Apply parallax on scroll and resize
applyParallax(); window.addEventListener('scroll', applyParallax);
window.addEventListener('resize', applyParallax);
// Reapply parallax when tiny-slider changes slides // Initial application
parallaxSlider.events.on('transitionEnd', applyParallax); applyParallax();
// Reapply parallax when tiny-slider changes slides
parallaxSlider.events.on('transitionEnd', applyParallax);
} catch {
}
}); });

Loading…
Cancel
Save