чоо байкал москва

  • Last design

    майкоп прокат автомобилей

    window.mysite===undefined&&(mysite={}),mysite.global={},mysite.utils={markRequiredLabels:function(){$("input,select,textarea").each(function(){var i=$(this).attr("data-val-required"),n,t;i&&(n=$(`label[for="`+$(this).attr("id")+`"]`),n.length>0&&$("span",n).length===0&&(t=n.text(),t.length>0&&n.append(` * `)),this.placeholder||(this.placeholder="Заполните это поле!"))})},getFileNameWithoutExtension:function(n){if(!n)return"";var t=n,i=n.indexOf("")>=0?n.lastIndexOf(""):n.lastIndexOf("/");return i!=-1&&(t=n.length>i+1?n.substring(i+1):""),i=t.indexOf("."),i!=-1&&(t=t.substring(0,i)),t},loadHtmlToElement:function(n,t,i){function f(){var n={div:r.get(0)};u.busyIndicator=new mysite.controls.BusyIndicator(n),u.busyIndicator.show()}function e(){u.busyIndicator.destroy()}var u=this,r;n=mysite.utils.getElement(n),r=$(n),assert(r&&t),i=$.extend({noCache:!0,method:"insert",loaded:$.noop,failed:$.noop},i),f(),mysite.dataProvider.getData({url:t,cache:!i.noCache,data:i.requestData}).always(function(){e()}).done(function(n){if(i.method==="replace"){var t=VA.createHtmlElementFromString(n);r.html(t.innerHTML)}else i.method==="insert"&&r.html(n);i.loaded()}).fail(function(n){r.html(` Error loading content: "`+n+`" `)})},showProgressBar:function(n){n.html(` `)},animateNewElement:function(n){function e(){n.get(0).style.width=t,n.get(0).style.height=i}var t=n.get(0).style.width,i=n.get(0).style.height,r=n.css("background-color"),u=n.css("width"),f=n.css("height");n.css("opacity",0).css("background-color","red").css("width",0).css("height",0),n.animate({backgroundColor:r,opacity:1,width:u,height:f},500,e)},animateEditedElement:function(n,t){function r(){n.animate({backgroundColor:i},500,t)}n=$(n);var i=n.css("background-color");n.animate({backgroundColor:" ff5050"},750,r)},animateDeletedElement:function(n,t){var i=n.css("background-color");n.css("opacity",1).css("background-color","red"),n.animate({backgroundColor:i,opacity:0,width:0,height:0},500,t)},openInNewTab:function(n,t){n.preventDefault(),n.stopPropagation(),t.startsWith("http")||t.startsWith("//")||(t="//"+t);var i=window.open(t,"_blank")},getElement:function(n){if(n instanceof HTMLElement)return n;var t=document.getElementById(n);return t?t:(t=document.getElementsByClassName(n)[0],t)?t:$(n).get(0)},flashElements:function(){var n=$(".flash-me");mysite.utils.animateEditedElement(n),n.length>0&&n.get(0).scrollIntoView(),n.removeClass("flash-me")},showBusyIndicator:function(){$(".busy-indicator-place").empty().append(` `)},hideBusyIndicator:function(){$(".busy-indicator-place").empty()},showError:function(n){$(".busy-indicator-place").empty().append(" ").addClass("field-validation-error").text(n)},enableContent:function(n,t){n?(t.removeAttr("disabled"),t.find("input").removeAttr("disabled"),t.find("textarea").removeAttr("disabled")):(t.prop("disabled","true"),t.find("input").prop("disabled","true"),t.find("textarea").prop("disabled","true"))},makeSumbitAsync:function(n){var t=new mysite.utils.AsyncSubmitter(n)},makeCaptureRefreshable:function(n){function r(){$(n.captchaImputId).val(""),t.empty().append(u);var f=document.createElement("img");f.onload=function(){t.empty().append(f).append(i),i.click(r)},f.className="captcha-img",f.alt="Контрольный код",f.src=n.capthaUrl+"?_="+ +new Date,f.validate="always"}var t=$(n.captchaPlaceId),u=$(" "),i=$(" ");r()},selectTextById:function(n){var t=document.getElementById(n);return this.selectText(t)},selectText:function(n){if(document.selection){var t=document.body.createTextRange();t.moveToElementText(n),t.















  • portfolio image 1
  • Did you like it?

Site sponsors

  • press 75
  • theme forest
  • light cms
  • top 25 web hosts
  • p2h
  • advertise here
  • ad img desc