PageSourceSearch

https://www.omega-kancelaria.pl/wp-content/plugins/wysija-newslett…/jquery.validationEngine-pl.js?ver=2.7.4

js omega-kancelaria.pl collected 2026-10-04 02:46:31 UTC 10,351 bytes, 177 lines download raw bytes

1(function($){
2    $.fn.validationEngineLanguage = function(){
3    };
4    $.validationEngineLanguage = {
5        newLang: function(){
6            $.validationEngineLanguage.allRules = {
7                "required": { // Add your regex rules here, you can take telephone as an example
8                    "regex": "none",
9                    "alertText": "* Pole wymagane",
10                    "alertTextCheckboxMultiple": "* Proszę wybrać opcję",
11                    "alertTextCheckboxe": "* Pole wymagane"
12                },
13                "requiredInFunction": { 
14                    "func": function(field, rules, i, options){
15                        return (field.val() == "test") ? true : false;
16                    },
17                    "alertText": "* Field must equal test"
18                },
19                "minSize": {
20                    "regex": "none",
21                    "alertText": "* Minimalna liczba znaków to ",
22                    "alertText2": ""
23                },
24                "maxSize": {
25                    "regex": "none",
26                    "alertText": "* Maksymalna liczba znaków to ",
27                    "alertText2": ""
28                },
29	            "groupRequired": {
30                    "regex": "none",
31                   "alertText": "* Proszę wypełnić wymienione opcje"
32                },
33                "min": {
34                    "regex": "none",
35                    "alertText": "* Najmniejsza wartość to "
36                },
37                "max": {
38                    "regex": "none",
39                    "alertText": "* Największa wartość to "
40                },
41                "past": {
42                    "regex": "none",
43                    "alertText": "* Data musi być wcześniejsza niż "
44                },
45                "future": {
46                    "regex": "none",
47                    "alertText": "* Data musi być późniejsza niż "
48                },	
49                "maxCheckbox": {
50                    "regex": "none",
51                    "alertText": "* Przekroczona maksymalna liczba opcji"
52                },
53                "minCheckbox": {
54                    "regex": "none",
55                    "alertText": "* Minimalna liczba opcji to ",
56                    "alertText2": ""
57                },
58                "equals": {
59                    "regex": "none",
60                    "alertText": "* Pola nie są jednakowe"
61                },
62                "creditCard": {
63                    "regex": "none",
64                    "alertText": "* Nieprawidłowy numer karty kredytowej"
65                },
66                "phone": {
67                    // credit: jquery.h5validate.js / orefalo
68                    "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
69                    "alertText": "* Nieprawidłowy numer telefonu"
70                },
71                "email": {
72                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
73                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
74                    "alertText": "* Nieprawidłowy adres e-mail"
75                },
76                "integer": {
77                    "regex": /^[\-\+]?\d+$/,
78                    "alertText": "* Nieprawidłowa liczba całkowita"
79                },
80                "number": {
81                    // Number, including positive, negative, and floating decimal. credit: orefalo
82                    "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
83                    "alertText": "* Nieprawidłowa liczba dziesiętna"
84                },
85                "CZdate": {
86                    // Date in Polish format, regex taken from Czech translation
87                    "regex": /^(0[1-9]|[12][0-9]|3[01])[. /.](0[1-9]|1[012])[. /.](19|20)\d{2}$/,
88                    "alertText": "* Data musi być w postaci DD.MM.RRRR"
89                },
90                "date": {
91                    "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
92                    "alertText": "* Data musi być w postaci RRRR-MM-DD"
93                },
94                "nip":{
95                    "func": function(field, rules, i, options){
96                        var nipNumber = field.val().replace(/[\s-]/gi, '');
97                        var verificator_nip = new Array(6,5,7,2,3,4,5,6,7);
98                        if (nipNumber.length == 10) {
99                            var n=0;
100                            for (var i=0; i<9; i++) 
101                            {
102                                n += nipNumber[i] * verificator_nip[i]; 
103                            }
104                            n %= 11;
105                            if (n == nipNumber[9]) {return true;} 
106                        }
107                        return false;
108                    },
109                    "alertText": "* Nieprawidłowy numer NIP"
110                },
111                "pesel":{
112                    "func": function(field, rules, i, options){
113                        var pesel = field.val().replace(/[\s-]/gi, '');
114                        var peselArr = new Array(1,3,7,9,1,3,7,9,1,3);
115                        if(pesel.length == 11){
116                            var peselCRC=0;
117                            for (var i=0; i<10;i++){
118                                peselCRC += peselArr[i]*pesel[i];
119                            }
120                            peselCRC%=10;
121                            if(peselCRC == 0) peselCRC=10;
122                                peselCRC = 10 - peselCRC;
123                            if(pesel[10]==peselCRC) return true; else return false;                            
124                        }
125                    },
126                    "alertText": "* Nieprawidłowy numer PESEL"
127                },
128                "ipv4": {
129                    "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
130                    "alertText": "* Nieprawidłowy adres IP"
131                },
132                "url": {
133                    "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
134                    "alertText": "* Nieprawidłowy adres internetowy"
135                },
136                "onlyNumberSp": {
137                    "regex": /^[0-9\ ]+$/,
138                    "alertText": "* Tylko liczby"
139                },
140                "onlyLetterSp": {
141                    "regex": /^[a-zA-Z\ \']+$/,
142                    "alertText": "* Tylko litery"
143                },
144				"onlyLetterAccentSp":{
145                    "regex": /^[a-z\u00C0-\u017F\ ]+$/i,
146                    "alertText": "* Tylko litery"
147                },
148                "onlyLetterNumber": {
149                    "regex": /^[0-9a-zA-Z]+$/,
150                    "alertText": "* Tylko litery i liczby"
151                },
152                // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
153                "ajaxUserCall": {
154                    "url": "ajaxValidateFieldUser",
155                    // you may want to pass extra data on the ajax call
156                    "extraData": "name=eric",
157                    "alertText": "* Nazwa użytkownika jest już zajęta",
158                    "alertTextLoad": "* Walidacja, proszę czekać"
159                },
160                "ajaxNameCall": {
161                    // remote json service location
162                    "url": "ajaxValidateFieldName",
163                    // error
164                    "alertText": "* Nazwa jest już zajęta",
165                    // if you provide an "alertTextOk", it will show as a green prompt when the field validates
166                    "alertTextOk": "* Nazwa jest dostępna",
167                    // speaks by itself
168                    "alertTextLoad": "* Walidacja, proszę czekać"
169                },
170                "validate2fields": {
171                    "alertText": "* Proszę wpisać HELLO"
172                }
173            };
174        }
175    };
176    $.validationEngineLanguage.newLang();
177})(jQuery);

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.