var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); (function(b){b.fn.ajaxSuggest=function(a){a=b.extend({input:"input[name=query]",loader:void 0,add:!1,requestOnly:!1,withoutRequest:!1,stringLength:3,delay:700,dataType:"html",clearCallback:void 0,beforeCallback:void 0,errorCallback:void 0,successCallback:void 0,withoutRequestCallback:void 0,messageMoreLetters:void 0},a||{});var e=0;if(a.url){if(a.container){var d=b(this),k,f,h;0<d.length?(f=b(a.container,d),h=b(a.input,d)):(f=b(a.container),h=b(a.input));var n=function(){clearInterval(k);k=setInterval(function(){var c= h.val();c.length<a.stringLength?(1==!a.withoutRequest&&1==a.messageMoreLetters&&1<a.stringLength&&(c="\u0431\u0443\u043a\u0432",2==a.stringLength&&(c="\u0431\u0443\u043a\u0432\u044b"),m('<li class="m-disabled">\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 '+(a.stringLength-1)+" "+c+" \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430</li>")),g("clearCallback")):q(c);clearInterval(k)},a.delay)},q=function(c){var d;d=a.requestQueryName?a.requestQueryName:h.attr("name"); var p={};p[d]=c;d=b.extend(p,a.data||{});1==a.withoutRequest?a.withoutRequestCallback instanceof Function&&a.withoutRequestCallback(c):(e&&"function"==typeof e.abort&&e.abort(),e=b.ajax({url:a.url,dataType:a.dataType,data:d,beforeSend:function(){l("show");g("beforeCallback")},error:function(){l("hide");g("errorCallback")},success:function(c){l("hide");1==a.requestOnly?g("successCallback",c,f):(m(c),g("successCallback",c))}}))},g=function(c,b,d){if(a[c]instanceof Function)a[c](b,d)},l=function(c){a.loader&& (c||"show"==c||"hide"!=c?b(a.loader,f).show():b(a.loader,f).hide())},m=function(c){1==a.add?f.append(c):f.empty().append(c)};0<d.length?(d.off("keyup",a.input),d.on("keyup",a.input,n)):(b(a.input).off("keyup"),b(a.input).on("keyup",n));return"0.4"}console.error('Plugin ajaxSuggest :: define "container" param in plugin call')}else console.error('Plugin ajaxSuggest :: define "url" param in plugin call')};b.fn.suggestControls=function(a){console.log("SUGGEST control");a=b.extend({set:void 0,up:void 0, down:void 0},a||{});var e=b(this);0==e.length&&console.error("Plugin suggestControls :: please set container");b(document).keydown(function(b){if(e.is(":visible"))switch(b.keyCode){case 13:b.preventDefault();a.set instanceof Function&&a.set(e);break;case 38:b.preventDefault();a.up instanceof Function&&a.up(e);break;case 40:b.preventDefault(),a.down instanceof Function&&a.down(e)}})}})(jQuery); } /* FILE ARCHIVED ON 12:08:13 Sep 27, 2021 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 01:37:57 Nov 19, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.522 exclusion.robots: 0.026 exclusion.robots.policy: 0.015 esindex: 0.01 cdx.remote: 8.303 LoadShardBlock: 64.743 (3) PetaboxLoader3.datanode: 114.96 (5) load_resource: 108.054 PetaboxLoader3.resolve: 40.459 loaddict: 30.624 */