<!-- Тильдошная смешанный скролл для Тильды -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.9.7/jquery.fullpage.min.css" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.9.7/vendors/jquery.easings.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.9.7/jquery.fullpage.extensions.min.js"></script>
<script>
function check_direction(t,e,i){var n=$($(".section").get(t-1)).find(".fp-slide").length,f=-1;if(n){if($($(".section").get(t-1)).find(".fp-slide").each(function(t,e){$(e).hasClass("active")&&(f=t+1)}),"down"==i&&f<n)return $.fn.fullpage.moveSlideRight(),!1;if("up"==i&&1<f)return $.fn.fullpage.moveSlideLeft(),!1}return("up"!=i||$($(".section").get(t-1)).prev().find(".t-rec").attr("id")!=$(".section").first().find(".t-rec").attr("id"))&&(("down"!=i||$($(".section").get(t-1)).next().find(".t-rec").attr("id")!=$(".section:not(.label)").last().find(".t-rec").attr("id"))&&void 0)}
$(document).ready(function() {
/*************************************************/
/*******************Часть 1***********************/
/*************************************************/
// Указываем простые секции
var sections = $("#rec109985702, #rec109985750");
// Указываем группы слайдов
var sliders = ["#rec109985749, #rec109985703", "#rec109985704, #rec109985713", "#rec109985708, #rec109985710"];
sections.wrap("<div class='section'></div>");
sliders.forEach(function(s){
let parents = $(s).wrap("<div class='slide'></div>");
parents.parent().wrapAll("<div class='section'></div>");
})
$(".section").wrapAll("<div id='fullpage'></div>");
/*********************************************/
/*****************ЧАСТЬ 2*********************/
/*********************************************/
$($(".section").get(1)).addClass("active");
window.page = $('#fullpage').fullpage({
/*************************************************/
/*******************Часть 3***********************/
/*************************************************/
// Скорость скролла
scrollingSpeed: 300,
// Не трогать
css3: true,
scrollBar: true,
onLeave: function(index, nextIndex, direction) {
if (check_direction(index, nextIndex, direction) == false) {
return false;
}
return true;
},
});
});
</script>
<style>
body {
overflow: hidden !important;
}
</style>
<!-- Тильдошная горизонтальный скролл для Тильды -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.9.7/jquery.fullpage.min.css" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.9.7/vendors/jquery.easings.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.9.7/jquery.fullpage.extensions.min.js"></script>
<script>
function check_direction(t,e,i){var n=$($(".section").get(t-1)).find(".fp-slide").length,f=-1;if(n){if($($(".section").get(t-1)).find(".fp-slide").each(function(t,e){$(e).hasClass("active")&&(f=t+1)}),"down"==i&&f<n)return $.fn.fullpage.moveSlideRight(),!1;if("up"==i&&1<f)return $.fn.fullpage.moveSlideLeft(),!1}return("up"!=i||$($(".section").get(t-1)).prev().find(".t-rec").attr("id")!=$(".section").first().find(".t-rec").attr("id"))&&(("down"!=i||$($(".section").get(t-1)).next().find(".t-rec").attr("id")!=$(".section:not(.label)").last().find(".t-rec").attr("id"))&&void 0)}
$(document).ready(function() {
/*************************************************/
/********************Часть 1**********************/
/*************************************************/
// Указываем технические блоки
var sections = $("#rec113654996, #rec113655002");
// Указываем отображаемые слайды
var sliders = ["#rec113654997, #rec113654998, #rec113654999, #rec113655000, #rec113655001"];
sections.wrap("<div class='section'></div>");
sliders.forEach(function(s){
let parents = $(s).wrap("<div class='slide'></div>");
parents.parent().wrapAll("<div class='section'></div>");
})
$(".section").wrapAll("<div id='fullpage'></div>");
$($(".section").get(1)).addClass("active");
window.page = $('#fullpage').fullpage({
/*********************************************/
/*****************ЧАСТЬ 2*********************/
/*********************************************/
scrollingSpeed: 600,
// Эту часть не трогаем
css3: true,
scrollBar: true,
onLeave: function(index, nextIndex, direction) {
if (check_direction(index, nextIndex, direction) == false) {
return false;
}
return true;
},
});
});
</script>
<style>
body {
overflow: hidden !important;
}
</style>
<!-- Тильдошная вертикальный скролл для Тильды -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.9.7/jquery.fullpage.min.css" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.9.7/vendors/jquery.easings.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.9.7/jquery.fullpage.extensions.min.js"></script>
<script>
$(document).ready(function() {
/*********************************************/
/*****************ЧАСТЬ 1*********************/
/*********************************************/
// Указываем id блоков
var sections = $("#rec106962189, #rec106962736, #rec106964636, #rec106962218");
sections.wrap("<div class='section'></div>");
$(".section").wrapAll("<div id='fullpage'></div>");
/*********************************************/
/*****************ЧАСТЬ 2*********************/
/*********************************************/
window.page = $('#fullpage').fullpage({
/*********************************************/
/*****************ЧАСТЬ 3*********************/
/*********************************************/
// Эту часть не трогаем
css3: true,
scrollBar: true,
});
});
</script>
<style>
body {
overflow: hidden !important;
}
</style>