";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 00&&e.checkChildNodesRecursively(g.childNodes,b,c,d)},mergeArrays:function(a,b){var d,c={};for(d in a)c[d]=a[d];for(d in b)c[d]=b[d];return c},toElementsArray:function(b){return"undefined"==typeof b||"number"==typeof b.length&&b!==a||(b=[b]),b}}}(),f=function(){var a=function(){this._eventsBucket=[],this._beforeAdding=null,this._beforeRemoving=null};return a.prototype.addEvent=function(a,b,c,d){var e={target:a,selector:b,options:c,callback:d,firedElems:[]};return this._beforeAdding&&this._beforeAdding(e),this._eventsBucket.push(e),e},a.prototype.removeEvent=function(a){for(var c,b=this._eventsBucket.length-1;c=this._eventsBucket[b];b--)a(c)&&(this._beforeRemoving&&this._beforeRemoving(c),this._eventsBucket.splice(b,1))},a.prototype.beforeAdding=function(a){this._beforeAdding=a},a.prototype.beforeRemoving=function(a){this._beforeRemoving=a},a}(),g=function(b,d){var g=new f,h=this,i={fireOnAttributesModification:!1};return g.beforeAdding(function(c){var i,e=c.target;c.selector,c.callback;(e===a.document||e===a)&&(e=document.getElementsByTagName("html")[0]),i=new MutationObserver(function(a){d.call(this,a,c)});var j=b(c.options);i.observe(e,j),c.observer=i,c.me=h}),g.beforeRemoving(function(a){a.observer.disconnect()}),this.bindEvent=function(a,b,c){b=e.mergeArrays(i,b);for(var d=e.toElementsArray(this),f=0;f0?e.checkChildNodesRecursively(c,b,k,f):"attributes"===a.type&&k(d,b,f)&&f.push({callback:b.callback,elem:node}),e.callCallbacks(f)})}function k(a,b,f){if(e.matchesSelector(a,b.selector)&&(a._id===c&&(a._id=d++),-1==b.firedElems.indexOf(a._id))){if(b.options.onceOnly){if(0!==b.firedElems.length)return;b.me.unbindEventWithSelectorAndCallback.call(b.target,b.selector,b.callback)}b.firedElems.push(a._id),f.push({callback:b.callback,elem:a})}}var f={fireOnAttributesModification:!1,onceOnly:!1,existing:!1};j=new g(h,i);var l=j.bindEvent;return j.bindEvent=function(a,b,c){"undefined"==typeof c?(c=b,b=f):b=e.mergeArrays(f,b);var d=e.toElementsArray(this);if(b.existing){for(var g=[],h=0;h0&&e.checkChildNodesRecursively(c,b,h,f),e.callCallbacks(f)})}function h(a,b){return e.matchesSelector(a,b.selector)}var c={};k=new g(d,f);var i=k.bindEvent;return k.bindEvent=function(a,b,d){"undefined"==typeof d?(d=b,b=c):b=e.mergeArrays(c,b),i.call(this,a,b,d)},k},j=new h,k=new i;b&&m(b.fn),m(HTMLElement.prototype),m(NodeList.prototype),m(HTMLCollection.prototype),m(HTMLDocument.prototype),m(Window.prototype);var n={};return l(j,n,"unbindAllArrive"),l(k,n,"unbindAllLeave"),n}}(window,"undefined"==typeof jQuery?null:jQuery,void 0);$(document).ready(function () {$.fn.move_city = function() {$(".font-weight-light").each(function() {var text_city=$(this).find('.citis_doctor').text();$(this).find('#marq').html(text_city);var numbercity=$(this).find('.citis_doctor .numbercity').val();if(numbercity < 2){$(this).find('.citis_doctor').removeClass('hidden');$(this).find('.marquee').addClass('hidden');}});return this;};var wight_page = $(window).width();$(".js-box-toggle").click(function(){$(this).find('.fa-chevron-down').toggleClass('rotate180');});$('.c-btn-filter--advanced').click(function () {$('.is-advanced').addClass('remodal-is-opened');});$('.c-btn-filter--direction').click(function () {$('.is-direction').addClass('remodal-is-opened');});$('.remodal-close').click(function () {$('.remodal-wrapper').removeClass('remodal-is-opened');});function arrayRemove(arr, value) {return arr.filter(function(ele){return ele != value;});}var duplicates_list = [];$(".js-box-content").each(function() {var id_parent0=$(this).attr('id');var id_parent='#'+id_parent0;var tag_rep0 = $(id_parent).find('input.name_tag').map(function (idx, elem) {return $(elem).val();}).get();var unique_list = [];$.each(tag_rep0, function (key, value) {if ($.inArray(value, unique_list) == -1) {unique_list.push(value);} else {if ($.inArray(value, duplicates_list) == -1) {duplicates_list.push(value);}}});for (var j = 0; j <= duplicates_list.length; j++) {if(duplicates_list[j]>0) {$(this).find('li.desktop').find('input[value=' + duplicates_list[j] + ']').closest('li').not(':first').remove();$(this).find('li.li_mobile').find('input[value=' + duplicates_list[j] + ']').closest('li').not(':first').remove();}else{$(this).find('li.desktop').find('input[value=""]').closest('li').remove();$(this).find('li.li_mobile').find('input[value=""]').closest('li').remove();}}});$('.btn_search_adv').click(function () {$('.search_adv_content').css('margin-left','-300px');$('.Curtain').css({'width':'100%','opacity':'0.5'});$('.main_con_search').css('width','100%');});$('button.btn_search_adv').click(function () {$('.main_con_search').addClass('fixed_pos');});$('.off-menu-close span ,.Curtain,.M_filter_btn button').click(function () {$('.main_con_search').removeClass('fixed_pos');$('.search_adv_content').css('margin-left','0%');$('.Curtain').css({'width':'0%','opacity':'0'});$('.main_con_search').css('width','0%');});$('.M_filter_btn button').click(function () {var val_search=$('#searchInput_M').val();if(val_search.length){$('#btn_searchInput_M').trigger("click");}});if (wight_page>564) {var isset=$('#searchInput_D').length;if(isset>0) {var input = document.getElementById("searchInput_D");input.addEventListener("keyup", function (event) {if (event.keyCode === 13) {event.preventDefault();document.getElementById("btn_searchInput_D").click();}});}var isset=$('#searchInput_All').length;if(isset>0) {var input = document.getElementById("searchInput_All");input.addEventListener("keyup", function (event) {if (event.keyCode === 13) {event.preventDefault();document.getElementById("btn_searchInput_All").click();}});}}
$.fn.filter_tick=function (strfilter,strsite,strla,strnow,stridsurgery_doctor,stridtag_doctor,stridcat_doctor,stridarea_doctor,strid_state_url,strid_city_url,strpezeshk){if (wight_page>564) {var name_li="ul.options li.desktop.not_area";}else{name_li="ul.options li.li_mobile.not_area";}var filterObj = {};var baseObj = {};$(document).on('click',name_li, function(e) {$(this).closest('.modal-content').find('.modal-header .close').click();var href_page_first= window.location.pathname;history.pushState(null, '', href_page_first);$("#wait").show();$(".waiting_ajax").show();$('#searchInput_D').val('');$('#searchInput_M').val('');$('.doctor_page .pagination li').removeClass('disabled');$('.doctor_page .pagination li:first-child').addClass('disabled');var name_t = $(this).find('.c-filter.js-box-content-item').text();if (($(this).closest('div.mobile').length > 0)) {var name_v = $(this).find('.name_tag.mobile').val();} else {name_v = $(this).find('.name_tag').val();}$(this).find('.c-ui-checkbox__check').toggleClass('style_check');$('.c-listing__sort li a').removeClass('is-active');$(".news").addClass('is-active');if (($(this).closest('div.mobile').length > 0)) {$('.filter_title.mobile ul').append('' + name_t + '
');} else {$(this).closest('.js-list-aside').find('.filter_title ul').append('' + name_t + '
');}if (($(this).closest('div.mobile').length > 0)) {$('.filter_title.mobile').removeClass('hidden');var nesh_md = '.filter_title.mobile';} else {$('.filter_title.desktop').removeClass('hidden');var nesh_md = '.filter_title.desktop';}if ($(this).find('input').attr('name')) {$(this).find('input').removeAttr('name');if (($(this).closest('div.mobile').length > 0)) {$('.filter_title.mobile ul').find('input[value=' + name_v + ']').closest('li').remove();} else {$('.filter_title.desktop ul').find('input[value=' + name_v + ']').closest('li').remove();}if (($(this).closest('div.mobile').length > 0)) {if (!$('.c-box.filter_title.mobile ul li').length) {$('.c-box.filter_title.mobile').addClass('hidden');}} else {if (!$('.c-box.filter_title.desktop ul li').length) {$('.c-box.filter_title.desktop').addClass('hidden');}}var origin = window.location.origin;var pathname = window.location.pathname;var numbersArray = pathname.split('/');var removeItem = name_v;numbersArray = jQuery.grep(numbersArray, function (value) {return value != removeItem;});pathname = numbersArray.toString();var res = pathname.replace(/\,/g, '/');var u = origin + res;history.pushState(null, null, u);} else {$(this).find('input').attr('name', 'select_tag[]');}var title_search = [];$(nesh_md + " li.search").each(function () {title_search.push($(this).find('span').text());});title_search = title_search.filter(function (elem, index, self) {return index === self.indexOf(elem);});var strtitle_search = title_search;var prop1 = $(this).closest('.js-box-content').attr('id');var val = $(this).find('input').val();if (typeof filterObj[prop1] !== "object") filterObj[prop1] = [];if ($(this).find('input').prop('name')) filterObj[prop1].push(val); else filterObj[prop1] = arrayRemove(filterObj[prop1], val);e.preventDefault();baseObj = {action: strfilter,site: strsite,la: strla,ads_filter: strnow,idsurgery_doctor: stridsurgery_doctor,idcat_doctor: stridcat_doctor,idarea_doctor: stridarea_doctor,idtag_doctor: stridtag_doctor,title_search: strtitle_search,id_state_url: strid_state_url,id_city_url: strid_city_url,mobile_desktop: name_li,clinic_matab: strpezeshk};$.ajax({type: 'POST',url: '/New_members_ajax.php',data: {objectfilter: {...baseObj, ...filterObj}}, success: function (result) {$("#wait").hide();$(".waiting_ajax").hide();$('html,body').animate({scrollTop: 0}, '1000');$("#show_ajax").html(result);var cunn = $('#count_con_pag').val();$('.c-listing__counter').text(cunn);$('.font-weight-light').move_city();}});var idName = $(this).closest('.js-box-content').attr('id');var number_select = $('#' + idName + ' ul.options li input[name="select_tag[]"]').length;if (number_select == 0) {$(this).closest('.c-box--brands-filter').find('.count_select').text('');} else $(this).closest('.c-box--brands-filter').find('.count_select').text(number_select + " مورد");});return this;};
$.fn.search_mearge=function (strfilter,strsite,strla,strnow,stridsurgery_doctor,stridtag_doctor,stridcat_doctor,stridarea_doctor,strid_state_url,strid_city_url,strpezeshk){return $('#btn_searchInput_All').click(function () {var filterObj = {};var baseObj = {};var href_page_first= window.location.pathname;var strtitle_search=$(this).parent('.search_box_All').find('#searchInput_All').val();if (wight_page>564) {$('.filter_title.desktop').removeClass('hidden');$('.filter_title.desktop ul').html('' + strtitle_search + '
');}else {$('.filter_title.mobile').removeClass('hidden');$('.filter_title.mobile ul').html('' + strtitle_search + '
');}if(strtitle_search==""){window.location.reload();}else{$("#wait").show();$(".waiting_ajax").show();history.pushState(null, '', href_page_first);$('.main_con_search').removeClass('fixed_pos');$('.search_adv_content').css('margin-left','0%');$('.Curtain').css({'width':'0%','opacity':'0'});$('.main_con_search').css('width','0%');$('.doctor_page .pagination li').removeClass('disabled');$('.doctor_page .pagination li:first-child').addClass('disabled');baseObj={action: strfilter,site: strsite,la: strla,ads_filter: strnow,title_search:strtitle_search,idsurgery_doctor: stridsurgery_doctor,idcat_doctor: stridcat_doctor,idtag_doctor: stridtag_doctor,id_state_url: strid_state_url,id_city_url: strid_city_url,idarea_doctor: stridarea_doctor,clinic_matab:strpezeshk};$.ajax({type: 'POST',url: '/New_members_ajax.php',data: { objectfilter: {...baseObj, ...filterObj} },success: function (result) {$("#wait").hide();$(".waiting_ajax").hide();$('html,body').animate({scrollTop: 0}, '1000');$("#show_ajax").html(result);$('.font-weight-light .city_active__list').each(function () {var length_li=$(this).find('.city_active__list__item').length;if(length_li < 2){$(this).removeClass('city_active__list');}});var cunn= $('#count_con_pag').val();$('.c-listing__counter').text(cunn);$('.font-weight-light').move_city();}});}});};$.fn.search_name =function(strfilter,strsite,strla,strnow,stridsurgery_doctor,stridtag_doctor,stridcat_doctor,stridarea_doctor,strid_state_url,strid_city_url,strpezeshk) {var wight_page = $(window).width();if (wight_page>564) {var btn_s = '#btn_searchInput_D';}else { btn_s = '#btn_searchInput_M';}$(btn_s).click(function (e) {var href_page_first= window.location.pathname;history.pushState(null, '', href_page_first);$('.main_con_search').removeClass('fixed_pos');$('.search_adv_content').css('margin-left','0%');$('.Curtain').css({'width':'0%','opacity':'0'});$('.main_con_search').css('width','0%');$('.doctor_page .pagination li').removeClass('disabled');$('.doctor_page .pagination li:first-child').addClass('disabled');$("#wait").show();$(".waiting_ajax").show();if (wight_page>564) {var name_sv = $('#searchInput_D').val();var nesh_md='.filter_title.desktop';}else {name_sv = $('#searchInput_M').val();var nesh_md='.filter_title.mobile';}if (wight_page>564) {$('.filter_title.desktop').removeClass('hidden');$('.filter_title.desktop ul').append('' + name_sv + '
');}else {$('.filter_title.mobile').removeClass('hidden');$('.filter_title.mobile ul').append('' + name_sv + '
');}var title_search=[];$( nesh_md +" li.search" ).each(function() {title_search.push($(this).find('span').text());});title_search = title_search.filter(function (elem, index, self) {return index === self.indexOf(elem);});var strtitle_search = title_search;baseObj={action: strfilter,site: strsite,la: strla,ads_filter: strnow,title_search:strtitle_search,idsurgery_doctor: stridsurgery_doctor,idcat_doctor: stridcat_doctor,idtag_doctor: stridtag_doctor,id_state_url: strid_state_url,id_city_url: strid_city_url,idarea_doctor: stridarea_doctor, clinic_matab:strpezeshk};$.ajax({type: 'POST',url: '/New_members_ajax.php',data: { objectfilter: baseObj },success: function (result) {$("#wait").hide();$(".waiting_ajax").hide();$('html,body').animate({scrollTop: 0}, '1000');$("#show_ajax").html(result);$('.c-ui-input--quick-search input').val('');var cunn= $('#count_con_pag').val();$('.c-listing__counter').text(cunn);$('.font-weight-light').move_city();}});});return this;};$(document).on('click','.js-listing-options-clear',function (e) {location.reload();});$.fn.btn_remove_single =function(strfilter,strsite,strla,strnow,stridsurgery_doctor,stridtag_doctor,stridcat_doctor,stridarea_doctor,strid_state_url,strid_city_url,strpezeshk) {$(document).arrive('.js-listing-option-remove', function() {$(this).on('click',function () {var wight_page = $(window).width();if (wight_page>564) {var name_li="ul.options li.desktop.not_area";}else{name_li="ul.options li.li_mobile.not_area";}var href_page_first= window.location.pathname;history.pushState(null, '', href_page_first);var val_v = $(this).closest('li').find('input').val();$(this).closest('li').remove();$(name_li).find('input[value=' + val_v + ']').closest('li').trigger("click");var is_lisearch=$('.c-box.filter_title').find('ul li').length;if (is_lisearch == 0) {location.reload();}var title_search=[];$( ".filter_title li.search" ).each(function() {title_search.push($(this).find('span').text());});title_search = title_search.filter(function (elem, index, self) {return index === self.indexOf(elem);});var strtitle_search = title_search;var filterObj = {};$(name_li).find('input[name="select_tag[]"]').each(function() {var prop1 = $(name_li).find('input[name="select_tag[]"]').closest('.js-box-content').attr('id');var val = $(name_li).find('input[name="select_tag[]"]').val();if(typeof filterObj[prop1] !== "object") filterObj[prop1] = [];if($(name_li).find('input[name="select_tag[]"]').prop('name'));filterObj[prop1].push(val);});baseObj={action: strfilter,site: strsite,la: strla,ads_filter: strnow,title_search:strtitle_search,idsurgery_doctor: stridsurgery_doctor,idcat_doctor: stridcat_doctor,idtag_doctor: stridtag_doctor,id_state_url: strid_state_url,id_city_url: strid_city_url,idarea_doctor: stridarea_doctor,clinic_matab:strpezeshk};$.ajax({type: 'POST',url: '/New_members_ajax.php',data: { objectfilter: {...baseObj, ...filterObj} },success: function (result) {$("#wait").hide();$(".waiting_ajax").hide();$('html,body').animate({scrollTop: 0}, '1000');$("#show_ajax").html(result);$('.font-weight-light .city_active__list').each(function () {var length_li=$(this).find('.city_active__list__item').length;if(length_li < 2){$(this).removeClass('city_active__list');}});var cunn= $('#count_con_pag').val();$('.c-listing__counter').text(cunn);$('.font-weight-light').move_city();}});$("#wait").show();$(".waiting_ajax").show();});});return this;};$.fn.btn_more_content = function (strfilter, all_content, strsite, strla, strnow, stridsurgery_doctor, stridtag_doctor, stridcat_doctor, stridarea_doctor, strid_state_url, strid_city_url, strpezeshk) {$(document).on('click', '.more_doctor a', function (e) {var id_vip_nor = $(this).parent('.more_doctor').attr('id');if (id_vip_nor === 'more_doctor_nor') {var vip_nor = 'nor';} else {vip_nor = 'vip';}$(this).parent('.more_doctor').remove();$("div.loding_btn").show();$('.c-listing__sort li a').removeClass('is-active');$('.news').addClass('is-active');var val_click = $('.number_click_btn').val();$('.number_click_btn').val(parseInt(val_click) + 1);var num_page00 = $('.number_load_page').val();var num_page0 = parseInt(num_page00) + 21;var title_search = [];$(".filter_title li.search").each(function () {title_search.push($(this).find('span').text());});title_search = title_search.filter(function (elem, index, self) {return index === self.indexOf(elem);});var strtitle_search = title_search;e.preventDefault();var strnum_page = num_page0;var strvip_nor = vip_nor;baseObj = {action: strfilter,site: strsite, la: strla,ads_filter: strnow,title_search: strtitle_search,num_page: strnum_page,vip_nor: strvip_nor,idsurgery_doctor: stridsurgery_doctor,idcat_doctor: stridcat_doctor,idarea_doctor: stridarea_doctor,idtag_doctor: stridtag_doctor,id_state_url: strid_state_url,id_city_url: strid_city_url, clinic_matab: strpezeshk};$.ajax({type: 'POST',url: '/New_members_ajax.php',data: {objectfilter: baseObj}, success: function (result) {$("div.loding_btn").hide();$("#doctor_show").append(result);var val = $('.number_load_page').val();$('.number_load_page').val(parseInt(val) + 21);var all_page = Math.ceil(all_content / 21);var val_click_btn = $('.number_click_btn').val();if (parseInt(val_click_btn) === parseInt(all_page)) {$('div.more_doctor').remove();}$('.font-weight-light').move_city();}});});return this;}});