{% sw_extends '@Storefront/storefront/layout/footer/footer.html.twig' %}
{% block layout_footer_inner_container %}
<div id="footercontent">
{% if page.header.activeLanguage.translationCode.code == 'en-GB' %}
{% sw_include '@Storefront/storefront/layout/footer/footer-content-en.html.twig' %}
{% elseif page.header.activeLanguage.translationCode.code == 'nl-NL' %}
{% sw_include '@Storefront/storefront/layout/footer/footer-content-nl.html.twig' %}
{% elseif page.header.activeLanguage.translationCode.code == 'es-ES' %}
{% sw_include '@Storefront/storefront/layout/footer/footer-content-es.html.twig' %}
{% elseif page.header.activeLanguage.translationCode.code == 'fr-FR' %}
{% sw_include '@Storefront/storefront/layout/footer/footer-content-fr.html.twig' %}
{% elseif page.header.activeLanguage.translationCode.code == 'it-IT' %}
{% sw_include '@Storefront/storefront/layout/footer/footer-content-it.html.twig' %}
{% else %}
{% sw_include '@Storefront/storefront/layout/footer/footer-content-de.html.twig' %}
{% endif %}
</div>
<script type="text/javascript">
/*
$(window).scroll(function() {
if(window.scrollY >= 1) {
$("#body").addClass("scrolled");
}
if(window.scrollY <= 0) {
$("#body").removeClass("scrolled");
}
myAnimFooter();
myAnimBlocks();
myAnimSection();
});
$(window).resize(function() {
doAnimations();
console.log("ANIMATIONS DONE");
myAnimFooter();
myAnimBlocks();
myAnimSection();
});
$(function() {
myAnimFooter();
myAnimBlocks();
myAnimSection();
});
//FOOTER LINIEN ANIMATION
function myAnimFooter() {
$('.animElement').each(function(){
//let top = calcTopOffset(this);
let top = this.getBoundingClientRect().top + window.scrollY;
console.log(top);
let topFromBottom = (top - window.innerHeight) * -1;
if (topFromBottom >= 50) {
$(this).addClass('animStarted');
setTimeout(function() {
$('#footer .animElement2').each(function(i){
let row = $(this);
setTimeout(function() {
row.addClass('animStarted2');
}, 700*i);
});
}, 700);
}
});
}
//CONTENT LINIEN ANIMATION
function myAnimSection() {
$('.animSection').each(function() {
//let top = calcTopOffset(this);
let top = this.getBoundingClientRect().top + window.scrollY;
let topFromBottom = (top - window.innerHeight) * -1;
if (topFromBottom >= 50) {
$(this).addClass('animStarted');
let parentEl = $(this).parent();
setTimeout(function() {
$('.animSection2', parentEl).each(function(i){
let row = $(this);
setTimeout(function() {
row.addClass('animStarted2');
}, 1000*i);
});
}, 1000);
}
});
}
//CONTENT LINIEN ANIMATION
function myAnimBlocks() {
$('.animBlock').each(function() {
//let top = calcTopOffset(this);
let top = this.getBoundingClientRect().top + window.scrollY;
let topFromBottom = (top - window.innerHeight) * -1;
if (topFromBottom >= 50) {
$(this).addClass('animStarted');
}
});
}
*/
</script>
<script>
//VERSCHEIBT DIE SORTIER AUSWAHL BOX
var SortInput = $('#getsortinginput').html();
$('.cms-section-sidebar-sidebar-content').append(SortInput);
$('#getsortinginput').html("");
//VERSCHEIBT DIE HEADERICONS
var HeaderIcons = $('#ShopIcons').html();
$('.cms-section-sidebar-sidebar-content').append(HeaderIcons);
$('.rightProductSide').append(HeaderIcons);
$('#ShopIcons').html("");
var windowwith = $(window).width();
var contentheight = 0;
var TopMargin = 0;
$( document ).ready(function() {
setTimeout(
function()
{
contentheight = $(".cms-block-gallery-buybox").outerHeight(true);
TopMargin = contentheight;
$('.bottomPageCut').css("top", TopMargin);
}, 1500);
});
$( window ).resize(function() {
setBottomLine(0);
doAnimations();
});
function setBottomLine(){
contentheight = $(".cms-block-gallery-buybox").outerHeight(true);
TopMargin = contentheight;
$('.bottomPageCut').css("top", TopMargin);
}
var CrossSellingOffsetTop = 0;
var Footerheight = 0;
$( document ).ready(function() {
CrossSellingOffsetTop = $(".product-detail-cross-selling").outerHeight(true);
CrossSellingOffsetTop = CrossSellingOffsetTop - 70;
$('.bottomPageCut2').css("top", 50);
$('.bottomPageCut3').css("bottom", 0);
});
doAnimations();
function doAnimations(){
windowwith = $(window).width();
/* ANIMATIONEN */
setTimeout(function() {
$(".pagecutline").addClass("draw");
}, 500);
setTimeout(function() {
$(".bottomPageCut").addClass("draw");
}, 500);
setTimeout(function() {
$(".bottomPageCut2").addClass("draw");
}, 500);
setTimeout(function() {
$(".bottomPageCut3").addClass("draw");
}, 500);
setTimeout(function() {
$(".line1").addClass("draw");
}, 500);
setTimeout(function() {
$(".line2").addClass("draw");
}, 1000);
setTimeout(function() {
$(".line3").addClass("draw");
}, 1500);
setTimeout(function() {
$(".line4").addClass("draw");
}, 2000);
setTimeout(function() {
$(".line5").addClass("draw");
}, 2500);
if(windowwith <= 1700){
setTimeout(function() {
$(".line6").addClass("draw");
}, 3000);
setTimeout(function() {
$(".line7").addClass("draw");
}, 3500);
}
if(windowwith <= 1300){
setTimeout(function() {
$(".line8").addClass("draw");
}, 3000);
setTimeout(function() {
$(".line9").addClass("draw");
}, 3500);
}
if(windowwith <= 850){
setTimeout(function() {
$(".line10").addClass("draw");
}, 4000);
setTimeout(function() {
$(".line11").addClass("draw");
}, 4500);
setTimeout(function() {
$(".line12").addClass("draw");
}, 5000);
setTimeout(function() {
$(".line13").addClass("draw");
}, 5500);
setTimeout(function() {
$(".line14").addClass("draw");
}, 6000);
setTimeout(function() {
$(".line15").addClass("draw");
}, 6500);
setTimeout(function() {
$(".line16").addClass("draw");
}, 7000);
setTimeout(function() {
$(".line17").addClass("draw");
}, 7500);
}
setTimeout(function() {
$(".line1topdown").addClass("draw");
}, 1200);
setTimeout(function() {
$(".line2topdown").addClass("draw");
}, 1700);
setTimeout(function() {
$(".line3topdown").addClass("draw");
}, 2200);
setTimeout(function() {
$(".line4topdown").addClass("draw");
}, 2700);
setTimeout(function() {
$(".line5topdown").addClass("draw");
}, 3200);
}
$( ".custom-control-input" ).click(function() {
setTimeout(
function()
{
doAnimations();
}, 1500);
});
$( ".filter-panel-active-container" ).click(function() {
setTimeout(
function()
{
doAnimations();
}, 1500);
});
$( ".filter-active-remove" ).click(function() {
setTimeout(
function()
{
doAnimations();
}, 1500);
});
$( ".filter-multi-select-list-item" ).click(function() {
setTimeout(
function()
{
doAnimations();
}, 1500);
});
$( ".page-item" ).click(function() {
setTimeout(
function()
{
doAnimations();
}, 2000);
});
$( ".page-link" ).click(function() {
setTimeout(
function()
{
doAnimations();
}, 1500);
doAnimations();
});
$( ".form-control" ).keyup(function() {
setTimeout(
function()
{
doAnimations();
}, 1500);
doAnimations();
});
$( ".sorting" ).change(function() {
setTimeout(
function()
{
doAnimations();
}, 1500);
});
$(".filter-panel-item").click(function(){
if($(this).hasClass("active")){
$(this).removeClass("active");
$(this).find(".filter-panel-item-toggle").removeClass("active");
$(this).find(".filter-multi-select-dropdown").hide();
$(this).find("svg").css("transform", "rotate(0deg)");
} else {
$(".filter-panel-item").removeClass("active");
$(".filter-multi-select-dropdown").hide();
$(".filter-panel-item-toggle").removeClass("active");
$(".filter-panel-item-toggle .icon svg").css("transform", "rotate(0deg)");
$(this).addClass("active");
$(this).find(".filter-panel-item-toggle").addClass("active");
$(this).find("svg").css("transform", "rotate(180deg)");
$(this).find(".filter-multi-select-dropdown").show();
}
});
$(".btn-light").click(function(){
var LoadUrl = "{{ absolute_url(asset('bundles/theme3s/functions/getWeclappAddresses.php')) }}&isprofile=0&customerid={{ context.customer._uniqueIdentifier }}";
setTimeout(function() {
fetch(LoadUrl, {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'},
body: "text=" + document.querySelector("#AddressSelection").innerText
})
.then(response => response.text())
.then(data => document.querySelector("#AddressSelection").innerHTML = data);
}, 2000);
});
$(".address-editor-create").click(function(){
var AddressContent = $("#AddressSelection").innerHTML;
if(AddressContent != ""){
$("#AddressSelection").show('slow');
} else {
$("#AddressSelection").hide('slow');
}
})
function setExtraBillAddress(iCount){
var Street1 = $("#street1_" + iCount).html();
var Street2 = $("#street2_" + iCount).html();
var Zip = $("#zipcode_" + iCount).html();
var City = $("#city_" + iCount).html();
var Street = "";
if(Street1 != ""){
Street = Street1;
}
if(Street2 != "" && Street2 != "") {
Street = Street1 + ", " + Street2;
}
if(Street1 == "" && Street2 != "") {
Street = Street2;
}
$("#billing-address-create-new #billing-addressAddressStreet").val(Street);
$("#billing-address-create-new #billing-addressAddressZipcode").val(Zip);
$("#billing-address-create-new #billing-addressAddressCity").val(City);
}
function setExtraDeliveryAddress(iCount){
var Street1 = $("#street1_" + iCount).html();
var Street2 = $("#street2_" + iCount).html();
var Zip = $("#zipcode_" + iCount).html();
var City = $("#city_" + iCount).html();
var Street = "";
if(Street1 != ""){
Street = Street1;
}
if(Street2 != "" && Street2 != "") {
Street = Street1 + ", " + Street2;
}
if(Street1 == "" && Street2 != "") {
Street = Street2;
}
$("#shipping-address-create-new #shipping-addressAddressStreet").val(Street);
$("#shipping-address-create-new #shipping-addressAddressZipcode").val(Zip);
$("#shipping-address-create-new #shipping-addressAddressCity").val(City);
}
</script>
{% endblock %}