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

Advertisement

CES2018

Advertisement

mescon ad