E-commerce in Hollywood

]]>

0 && el.offset().prime – 100 0) { $(‘#morecats’).present(); } getRating(); }); perform getAds() { var url = ‘https://www.florida.com/enterprise/enterprise/getads’, metropolis = $(“#pageSearchCity”).val() != “” ? $(“#pageSearchCity”).val() : “All”, class = $(“#pageCategory”).val(); if (metropolis) { url += ‘/metropolis/’ + metropolis; } if (class) { url += ‘/class/’ + class; } $.ajax({url: url, cache: false, success: perform (information) { $(‘#a-list’).html(information).present(); }, dataType: “html” }); } perform getCategory() { var metropolis = $(“#pageSearchCity”).val(), mother or father = $(‘#pageParentCategory’).val(), class = $(“#pageCategory”).val(), url = ‘https://www.florida.com/enterprise/enterprise/getcategory’; if (metropolis) { url += ‘/metropolis/’ + metropolis; } if (mother or father || class) { url += ‘/class/’ + (mother or father ? mother or father : class); } $.ajax({ url: url, cache: false, success: perform (information) { if (information || (!information && !class)) { $(‘#show-all-category’).addClass(‘hidden’); $(‘#lesscats, #morecats’).disguise(); $(‘#categoryFilter’).html(information); if (class) { $(‘#categoryFilter a[data-id=’ + category + ‘]’).addClass(‘energetic’); } if ($(‘#categoryFilter li.hidden’).size > 0) { $(‘#morecats’).present(); } } if (class) { $(‘#show-all-category’).removeClass(‘hidden’); } var metropolis = $(“#pageSearchCity”).val() != “” ? $(“#pageSearchCity”).val() : “All cities”; mother or father = $(‘#categoryFilter .mother or father’).information(‘id’); $(‘#categoryFilter a.energetic’).every(perform() { var el = $(this); if (el.mother or father().mother or father().mother or father().is(‘li’)) { $(‘#sub-category-crumb, #category-crumb-arrow’).take away(); $(‘ > ‘).insertAfter(‘#category-crumb’); $(‘#category-crumb’).attr(‘href’, ‘/’ + slugify(metropolis) + ‘/companies/’ + (mother or father ? mother or father : class)).removeClass(‘energetic’); $(” + el.textual content() + ”).insertAfter(‘#category-crumb-arrow’); } else { $(‘#category-crumb, #sub-category-crumb, #business-crumb-arrow, #category-crumb-arrow’).take away(); $(‘ > ‘).insertAfter(‘#business-crumb’); $(‘#business-crumb’).attr(‘href’, ‘/’ + slugify(metropolis) + ‘/companies’).removeClass(‘energetic’); $(‘‘ + el.text() + ”).insertAfter(‘#business-crumb-arrow’); } }); }, dataType: “html” }); } function getRating() { var city = $(“#pageSearchCity”).val(), parent = $(‘#pageParentCategory’).val(), category = $(“#pageCategory”).val(), url = ‘https://www.florida.com/business/business/getrating’; if (city) { url += ‘/city/’ + city; } if (parent || category) { url += ‘/category/’ + (parent ? parent : category); } $.ajax({ url: url, cache: false, success: function (data) { $(‘#ratingFilterWrapper .numberOfFilter’).html(“(0)”); for (var i in data) { $(‘#rate-‘ + i).html(“(” + data[i]+ “)”); } }, dataType: “json” }); } function buildSearchUrl(page) { var url = ‘https://www.florida.com/business/business/browse’, keyword = $(‘#searchKeyword’).val(), city = $(“#pageSearchCity”).val() != “” ? $(“#pageSearchCity”).val() : “All”, rating = $(“#average_rating_filter”).val() != “” ? $(“#average_rating_filter”).val() : 0, category = $(“#pageCategory”).val(), sort = $(“#pageSort”).val(), order = $(“#pageOrder”).val(); if (page) { url += ‘/page/’ + page; } if (city) { url += ‘/city/’ + city; } if (rating) { url += ‘/rating/’ + rating; } if (keyword) { url += ‘/keyword/’ + keyword; } if (category) { url += ‘/category/’ + category; } if (sort) { url += ‘/sort/’ + sort; } if (order) { url += ‘/order/’ + order; } return url; } function doSearch(page) { $(‘#loader’).show(); var city = $(“#pageSearchCity”).val() != “” ? $(“#pageSearchCity”).val() : “All cities”, path = ‘/businesses’; if (city) { path = ‘https://www.florida.com/’ + slugify(city) + path; } $(‘#city-crumb’).text(city); history.pushState({city: city, path: path}, ”, path); var url = buildSearchUrl(page); if (page == 0) { $(‘#business-list’).html(”).hide(); getCategory(); getRating(); } $(‘#pageParentCategory’).val(”); $.ajax({url: url, cache: false, success: function (data) { $(‘#loader’).fadeOut(‘slow’, function () { $(‘#loader’).fadeOut(200, function () { if (page == 0) { currentPage = 0; $(‘#business-list’).html(data).show(); } else { $(‘#show-more’).remove(); $(‘#business-list’).append(data).show(); } currentPage = currentPage + 1; loadnext = true; $(‘#searchCity’).html($(“#pageSearchCity”).val()); $(‘#nrFound’).html(” – ” + ($(‘#countResult’).text() == “” ? 0 : $(‘#countResult’).text()) + ” found”); }); }); $(window).data(‘ajaxready’, true); }, dataType: “html” }); } function scroll2Top() { $(‘body,html’).animate({scrollTop : $(‘#mainSearch’).offset().top – 50}, 300); } function getCoupons(page) { $.ajax({ url: ‘https://www.florida.com/business/business/getcoupons’ + ‘/page/’ + page + ‘/city/’ + $(“#pageSearchCity”).val(), cache: false, success: function (data) { if (data) { if (page == 0) { currentCouponPage = 0; $(‘#coupons-list ul’).html(data); $(‘#coupons-list’).show(); } else { $(‘#coupons-list ul’).append(data).show(); } currentCouponPage = currentCouponPage + 1; } else { $(‘#coupons-list’).hide(); } }, dataType: “html” }); } ]]>

Source

Leave a Reply

Your email address will not be published. Required fields are marked *