PageSourceSearch

https://www.hocheifel-nuerburgring.de/_assets/1798f66a72c0609b2ee5…/Checkboxes.5fc081bb8c823fd0a8a5.js

js hocheifel-nuerburgring.de collected 2026-10-07 17:52:15 UTC 1,340 bytes, 42 lines download raw bytes

1/******/ (() => { // webpackBootstrap
2/******/ 	"use strict";
3// This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
4(() => {
5// extracted by mini-css-extract-plugin
6
7})();
8
9// This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
10(() => {
11
12
13function buildSummary(items) {
14  const parts = [];
15  items.forEach(item => {
16    const input = item.querySelector('input[type="checkbox"]');
17    const label = item.querySelector('label');
18    if (input.checked) {
19      parts.push(label.textContent);
20    }
21  });
22  return parts.join(', ');
23}
24document.querySelectorAll('.filter__checkboxes').forEach(filter => {
25  const summary = filter.querySelector('.filter__checkboxes__summary');
26  const items = filter.querySelectorAll('.filter__checkboxes__item');
27  const checkboxes = filter.querySelectorAll('.filter__checkboxes__item input[type="checkbox"]');
28  checkboxes.forEach(checkbox => checkbox.addEventListener('change', () => {
29    const text = buildSummary(items);
30    if (text) {
31      summary.textContent = text;
32      filter.classList.add('filter__checkboxes--summarized');
33    } else {
34      summary.textContent = summary.dataset.fallback;
35      filter.classList.remove('filter__checkboxes--summarized');
36    }
37  }));
38});
39})();
40
41/******/ })()
42;

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.