-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.js
More file actions
executable file
·37 lines (31 loc) · 822 Bytes
/
Copy pathscripts.js
File metadata and controls
executable file
·37 lines (31 loc) · 822 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
$(document).ready(function () { "use strict";
// Prevent action on clicking on empty links
$('a[href="#"]').on('click', function (e) { e.preventDefault(); });
/**
* Fancybox example
*/
Fancybox.bind("[data-fancybox]", {
// Your custom options
});
/**
* Swiper example
*/
const swiper = new Swiper('.swiper', {
// Optional parameters
direction: 'vertical',
loop: true,
// If we need pagination
pagination: {
el: '.swiper-pagination',
},
// Navigation arrows
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
// And if we need scrollbar
scrollbar: {
el: '.swiper-scrollbar',
},
});
});