PageSourceSearch

https://thepackrafttrail.com/wp-content/plugins/tbx-plugin/blox/howtogetthere/script.js?ver=1791384246

js thepackrafttrail.com collected 2026-10-08 05:43:50 UTC 744 bytes, 16 lines download raw bytes

1// register on click event on the select element inside all the howtogetthere blocks
2
3tb.onRootElementReady((tbRootElement) => {
4    document.querySelectorAll('.tb-howtogetthere').forEach((blockElement) => {
5        if (blockElement.querySelector('select')) {
6            blockElement.querySelector('select').addEventListener('change', (e) => {
7                const targetId = '#' + e.currentTarget.selectedOptions[0].dataset.section;
8                blockElement.querySelectorAll('.tb-section').forEach((entry) => {
9                    entry.classList.add('hidden');
10                });
11                blockElement.querySelector(targetId).classList.remove('hidden');
12                e.preventDefault();
13            });
14        }
15    });
16});

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.