-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrenderPlaceholders
More file actions
46 lines (36 loc) · 1.15 KB
/
renderPlaceholders
File metadata and controls
46 lines (36 loc) · 1.15 KB
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
const __renderPlaceholders = {
render: ( placeholder ) => {
$(".helperComplement").remove();
if(placeholder === 'instagram') __renderPlaceholders.methods.renderInsta();
if(placeholder === 'novidades') __renderPlaceholders.methods.renderNovidades();
},
methods: {
renderInsta: function(){
const options = {
slidesToShow: 2,
slidesToScroll: 1,
arrows: false,
dots: false,
autoplay: true,
infinite: false
}
setTimeout(()=>{
$('.e-instagram .e-image:not(.slick-initialized, .slick-dots)').slick(options);
}, 1000)
},
renderSlick: function(){
},
renderNovidades: function(){
const options = {
slidesToShow: 1,
slidesToScroll: 1,
arrows: true,
dots: false,
autoplay: false,
infinite: false
}
$('.e-novidades .shelf > ul:not(.slick-initialized, .slick-dots)').slick(options);
}
}
}
export default __renderPlaceholders;