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 isBlog = $(this).closest('.u-blog').length > 0; 6 const paramName = isBlog ? 'postsCategoryId' : 'categoryId'; 7 const selectedValue = $(this).val(); 8 9 const url = new URL(window.location.href); 10 const params = new URLSearchParams(url.search); 11 12 params.delete('paged'); 13 params.delete(paramName); 14 params.set(paramName, selectedValue); 15 16 url.search = params.toString(); 17 window.location.href = url.toString(); 18 }); 19});
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.