1<!-- create docReady event --> 2function addEvent(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,function(){return n.call(e,window.event)})}function log(e){function t(e){var t=document.getElementById("log"),n=document.createElement("div");n.appendChild(document.createTextNode(e)),t.appendChild(n)}loaded?t(e):logs.push(e),eventSet||(eventSet=!0,addEvent(window,"load",function(){loaded=!0;for(var e=0;e<logs.length;e++)t(logs[e]);logs=[]}))}var logs=[],eventSet=!1,loaded=!1;!function(e,t){function n(){if(!a){a=!0;for(var e=0;e<o.length;e++)o[e].fn.call(window,o[e].ctx);o=[]}}function d(){"complete"===document.readyState&&n()}e=e||"docReady",t=t||window;var o=[],a=!1,c=!1;t[e]=function(e,t){return a?void setTimeout(function(){e(t)},1):(o.push({fn:e,ctx:t}),void("complete"===document.readyState?setTimeout(n,1):c||(document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):(document.attachEvent("onreadystatechange",d),window.attachEvent("onload",n)),c=!0)))}}("docReady",window); 3<!-- create docReady event end --> 4 5<!-- set cookies and marker objects --> 6window.cookies=function(){var e,t,n;return n=function(e){return new RegExp("(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*")},t=function(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=")},e=/^(?:expires|max\-age|path|domain|secure)$/,{get:function(e){return e&&this.has(e)?unescape(document.cookie.replace(n(e),"$1")):null},set:function(t,n,r,s,a,c){var i;if(t&&!e.test(t)){if(i="",r)switch(typeof r){case"number":i="; max-age="+r;break;case"string":i="unlimited"===r?"; expires=Fri, 10 Jul 2099 13:05:42 UTC":"; expires="+r;break;case"object":r.hasOwnProperty("toGMTString")&&(i="; expires="+r.toGMTString())}document.cookie=escape(t)+"="+escape(n)+i+(a?"; domain="+a:"")+(s?"; path="+s:"")+(c?"; secure":"")}},remove:function(e){var t;e&&this.has(e)&&(t=new Date,t.setDate(t.getDate()-100),document.cookie=escape(e)+"=; expires="+t.toGMTString()+"; path=/")},has:function(e){return t(e).test(document.cookie)},object:function(e){var t;if(e&&this.has(e))return t=this.get(e),new Function("return "+unescape(t.replace(/\+/g," ")))()}}}(); 7 8window.Marker = { 9 default_marker: set_marker, 10 get: function() { 11 return cookies.get('marker'); 12 }, 13 set: function(value) { 14 domain = window.location.hostname; 15 expire = new Date(+(new Date) + 60 * 60 * 24 * 30 * 1e3); 16 cookies.set('marker', value, expire.toGMTString(), '/', domain); 17 return value; 18 }, 19 handle_marker: function(value) { 20 if (value && this._new_marker(value) && (this.is_affiliate(value) || !this.is_affiliate(this.get()))) { 21 return this.set(value); 22 } 23 if (!this.get()) { 24 return this.set(this.default_marker); 25 } 26 return this.get(); 27 }, 28 _new_marker: function(value) { 29 return value !== this.get(); 30 }, 31 get_from_params: function() { 32 var a, b, i, p; 33 a = window.location.search.substr(1).split('&'); 34 if (a === "") { 35 return {}; 36 } 37 b = {}; 38 i = 0; 39 while (i < a.length) { 40 p = a[i].split("=", 2); 41 if (p.length === 1) { 42 b[p[0]] = ""; 43 } else { 44 b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " ")); 45 } 46 ++i; 47 } 48 return b.marker; 49 }, 50 get_marker: function() { 51 if (this.get_from_params() != null) { 52 this.set(this.get_from_params()) 53 } 54 if (this.get() == null) { 55 this.set(this.default_marker); 56 } 57 return this.get() || this.default_marker; 58 } 59}; 60if ( set_cookies == true ) { 61 marker = Marker.get_marker(); 62} else { 63 var get_marker = Marker.get_from_params(); 64 if ( get_marker == undefined ) { 65 marker = set_marker; 66 } else { 67 marker = get_marker; 68 } 69 70} 71<!-- set cookies and marker objects end --> 72 73<!-- set form settings --> 74 75window.TP_FORM_SETTINGS = window.TP_FORM_SETTINGS || {}; 76window.TP_FORM_SETTINGS[set_handle] = { 77 "handle": set_handle, 78 "widget_name": "Search form #3", 79 "border_radius": "2", 80 "additional_marker": null, 81 "width": 900, 82 "show_logo": false, 83 "marker": marker + '._landings' 84}; 85<!-- set form settings --> 86 87<!-- add form widgets --> 88 $(document).ready(function() { 89 var script = document.createElement('script'); 90 script.setAttribute('charset', 'utf-8'); 91 script.setAttribute('async', 'true'); 92 script.setAttribute('src', '//www.travelpayouts.com/widgets/'+set_handle+'.js?v=696'); 93 $('#present__form, #choose__form').append(script); 94 }); 95<!-- add form widgets end --> 96 97<!-- add calendar widget --> 98 docReady(function() { 99 var script = document.createElement('script'); 100 script.setAttribute('charset', 'utf-8'); 101 script.setAttribute('async', 'true'); 102 script.setAttribute('src', '//www.travelpayouts.com/calendar_widget/iframe.js?marker=' + marker +'._landings&origin=ARH&destination=MOW¤cy=rub&width=800&searchUrl=hydra.aviasales.ru&one_way=true&only_direct=false&locale=ru&period=year&range=7%2C14'); 103 document.getElementById('calendar__form').appendChild(script); 104 }); 105 106<!-- add calendar widget end --> 107 108<!-- add places widget 1 --> 109 docReady(function() { 110 var script = document.createElement('script'); 111 script.setAttribute('charset', 'utf-8'); 112 script.setAttribute('async', 'true'); 113 script.setAttribute('src', '//www.travelpayouts.com/weedle/widget.js?width=400px&marker=' + marker +'._landings&host=hydra.aviasales.ru&locale=ru¤cy=usd&destination=AER&destination_name=%D0%90%D0%B4%D0%BB%D0%B5%D1%80'); 114 document.getElementById('popular__list__item-1').appendChild(script); 115 }); 116 117<!-- add places widget end 1--> 118 119<!-- add places widget 2 --> 120 docReady(function() { 121 var script = document.createElement('script'); 122 script.setAttribute('charset', 'utf-8'); 123 script.setAttribute('async', 'true'); 124 script.setAttribute('src', '//www.travelpayouts.com/weedle/widget.js?width=400px&marker=' + marker +'._landings&host=hydra.aviasales.ru&locale=ru¤cy=rub&destination=MRV&destination_name=%D0%9C%D0%B8%D0%BD%D0%B5%D1%80%D0%B0%D0%BB%D1%8C%D0%BD%D1%8B%D0%B5%20%D0%92%D0%BE%D0%B4%D1%8B'); 125 document.getElementById('popular__list__item-2').appendChild(script); 126 }); 127<!-- add places widget end 2--> 128 129 130<!-- add places widget 3 --> 131 docReady(function() { 132 var script = document.createElement('script'); 133 script.setAttribute('charset', 'utf-8'); 134 script.setAttribute('async', 'true'); 135 script.setAttribute('src', '//www.travelpayouts.com/weedle/widget.js?width=400px&marker=' + marker +'._landings&host=hydra.aviasales.ru&locale=ru¤cy=rub&destination=TLV&destination_name=%D0%A2%D0%B5%D0%BB%D1%8C-%D0%90%D0%B2%D0%B8%D0%B2'); 136 document.getElementById('popular__list__item-3').appendChild(script); 137 }); 138<!-- add places widget end 3--> 139 140<!-- add places widget 4 --> 141 docReady(function() { 142 var script = document.createElement('script'); 143 script.setAttribute('charset', 'utf-8'); 144 script.setAttribute('async', 'true'); 145 script.setAttribute('src', '//www.travelpayouts.com/weedle/widget.js?width=400px&marker=' + marker +'._landings&host=hydra.aviasales.ru&locale=ru¤cy=rub&destination=SIP&destination_name=%D0%A1%D0%B8%D0%BC%D1%84%D0%B5%D1%80%D0%BE%D0%BF%D0%BE%D0%BB%D1%8C'); 146 document.getElementById('popular__list__item-4').appendChild(script); 147 }); 148<!-- add places widget end 4--> 149 150<!-- add places widget 5 --> 151 docReady(function() { 152 var script = document.createElement('script'); 153 script.setAttribute('charset', 'utf-8'); 154 script.setAttribute('async', 'true'); 155 script.setAttribute('src', '//www.travelpayouts.com/weedle/widget.js?width=400px&marker=' + marker +'._landings&host=hydra.aviasales.ru&locale=ru¤cy=rub&destination=ARH&destination_name=%D0%9A%D0%B0%D0%BB%D0%B8%D0%BD%D0%B8%D0%BD%D0%B3%D1%80%D0%B0%D0%B4'); 156 document.getElementById('popular__list__item-5').appendChild(script); 157 }); 158<!-- add places widget end 5--> 159 160<!-- add places widget 6 --> 161 docReady(function() { 162 var script = document.createElement('script'); 163 script.setAttribute('charset', 'utf-8'); 164 script.setAttribute('async', 'true'); 165 script.setAttribute('src', '//www.travelpayouts.com/weedle/widget.js?width=400px&marker=' + marker +'._landings&host=hydra.aviasales.ru&locale=ru¤cy=rub&destination=PRG&destination_name=%D0%9F%D1%80%D0%B0%D0%B3%D0%B0'); 166 document.getElementById('popular__list__item-6').appendChild(script); 167 }); 168<!-- add places widget end 6--> 169 170<!-- set links address --> 171 docReady(function() { 172 var logo1 = document.getElementById('logo-top'); 173 var logo2 = document.getElementById('logo-bottom'); 174 var href = "http://www.aviasales.ru/?marker=" + marker+'._landings'; 175 logo1.setAttribute('href', href); 176 logo2.setAttribute('href', href); 177 }); 178<!-- set links address -->
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.