Commit 6d58e3c5 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

Merge branch '617-header-slider-dosen-t-swipe-with-mouse' into 'master'

Resolve "Header Slider dosen't swipe with mouse"

Closes #617

See merge request t3o/t3olayout!583
parents 160feb87 7ec76d54
......@@ -44,17 +44,30 @@ $(function () {
noScrollbars: true
});
$('.js__landing-slick-slider').slick({
asNavFor: '.js__landing-slick-slider-nav',
arrows: false,
vertical: false,
responsive: [{
breakpoint: 1024,
settings: {
dots: true
}
}]
});
if ($('.js__landing-slick-slider-nav').length) {
$('.js__landing-slick-slider').slick({
asNavFor: '.js__landing-slick-slider-nav',
arrows: false,
vertical: false,
responsive: [{
breakpoint: 1024,
settings: {
dots: true
}
}]
});
} else {
$('.js__landing-slick-slider').slick({
arrows: false,
vertical: false,
responsive: [{
breakpoint: 1024,
settings: {
dots: true
}
}]
});
}
window.addEventListener("load", function () {
window.cookieconsent.initialise({
"palette": {
......@@ -89,14 +102,16 @@ $(function () {
}
});
$('.js__landing-slick-slider-nav').slick({
asNavFor: '.js__landing-slick-slider',
vertical: true,
swipe: false,
slidesToShow: 5,
focusOnSelect: true,
arrows: false
});
if ($('.js__landing-slick-slider').length) {
$('.js__landing-slick-slider-nav').slick({
asNavFor: '.js__landing-slick-slider',
vertical: true,
swipe: false,
slidesToShow: 5,
focusOnSelect: true,
arrows: false
});
}
var $searchForm = $('.js__main-nav__solr');
// JS behaviour of main navigation
......
......@@ -57,7 +57,6 @@
<f:else>
<div class="container second-slider-container">
<div class="landing-slick-slider-nav js__landing-slick-slider-nav d-none d-lg-block">
<f:for each="{slides}" as="SliderItems" iteration="i">
<f:if condition="{i.cycle} < 11">
<div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment