Skip to Content

JavaScript File

URL: https://site.yandex.net/v2.0/js/all.js
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Thu, 14 Mar 2024 10:20:57 GMT
Download Time: Less than a second
Cookies: None
Size: 57 KB
HTTP Headers:  16 headers
Links In:  1 pages
OK Issues: No issues found

1window.Ya||(window.Ya={}

2),Ya.URL||(Ya.URL=function(e,t){var a,r,i,n,s,o=e.location;function c(){var e=l();e!==n&&("function"==typeof a&&a(n),n=e),r=setTimeout(c,s)}

3function l(){return o.hash.substr(1)}

4return{parseQuery:function(e,t,a){var r,i,n,s,o,c,l={}

5;if(!e)return l;for(t=t||"&",a=a||"=",o=0,c=(r=e.split(t)).length;o<c;++o){i=r[o].split(a);try{n=void 0!==i[1]?decodeURIComponent(i[1]):"",s=decodeURIComponent(i[0]),l.hasOwnProperty(s)?Array.isArray(l[s])?l[s].push(n):l[s]=[l[s],n]:l[s]=n}

6catch(e){}

7}

8return l}

9,buildQuery:function(e,t,a){var r,i,n,s,o,c,l="";if(!e)return l;for(c in t=t||"&",a=a||"=",e)if(e.hasOwnProperty(c))for(s=0,o=(n=[].concat(e[c])).length;s<o;++s)r="object"==(i=typeof n[s])||"undefined"==i?"":encodeURIComponent(n[s]),l+=t+encodeURIComponent(c)+a+r;return l.substr(t.length)}

10,removeQueryParams:function(e,t){var a=t.join("|"),r=new RegExp("("+a+")(=[^&]*)(&|$)","g");return t.length&&(e=e.replace(r,"")),e.replace(/&(?=&|$)/g,"")}

11,onHashChange:(i="onhashchange"in t,n=l(),s=100,function(e){i?t.onhashchange=function(){e(n),n=l()}

12:(a=e,r||c())}

13),setHash:function(e,t){t?o.replace(o.pathname+o.search+"#"+e):o.hash="#"+e}

14,getHash:l}

15}

16(document,window)),window.Ya||(window.Ya={}

17),Ya.Site||(Ya.Site=function(o,n){var r,i="1.4.0",s="1.6.2",t="2.0",c="initial",l=[],e=o.location,u=n.jQuery,a="https:",d=[],p=!1;"CSS1Compat"!==o.compatMode&&(o.documentElement.className+=" ya-page_css_quirks");var h={staticHost:a+"//site.yandex.net/",serp:a+"//yandex.%tld%/search/site/",suggest_ru:"https://sitesearch-suggest.yandex.ru/v1/suggest?",suggest_com:"https://sitesearch-suggest.yandex.com/v1/suggest?",jquery:a+"//yastatic.net/jquery/1.6.2/jquery.min.js",serpStatic:a+"//yastatic.net/sitesearch2/0xcd62cb1/pages/",opensearch:"https://yandex.%tld%/search/site/opensearch.xml?"}

18;if(n.ya_site_path)for(var m in ya_site_path)ya_site_path.hasOwnProperty(m)&&(h[m]="http"===ya_site_path[m].substr(0,4)?ya_site_path[m]:a+ya_site_path[m]);function f(){return h.staticHost+"v"+t+"/js/"}

19function g(e,t){var a=o.createElement("script"),r=o.head||o.getElementsByTagName("head")[0]||o.documentElement;a.type="text/javascript",a.async=!0,a.charset="utf-8",a.src=e,r.insertBefore(a,r.firstChild),a.onload=a.onreadystatechange=function(){var e=a.readyState;e&&"loaded"!==e&&"complete"!==e||("function"==typeof t&&t(),r&&a.parentNode&&r.removeChild(a),a=a.onload=a.onreadystatechange=null)}

20}

21function b(e){var t,a,r,i=e,n=0,s=o.getElementsByTagName("head")[0];for(y(e)||(i=[e]);n<i.length;n++)t=o.createElement(i[n].tag),"script"===i[n].tag?(t.setAttribute("type","text/javascript"),i[n].defer&&(t.defer=!0),a="src"):"link"===i[n].tag?(t.setAttribute("rel","stylesheet"),a="href"):"style"===i[n].tag&&t.setAttribute("type","text/css"),i[n].callback&&"function"==typeof i[n].callback&&function(e){void 0!==t.onreadystatechange?t.onreadystatechange=function(){"complete"!==this.readyState&&"loaded"!==this.readyState||(e(),e=function(){}

22)}

23:t.onload=e}

24(function(e){return i[e].kamikaze?function(){i[e].callback(),o.getElementsByTagName("head")[0].removeChild(r)}

25:i[e].callback}

26(n)),i[n].source?t.setAttribute(a,i[n].source):i[n].innerHTML&&("style"===i[n].tag?t.styleSheet?t.styleSheet.cssText=i[n].innerHTML:t.appendChild(o.createTextNode(i[n].innerHTML)):t.innerHTML=i[n].innerHTML),r=s.appendChild(t)}

27function _(e,t){switch(e){case"type":return t===parseInt(t,10)&&0<=t&&t<=5;case"webopt":case"websearch":case"arrow":case"suggest":case"site_suggest":case"fake":case"usebigdictionary":case"usebigdic":return"boolean"==typeof t;case"bg":case"input_bg":case"input_borderColor":case"input_borderInactiveColor":return/^#[0-9a-f]{6}

28|transparent$/i.test(t);case"fg":case"input_placeholderColor":case"input_fg":return/^#[0-9a-f]{6}

29$/i.test(t);case"fontsize":return t===parseInt(t,10);case"input_fontStyle":return/italic|normal/.test(t);case"input_fontWeight":return/bold|normal/.test(t);case"encoding":return/^[a-z0-9_\-]*$/i.test(t);case"language":return/ru|uk|en|tr/.test(t);case"logo":return/rb|rw|ww/.test(t);case"tld":return/ru|ua|by|kz|com|com.tr/.test(t);case"searchid":case"clid":return/^[0-9]{0,20}

30$/.test(t);case"target":return/_self|_blank/.test(t);case"p":return/^[0-9]*$/.test(t);case"web":case"noreask":return/0|1/.test(t);case"how":return/tm/.test(t)||"price"===t;case"constraintid":case"date":case"within":case"from_day":case"from_month":case"from_year":case"to_day":case"to_month":case"to_year":case"input_placeholder":case"publicname":case"available":case"priceLow":case"priceHigh":case"categoryId":return!0;case"surl":case"text":case"action":return"string"==typeof t;case"htmlcss":case"updatehash":return!0;default:return!1}

31}

32function y(e){return"[object Array]"===Object.prototype.toString.call(e)}

33function k(e,t,a,r,i){n[e]?a[e](r,i,!1):a[t]("on"+r,i)}

34return{appendToHead:b,i18n:{ru:function(){var e=e||{}

35;return e.site=e.site||{}

36,e.site.external_form={btn_find:function(e){return"Найти"}

37,webopt_internet:function(e){return"в интернете"}

38,webopt_site:function(e){return"на сайте"}

39,yandex:function(e){return"Яндекс"}

40}

...

</html>