PageSourceSearch

https://connersvillein.gov/wp-content/plugins/nicepage/includes/common/js/np-scripts.js?ver=1790286386

js connersvillein.gov collected 2026-09-24 21:46:34 UTC 960 bytes, 25 lines download raw bytes

1jQuery(document).ready(function($) {
2    //categories filter in np page
3    $('.u-blog .u-select-categories, .u-products .u-select-categories')
4        .on('change', function () {
5            const productList = $(this).closest('.u-products');
6            const isBlog = $(this).closest('.u-blog').length > 0;
7            if (!isBlog && productList.attr('data-products-datasource') === 'site') {
8                return;
9            }
10            const paramName = isBlog ? 'postsCategoryId' : 'categoryId';
11            const selectedValue = $(this).val();
12
13            const url = new URL(window.location.href);
14            const params = new URLSearchParams(url.search);
15
16            params.delete('paged');
17            params.delete(paramName);
18            if (selectedValue) {
19                params.set(paramName, selectedValue);
20            }
21
22            url.search = params.toString();
23            window.location.href = url.toString();
24        });
25});

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.