PageSourceSearch

https://simpledoc.ru/agreement/res/js/main.js?r=32405

js simpledoc.ru collected 2026-10-06 08:49:45 UTC 6,226 bytes, 12 lines download raw bytes

1(function(){function e(){$(".js-menu").addClass("expanded");$(".js-hamburger").off("click",e);setTimeout(function(){$(document.body).on("click",m)})}function m(b){$(b.target).closest(".js-menu").get(0)||($(".js-menu").removeClass("expanded"),$(".js-hamburger").on("click",e),$(document.body).off("click",m))}function r(b){$(b.currentTarget).parent().toggleClass("expanded");b.preventDefault();b.stopPropagation()}function t(b){$(b.currentTarget).addClass("expanded")}function u(b){$(b.currentTarget).removeClass("expanded")}
2function v(b){if(b&&b.originalEvent.data&&b.originalEvent.data.indexOf&&0===b.originalEvent.data.indexOf("{")){var d=window.JSON.parse(b.originalEvent.data);b=d.type;d=d.data;"login"===b?window.checker&&window.checker.check():"logout"===b?(window.IS_BUYER=!1,window.DATE_LIMIT="",window.AUTHORIZED=!1,window.environment&&window.environment.check()):("init"===b&&(d.authorized?(window.AUTHORIZED=!0,$("header .js-login-link").text(d.email||d.phone||d.name||"\u041f\u0440\u043e\u0444\u0438\u043b\u044c").parent().removeClass("login--start").addClass("login--finish")):
3(window.AUTHORIZED=!1,$("header .js-login-link").text("\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f").parent().removeClass("login--finish").addClass("login--start"))),"resize"===b&&$(".js-auth iframe").css("height",d.height+20+"px"))}}function h(){$(".js-login-link").addClass("active").off("click",h);$(".js-auth").addClass("expanded");setTimeout(function(){$(document.body).on("click",n)});f.scrollTo(0)}function n(b){$(b.target).closest(".js-auth").get(0)||($(".js-auth").removeClass("expanded"),
4$(".js-login-link").removeClass("active").on("click",h),$(document.body).off("click",n))}(function(b,d){return d={exports:{}},b(d,d.exports),d.exports})(function(b,d){(function(){b.exports={polyfill:function(){function b(a,b){this.scrollLeft=a;this.scrollTop=b}function d(a){if(null===a||"object"!==typeof a||void 0===a.behavior||"auto"===a.behavior||"instant"===a.behavior)return!0;if("object"===typeof a&&"smooth"===a.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+a.behavior+
5" is not a valid value for enumeration ScrollBehavior.");}function f(a,b){if("Y"===b)return a.clientHeight+p<a.scrollHeight;if("X"===b)return a.clientWidth+p<a.scrollWidth}function e(a,b){a=c.getComputedStyle(a,null)["overflow"+b];return"auto"===a||"scroll"===a}function h(a){var b=f(a,"Y")&&e(a,"Y");a=f(a,"X")&&e(a,"X");return b||a}function m(a){var b=(n()-a.startTime)/468;var d=.5*(1-Math.cos(Math.PI*(1<b?1:b)));b=a.startX+(a.x-a.startX)*d;d=a.startY+(a.y-a.startY)*d;a.method.call(a.scrollable,b,
6d);b===a.x&&d===a.y||c.requestAnimationFrame(m.bind(c,a))}function q(a,d,f){var w=n();if(a===k.body){var e=c;var g=c.scrollX||c.pageXOffset;a=c.scrollY||c.pageYOffset;var h=l.scroll}else e=a,g=a.scrollLeft,a=a.scrollTop,h=b;m({scrollable:e,method:h,startTime:w,startX:g,startY:a,x:d,y:f})}var c=window,k=document;if(!("scrollBehavior"in k.documentElement.style&&!0!==c.__forceSmoothScrollPolyfill__)){var g=c.HTMLElement||c.Element,l={scroll:c.scroll||c.scrollTo,scrollBy:c.scrollBy,elementScroll:g.prototype.scroll||
7b,scrollIntoView:g.prototype.scrollIntoView},n=c.performance&&c.performance.now?c.performance.now.bind(c.performance):Date.now,p=/MSIE |Trident\/|Edge\//.test(c.navigator.userAgent)?1:0;c.scroll=c.scrollTo=function(a,b){void 0!==a&&(!0===d(a)?l.scroll.call(c,void 0!==a.left?a.left:"object"!==typeof a?a:c.scrollX||c.pageXOffset,void 0!==a.top?a.top:void 0!==b?b:c.scrollY||c.pageYOffset):q.call(c,k.body,void 0!==a.left?~~a.left:c.scrollX||c.pageXOffset,void 0!==a.top?~~a.top:c.scrollY||c.pageYOffset))};
8c.scrollBy=function(a,b){void 0!==a&&(d(a)?l.scrollBy.call(c,void 0!==a.left?a.left:"object"!==typeof a?a:0,void 0!==a.top?a.top:void 0!==b?b:0):q.call(c,k.body,~~a.left+(c.scrollX||c.pageXOffset),~~a.top+(c.scrollY||c.pageYOffset)))};g.prototype.scroll=g.prototype.scrollTo=function(a,b){if(void 0!==a)if(!0===d(a)){if("number"===typeof a&&void 0===b)throw new SyntaxError("Value could not be converted");l.elementScroll.call(this,void 0!==a.left?~~a.left:"object"!==typeof a?~~a:this.scrollLeft,void 0!==
9a.top?~~a.top:void 0!==b?~~b:this.scrollTop)}else b=a.left,a=a.top,q.call(this,this,"undefined"===typeof b?this.scrollLeft:~~b,"undefined"===typeof a?this.scrollTop:~~a)};g.prototype.scrollBy=function(a,b){void 0!==a&&(!0===d(a)?l.elementScroll.call(this,void 0!==a.left?~~a.left+this.scrollLeft:~~a+this.scrollLeft,void 0!==a.top?~~a.top+this.scrollTop:~~b+this.scrollTop):this.scroll({left:~~a.left+this.scrollLeft,top:~~a.top+this.scrollTop,behavior:a.behavior}))};g.prototype.scrollIntoView=function(a){if(!0===
10d(a))l.scrollIntoView.call(this,void 0===a?!0:a);else{a=this;do{a=a.parentNode;var b=a===k.body}while(!1===b&&!1===h(a));b=a.getBoundingClientRect();var e=this.getBoundingClientRect();a!==k.body?(q.call(this,a,a.scrollLeft+e.left-b.left,a.scrollTop+e.top-b.top),"fixed"!==c.getComputedStyle(a).position&&c.scrollBy({left:b.left,top:b.top,behavior:"smooth"})):c.scrollBy({left:e.left,top:e.top,behavior:"smooth"})}}}}}})()}).polyfill();var f=function(){};f.scrollTop=function(){return document.body.scrollTop||
11window.scrollY};f.scrollTo=function(b){window.scroll({top:b,left:0,behavior:"smooth"})};f.scrollToElement=function(b){b.scrollIntoView({behavior:"smooth",block:"start"})};var p=function(){var b,d={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};for(b in d)if(b in document){var e=d[b];break}return function(d){d&&document.addEventListener(e,d);return!document[b]}}();(function(){var b=$(document.body),d=b.hasClass("mobile");
12b=b.hasClass("tablet");
12if(d)$(".js-hamburger").on("click",e);if(d||b)$(".js-menu .menu__top--list .menu__link").on("click",r);else $(".js-menu .menu__top--list .menu__link").parent().on("mouseover",t).on("mouseout",u)})();({init:function(){$(".js-login-link").on("click",h);$(window).on("message",v);var b=this;p(function(){window.AUTHORIZED&&p()&&b.check()})},check:function(){var b=$(".js-auth iframe").get(0);b.src=b.src}}).init();(function(){var b=window.NEO_USER_ID;$("#paid-client-id").text(b);$("#footer-client-id").text(b)})()})();

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.