PageSourceSearch

https://ascpp.org/wp-content/plugins/joynpress/src/pub/js/joynpress-public.js?ver=0.0.000

js ascpp.org collected 2026-10-02 06:19:32 UTC 3,306 bytes, 73 lines download raw bytes

1const ua = window.navigator.userAgent;
2if (ua.indexOf('Trident') > -1 || ua.indexOf('MSIE') > -1) {
3    alert('Please use a modern browser to view this page. We recommend Microsoft Edge or Google Chrome');
4    window.open('https://www.google.com/chrome/downloads/', '_blank');
5}
6document.body.addEventListener('submit', async function (sender) {
7    if (sender.target.tagName.toLowerCase() === 'form' && (sender.target.name.startsWith("jp_") || sender.target.id.startsWith("jp_") || sender.target.querySelectorAll('[class*="jp_"],[name*="jp_"],[id*="jp_"]').length > 0)) {
8        sender.preventDefault();
9        JPAlert.spin(sender);
10        if (typeof (jp_recaptcha) !== 'undefined' && jp_recaptcha.recaptcha) {
11            document.getElementById('g-recaptcha-response').value = await get_recaptcha_token();
12        }
13        sender.target.submit();
14    }
15});
16
17async function get_recaptcha_token() {
18    console.log("test");
19    if (typeof (jp_recaptcha) !== 'undefined' && jp_recaptcha.recaptcha) {
20        return new Promise((res, rej) => {
21            grecaptcha.ready( () => {
22                grecaptcha.execute(jp_recaptcha.site_key, {action: 'submit'}).then((token) => {
23                    return res(token);
24                })
25            })
26        })
27    }
28    return  '';
29}
30
31
32function getEUcountries() {
33    var euCountries = ["GB", "AT", "BE", "BG", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "DE", "HU", "IE", "IT", "LV", "LT", "LU", "MT", "NL", "PT", "RO", "SI", "ES", "SE", "GR", "PL", "SK"];
34    return euCountries;
35};
36
37function countryChangeHandler(event, target) {
38    let consent_checkbox = document.querySelector(`input[type="checkbox"][name="consent"]`);
39    let consent_hidden_checkbox = document.querySelector(`input[type="hidden"][name="CHECK_consent"]`);
40    if (consent_checkbox && consent_hidden_checkbox) {
41        let consent_row = consent_hidden_checkbox.closest('.et_pb_row');
42        let all_country_selectors = document.querySelectorAll(`select[name*="country"]`) ?? [];
43        let all_countries = Array.from(all_country_selectors).map(selector => selector.value);
44        if (all_countries.filter(value => getEUcountries().includes(value)).length > 0){
45            consent_row.style.display = 'block';
46        } else {
47            consent_checkbox.checked = true;
48            consent_row.style.display = 'none';
49        }
50    }
51    let sender_name = event.target.name;
52    let dropdown, text;
53    if (['0','1','2'].some(addrpos => sender_name.includes(addrpos))) {
54        let target_address = sender_name.match(/\d+/)[0]; //extracts first number ie 3 form foo3bar5;
55        dropdown = document.querySelector(`select[name*="${target_address}"][name*="state"]`);
56        text = document.querySelector(`input[name*="${target_address}"][name*="state"]`);
57    } else {
58        //Change for single address
59        dropdown = document.querySelector('select[name="state"]');
60        text = document.querySelector('input[name="state"]');
61    }
62    dropdown.style.display = 'none';
63    dropdown.disabled = true;
64    text.style.display = 'none';
65    text.disabled = true;
66    if (event.target.value === 'US') {
67        dropdown.style.display = 'block';
68        dropdown.disabled = false;
69    } else {
70        text.style.display = 'block';
71        text.disabled = false;
72    }
73};

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.