fixed some bugs

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

@ -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);

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

@ -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 {
}
});

Loading…
Cancel
Save