-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallieetcoff.js
executable file
·76 lines (66 loc) · 1.33 KB
/
allieetcoff.js
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
$('.inline-popups').magnificPopup({
delegate: 'a',
removalDelay: 300,
callbacks: {
beforeOpen: function() {
this.st.mainClass = this.st.el.attr('data-effect');
}
},
mainClass: 'mfp-fade',
midClick: true
});
// FOR RETINA DISPLAY
// $('.image-link').magnificPopup({
// type: 'image',
// retina: {
// ratio: 2 // can also be function that should retun this number
// }
// });
// FOR GALLERY ITEM
$('.gallery').magnificPopup({
delegate: 'image',
gallery:{
enabled:true},
callbacks: {
buildControls: function() {
// re-appends controls inside the main container
this.contentContainer.append(this.arrowLeft.add(this.arrowRight));
}
}
});
$('.project-image').slick({
dots: true,
infinite: true,
speed: 300,
slidesToShow: 1,
slidesToScroll: 1,
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
dots: true
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
dots: true
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
dots: true
}
}
// You can unslick at a given breakpoint now by adding:
// settings: "unslick"
// instead of a settings object
]
});