1var $text= []; 2 $text['en']=["Alert is created, to change use the service","Manage alerts","Alert with such parameters has already been created"]; 3 $text['ru']=["Уведомление Ñоздано, Ð´Ð»Ñ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ñведомлений, иÑполÑзÑйÑе ÑеÑвиÑ","УпÑавление ÑведомлениÑми","Уведомление Ñ Ñакими паÑамеÑÑами Ñже Ñоздано"]; 4var $savetext= []; 5$savetext['en']=["Search saved, use service to change","Saved Searches","Search with such parameters already saved"]; 6$savetext['ru']=["ÐоиÑк ÑÐ¾Ñ Ñанен, Ð´Ð»Ñ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð¸ÑполÑзÑйÑе ÑеÑвиÑ","Ð¡Ð¾Ñ ÑаненнÑе поиÑки","ÐоиÑк Ñ Ñакими паÑамеÑÑами Ñже ÑÐ¾Ñ Ñанен"]; 7 8function isElementInViewport (el) { 9 10 //special bonus for those using jQuery 11 if (typeof jQuery === "function" && el instanceof jQuery) { 12 el = el[0]; 13 } 14 15 var rect = el.getBoundingClientRect(); 16 17 return ( 18 rect.top >= 0 && 19 rect.left >= 0 && 20 rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /*or $(window).height() */ 21 rect.right <= (window.innerWidth || document.documentElement.clientWidth) /*or $(window).width() */ 22 ); 23} 24$(document).on('click' ,'.singinAlert',function(e) { 25 e.preventDefault(); 26 e.stopImmediatePropagation(); 27 $('.jsFX_SignInAlertPop').show(); 28}); 29 30$(document).on('click' ,'.save-search',function(e) { 31 e.preventDefault(); 32 $('.amount').unmask(); 33 var $el = $('.header-wrapper'); 34 var $urlAllAlert=$(this).data('save-search'); 35 var $url = $(this).data('url'); 36 var $data = $('form').serialize(); 37 $.ajax({ 38 url: $url, 39 data: $data, 40 type: 'POST', 41 dataType: "json", 42 success: function (response) { 43 if (response.success) { 44 if(!isElementInViewport($el)) 45 $el=$; 46 if(response.dublicate){ 47 $.notify.addStyle('dublicate', { 48 html: "<div><span data-notify-text/></div>" 49 }); 50 $el.notify( 51 $savetext[$('html').attr('lang')][2], 52 { 53 style: "dublicate", 54 elementPosition: 'bottom center', 55 globalPosition: 'top center', 56 arrowShow: false, 57 autoHideDelay: 3000, 58 } 59 ); 60 } 61 else{ 62 $.notify.addStyle('alert', { 63 html: "<div><span data-notify-text='title'/> <a style='color: white; text-decoration: underline;' href='"+$urlAllAlert+"' data-notify-text='link'></a></div>", 64 }); 65 $el.notify( 66 { 67 title: $savetext[$('html').attr('lang')][0], 68 link: $savetext[$('html').attr('lang')][1] 69 }, 70 { 71 style: 'alert', 72 elementPosition: 'bottom center', 73 globalPosition: 'top center', 74 arrowShow: false, 75 autoHideDelay: 3000 76 } 77 ); 78 } 79 } 80 else { 81 if (response.redirect) 82 window.location.replace(response.redirect); 83 } 84 } 85 }); 86}); 87 88$(document).on('click' ,'.alerts, .alerts-white',function(e) { 89 e.preventDefault(); 90 $('.amount').unmask(); 91 var $el = $('.header-wrapper'); 92 var $urlAllAlert=$(this).data('alerts'); 93 var $url = $(this).data('url'); 94 var $data = $('form').serialize(); 95 $.ajax({ 96 url: $url, 97 data: $data, 98 type: 'POST', 99 dataType: "json", 100 success: function (response) { 101 if (response.success) { 102 if(!isElementInViewport($el)) 103 $el=$; 104 if(response.dublicate){ 105 $.notify.addStyle('dublicate', { 106 html: "<div><span data-notify-text/></div>" 107 }); 108 $el.notify( 109 $text[$('html').attr('lang')][2], 110 { 111 style: "dublicate", 112 elementPosition: 'bottom center', 113 globalPosition: 'top center', 114 arrowShow: false, 115 autoHideDelay: 3000, 116 } 117 ); 118 } 119 else{ 120 $.notify.addStyle('alert', { 121 html: "<div><span data-notify-text='title'/> <a style='color: white; text-decoration: underline;' href='"+$urlAllAlert+"' data-notify-text='link'></a></div>", 122 }); 123 $el.notify( 124 { 125 title: $text[$('html').attr('lang')][0], 126 link: $text[$('html').attr('lang')][1] 127 }, 128 { 129 style: 'alert', 130 elementPosition: 'bottom center', 131 globalPosition: 'top center', 132 arrowShow: false, 133 autoHideDelay: 3000 134 } 135 ); 136 } 137 } 138 else { 139 if (response.redirect) 140 window.location.replace(response.redirect); 141 } 142 } 143 }); 144}); 145 146$(document).on('click','.alerts_company,.alerts_JS_FX',function (e) { 147 e.preventDefault(); 148 var $urlAllAlert=$(this).data('alerts'); 149 var $url = $(this).data('url'); 150 var $el = $('.header-wrapper'); 151 $.ajax({ 152 url: $url, 153 success: function (response) { 154 if (response.success) { 155 156 if(!isElementInViewport($el)) 157 $el=$; 158 if(response.dublicate){ 159 $.notify.addStyle('dublicate', { 160 html: "<div><span data-notify-text/></div>" 161 }); 162 $el.notify( 163 $text[$('html').attr('lang')][2], 164 { 165 style: "dublicate", 166 elementPosition: 'bottom center', 167 globalPosition: 'top center', 168 arrowShow: false, 169 autoHideDelay: 3000 170 } 171 ); 172 } 173 else{ 174 $.notify.addStyle('alert', { 175 html: "<div><span data-notify-text='title'/> <a style='color: white; text-decoration: underline;' href='"+$urlAllAlert+"' data-notify-text='link'></a></div>", 176 }); 177 178 $el.notify( 179 { 180 title: $text[$('html').attr('lang')][0], 181 link: $text[$('html').attr('lang')][1] 182 }, 183 { 184 style: 'alert', 185 elementPosition: 'bottom center', 186 globalPosition: 'top center', 187 arrowShow: false, 188 autoHideDelay: 3000 189 } 190 ); 191 } 192 } 193 else { 194 if (response.redirect) 195 window.location.replace(response.redirect); 196 } 197 } 198 }); 199}); 200 201
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.