1jQuery(document).ready(function ($){ 2$(".section_actions_search_form").on("submit", function (e){ 3e.preventDefault(); 4var clinic=$( 5'.actions_selector_options.clinic ul li[data-attr="selected"]' 6).data("value"); 7var special=$( 8'.actions_selector_options.special ul li[data-attr="selected"]' 9).data("value"); 10$.ajax({ 11url: ajaxurl, 12type: "POST", 13data: { 14action: "filter_actions", 15clinic: clinic, 16special: special, 17}, 18beforeSend: function (){ 19console.log("ÐÑпÑавка AJAX-запÑоÑа..."); 20}, 21success: function (response){ 22$(".filter_results").html(response); 23}, 24error: function (jqXHR, textStatus, errorThrown){ 25console.error("ÐÑибка пÑи вÑполнении AJAX-запÑоÑа:", 26textStatus, 27errorThrown 28); 29}, 30complete: function (){ 31console.log("ÐавеÑÑение AJAX-запÑоÑа."); 32}, 33}); 34}); 35$(".doctors_search_clear").on("click", function (e){ 36e.preventDefault(); 37var currentUrl=window.location.href; 38var pricesIndex=currentUrl.indexOf("/prices/"); 39if(pricesIndex!==-1){ 40var newUrl=currentUrl.substring(0, pricesIndex + "/prices/".length); 41window.location.href=newUrl; 42}else{ 43window.location.reload(); 44}}); 45$(".section_articles_search_form .articles_selector_options").on("click", 46function (e){ 47if($(this).closest("form").hasClass("blog_21")){ 48return; 49} 50e.preventDefault(); 51var special=$( 52'.articles_selector_options ul li[data-attr="selected"]' 53).data("value"); 54$.ajax({ 55url: ajaxurl, 56type: "POST", 57data: { 58action: "filter_articles", 59special: special, 60}, 61beforeSend: function (){ 62console.log("ÐÑпÑавка AJAX-запÑоÑа..."); 63}, 64success: function (response){ 65$(".filter_results").html(response); 66}, 67error: function (jqXHR, textStatus, errorThrown){ 68console.error("ÐÑибка пÑи вÑполнении AJAX-запÑоÑа:", 69textStatus, 70errorThrown 71); 72}, 73complete: function (){ 74console.log("ÐавеÑÑение AJAX-запÑоÑа."); 75}, 76}); 77} 78); 79$(".section_articles_search_form .search-input input").on("keyup", 80function (){ 81if($(this).closest("form").hasClass("blog_21")){ 82return; 83} 84var special=$( 85'.articles_selector_options ul li[data-attr="selected"]' 86).data("value"); 87var searchQuery=$(this).val().trim(); 88$.ajax({ 89url: ajaxurl, 90type: "POST", 91data: { 92action: "filter_articles", 93special: special, 94pricename: searchQuery, 95}, 96beforeSend: function (){ 97console.log("ÐÑпÑавка AJAX-запÑоÑа..."); 98}, 99success: function (response){ 100$(".filter_results").html(response); 101}, 102error: function (jqXHR, textStatus, errorThrown){ 103console.error("ÐÑибка пÑи вÑполнении AJAX-запÑоÑа:", 104textStatus, 105errorThrown 106); 107}, 108complete: function (){ 109console.log("ÐавеÑÑение AJAX-запÑоÑа."); 110}, 111}); 112} 113); 114$(".section_doctors_search_form").on("submit", function (e){ 115e.preventDefault(); 116var clinic=$( 117'.doctors_selector_options.clinic ul li[data-attr="selected"]' 118).data("value"); 119var special=$( 120'.doctors_selector_options.special ul li[data-attr="selected"]' 121).data("value"); 122$.ajax({ 123url: ajaxurl, 124type: "POST", 125data: { 126action: "filter_doctors", 127clinic: clinic, 128special: special, 129}, 130beforeSend: function (){ 131console.log("ÐÑпÑавка AJAX-запÑоÑа..."); 132}, 133success: function (response){ 134$(".filter_results").html(response); 135}, 136error: function (jqXHR, textStatus, errorThrown){ 137console.error("ÐÑибка пÑи вÑполнении AJAX-запÑоÑа:", 138textStatus, 139errorThrown 140); 141}, 142complete: function (){ 143console.log("ÐавеÑÑение AJAX-запÑоÑа."); 144}, 145}); 146}); 147$(".section_reviews_search_form_group").on("click", 148".reviews_selector_options li", 149function (event){ 150if($(this).closest("form").hasClass("blog_21")){ 151return; 152} 153var special=$('.special ul li[data-attr="selected"]').data("value"); 154var doctor=$('.doctors ul li[data-attr="selected"]').data("value"); 155$.ajax({ 156url: ajaxurl, 157type: "POST", 158data: { 159action: "filter_reviews", 160doctor: doctor, 161special: special, 162}, 163beforeSend: function (){ 164console.log("ÐÑпÑавка AJAX-запÑоÑа..."); 165}, 166success: function (response){ 167$(".filter_results").html(response); 168}, 169error: function (jqXHR, textStatus, errorThrown){ 170console.error("ÐÑибка пÑи вÑполнении AJAX-запÑоÑа:", 171textStatus, 172errorThrown 173); 174}, 175complete: function (){ 176console.log("ÐавеÑÑение AJAX-запÑоÑа."); 177}, 178}); 179} 180); 181jQuery(document).ready(function ($){ 182$(".section_price_search_form").on("submit", function (e){ 183e.preventDefault(); 184var priceEl=$( 185'.doctors_selector_options.branches ul li[data-attr="selected"]' 186); 187var branches=priceEl.data("value"); 188var slug=priceEl.data("slug"); 189var searchQuery=$("#pricename").val().trim(); 190console.log("ÐÑпÑавка ÑоÑмÑ: branches=" + 191branches + 192", slug=" + 193slug + 194", searchQuery=" + 195searchQuery 196); 197if(slug){ 198history.pushState(null, 199null, 200window.location.origin + "/prices/" + slug + "/" 201); 202console.log("URL изменен на: " + window.location.origin + "/prices/" + slug + "/" 203); 204}else{ 205history.pushState(null, null, window.location.origin + "/prices/"); 206console.log("URL изменен на: " + window.location.origin + "/prices/"); 207} 208var newUrl=slug 209? window.location.origin + "/prices/" + slug + "/" 210: window.location.origin + "/prices/"; 211var $form=$("<form>", { 212action: newUrl, 213method: "POST", 214}).append($("<input>", { type: "hidden", name: "branches", value: branches }), 215$("<input>", { 216type: "hidden", 217name: "searchQuery", 218value: searchQuery, 219}) 220); 221$("body").append($form);
222console.log("ÐÑпÑавка POST ÑоÑÐ¼Ñ Ð½Ð°: " + 223newUrl + 224" Ñ Ð¿Ð°ÑамеÑÑами branches=" + 225branches + 226", searchQuery=" + 227searchQuery 228); 229$form.submit(); 230}); 231}); 232}); 233jQuery(document).ready(function ($){ 234$(".section_blog_letters a").on("click", function (e){ 235e.preventDefault(); 236var letter=$(this).text(); 237var type="diseases"; 238if(window.location.search.indexOf("symptomslist=y") > -1){ 239type="symptoms"; 240}else if(window.location.search.indexOf("serviceslist=y") > -1){ 241type="services"; 242}else if(window.location.search.indexOf("methodslist=y") > -1){ 243type="methods"; 244}else if(window.location.pathname.indexOf("/blog/") > -1){ 245type="blog"; 246} 247$.ajax({ 248url: ajaxurl, 249type: "POST", 250data: { 251action: "filter_diseases", 252letter: letter, 253type: type, 254}, 255success: function (response){ 256$("#diseases-list").html(response); 257}, 258error: function (xhr, status, error){ 259console.error(xhr.responseText); 260}, 261}); 262}); 263});
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.