Zubehör | Trend-e-Shop
$('.hide-cat-marken').parent().parent().addClass('hide-cat-marken-outer')
$(document).ready(function(){ waitForElementToDisplay('#newsletter-input-form_41 input',200,400,newsletterEvent); }); function waitForElementToDisplay(selector,time,tries,callFunc) { if(document.querySelector(selector) !== null) { callFunc(); } else { if(tries >= 1){ setTimeout(function() { waitForElementToDisplay(selector, time,tries-1,callFunc); }, time); }else{ return; } } } function newsletterEvent(){ $('#newsletter-input-form_20 input').bind('keyup paste', function (event) { if($(this).val().length>0){ $('#newsletter-input-form_20 > .nlf-hide.d-none').removeClass('d-none'); $('.nlf-hide-2').addClass('d-none'); console.log("test"); }else{ $('#newsletter-input-form_20 > .nlf-hide').addClass('d-none'); $('.nlf-hide-2').removeClass('d-none'); } }); } $(document).ready(function(){ waitForElementToDisplay('#newsletter-input-form_41 input',200,400,newsletterEvent); }); function waitForElementToDisplay(selector,time,tries,callFunc) { if(document.querySelector(selector) !== null) { callFunc(); } else { if(tries >= 1){ setTimeout(function() { waitForElementToDisplay(selector, time,tries-1,callFunc); }, time); }else{ return; } } } function newsletterEvent(){ $('#newsletter-input-form_20 input').bind('keyup paste', function (event) { if($(this).val().length>0){ $('#newsletter-input-form_20 > .nlf-hide.d-none').removeClass('d-none'); $('.nlf-hide-2').addClass('d-none'); console.log("test"); }else{ $('#newsletter-input-form_20 > .nlf-hide').addClass('d-none'); $('.nlf-hide-2').removeClass('d-none'); } }); }