blob: 98663c2d67bf1885e4cc31b0e2a7224797ff1fb4 (
plain)
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
|
(function($) {
'use strict';
// Run fancybox feature
$(document).ready(function() {
/**
* Configure and run Fancybox plugin
* @returns {void}
*/
function fancyFox() {
var thumbs = false;
// disable navigation arrows and display thumbs on medium and large screens
if ($(window).height() > 480) {
thumbs = true;
}
$('.fancybox').fancybox({
buttons: [
'fullScreen',
'thumbs',
'share',
'download',
'zoom',
'close'
],
thumbs: {
autoStart: thumbs,
axis: 'x'
}
});
}
fancyFox();
$(window).smartresize(function() {
fancyFox();
});
});
})(jQuery);
|