1/** 2 * ÐалидаÑÐ¸Ñ Ð¸ обÑабоÑка ÑоÑм 3 */ 4document.addEventListener('DOMContentLoaded', function() { 5 // ÐниÑиализаÑÐ¸Ñ Ð²Ð°Ð»Ð¸Ð´Ð°Ñии 6 if (typeof Vigroup !== 'undefined' && Vigroup.validate) { 7 document.querySelectorAll('.form_container').forEach(function(form) { 8 // ÐаÑа ÑÑÑеÑÑвÑÑÑÐ°Ñ Ð»Ð¾Ð³Ð¸ÐºÐ° валидаÑии 9 }); 10 } 11 12 // ÐбÑабоÑка клика по кнопке (Ð´Ð»Ñ ÑовмеÑÑимоÑÑи) 13 document.querySelectorAll('.callback').forEach(function(button) { 14 button.addEventListener('click', function(e) { 15 if (this.closest('form').reportValidity()) { 16 this.closest('form').dispatchEvent(new Event('submit')); 17 } 18 e.preventDefault(); 19 }); 20 }); 21});
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.