PATH:
home
/
lab2454c
/
costbloc.com
/
public
/
dist
/
js
/
custom
/
site
"use strict"; let loader = `<ul class="h-full flex items-center"> <svg class="" id="loading-spinner" width="40" height="40" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle id="loading-circle-large" cx="40" cy="40" r="36" stroke="var(--primary-color)" stroke-width="8"></circle> </svg> </ul>`; $(document).on('click', '.filter', function() { $('.filter-value').text($(this).text()); let star = $(this).data('star'); $('.filter-value').data("filter-star", star); let vendor_id = $(this).data('item'); $('.filter').children().removeClass('primary-text-color') $('.filter span.text-md').addClass('ml-3'); $('.filter span.text-md').text(''); $(this).prepend( `<span class="primary-text-color -mr-3 text-md">✓</span>` ) $(this).children().addClass('primary-text-color') $.ajax({ url: SITE_URL + "/site/review/search", data: {rating: star, vendor_id: vendor_id, _token: token}, type: 'POST', beforeSend: function() { $('#load_review').html(loader); }, success: function (data) { $('#load_review').html(data.response.records.data); } }); }); $('.rating-width').each((index, item) => { $(item).css('width', $(item).data('width') + "%"); }); $(document).on('click', '#review-paginate a', function(e) { e.preventDefault(); var page = $(this).attr('href').split('page=')[1]; $.ajax({ url: SITE_URL + "/site/review/search?page="+page, data: {rating: $('.filter-value').data("filter-star"), vendor_id: $('#vendor_id').val(), _token: token}, type: 'POST', beforeSend: function() { $('#load_review').html(loader); $([document.documentElement, document.body]).animate({ scrollTop: $("#review-section").offset().top - 100 }, 1000); }, success: function (data) { $('#load_review').html(data.response.records.data); } }); });
[-] checkout.js
[edit]
[-] be-seller.min.js
[edit]
[-] res-filter.min.js
[edit]
[-] sign_up.js
[edit]
[-] wishlist.min.js
[edit]
[-] filter.min.js
[edit]
[-] home.js
[edit]
[-] notification-popup.js
[edit]
[-] order-track.js
[edit]
[-] notification-popup.min.js
[edit]
[-] wishlist.js
[edit]
[-] description-tabs.js
[edit]
[-] vendor-profile.js
[edit]
[-] seller-registration.min.js
[edit]
[-] formatting.min.js
[edit]
[-] product-details.js
[edit]
[+]
..
[-] cart.min.js
[edit]
[-] be-seller.js
[edit]
[-] animation.min.js
[edit]
[-] product-view.min.js
[edit]
[-] address.js
[edit]
[-] lang.js
[edit]
[-] alpine.js
[edit]
[-] product-details.min.js
[edit]
[-] common.min.js
[edit]
[-] res-filter.js
[edit]
[-] order-track.min.js
[edit]
[-] common.js
[edit]
[-] drawer.js
[edit]
[-] seller.min.js
[edit]
[-] settings.js
[edit]
[-] checkout.min.js
[edit]
[-] coupon.js
[edit]
[-] login.js
[edit]
[-] seller.js
[edit]
[-] user_download.js
[edit]
[-] site.min.js
[edit]
[-] lang.min.js
[edit]
[-] seller-registration.js
[edit]
[-] password-validation.js
[edit]
[-] drawer.min.js
[edit]
[-] login.min.js
[edit]
[-] delivery-address.min.js
[edit]
[-] home.min.js
[edit]
[-] compare.js
[edit]
[-] description-tabs.min.js
[edit]
[-] all-categories.min.js
[edit]
[-] flatpickr.min.js
[edit]
[-] filter.js
[edit]
[-] cart.js
[edit]
[-] site.js
[edit]
[-] compare.min.js
[edit]
[-] animation.js
[edit]
[-] user_download.min.js
[edit]
[-] settings.min.js
[edit]
[-] vendor-profile.min.js
[edit]
[-] product-view.js
[edit]
[-] password-validation.min.js
[edit]
[-] address.min.js
[edit]
[-] formatting.js
[edit]
[-] coupon.min.js
[edit]
[-] delivery-address.js
[edit]
[-] sign_up.min.js
[edit]
[-] all-categories.js
[edit]