Deprecated: array_first(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/october/rain/src/Support/helpers.php on line 376
Deprecated: array_last(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/october/rain/src/Support/helpers.php on line 443
Deprecated: optional(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Support/helpers.php on line 202
Deprecated: with(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Support/helpers.php on line 434
Deprecated: Illuminate\Container\Container::beforeResolving(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1128
Deprecated: Illuminate\Container\Container::resolving(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1148
Deprecated: Illuminate\Container\Container::afterResolving(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1168
Deprecated: Illuminate\Container\Container::setInstance(): Implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1407
Deprecated: Illuminate\Contracts\Container\Container::beforeResolving(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Contracts/Container/Container.php on line 191
Deprecated: Illuminate\Contracts\Container\Container::resolving(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Contracts/Container/Container.php on line 200
Deprecated: Illuminate\Contracts\Container\Container::afterResolving(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Contracts/Container/Container.php on line 209
Deprecated: Illuminate\Support\Arr::first(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Collections/Arr.php on line 188
Deprecated: Illuminate\Support\Arr::last(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Collections/Arr.php on line 217
Deprecated: Illuminate\Routing\Router::__construct(): Implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php on line 134
Deprecated: Illuminate\Routing\Router::model(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php on line 1135
Deprecated: Illuminate\Events\Dispatcher::__construct(): Implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php on line 65
Deprecated: Illuminate\Http\Request::duplicate(): Implicitly marking parameter $query as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Http/Request.php on line 501
Deprecated: Illuminate\Http\Request::duplicate(): Implicitly marking parameter $request as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Http/Request.php on line 501
Deprecated: Illuminate\Http\Request::duplicate(): Implicitly marking parameter $attributes as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Http/Request.php on line 501
Deprecated: Illuminate\Http\Request::duplicate(): Implicitly marking parameter $cookies as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Http/Request.php on line 501
Deprecated: Illuminate\Http\Request::duplicate(): Implicitly marking parameter $files as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Http/Request.php on line 501
Deprecated: Illuminate\Http\Request::duplicate(): Implicitly marking parameter $server as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Http/Request.php on line 501
Deprecated: Illuminate\Http\Concerns\InteractsWithInput::whenHas(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Http/Concerns/InteractsWithInput.php on line 123
Deprecated: Illuminate\Http\Concerns\InteractsWithInput::whenFilled(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Http/Concerns/InteractsWithInput.php on line 201
Deprecated: Illuminate\Http\Concerns\InteractsWithInput::whenMissing(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Http/Concerns/InteractsWithInput.php on line 235
Deprecated: Illuminate\Support\Str::createRandomStringsUsing(): Implicitly marking parameter $factory as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Support/Str.php on line 755
Deprecated: Illuminate\Support\Str::createUuidsUsing(): Implicitly marking parameter $factory as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Support/Str.php on line 1274
Deprecated: Illuminate\Support\Str::freezeUuids(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Support/Str.php on line 1319
Deprecated: Illuminate\Support\Traits\Conditionable::when(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Conditionable/Traits/Conditionable.php on line 21
Deprecated: Illuminate\Support\Traits\Conditionable::when(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Conditionable/Traits/Conditionable.php on line 21
Deprecated: Illuminate\Support\Traits\Conditionable::unless(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Conditionable/Traits/Conditionable.php on line 53
Deprecated: Illuminate\Support\Traits\Conditionable::unless(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /www/s/a/u8413/public_html/vendor/laravel/framework/src/Illuminate/Conditionable/Traits/Conditionable.php on line 53
document.addEventListener('DOMContentLoaded', function () {
// Splide Stolárske
const splideStolarske = document.getElementById('splide-stolarske');
if (splideStolarske) {
var splideStolarskeInstance = new Splide('#splide-stolarske', {
type: 'slide',
perPage: 3,
gap: '1rem',
pagination: false,
arrows: true,
breakpoints: {
992: { perPage: 2 },
768: { perPage: 1 },
576: { padding: "1.5rem"}
}
});
var barStolarske = splideStolarskeInstance.root.querySelector('.my-slider-progress-bar');
if (barStolarske) {
splideStolarskeInstance.on('mounted move', function () {
var end = splideStolarskeInstance.Components.Controller.getEnd() + 1;
var rate = Math.min((splideStolarskeInstance.index + 1) / end, 1);
barStolarske.style.width = String(100 * rate) + '%';
});
}
splideStolarskeInstance.mount();
}
// Splide Partneri
const splidePartneri = document.getElementById('splide-partneri');
if (splidePartneri) {
var splidePartneriInstance = new Splide('#splide-partneri', {
perPage: 4,
gap: '2rem',
pagination: false,
arrows: true,
breakpoints: {
992: { perPage: 3 },
768: { perPage: 2 },
}
});
var barPartneri = splidePartneriInstance.root.querySelector('.partners-slider-progress-bar');
if (barPartneri) {
splidePartneriInstance.on('mounted move', function () {
var end = splidePartneriInstance.Components.Controller.getEnd() + 1;
var rate = Math.min((splidePartneriInstance.index + 1) / end, 1);
barPartneri.style.width = String(100 * rate) + '%';
});
}
splidePartneriInstance.mount();
}
// Reviews Slider
const reviewsSlider = document.getElementById('reviews-slider');
if (reviewsSlider) {
new Splide('#reviews-slider', {
arrows: true,
pagination: false,
}).mount();
}
const heroSlider = document.getElementById('heroSlider');
if (heroSlider) {
const splide = new Splide('#heroSlider', {
type: 'loop',
perPage: 1,
arrows: false,
pagination: false,
});
splide.on('active', function (slide) {
const bg = slide.slide.querySelector('.hero-background');
if (bg) {
bg.classList.remove('zoom-animate');
void bg.offsetWidth; // reset animácie
bg.classList.add('zoom-animate');
}
});
splide.mount();
}
});