dashboard3.js
1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
$(function () {
//
// Carousel
//
$(".collectibles-carousel").owlCarousel({
loop: true,
margin: 30,
mouseDrag: true,
autoplay: true,
autoplayTimeout: 4000,
autoplaySpeed: 2000,
nav: false,
dots: false,
rtl: true,
responsive: {
0: {
items: 1,
},
576: {
items: 2,
},
768: {
items: 3,
},
},
});
});
// Toaster Js
document.addEventListener("DOMContentLoaded", function () {
setTimeout(()=>{
if(document.getElementById('dismiss-toast')){
document.getElementById('dismiss-toast').classList.add('hs-removing');
document.getElementById('dismiss-toast').classList.remove('show-toast');
setTimeout(() => {
document.getElementById('dismiss-toast').remove();
}, 300);
}
else{}
},5000)
setTimeout(()=>{
document.getElementById('dismiss-toast').classList.add('show-toast');
},1000)
});