@pimaonline/pimaonline-themepack 2.2.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +30 -0
- package/README.md +69 -111
- package/dist/css/main.css +1 -1
- package/dist/css/themes/ait/styles.css +1 -0
- package/dist/css/themes/art/styles.css +1 -1
- package/dist/css/themes/business/styles.css +1 -1
- package/dist/css/themes/cards/styles.css +1 -1
- package/dist/css/themes/cda/styles.css +1 -1
- package/dist/css/themes/communication/styles.css +1 -1
- package/dist/css/themes/culinary/styles.css +1 -1
- package/dist/css/themes/ece/styles.css +1 -1
- package/dist/css/themes/ecn/styles.css +1 -0
- package/dist/css/themes/eng/styles.css +1 -0
- package/dist/css/themes/fsc/styles.css +1 -0
- package/dist/css/themes/geography/styles.css +1 -1
- package/dist/css/themes/geology/styles.css +1 -1
- package/dist/css/themes/health-it/styles.css +1 -1
- package/dist/css/themes/history/styles.css +1 -1
- package/dist/css/themes/hrm/styles.css +1 -0
- package/dist/css/themes/hrs/styles.css +1 -1
- package/dist/css/themes/journalism/styles.css +1 -1
- package/dist/css/themes/lang/styles.css +1 -1
- package/dist/css/themes/machine/styles.css +1 -1
- package/dist/css/themes/math/styles.css +1 -1
- package/dist/css/themes/minimalist/styles.css +1 -1
- package/dist/css/themes/music/styles.css +1 -1
- package/dist/css/themes/philosophy/styles.css +1 -1
- package/dist/css/themes/resort/styles.css +1 -1
- package/dist/css/themes/ss/styles.css +1 -0
- package/dist/css/themes/university/styles.css +1 -1
- package/dist/css/themes/vet/styles.css +1 -1
- package/dist/css/themes/welding/styles.css +1 -1
- package/dist/css/themes/writing/styles.css +1 -1
- package/dist/img/theme-images/ecn/arrow-2.svg +4 -0
- package/dist/img/theme-images/ecn/arrow.svg +4 -0
- package/dist/img/theme-images/ecn/point.svg +3 -0
- package/dist/img/theme-images/eng/button-bkg.svg +178 -0
- package/dist/img/theme-images/eng/halftone-banner.svg +1 -0
- package/dist/img/theme-images/eng/halftone.svg +177 -0
- package/dist/img/theme-images/eng/long-button-bkg.svg +353 -0
- package/dist/img/theme-images/fsc/bottomwave-pinkred.svg +17 -0
- package/dist/img/theme-images/fsc/bottomwave-redorange.svg +17 -0
- package/dist/img/theme-images/fsc/bottomwave-yellow.svg +17 -0
- package/dist/img/theme-images/fsc/bottomwave-yelloworange.svg +17 -0
- package/dist/img/theme-images/fsc/fire-icon.png +0 -0
- package/dist/img/theme-images/fsc/mainwave-pinkred.svg +17 -0
- package/dist/img/theme-images/fsc/mainwave-redorange.svg +17 -0
- package/dist/img/theme-images/fsc/mainwave-yellow.svg +17 -0
- package/dist/img/theme-images/fsc/mainwave-yelloworange.svg +17 -0
- package/dist/img/theme-images/lang/country-flags/argentina_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/bolivia_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/chile_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/colombia_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/costa-rica_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/cuba_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/dominican-republic_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/ecuador_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/el-salvador_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/guatemala_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/honduras_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/mexico_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/nicaragua_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/panama_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/paraguay_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/peru_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/puerto-rice_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/spain_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/uruguay_flag.png +0 -0
- package/dist/img/theme-images/lang/country-flags/venezuela_flag.png +0 -0
- package/dist/img/theme-images/music/half_note.svg +5 -5
- package/dist/img/theme-images/resort/flourish-left.svg +32 -32
- package/dist/img/theme-images/resort/flourish-main.svg +37 -37
- package/dist/img/theme-images/resort/flourish-right.svg +31 -31
- package/dist/img/theme-images/resort/separator.svg +15 -15
- package/dist/img/theme-images/ss/blockquote.svg +3 -0
- package/dist/img/theme-images/ss/list-style.svg +3 -0
- package/dist/img/theme-images/ss/main-large-blob.svg +3 -0
- package/dist/img/theme-images/ss/main-small-blob.svg +3 -0
- package/dist/img/theme-images/ss/small-blob.svg +3 -0
- package/dist/img/theme-images/ss/tall-blob.svg +3 -0
- package/dist/img/theme-images/widgets/separator.svg +17 -17
- package/dist/js/jumpTo.js +3 -3
- package/dist/js/scripts.js +326 -326
- package/dist/js/scripts2.js +541 -345
- package/dist/plugins/fancybox/fancybox-example.html +51 -51
- package/dist/plugins/fancybox/fancybox.css +72 -72
- package/dist/plugins/fancybox/helpers/jquery.fancybox-buttons.css +97 -97
- package/dist/plugins/fancybox/helpers/jquery.fancybox-buttons.js +122 -122
- package/dist/plugins/fancybox/helpers/jquery.fancybox-media.js +201 -201
- package/dist/plugins/fancybox/helpers/jquery.fancybox-thumbs.css +54 -54
- package/dist/plugins/fancybox/helpers/jquery.fancybox-thumbs.js +165 -165
- package/dist/plugins/fancybox/jquery.fancybox.css +274 -274
- package/dist/plugins/fancybox/jquery.fancybox.js +2018 -2018
- package/dist/plugins/fancybox/jquery.fancybox.pack.js +46 -46
- package/dist/plugins/flashcards/README.md +135 -135
- package/dist/plugins/flashcards/config.rb +24 -24
- package/dist/plugins/flashcards/css/style.css +215 -215
- package/dist/plugins/flashcards/flashcards-example.html +65 -65
- package/dist/plugins/flashcards/index.html +90 -90
- package/dist/plugins/flashcards/js/flash_cards.min.js +11 -11
- package/dist/plugins/flashcards/js/plugins/flash_cards.js +62 -62
- package/dist/plugins/flashcards/js/plugins/jquery.cycle.js +1147 -1147
- package/dist/plugins/flashcards/js/vendor/jquery-1.7.2.js +9404 -9404
- package/dist/plugins/flashcards/js/vendor/jquery-1.7.2.min.js +3 -3
- package/dist/plugins/flashcards/js/vendor/modernizr-2.5.3.min.js +3 -3
- package/dist/plugins/flashcards/resources/fonts/flash_cards/flash_cards.svg +20 -20
- package/dist/plugins/floating-particles/floating-particles.js +67 -67
- package/dist/plugins/font-awesome-icons/webfonts/fa-brands-400.svg +3570 -3570
- package/dist/plugins/font-awesome-icons/webfonts/fa-regular-400.svg +803 -803
- package/dist/plugins/font-awesome-icons/webfonts/fa-solid-900.svg +4700 -4700
- package/dist/plugins/global-homepage-overrides/global-homepage-overrides.css +539 -539
- package/dist/plugins/global-homepage-overrides/global-homepage-overrides.html +18 -18
- package/dist/plugins/global-homepage-overrides/global-homepage-overrides.js +52 -52
- package/dist/plugins/preview-banner/preview-banner.css +125 -125
- package/dist/plugins/preview-banner/preview-banner.html +17 -17
- package/dist/plugins/preview-banner/preview-banner.js +56 -56
- package/package.json +39 -40
- package/dist/img/theme-images/history/hisribbonv-02.png +0 -0
- package/dist/img/theme-images/img/bouncingball.png +0 -0
@@ -1,55 +1,55 @@
|
|
1
|
-
#fancybox-thumbs {
|
2
|
-
position: fixed;
|
3
|
-
left: 0;
|
4
|
-
width: 100%;
|
5
|
-
overflow: hidden;
|
6
|
-
z-index: 8050;
|
7
|
-
}
|
8
|
-
|
9
|
-
#fancybox-thumbs.bottom {
|
10
|
-
bottom: 2px;
|
11
|
-
}
|
12
|
-
|
13
|
-
#fancybox-thumbs.top {
|
14
|
-
top: 2px;
|
15
|
-
}
|
16
|
-
|
17
|
-
#fancybox-thumbs ul {
|
18
|
-
position: relative;
|
19
|
-
list-style: none;
|
20
|
-
margin: 0;
|
21
|
-
padding: 0;
|
22
|
-
}
|
23
|
-
|
24
|
-
#fancybox-thumbs ul li {
|
25
|
-
float: left;
|
26
|
-
padding: 1px;
|
27
|
-
opacity: 0.5;
|
28
|
-
}
|
29
|
-
|
30
|
-
#fancybox-thumbs ul li.active {
|
31
|
-
opacity: 0.75;
|
32
|
-
padding: 0;
|
33
|
-
border: 1px solid #fff;
|
34
|
-
}
|
35
|
-
|
36
|
-
#fancybox-thumbs ul li:hover {
|
37
|
-
opacity: 1;
|
38
|
-
}
|
39
|
-
|
40
|
-
#fancybox-thumbs ul li a {
|
41
|
-
display: block;
|
42
|
-
position: relative;
|
43
|
-
overflow: hidden;
|
44
|
-
border: 1px solid #222;
|
45
|
-
background: #111;
|
46
|
-
outline: none;
|
47
|
-
}
|
48
|
-
|
49
|
-
#fancybox-thumbs ul li img {
|
50
|
-
display: block;
|
51
|
-
position: relative;
|
52
|
-
border: 0;
|
53
|
-
padding: 0;
|
54
|
-
max-width: none;
|
1
|
+
#fancybox-thumbs {
|
2
|
+
position: fixed;
|
3
|
+
left: 0;
|
4
|
+
width: 100%;
|
5
|
+
overflow: hidden;
|
6
|
+
z-index: 8050;
|
7
|
+
}
|
8
|
+
|
9
|
+
#fancybox-thumbs.bottom {
|
10
|
+
bottom: 2px;
|
11
|
+
}
|
12
|
+
|
13
|
+
#fancybox-thumbs.top {
|
14
|
+
top: 2px;
|
15
|
+
}
|
16
|
+
|
17
|
+
#fancybox-thumbs ul {
|
18
|
+
position: relative;
|
19
|
+
list-style: none;
|
20
|
+
margin: 0;
|
21
|
+
padding: 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
#fancybox-thumbs ul li {
|
25
|
+
float: left;
|
26
|
+
padding: 1px;
|
27
|
+
opacity: 0.5;
|
28
|
+
}
|
29
|
+
|
30
|
+
#fancybox-thumbs ul li.active {
|
31
|
+
opacity: 0.75;
|
32
|
+
padding: 0;
|
33
|
+
border: 1px solid #fff;
|
34
|
+
}
|
35
|
+
|
36
|
+
#fancybox-thumbs ul li:hover {
|
37
|
+
opacity: 1;
|
38
|
+
}
|
39
|
+
|
40
|
+
#fancybox-thumbs ul li a {
|
41
|
+
display: block;
|
42
|
+
position: relative;
|
43
|
+
overflow: hidden;
|
44
|
+
border: 1px solid #222;
|
45
|
+
background: #111;
|
46
|
+
outline: none;
|
47
|
+
}
|
48
|
+
|
49
|
+
#fancybox-thumbs ul li img {
|
50
|
+
display: block;
|
51
|
+
position: relative;
|
52
|
+
border: 0;
|
53
|
+
padding: 0;
|
54
|
+
max-width: none;
|
55
55
|
}
|
@@ -1,165 +1,165 @@
|
|
1
|
-
/*!
|
2
|
-
* Thumbnail helper for fancyBox
|
3
|
-
* version: 1.0.7 (Mon, 01 Oct 2012)
|
4
|
-
* @requires fancyBox v2.0 or later
|
5
|
-
*
|
6
|
-
* Usage:
|
7
|
-
* $(".fancybox").fancybox({
|
8
|
-
* helpers : {
|
9
|
-
* thumbs: {
|
10
|
-
* width : 50,
|
11
|
-
* height : 50
|
12
|
-
* }
|
13
|
-
* }
|
14
|
-
* });
|
15
|
-
*
|
16
|
-
*/
|
17
|
-
;(function ($) {
|
18
|
-
//Shortcut for fancyBox object
|
19
|
-
var F = $.fancybox;
|
20
|
-
|
21
|
-
//Add helper object
|
22
|
-
F.helpers.thumbs = {
|
23
|
-
defaults : {
|
24
|
-
width : 50, // thumbnail width
|
25
|
-
height : 50, // thumbnail height
|
26
|
-
position : 'bottom', // 'top' or 'bottom'
|
27
|
-
source : function ( item ) { // function to obtain the URL of the thumbnail image
|
28
|
-
var href;
|
29
|
-
|
30
|
-
if (item.element) {
|
31
|
-
href = $(item.element).find('img').attr('src');
|
32
|
-
}
|
33
|
-
|
34
|
-
if (!href && item.type === 'image' && item.href) {
|
35
|
-
href = item.href;
|
36
|
-
}
|
37
|
-
|
38
|
-
return href;
|
39
|
-
}
|
40
|
-
},
|
41
|
-
|
42
|
-
wrap : null,
|
43
|
-
list : null,
|
44
|
-
width : 0,
|
45
|
-
|
46
|
-
init: function (opts, obj) {
|
47
|
-
var that = this,
|
48
|
-
list,
|
49
|
-
thumbWidth = opts.width,
|
50
|
-
thumbHeight = opts.height,
|
51
|
-
thumbSource = opts.source;
|
52
|
-
|
53
|
-
//Build list structure
|
54
|
-
list = '';
|
55
|
-
|
56
|
-
for (var n = 0; n < obj.group.length; n++) {
|
57
|
-
list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');"></a></li>';
|
58
|
-
}
|
59
|
-
|
60
|
-
this.wrap = $('<div id="fancybox-thumbs"></div>').addClass(opts.position).appendTo('body');
|
61
|
-
this.list = $('<ul>' + list + '</ul>').appendTo(this.wrap);
|
62
|
-
|
63
|
-
//Load each thumbnail
|
64
|
-
$.each(obj.group, function (i) {
|
65
|
-
var el = obj.group[ i ],
|
66
|
-
href = thumbSource( el );
|
67
|
-
|
68
|
-
if (!href) {
|
69
|
-
return;
|
70
|
-
}
|
71
|
-
|
72
|
-
$("<img />").on("load", function () {
|
73
|
-
var width = this.width,
|
74
|
-
height = this.height,
|
75
|
-
widthRatio, heightRatio, parent;
|
76
|
-
|
77
|
-
if (!that.list || !width || !height) {
|
78
|
-
return;
|
79
|
-
}
|
80
|
-
|
81
|
-
//Calculate thumbnail width/height and center it
|
82
|
-
widthRatio = width / thumbWidth;
|
83
|
-
heightRatio = height / thumbHeight;
|
84
|
-
|
85
|
-
parent = that.list.children().eq(i).find('a');
|
86
|
-
|
87
|
-
if (widthRatio >= 1 && heightRatio >= 1) {
|
88
|
-
if (widthRatio > heightRatio) {
|
89
|
-
width = Math.floor(width / heightRatio);
|
90
|
-
height = thumbHeight;
|
91
|
-
|
92
|
-
} else {
|
93
|
-
width = thumbWidth;
|
94
|
-
height = Math.floor(height / widthRatio);
|
95
|
-
}
|
96
|
-
}
|
97
|
-
|
98
|
-
$(this).css({
|
99
|
-
width : width,
|
100
|
-
height : height,
|
101
|
-
top : Math.floor(thumbHeight / 2 - height / 2),
|
102
|
-
left : Math.floor(thumbWidth / 2 - width / 2)
|
103
|
-
});
|
104
|
-
|
105
|
-
parent.width(thumbWidth).height(thumbHeight);
|
106
|
-
|
107
|
-
$(this).hide().appendTo(parent).fadeIn(300);
|
108
|
-
|
109
|
-
})
|
110
|
-
.attr('src', href)
|
111
|
-
.attr('title', el.title);
|
112
|
-
});
|
113
|
-
|
114
|
-
//Set initial width
|
115
|
-
this.width = this.list.children().eq(0).outerWidth(true);
|
116
|
-
|
117
|
-
this.list.width(this.width * (obj.group.length + 1)).css('left', Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5)));
|
118
|
-
},
|
119
|
-
|
120
|
-
beforeLoad: function (opts, obj) {
|
121
|
-
//Remove self if gallery do not have at least two items
|
122
|
-
if (obj.group.length < 2) {
|
123
|
-
obj.helpers.thumbs = false;
|
124
|
-
|
125
|
-
return;
|
126
|
-
}
|
127
|
-
|
128
|
-
//Increase bottom margin to give space for thumbs
|
129
|
-
obj.margin[ opts.position === 'top' ? 0 : 2 ] += ((opts.height) + 15);
|
130
|
-
},
|
131
|
-
|
132
|
-
afterShow: function (opts, obj) {
|
133
|
-
//Check if exists and create or update list
|
134
|
-
if (this.list) {
|
135
|
-
this.onUpdate(opts, obj);
|
136
|
-
|
137
|
-
} else {
|
138
|
-
this.init(opts, obj);
|
139
|
-
}
|
140
|
-
|
141
|
-
//Set active element
|
142
|
-
this.list.children().removeClass('active').eq(obj.index).addClass('active');
|
143
|
-
},
|
144
|
-
|
145
|
-
//Center list
|
146
|
-
onUpdate: function (opts, obj) {
|
147
|
-
if (this.list) {
|
148
|
-
this.list.stop(true).animate({
|
149
|
-
'left': Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5))
|
150
|
-
}, 150);
|
151
|
-
}
|
152
|
-
},
|
153
|
-
|
154
|
-
beforeClose: function () {
|
155
|
-
if (this.wrap) {
|
156
|
-
this.wrap.remove();
|
157
|
-
}
|
158
|
-
|
159
|
-
this.wrap = null;
|
160
|
-
this.list = null;
|
161
|
-
this.width = 0;
|
162
|
-
}
|
163
|
-
}
|
164
|
-
|
165
|
-
}(jQuery));
|
1
|
+
/*!
|
2
|
+
* Thumbnail helper for fancyBox
|
3
|
+
* version: 1.0.7 (Mon, 01 Oct 2012)
|
4
|
+
* @requires fancyBox v2.0 or later
|
5
|
+
*
|
6
|
+
* Usage:
|
7
|
+
* $(".fancybox").fancybox({
|
8
|
+
* helpers : {
|
9
|
+
* thumbs: {
|
10
|
+
* width : 50,
|
11
|
+
* height : 50
|
12
|
+
* }
|
13
|
+
* }
|
14
|
+
* });
|
15
|
+
*
|
16
|
+
*/
|
17
|
+
;(function ($) {
|
18
|
+
//Shortcut for fancyBox object
|
19
|
+
var F = $.fancybox;
|
20
|
+
|
21
|
+
//Add helper object
|
22
|
+
F.helpers.thumbs = {
|
23
|
+
defaults : {
|
24
|
+
width : 50, // thumbnail width
|
25
|
+
height : 50, // thumbnail height
|
26
|
+
position : 'bottom', // 'top' or 'bottom'
|
27
|
+
source : function ( item ) { // function to obtain the URL of the thumbnail image
|
28
|
+
var href;
|
29
|
+
|
30
|
+
if (item.element) {
|
31
|
+
href = $(item.element).find('img').attr('src');
|
32
|
+
}
|
33
|
+
|
34
|
+
if (!href && item.type === 'image' && item.href) {
|
35
|
+
href = item.href;
|
36
|
+
}
|
37
|
+
|
38
|
+
return href;
|
39
|
+
}
|
40
|
+
},
|
41
|
+
|
42
|
+
wrap : null,
|
43
|
+
list : null,
|
44
|
+
width : 0,
|
45
|
+
|
46
|
+
init: function (opts, obj) {
|
47
|
+
var that = this,
|
48
|
+
list,
|
49
|
+
thumbWidth = opts.width,
|
50
|
+
thumbHeight = opts.height,
|
51
|
+
thumbSource = opts.source;
|
52
|
+
|
53
|
+
//Build list structure
|
54
|
+
list = '';
|
55
|
+
|
56
|
+
for (var n = 0; n < obj.group.length; n++) {
|
57
|
+
list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');"></a></li>';
|
58
|
+
}
|
59
|
+
|
60
|
+
this.wrap = $('<div id="fancybox-thumbs"></div>').addClass(opts.position).appendTo('body');
|
61
|
+
this.list = $('<ul>' + list + '</ul>').appendTo(this.wrap);
|
62
|
+
|
63
|
+
//Load each thumbnail
|
64
|
+
$.each(obj.group, function (i) {
|
65
|
+
var el = obj.group[ i ],
|
66
|
+
href = thumbSource( el );
|
67
|
+
|
68
|
+
if (!href) {
|
69
|
+
return;
|
70
|
+
}
|
71
|
+
|
72
|
+
$("<img />").on("load", function () {
|
73
|
+
var width = this.width,
|
74
|
+
height = this.height,
|
75
|
+
widthRatio, heightRatio, parent;
|
76
|
+
|
77
|
+
if (!that.list || !width || !height) {
|
78
|
+
return;
|
79
|
+
}
|
80
|
+
|
81
|
+
//Calculate thumbnail width/height and center it
|
82
|
+
widthRatio = width / thumbWidth;
|
83
|
+
heightRatio = height / thumbHeight;
|
84
|
+
|
85
|
+
parent = that.list.children().eq(i).find('a');
|
86
|
+
|
87
|
+
if (widthRatio >= 1 && heightRatio >= 1) {
|
88
|
+
if (widthRatio > heightRatio) {
|
89
|
+
width = Math.floor(width / heightRatio);
|
90
|
+
height = thumbHeight;
|
91
|
+
|
92
|
+
} else {
|
93
|
+
width = thumbWidth;
|
94
|
+
height = Math.floor(height / widthRatio);
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
$(this).css({
|
99
|
+
width : width,
|
100
|
+
height : height,
|
101
|
+
top : Math.floor(thumbHeight / 2 - height / 2),
|
102
|
+
left : Math.floor(thumbWidth / 2 - width / 2)
|
103
|
+
});
|
104
|
+
|
105
|
+
parent.width(thumbWidth).height(thumbHeight);
|
106
|
+
|
107
|
+
$(this).hide().appendTo(parent).fadeIn(300);
|
108
|
+
|
109
|
+
})
|
110
|
+
.attr('src', href)
|
111
|
+
.attr('title', el.title);
|
112
|
+
});
|
113
|
+
|
114
|
+
//Set initial width
|
115
|
+
this.width = this.list.children().eq(0).outerWidth(true);
|
116
|
+
|
117
|
+
this.list.width(this.width * (obj.group.length + 1)).css('left', Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5)));
|
118
|
+
},
|
119
|
+
|
120
|
+
beforeLoad: function (opts, obj) {
|
121
|
+
//Remove self if gallery do not have at least two items
|
122
|
+
if (obj.group.length < 2) {
|
123
|
+
obj.helpers.thumbs = false;
|
124
|
+
|
125
|
+
return;
|
126
|
+
}
|
127
|
+
|
128
|
+
//Increase bottom margin to give space for thumbs
|
129
|
+
obj.margin[ opts.position === 'top' ? 0 : 2 ] += ((opts.height) + 15);
|
130
|
+
},
|
131
|
+
|
132
|
+
afterShow: function (opts, obj) {
|
133
|
+
//Check if exists and create or update list
|
134
|
+
if (this.list) {
|
135
|
+
this.onUpdate(opts, obj);
|
136
|
+
|
137
|
+
} else {
|
138
|
+
this.init(opts, obj);
|
139
|
+
}
|
140
|
+
|
141
|
+
//Set active element
|
142
|
+
this.list.children().removeClass('active').eq(obj.index).addClass('active');
|
143
|
+
},
|
144
|
+
|
145
|
+
//Center list
|
146
|
+
onUpdate: function (opts, obj) {
|
147
|
+
if (this.list) {
|
148
|
+
this.list.stop(true).animate({
|
149
|
+
'left': Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5))
|
150
|
+
}, 150);
|
151
|
+
}
|
152
|
+
},
|
153
|
+
|
154
|
+
beforeClose: function () {
|
155
|
+
if (this.wrap) {
|
156
|
+
this.wrap.remove();
|
157
|
+
}
|
158
|
+
|
159
|
+
this.wrap = null;
|
160
|
+
this.list = null;
|
161
|
+
this.width = 0;
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
}(jQuery));
|