PageSourceSearch

https://khushiipropertiies.com/wp-content/plugins/wpdirectorykit//…/inc/block-product-field/frontend.js?ver=23

js khushiipropertiies.com collected 2026-10-09 23:35:19 UTC 965 bytes, 22 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function() {
2    const blockContainers = document.querySelectorAll('.wdk-latest-listing-block');
3
4    blockContainers.forEach(container => {
5        const postCount = container.getAttribute('data-post-count') || 5;
6        const alignment = container.getAttribute('data-alignment') || 'none';
7        const content = container.getAttribute('data-content') || '';
8
9        const nonce = (typeof wdkBlockLastListings !== 'undefined' && wdkBlockLastListings.nonce) ? wdkBlockLastListings.nonce : '';
10        wp.apiFetch({
11            path: `/wdk-blocks/v1/last-listings/?postCount=${encodeURIComponent(postCount)}&_wpnonce=${encodeURIComponent(nonce)}`
12        })
13        .then(posts => {
14            container.innerHTML = posts.data;
15        })
16        .catch(error => {
17            console.error(error);
18            container.innerHTML = '<p>Failed to load listings.</p>';
19        });
20
21    });
22});

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.