PageSourceSearch

https://takiedela.live/wp-content/themes/takiedela/assets/js/min/f…?ver=80386cdd4fab453fdfb7992fc8ae22bb

js takiedela.live collected 2026-09-26 11:18:16 UTC 8,179 bytes, 1 lines download raw bytes

1function newAuthor(t){this.$form=t,this.$step1=$(".i-new-authors__step1",this.$form),this.$step2=$(".i-new-authors__step2",this.$form),this.$userName=$(".i-new-authors__name",this.$form),this.$emailInput=$(".i-new-authors__email",this.$form),this.$address=$(".i-new-authors__address",this.$form),this.$tel=$(".i-new-authors__tel",this.$form),this.$theme=$(".i-new-authors__theme",this.$form),this.$synopsis=$(".i-new-authors__synopsis",this.$form),this.$date=$(".i-new-authors__date",this.$form),this.$robot=$(".i-new-authors__robot",this.$form),this.$submit=$(".i-new-authors__send",this.$form),this.$error=$(".i-new-authors__error",this.$form),this.init()}function getPasteEvent(){var t=document.createElement("input");return t.setAttribute("onpaste",""),"function"==typeof t.onpaste?"paste":"input"}newAuthor.prototype.init=function(){var t=this;this.$tel.mask("+79999999999"),t.$userName.on("blur",(function(){t.check(!1)})),t.$emailInput.on("blur",(function(){t.check(!1)})),t.$theme.on("blur",(function(){t.check(!1)})),t.$synopsis.on("blur",(function(){t.check(!1)})),t.$date.on("blur",(function(){t.check(!1)})),t.$robot.on("blur",(function(){t.check(!1)})),t.$submit.on("click",(function(e){e.preventDefault(),t.check(!0)}))},newAuthor.prototype.check=function(t){var e=this.$userName,o=this.$emailInput,n=this.$theme,i=this.$synopsis,r=this.$date,a=this.$robot;return!!this.checkEmpty(e,t)&&(!!this.checkEmail(o,t)&&(!!this.checkEmpty(n,t)&&(!!this.checkEmpty(i,t)&&(!!this.checkEmpty(r,t)&&(!!this.checkRobot(a,t)&&(t&&this.send(),!1))))))},newAuthor.prototype.checkEmpty=function(t,e){return""==t.val()?(t.addClass("error"),e&&this.scrollToElem(t),!1):(t.removeClass("error"),!0)},newAuthor.prototype.checkEmail=function(t,e){return new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i).test(t.val())?(t.removeClass("error"),!0):(t.addClass("error"),e&&this.scrollToElem(t),!1)},newAuthor.prototype.checkRobot=function(t,e){return this.isNumeric(t.val())&&t.val()>=10&&t.val()<=99?(t.removeClass("error"),!0):(t.addClass("error"),e&&this.scrollToElem(t),!1)},newAuthor.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},newAuthor.prototype.scrollToElem=function(t){$("html, body").animate({scrollTop:t.offset().top-$(".i-top-panel__part1:visible").height()-$(".i-top-panel__part2:visible").height()-40+"px"},500,(function(){t.focus()}))},newAuthor.prototype.send=function(){var t=this;t.$error.hide(),t.$submit.attr("disabled","disabled"),$.post("/",{form_id:4,_wp_http_referer:"/editors/for-authors/","vfb-65":t.$userName.val(),"vfb-66":t.$emailInput.val(),"vfb-69":t.$address.val(),"vfb-72":t.$tel.val(),"vfb-71":t.$theme.val(),"vfb-70":t.$synopsis.val(),"vfb-75":t.$date.val(),"vfb-62":t.$robot.val(),"vfb-submit":"Отправить"}).done((function(e,o){console.log(this),t.$step1.animate({opacity:0}
1,500,(function(){$("html, body").animate({scrollTop:t.$form.offset().top-$(".i-top-panel__part1:visible").height()-$(".i-top-panel__part2:visible").height()-40+"px"},500),t.$form.slideUp(500,(function(){t.$step1.hide(),t.$step2.show(),$(this).slideDown(500,(function(){t.$step2.animate({opacity:1},500)}))}))}))})).fail((function(){t.$error.show()})).always((function(){t.$submit.removeAttr("disabled","disabled")}))},$((function(){$(".i-new-authors").each((function(){new newAuthor($(this))}))}));var caretTimeoutId,pasteEventName=getPasteEvent()+".mask",ua=navigator.userAgent,iPhone=/iphone/i.test(ua),android=/android/i.test(ua);function Valid(){}$.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},dataName:"rawMaskFn",placeholder:"_"},$.fn.extend({caret:function(t,e){var o;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof t?(e="number"==typeof e?e:t,this.each((function(){this.setSelectionRange?this.setSelectionRange(t,e):this.createTextRange&&((o=this.createTextRange()).collapse(!0),o.moveEnd("character",e),o.moveStart("character",t),o.select())}))):(this[0].setSelectionRange?(t=this[0].selectionStart,e=this[0].selectionEnd):document.selection&&document.selection.createRange&&(o=document.selection.createRange(),t=0-o.duplicate().moveStart("character",-1e5),e=t+o.text.length),{begin:t,end:e})},unmask:function(){return this.trigger("unmask")},mask:function(t,e){var o,n,i,r,a;return!t&&this.length>0?$(this[0]).data($.mask.dataName)():(e=$.extend({placeholder:$.mask.placeholder,completed:null},e),o=$.mask.definitions,n=[],i=a=t.length,r=null,$.each(t.split(""),(function(t,e){"?"==e?(a--,i=t):o[e]?(n.push(new RegExp(o[e])),null===r&&(r=n.length-1)):n.push(null)})),this.trigger("unmask").each((function(){var s=$(this),l=$.map(t.split(""),(function(t,n){if("?"!=t)return o[t]?e.placeholder:t})),c=s.val();function h(t){for(;++t<a&&!n[t];);return t}function u(t,o){var i,c;if(!(t<0)){for(i=t,c=h(o);i<a;i++)if(n[i]){if(!(c<a&&n[i].test(l[c])))break;l[i]=l[c],l[c]=e.placeholder,c=h(c)}m(),s.caret(Math.max(r,t))}}function p(t,o){var i;for(i=t;i<o&&i<a;i++)n[i]&&(l[i]=e.placeholder)}function m(){s.val(l.join(""))}function f(t){var o,c,h=s.val(),u=-1;for(o=0,pos=0;o<a;o++)if(n[o]){for(l[o]=e.placeholder;pos++<h.length;)if(c=h.charAt(pos-1),n[o].test(c)){l[o]=c,u=o;break}if(pos>h.length)break}else l[o]===h.charAt(pos)&&o!==i&&(pos++,u=o);return t?m():u+1<i?(s.val(""),p(0,a)):(m(),s.val(s.val().substring(0,u+1))),i?o:r}s.data($.mask.dataName,(function(){return $.map(l,(function(t,o){return n[o]&&t!=e.placeholder?t:null})).join("")})),s.attr("readonly")||s.one("unmask",(function(){s.unbind(".mask").removeData($.mask.dataName)})).bind("focus.mask",(function(){var e;clearTimeout(caretTimeoutId),c=s.val(),e=f(),caretTimeoutId=setTimeout((function(){m(),e==t.length?s.caret(0,e):s.caret(e)}),10)})).bind("blur.mask",(function(){f(),s.val()!=c&&s.change()})).bind("keydown.mask",(function(t){var e,o,i,r=t.which;8===r||46===r||iPhone&&127===r?(o=(e=s.caret()).begin,(i=e.end)-o==0&&(o=46!==r?function(t){for(;--t>=0&&!n[t];);return t}(o):i=h(o-1),i=46===r?h(i):i),p(o,i),u(o,i-1),t.preventDefault()):27==r&&(s.val(c),s.caret(0,f()),t.preventDefault())})).bind("keypress.mask",(function(t){var o,i,r,c=t.which,f=s.caret();t.ctrlKey||t.altKey||t.metaKey||c<32||c&&(f.end-f.begin!=0&&(p(f.begin,f.end),u(f.begin,f.end-1)),(o=h(f.begin-1))<a&&(i=String.fromCharCode(c),n[o].test(i)&&(!function(t){var o,i,r,s;for(o=t,i=e.placeholder;o<a;o++)if(n[o]){if(r=h(o),s=l[o],l[o]=i,!(r<a&&n[r].test(s)))break;i=s}}(o),l[o]=i,m(),r=h(o),android?setTimeout($.proxy($.fn.caret,s,r),0):s.caret(r),e.completed&&r>=a&&e.completed.call(s))),t.preventDefault())})).bind(pasteEventName,(function(){setTimeout((function(){var t=f(!0);s.caret(t),e.completed&&t==s.val().length&&e.completed.call(s)}),0)})),f()})))}}),Valid.prototype.checkEmpty=function(t,e){return""==t.val()?(t.addClass("error"),e&&this.scrollToElem(t),!1):(t.removeClass("error"),!0)},Valid.prototype.checkEmail=function(t,e){return new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i).test(t.val())?(t.removeClass("error"),!0):(t.addClass("error"),e&&this.scrollToElem(t),!1)},Valid.prototype.checkInn=function(t,e){return""==t.val()||!this.isNumeric(t.val())||10!=t.val().length&&12!=t.val().length?(t.addClass("error"),e&&this.scrollToElem(t),!1):(t.removeClass("error"),!0)},Valid.prototype.checkRobot=function(t,e){return this.isNumeric(t.val())&&t.val()>=10&&t.val()<=99?(t.removeClass("error"),!0):(t.addClass("error"),e&&this.scrollToElem(t),!1)},Valid.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))&&isFinite(t)}
1,Valid.prototype.scrollToElem=function(t){$("html, body").animate({scrollTop:t.offset().top-$(".i-top-panel__part1:visible").height()-$(".i-top-panel__part2:visible").height()-40+"px"},500,(function(){t.focus()}))};

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.