LORDCHANNEL2.0/static/js/spinner.js

19 lines
425 B
JavaScript
Raw Normal View History

2021-03-13 18:36:50 +00:00
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)
}
});