"),C&&C.css("position",c.css("position")),z=function(){var a,b,f;if(!r)return w=d.height(),a=parseInt(y.css("border-top-width"),10),b=parseInt(y.css("padding-top"),10),e=parseInt(y.css("padding-bottom"),10),g=y.offset().top+a+b,h=y.height(),u&&(u=!1,s=!1,null==k&&(c.insertAfter(C),C.detach()),c.css({position:"",top:"",width:"",bottom:""}).removeClass(o),f=!0),j=c.offset().top-(parseInt(c.css("margin-top"),10)||0)-l,p=c.outerHeight(!0),q=c.css("float"),C&&C.css({width:c.outerWidth(!0),height:p,display:c.css("display"),"vertical-align":c.css("vertical-align"),float:q}),f?D():void 0},z(),p!==h)return v=void 0,x=l,B=n,D=function(){var a,m,t,A,D,E;if(!r)return t=!1,null!=B&&(B-=1,B<=0&&(B=n,z(),t=!0)),t||d.height()===w||(z(),t=!0),A=b.scrollTop(),null!=v&&(m=A-v),v=A,u?(f&&(D=A+p+x>h+g,s&&!D&&(s=!1,c.css({position:"fixed",bottom:"",top:x}).trigger("sticky_kit:unbottom"))),AE&&(s||(x-=m,x=Math.max(E-p,x),x=Math.min(l,x),u&&c.css({top:x+"px"}))))):A>j&&(u=!0,a={position:"fixed",top:x},a.width="border-box"===c.css("box-sizing")?c.outerWidth()+"px":c.width()+"px",c.css(a).addClass(o),null==k&&(c.after(C),"left"!==q&&"right"!==q||C.append(c)),c.trigger("sticky_kit:stick")),u&&f&&(null==D&&(D=A+p+x>h+g),!s&&D)?(s=!0,"static"===y.css("position")&&y.css({position:"relative"}),c.css({position:"absolute",bottom:e,top:"auto"}).trigger("sticky_kit:bottom")):void 0},A=function(){return z(),D()},t=function(){if(r=!0,b.off("touchmove",D),b.off("scroll",D),b.off("resize",A),a(document.body).off("sticky_kit:recalc",A),c.off("sticky_kit:detach",t),c.removeData("sticky_kit"),c.css({position:"",bottom:"",top:"",width:""}),y.position("position",""),u)return null==k&&("left"!==q&&"right"!==q||c.insertAfter(C),C.remove()),c.removeClass(o)},b.on("touchmove",D),b.on("scroll",D),b.on("resize",A),a(document.body).on("sticky_kit:recalc",A),c.on("sticky_kit:detach",t),setTimeout(D,0)}},h=0,j=this.length;h30?($("header").removeClass("header_fixer"),$(".header_hide").css("display","none"),$(".TopMenuBar").slideUp()):($("header").removeClass("header_fixer"),$(".header_hide").css("display","none"),$(".TopMenuBar").slideDown()); }); }); function show_notification_html(url) { $("#notification_html").html(""); $.ajax({ type: 'POST', url: url, dataType: "html", data: { action_id: "show_notification_html"}, cache : false, success: function(data) { $("#notification_html").html(data); }, xhrFields: { withCredentials: true }, crossDomain: true }); } function show_member_mobile(url,country,cat) { $( ".notification-dropdown" ).hide(); if (!$.trim($('.u_num').text())) { $("#mobile_html").html(""); $.ajax({ type: 'POST', url: url, dataType: "html", data: { action: "show_member_mobile",type: "member",country:country,cat:cat}, cache : false, success: function(data) { $("#mobile_html").html(data); }, xhrFields: { withCredentials: true }, crossDomain: true }); } } $('.notification').on('click',function() { $(".notification-dropdown").animate({top:'0px',height:'toggle'}); }); $(".close_me_icon").on('click',function() { $(".notification-dropdown").animate({top:'0px',height:'toggle'}); }); function catg_search_new (chk2, pathTy) { var str=''; if(document.getElementById("search-select-hidden").value=='buy_offers') { document.getElementById("search_country_id").value = ""; } if (chktrim(chk2.term.value).length <3 || chktrim(chk2.term.value)=="Enter Keywords here . . ." || chktrim(chk2.term.value)=="Enter keyword to search" || chktrim(chk2.term.value)=="Please enter keywords") { alert("Enter Product / Service Keyword(s) at least three characters"); /*chk2.term.focus();*/ chk2.term.value=""; return false; } } function catg_search_buyer_page (chk2) { var str=''; if (chktrim(chk2.term.value).length <3 || chktrim(chk2.term.value)=="Enter Keywords here . . ." || chktrim(chk2.term.value)=="Enter keyword to search" || chktrim(chk2.term.value)=="Please enter keywords") { alert("Enter Product / Service Keyword(s) at least three characters"); chk2.term.value=""; return false; } } var search_key=''; header_autosearch(search_key); function header_autosearch(term){ $.ajax({ dataType: "html", url: "https://www.exportersindia.com/catg_search.php", type: "GET", data: { action:'new_main_serch_kword', term: term}, success: function(result) { $( "#newKeywordList" ).html(result); } }); } $(document).on('click', '.eih-input-dropdown li', function(){ $('#transcript').val($(this).find('.val').text()); $('#newKeywordList').hide(); $( "#search-form" ).submit(); }); $(window).load(function() { $('.eih-searh .hst').on('click', function(){ $('.eih-searh-overlay').show(); $('.eih-input-dropdown').slideUp(); $('#allowed_page_popup_form').val('1'); if($(".notification-dropdown").length && $(".notification-dropdown").css('display') == 'block'){ $(".notification-dropdown").animate({top:'0px',height:'toggle'}); } }); $('#transcript').on('click',function(){ $('.eih-searh-overlay').show(); $('.eih-input-dropdown').slideDown(); $('.ein-header .hst-list').slideUp(); $('#allowed_page_popup_form').val('1'); if($(".notification-dropdown").length && $(".notification-dropdown").css('display') == 'block'){ $(".notification-dropdown").animate({top:'0px',height:'toggle'}); } }); $('#transcript').on('click',function(e){ e.stopPropagation(); }); $("#transcript").on("keyup", function(e) { if(e.key != 'ArrowUp' && e.key != 'ArrowDown'){ var searchText = $(this).val().toLowerCase(); header_autosearch(searchText); } }); let $input=$('#transcript');let $suggestions=$('#newKeywordList');let selectedIndex=-1;$input.on('input',function(){$suggestions.show();selectedIndex=-1;updateItems();});$input.on('keydown',function(e){let $items=$suggestions.find('li');if($items.length===0)return;if(e.key==='ArrowDown'){e.preventDefault();if(selectedIndex<$items.length-1){selectedIndex++;updateSelection($items);}}else if(e.key==='ArrowUp'){e.preventDefault();if(selectedIndex>0){selectedIndex--;updateSelection($items);}}else if(e.key==='Enter'){e.preventDefault();if(selectedIndex>-1){selectItem($items.eq(selectedIndex));}}});function updateSelection($items){$items.removeClass('selected');let $selectedItem=$items.eq(selectedIndex);$selectedItem.addClass('selected');let dropdownHeight=$suggestions.height();let itemHeight=$selectedItem.outerHeight(true);let itemTop=$selectedItem.position().top;let scrollTop=$suggestions.scrollTop();if(itemTop<0){$suggestions.scrollTop(scrollTop+itemTop);}else if(itemTop+itemHeight>dropdownHeight){$suggestions.scrollTop(scrollTop+(itemTop-dropdownHeight+itemHeight));}}function selectItem($item){$item.click();}function updateItems(){let $items=$suggestions.find('li');} $(document).on('click', '.eih-searh-overlay, .eih-header', function(){ $('.eih-searh-overlay').hide(); $('.eih-input-dropdown,.hst-list').slideUp(); $('#allowed_page_popup_form').val('0'); }); }); if($('.prf_li_banner').length){ $(document).ready(function() { $('.prf_li_banner').each(function(index) { var appen_id = $(this).attr('id'); var split_arr = appen_id.split('prf_li_banner_'); var post_req_form_postion = split_arr[1]; $.ajax({ url: 'https://www.exportersindia.com/ajax.php', type: "POST", data: { action_id:'get_post_req_l3_banner', "prf_postion":post_req_form_postion}, success: function(msg) { if(msg){ $('#'+appen_id).after(msg); } }, xhrFields: { withCredentials: true }, crossDomain: true }); }); }); } mgctlbxN$MZP mgctlbxV$5.1.11 mgctlbxL$C