19 lines
425 B
JavaScript
19 lines
425 B
JavaScript
|
const spinnerBox = $('#spinner-box')
|
||
|
const catalog = $('.catalog')
|
||
|
|
||
|
$.ajax({
|
||
|
type: "GET",
|
||
|
url: "",
|
||
|
cache: true,
|
||
|
// data: "data",
|
||
|
// dataType: "dataType",
|
||
|
success: function (response) {
|
||
|
setTimeout(()=>{
|
||
|
$(spinnerBox).addClass('not-visible')
|
||
|
$(catalog).removeClass('not-visible')
|
||
|
},3000)
|
||
|
},
|
||
|
error: function (error) {
|
||
|
console.log(error)
|
||
|
}
|
||
|
});
|