Current File : /home/tradevaly/demo.tradevaly.com.bd/public/frontend/js/custom-frontend.min.js |
function loadHotCategory(t){$.ajax({url:t+"/hot-product-category-list/",datatype:"html",type:"get",beforeSend:function(){$(".auto-load-list-product").show()}}).done(function(t){$(".auto-load-list-product").hide(),$("#data-wrapper-list-product").append(t.data),0==t.grand_total&&$(".finished-list-product").html("Data not found :(")}).fail(function(t,a,o){console.log("Server error occured")})}function loadPopularSearch(t){$.ajax({url:t+"/popular-search/",datatype:"html",type:"get",beforeSend:function(){$(".auto-load-list-popular").show()}}).done(function(t){$(".auto-load-list-popular").hide(),$("#data-wrapper-list-popular").append(t.data),0==t.grand_total&&$(".finished-list-popular").html("Data not found :(")}).fail(function(t,a,o){console.log("Server error occured")})}$(".link-hover-dark-white").click(function(){var t=$(this).text();t="Products"==(t=t.replace(/\s/g,""))?"product":"Companies"==t?"company":"buyer",$(".region").attr("placeholder","Enter "+t+" name")}),$("#main-search-form").submit(function(t){var a=$("#what").val(),o=$("#keyword").val();""===a?(alert("Select what service."),t.preventDefault()):""===o&&(alert("Select keyword."),t.preventDefault())});