").appendTo(ul); }; jQuery("#searchkeyword").change(function() { var searchKeyword = jQuery("#searchkeyword").val(); if (searchKeyword != keyword){ jQuery('#categorySuggestion').val(""); } }); jQuery(".zipcode-147").focusin(function() { jQuery(".dir-search-preferences-147").slideDown(500); }); jQuery(".zipcode-147").focusout(function() { //jQuery(".dir-search-preferences-147").slideUp(500); }); jQuery("#geo-location-radius-147").ionRangeSlider({ grid: true, min: 0, max: 300, from: 50, to: 300, }); }); function initializeSearchAutocomplete147(preventSubmit) { jbdUtils.initializeSearchAutocomplete(147, preventSubmit, []); } function enableGeoLocation147(){ if (navigator.geolocation) { jQuery("#loading-geo-locaiton-147").show(); jQuery(".la la-bullseye").addClass("dir-beat-animation"); navigator.geolocation.getCurrentPosition(setGeoLocation147); } jQuery("#enable-geolocation-147").addClass("active"); jQuery("#disable-geolocation-147").removeClass("active"); jQuery("#dir-container-147 #geolocation").val(1); } function disableGeoLocation147(){ jQuery("#enable-geolocation-147").removeClass("active"); jQuery("#disable-geolocation-147").addClass("active"); jQuery("#dir-container-147 #geolocation").val(0); jQuery("#loading-geo-locaiton-147").hide(); jQuery(".la la-bullseye").removeClass("dir-beat-animation"); jQuery("#dir-container-147 #geo-latitude").val(''); jQuery("#dir-container-147 #geo-longitude").val(''); jQuery("#dir-container-147 #geo-country").val(''); } function setGeoLocation147(position){ jQuery("#loading-geo-locaiton-147").hide(); jQuery(".la la-bullseye").removeClass("dir-beat-animation"); var latitude = position.coords.latitude; var longitude = position.coords.longitude; jQuery("#dir-container-147 #geo-latitude").val(latitude); jQuery("#dir-container-147 #geo-longitude").val(longitude); codeLatLng(latitude,longitude); } function showCategorySelect147(level, parentId, id){ var urlGetCategories = "/index.php/ecosystem/dra-100?task=categories.getSubcategoriesByParentIdAjax"; var selectedCat; if(parentId===undefined) selectedCat = jQuery('#dir-container-147 #categories-'+level).find(":selected").val(); else selectedCat = parentId; var categoryType = 1; jQuery('#dir-container-147 #categorySearch').val(id); if(selectedCat != 0) { if(parentId === undefined) jQuery('#dir-container-147 #categorySearch').val(selectedCat); else jQuery('#dir-container-147 #categorySearch').val(id); } }

Advertisement

CES2018

Advertisement

mescon ad