PageSourceSearch

https://www.kristberg.at/system/modules/ncmFormCheck/assets/js/ncm.formcheck.js

js kristberg.at collected 2026-10-02 12:33:25 UTC 1,193 bytes, 33 lines download raw bytes

1jQuery(function() {
2    var $forms = jQuery('form');
3    $forms.each(function(){
4        var $form = jQuery(this);
5        
6        /*
7         * Spam-Check
8         * Removes the "phone" input from the DOM if JS is enabled
9         * Spamers wont remove it and fill it out wrong because it expects an email -> spam is detected
10         */
11        if ( $form.find('input[name="phone"]').size() ) {
12            $form.find('input[name="phone"]').parent().detach().remove();
13
14            // event handler
15            jQuery(document).on("keypress mousemove touchstart", function() {
16                jQuery("input[name=sptestok]").val("1");
17            });
18        }
19    });
20    
21    // set select fields
22    if (typeof NCM_SELECT_FIELDS != "undefined" && NCM_SELECT_FIELDS.length) {
23        var requestParams = Environment.requestParams();
24        jQuery.each(NCM_SELECT_FIELDS, function(index, fieldName) {
25            var $field = jQuery("select[name="+fieldName+"]");
26            if (!$field.size() || $field.val() || !requestParams[fieldName]) {
27                return;
28            }
29            $field.val(requestParams[fieldName]);
30        });
31    }
32    
33});

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.