PageSourceSearch

https://www.gesundheitsgmbh.de/app/cache/autoptimize/js/autoptimize_single_645d42c6d324b1202740ce2aaba3c4a4.js

js gesundheitsgmbh.de collected 2026-09-24 10:01:02 UTC 3,929 bytes, 9 lines download raw bytes

1(function(jQuery){jQuery(function($){if(window.elementorFrontend&&window.elementorFrontend.hooks){window.elementorFrontend.hooks.addAction("frontend/element_ready/widget",function($scope){if($scope.hasClass("elementor-widget-ghd-events")){initEventsList();if($(".ghd-event-filter-wrapper").length>0){$(".ghd-events-component").css("min-height",$(".filter-other").height());eventHandler();}
2if(window.elementor&&window.elementor.channels&&window.elementor.channels.deviceMode){window.elementor.listenTo(window.elementor.channels.deviceMode,"change",function(){setTimeout(function(){initEventsList();},500);});}}});}
3$(document).on("elementor/frontend/init",function(){initEventsList();if($(".ghd-event-filter-wrapper").length>0){$(".ghd-events-component").css("min-height",$(".filter-other").height());eventHandler();}});function clickEventFilter($input,$this){if($this.parent().parent().hasClass("active")){$this.find("input").prop("checked",false);$input.parent().parent().removeClass("active");}else{$input.find("input").prop("checked",false);$input.parent().parent().removeClass("active");$this.parent().parent().addClass("active");$this.find("input").prop("checked",true);}}
4function ajaxFilter(){let selectedFilters=$(".ghd-event-filter-wrapper input:checked").map(function(){return{name:$(this).attr("name"),value:$(this).val()};}).get();let selectedCategories=$(".ghd-events-component").data("ghd-event-categories");let eventsCount=$(".ghd-events-component").data("ghd-event-count");let $ghdEventsList=$(".ghd-events-list");$.ajax({url:window.ghd_events_ajax.url,type:"POST",data:{action:"filter_events",filters:selectedFilters,categories:selectedCategories,eventsCount:eventsCount,},beforeSend:function(){$ghdEventsList.fadeOut();$(".loader").addClass("active");},success:function(response){$(".loader").removeClass("active");$ghdEventsList.fadeIn().html(response);initEventsList();},});}
5function eventHandler(){let $inputVeranstaltungsart=$(".veranstaltungsart");let $inputFachbereiche=$(".fachbereich");let $inputZielgruppe=$(".zielgruppe");$inputVeranstaltungsart.off("click.ghd-filter");$inputFachbereiche.off("click.ghd-filter");$inputZielgruppe.off("click.ghd-filter");$(".filter-other button").off("click.ghd-filter");$inputVeranstaltungsart.on("click.ghd-filter",function(){if($(this).hasClass("active")){$(this).find("input").prop("checked",false);$(this).removeClass("active");}else{$inputVeranstaltungsart.removeClass("active");$(this).addClass("active");$inputVeranstaltungsart.find("input").prop("checked",false);$(this).find("input").prop("checked",true);}
6ajaxFilter();});$inputFachbereiche.on("click.ghd-filter",function(){clickEventFilter($inputFachbereiche,$(this));ajaxFilter();});$inputZielgruppe.on("click.ghd-filter",function(){clickEventFilter($inputZielgruppe,$(this));ajaxFilter();});$(".filter-other button").on("click.ghd-filter",function(){if($(this).text()==="Mehr Filter"){$(this).text("Weniger Filter");}else{$(this).text("Mehr Filter");}
7$(".filter-other").toggleClass("active");});}
8function initEventsList(itemsToDisplay){$(".ghd-events-component").each(function(){itemsToDisplay=getComputedStyle(this).getPropertyValue("--items-to-display");var $eventsComponent=$(this);var $showMoreButton=$eventsComponent.find(".actions .show-more-events");var $eventsList=$eventsComponent.find(".ghd-events-list");$eventsList.find(".ghd-event").removeAttr("style").removeClass("active").slice(0,itemsToDisplay).addClass("active");if($eventsList.find(".ghd-event:not(.active)").length>0){$showMoreButton.css("visibility","visible");}else{$showMoreButton.hide();}
9$showMoreButton.off("click.show-more-items").on("click.show-more-items",function(e){e.preventDefault();$eventsList.find(".ghd-event:not(.active)").slice(0,itemsToDisplay).slideDown(400,function(){$(this).addClass("active");if($eventsList.find(".ghd-event:not(.active)").length===0){$showMoreButton.hide();}});});});}});})(window.jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.