in de Jquery on.facetwp-loaded actie:

(function($) {
// fade functie voor resultaten
$(document).on('facetwp-refresh', function() {
                if ( FWP.loaded ) {
                    $('.facetwp-template').animate({opacity: 0}, 1000);
                }
            });
$(document).on('facetwp-loaded', function() {
// fade functie voor resultaten               
$('.facetwp-template').animate({ opacity: 1 }, 1000);
                var urlParams = new URLSearchParams(window.location.search);
                var leeftijdgsgroep = urlParams.get('_leeftijd');
                if(leeftijdgsgroep){
                $("a.rslnk").each(function() {
                       var $this = $(this);
                       var _href = $this.attr("href");
                       $this.attr("href", _href + '?leeftijd=' + leeftijdgsgroep);
                    });
                  };
            });
Geef een reactie 0