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

Advertisement

CES2018

Advertisement

mescon ad