1$(function () { 2 3 $(".masked").mask("+7 (999) 999-99-99"); 4 5 BX.ready(function(){ 6 loader = BX('ajax-preloader-wrap'); 7 BX.showWait = function(node, msg) { 8 BX.style(loader, 'display', 'block'); 9 BX.addClass(loader, 'animated fadeIn'); 10 }; 11 BX.closeWait = function(node, obMsg) { 12 BX.style(loader, 'display', 'none'); 13 BX.removeClass(loader, 'animated fadeIn'); 14 }; 15 }); 16 17 18 (function() { 19 // trim polyfill : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim 20 if (!String.prototype.trim) { 21 (function() { 22 // Make sure we trim BOM and NBSP 23 var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g; 24 String.prototype.trim = function() { 25 return this.replace(rtrim, ''); 26 }; 27 })(); 28 } 29 30 [].slice.call( document.querySelectorAll( 'input.input__field' ) ).forEach( function( inputEl ) { 31 // in case the input is already filled.. 32 if( inputEl.value.trim() !== '' ) { 33 classie.add( inputEl.parentNode, 'input--filled' ); 34 } 35 36 // events: 37 inputEl.addEventListener( 'focus', onInputFocus ); 38 inputEl.addEventListener( 'blur', onInputBlur ); 39 } ); 40 41 function onInputFocus( ev ) { 42 classie.add( ev.target.parentNode, 'input--filled' ); 43 } 44 45 function onInputBlur( ev ) { 46 if( ev.target.value.trim() === '' ) { 47 classie.remove( ev.target.parentNode, 'input--filled' ); 48 } 49 } 50 })(); 51 52 function ValidMail() { 53 var re = /^[\w-\.]+@[\w-]+\.[a-z]{2,4}$/i; 54 var myMail = document.getElementById('user_email').value; 55 var valid = re.test(myMail); 56 if (valid) output = 'ÐдÑÐµÑ Ñл. поÑÑÑ Ð²Ð²ÐµÐ´ÐµÐ½ пÑавилÑно!'; 57 else output = 'ÐдÑÐµÑ ÑлекÑÑонной поÑÑÑ Ð²Ð²ÐµÐ´ÐµÐ½ непÑавилÑно!'; 58 document.getElementById('error_email').innerHTML = output; 59 return valid; 60 } 61 62 function ValidPhone() { 63 var re = /^[\d]{1}\ \([\d]{2,3}\)\ [\d]{2,3}-[\d]{2,3}-[\d]{2,3}$/; 64 var myPhone = document.getElementById('user_phone').value; 65 var valid = re.test(myPhone); 66 if (valid) output = 'ÐÐ¾Ð¼ÐµÑ ÑелеÑона введен пÑавилÑно!'; 67 else output = 'ÐÐ¾Ð¼ÐµÑ ÑелеÑона введен непÑавилÑно!'; 68 document.getElementById('error_phone').innerHTML = document.getElementById('message').innerHTML+'<br />'+output; 69 return valid; 70 } 71 72})
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.