@pimaonline/pimaonline-themepack 3.0.0 → 3.10.11
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +30 -30
- package/README.md +100 -69
- package/dist/css/main.css +1 -1
- package/dist/css/plugins/alt-icons.css +1 -0
- package/dist/css/plugins/font-awesome.css +1 -1
- package/dist/css/routes.css +1 -1
- package/dist/css/themes/aviation/styles.css +1 -1
- package/dist/css/themes/bct/styles.css +1 -0
- package/dist/css/themes/bio/styles.css +1 -0
- package/dist/css/themes/business/styles.css +1 -1
- package/dist/css/themes/fsc/styles.css +1 -1
- package/dist/css/themes/hrs/styles.css +1 -1
- package/dist/css/themes/lgm/styles.css +1 -1
- package/dist/css/themes/psy/styles.css +1 -0
- package/dist/img/theme-images/bct/Blueprint-background.png +0 -0
- package/dist/img/theme-images/bio/original/dna.svg +1 -0
- package/dist/img/theme-images/bio/original/humans.svg +1 -0
- package/dist/img/theme-images/bio/original/leaves.svg +33 -0
- package/dist/img/theme-images/bio/original/marine-bottom.svg +1 -0
- package/dist/img/theme-images/bio/original/marine-top.svg +1 -0
- package/dist/img/theme-images/bio/original/microbes.svg +1 -0
- package/dist/img/theme-images/ecn/arrow-2.svg +4 -4
- package/dist/img/theme-images/ecn/arrow.svg +4 -4
- package/dist/img/theme-images/ecn/point.svg +3 -3
- package/dist/img/theme-images/eng/button-bkg.svg +178 -178
- package/dist/img/theme-images/eng/halftone.svg +177 -177
- package/dist/img/theme-images/eng/long-button-bkg.svg +353 -353
- package/dist/img/theme-images/fsc/bottomwave-pinkred.svg +16 -16
- package/dist/img/theme-images/fsc/bottomwave-redorange.svg +16 -16
- package/dist/img/theme-images/fsc/bottomwave-yellow.svg +16 -16
- package/dist/img/theme-images/fsc/bottomwave-yelloworange.svg +16 -16
- package/dist/img/theme-images/fsc/mainwave-pinkred.svg +16 -16
- package/dist/img/theme-images/fsc/mainwave-redorange.svg +16 -16
- package/dist/img/theme-images/fsc/mainwave-yellow.svg +16 -16
- package/dist/img/theme-images/fsc/mainwave-yelloworange.svg +16 -16
- package/dist/img/theme-images/music/half_note.svg +5 -5
- package/dist/img/theme-images/psy/counseling-icon.svg +1 -0
- package/dist/img/theme-images/psy/psych-icon.svg +17 -0
- 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 +2 -2
- package/dist/img/theme-images/ss/list-style.svg +3 -3
- package/dist/img/theme-images/ss/main-large-blob.svg +3 -3
- package/dist/img/theme-images/ss/main-small-blob.svg +3 -3
- package/dist/img/theme-images/ss/small-blob.svg +3 -3
- package/dist/img/theme-images/ss/tall-blob.svg +3 -3
- 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 +1006 -541
- package/dist/js/themes/ecn.js +13 -0
- package/dist/js/themes/hrs.js +19 -0
- package/dist/js/themes/ss.js +197 -0
- 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/brands.svg +1460 -0
- package/dist/plugins/font-awesome-icons/webfonts/fa-brands-400.ttf +0 -0
- package/dist/plugins/font-awesome-icons/webfonts/fa-brands-400.woff2 +0 -0
- package/dist/plugins/font-awesome-icons/webfonts/fa-regular-400.ttf +0 -0
- package/dist/plugins/font-awesome-icons/webfonts/fa-regular-400.woff2 +0 -0
- package/dist/plugins/font-awesome-icons/webfonts/fa-solid-900.ttf +0 -0
- package/dist/plugins/font-awesome-icons/webfonts/fa-solid-900.woff2 +0 -0
- package/dist/plugins/font-awesome-icons/webfonts/fa-v4compatibility.ttf +0 -0
- package/dist/plugins/font-awesome-icons/webfonts/fa-v4compatibility.woff2 +0 -0
- package/dist/plugins/font-awesome-icons/webfonts/regular.svg +497 -0
- package/dist/plugins/font-awesome-icons/webfonts/solid.svg +4178 -0
- 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 +42 -39
- package/dist/plugins/font-awesome-icons/webfonts/fa-brands-400.eot +0 -0
- package/dist/plugins/font-awesome-icons/webfonts/fa-brands-400.svg +0 -3570
- package/dist/plugins/font-awesome-icons/webfonts/fa-brands-400.woff +0 -0
- package/dist/plugins/font-awesome-icons/webfonts/fa-regular-400.eot +0 -0
- package/dist/plugins/font-awesome-icons/webfonts/fa-regular-400.svg +0 -803
- package/dist/plugins/font-awesome-icons/webfonts/fa-regular-400.woff +0 -0
- package/dist/plugins/font-awesome-icons/webfonts/fa-solid-900.eot +0 -0
- package/dist/plugins/font-awesome-icons/webfonts/fa-solid-900.svg +0 -4700
- package/dist/plugins/font-awesome-icons/webfonts/fa-solid-900.woff +0 -0
@@ -1,97 +1,97 @@
|
|
1
|
-
#fancybox-buttons {
|
2
|
-
position: fixed;
|
3
|
-
left: 0;
|
4
|
-
width: 100%;
|
5
|
-
z-index: 8050;
|
6
|
-
}
|
7
|
-
|
8
|
-
#fancybox-buttons.top {
|
9
|
-
top: 10px;
|
10
|
-
}
|
11
|
-
|
12
|
-
#fancybox-buttons.bottom {
|
13
|
-
bottom: 10px;
|
14
|
-
}
|
15
|
-
|
16
|
-
#fancybox-buttons ul {
|
17
|
-
display: block;
|
18
|
-
width: 166px;
|
19
|
-
height: 30px;
|
20
|
-
margin: 0 auto;
|
21
|
-
padding: 0;
|
22
|
-
list-style: none;
|
23
|
-
border: 1px solid #111;
|
24
|
-
border-radius: 3px;
|
25
|
-
-webkit-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
|
26
|
-
-moz-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
|
27
|
-
box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
|
28
|
-
background: rgb(50,50,50);
|
29
|
-
background: -moz-linear-gradient(top, rgb(68,68,68) 0%, rgb(52,52,52) 50%, rgb(41,41,41) 50%, rgb(51,51,51) 100%);
|
30
|
-
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(68,68,68)), color-stop(50%,rgb(52,52,52)), color-stop(50%,rgb(41,41,41)), color-stop(100%,rgb(51,51,51)));
|
31
|
-
background: -webkit-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
|
32
|
-
background: -o-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
|
33
|
-
background: -ms-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
|
34
|
-
background: linear-gradient(to bottom, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
|
35
|
-
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#444444', endColorstr='#222222',GradientType=0 );
|
36
|
-
}
|
37
|
-
|
38
|
-
#fancybox-buttons ul li {
|
39
|
-
float: left;
|
40
|
-
margin: 0;
|
41
|
-
padding: 0;
|
42
|
-
}
|
43
|
-
|
44
|
-
#fancybox-buttons a {
|
45
|
-
display: block;
|
46
|
-
width: 30px;
|
47
|
-
height: 30px;
|
48
|
-
text-indent: -9999px;
|
49
|
-
background-color: transparent;
|
50
|
-
background-image: url('../../../cards/source/helpers/fancybox_buttons.png');
|
51
|
-
background-repeat: no-repeat;
|
52
|
-
outline: none;
|
53
|
-
opacity: 0.8;
|
54
|
-
}
|
55
|
-
|
56
|
-
#fancybox-buttons a:hover {
|
57
|
-
opacity: 1;
|
58
|
-
}
|
59
|
-
|
60
|
-
#fancybox-buttons a.btnPrev {
|
61
|
-
background-position: 5px 0;
|
62
|
-
}
|
63
|
-
|
64
|
-
#fancybox-buttons a.btnNext {
|
65
|
-
background-position: -33px 0;
|
66
|
-
border-right: 1px solid #3e3e3e;
|
67
|
-
}
|
68
|
-
|
69
|
-
#fancybox-buttons a.btnPlay {
|
70
|
-
background-position: 0 -30px;
|
71
|
-
}
|
72
|
-
|
73
|
-
#fancybox-buttons a.btnPlayOn {
|
74
|
-
background-position: -30px -30px;
|
75
|
-
}
|
76
|
-
|
77
|
-
#fancybox-buttons a.btnToggle {
|
78
|
-
background-position: 3px -60px;
|
79
|
-
border-left: 1px solid #111;
|
80
|
-
border-right: 1px solid #3e3e3e;
|
81
|
-
width: 35px
|
82
|
-
}
|
83
|
-
|
84
|
-
#fancybox-buttons a.btnToggleOn {
|
85
|
-
background-position: -27px -60px;
|
86
|
-
}
|
87
|
-
|
88
|
-
#fancybox-buttons a.btnClose {
|
89
|
-
border-left: 1px solid #111;
|
90
|
-
width: 35px;
|
91
|
-
background-position: -56px 0px;
|
92
|
-
}
|
93
|
-
|
94
|
-
#fancybox-buttons a.btnDisabled {
|
95
|
-
opacity : 0.4;
|
96
|
-
cursor: default;
|
97
|
-
}
|
1
|
+
#fancybox-buttons {
|
2
|
+
position: fixed;
|
3
|
+
left: 0;
|
4
|
+
width: 100%;
|
5
|
+
z-index: 8050;
|
6
|
+
}
|
7
|
+
|
8
|
+
#fancybox-buttons.top {
|
9
|
+
top: 10px;
|
10
|
+
}
|
11
|
+
|
12
|
+
#fancybox-buttons.bottom {
|
13
|
+
bottom: 10px;
|
14
|
+
}
|
15
|
+
|
16
|
+
#fancybox-buttons ul {
|
17
|
+
display: block;
|
18
|
+
width: 166px;
|
19
|
+
height: 30px;
|
20
|
+
margin: 0 auto;
|
21
|
+
padding: 0;
|
22
|
+
list-style: none;
|
23
|
+
border: 1px solid #111;
|
24
|
+
border-radius: 3px;
|
25
|
+
-webkit-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
|
26
|
+
-moz-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
|
27
|
+
box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
|
28
|
+
background: rgb(50,50,50);
|
29
|
+
background: -moz-linear-gradient(top, rgb(68,68,68) 0%, rgb(52,52,52) 50%, rgb(41,41,41) 50%, rgb(51,51,51) 100%);
|
30
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(68,68,68)), color-stop(50%,rgb(52,52,52)), color-stop(50%,rgb(41,41,41)), color-stop(100%,rgb(51,51,51)));
|
31
|
+
background: -webkit-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
|
32
|
+
background: -o-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
|
33
|
+
background: -ms-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
|
34
|
+
background: linear-gradient(to bottom, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
|
35
|
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#444444', endColorstr='#222222',GradientType=0 );
|
36
|
+
}
|
37
|
+
|
38
|
+
#fancybox-buttons ul li {
|
39
|
+
float: left;
|
40
|
+
margin: 0;
|
41
|
+
padding: 0;
|
42
|
+
}
|
43
|
+
|
44
|
+
#fancybox-buttons a {
|
45
|
+
display: block;
|
46
|
+
width: 30px;
|
47
|
+
height: 30px;
|
48
|
+
text-indent: -9999px;
|
49
|
+
background-color: transparent;
|
50
|
+
background-image: url('../../../cards/source/helpers/fancybox_buttons.png');
|
51
|
+
background-repeat: no-repeat;
|
52
|
+
outline: none;
|
53
|
+
opacity: 0.8;
|
54
|
+
}
|
55
|
+
|
56
|
+
#fancybox-buttons a:hover {
|
57
|
+
opacity: 1;
|
58
|
+
}
|
59
|
+
|
60
|
+
#fancybox-buttons a.btnPrev {
|
61
|
+
background-position: 5px 0;
|
62
|
+
}
|
63
|
+
|
64
|
+
#fancybox-buttons a.btnNext {
|
65
|
+
background-position: -33px 0;
|
66
|
+
border-right: 1px solid #3e3e3e;
|
67
|
+
}
|
68
|
+
|
69
|
+
#fancybox-buttons a.btnPlay {
|
70
|
+
background-position: 0 -30px;
|
71
|
+
}
|
72
|
+
|
73
|
+
#fancybox-buttons a.btnPlayOn {
|
74
|
+
background-position: -30px -30px;
|
75
|
+
}
|
76
|
+
|
77
|
+
#fancybox-buttons a.btnToggle {
|
78
|
+
background-position: 3px -60px;
|
79
|
+
border-left: 1px solid #111;
|
80
|
+
border-right: 1px solid #3e3e3e;
|
81
|
+
width: 35px
|
82
|
+
}
|
83
|
+
|
84
|
+
#fancybox-buttons a.btnToggleOn {
|
85
|
+
background-position: -27px -60px;
|
86
|
+
}
|
87
|
+
|
88
|
+
#fancybox-buttons a.btnClose {
|
89
|
+
border-left: 1px solid #111;
|
90
|
+
width: 35px;
|
91
|
+
background-position: -56px 0px;
|
92
|
+
}
|
93
|
+
|
94
|
+
#fancybox-buttons a.btnDisabled {
|
95
|
+
opacity : 0.4;
|
96
|
+
cursor: default;
|
97
|
+
}
|
@@ -1,122 +1,122 @@
|
|
1
|
-
/*!
|
2
|
-
* Buttons helper for fancyBox
|
3
|
-
* version: 1.0.5 (Mon, 15 Oct 2012)
|
4
|
-
* @requires fancyBox v2.0 or later
|
5
|
-
*
|
6
|
-
* Usage:
|
7
|
-
* $(".fancybox").fancybox({
|
8
|
-
* helpers : {
|
9
|
-
* buttons: {
|
10
|
-
* position : 'top'
|
11
|
-
* }
|
12
|
-
* }
|
13
|
-
* });
|
14
|
-
*
|
15
|
-
*/
|
16
|
-
;(function ($) {
|
17
|
-
//Shortcut for fancyBox object
|
18
|
-
var F = $.fancybox;
|
19
|
-
|
20
|
-
//Add helper object
|
21
|
-
F.helpers.buttons = {
|
22
|
-
defaults : {
|
23
|
-
skipSingle : false, // disables if gallery contains single image
|
24
|
-
position : 'top', // 'top' or 'bottom'
|
25
|
-
tpl : '<div id="fancybox-buttons"><ul><li><a class="btnPrev" title="Previous" href="javascript:;"></a></li><li><a class="btnPlay" title="Start slideshow" href="javascript:;"></a></li><li><a class="btnNext" title="Next" href="javascript:;"></a></li><li><a class="btnToggle" title="Toggle size" href="javascript:;"></a></li><li><a class="btnClose" title="Close" href="javascript:;"></a></li></ul></div>'
|
26
|
-
},
|
27
|
-
|
28
|
-
list : null,
|
29
|
-
buttons: null,
|
30
|
-
|
31
|
-
beforeLoad: function (opts, obj) {
|
32
|
-
//Remove self if gallery do not have at least two items
|
33
|
-
|
34
|
-
if (opts.skipSingle && obj.group.length < 2) {
|
35
|
-
obj.helpers.buttons = false;
|
36
|
-
obj.closeBtn = true;
|
37
|
-
|
38
|
-
return;
|
39
|
-
}
|
40
|
-
|
41
|
-
//Increase top margin to give space for buttons
|
42
|
-
obj.margin[ opts.position === 'bottom' ? 2 : 0 ] += 30;
|
43
|
-
},
|
44
|
-
|
45
|
-
onPlayStart: function () {
|
46
|
-
if (this.buttons) {
|
47
|
-
this.buttons.play.attr('title', 'Pause slideshow').addClass('btnPlayOn');
|
48
|
-
}
|
49
|
-
},
|
50
|
-
|
51
|
-
onPlayEnd: function () {
|
52
|
-
if (this.buttons) {
|
53
|
-
this.buttons.play.attr('title', 'Start slideshow').removeClass('btnPlayOn');
|
54
|
-
}
|
55
|
-
},
|
56
|
-
|
57
|
-
afterShow: function (opts, obj) {
|
58
|
-
var buttons = this.buttons;
|
59
|
-
|
60
|
-
if (!buttons) {
|
61
|
-
this.list = $(opts.tpl).addClass(opts.position).appendTo('body');
|
62
|
-
|
63
|
-
buttons = {
|
64
|
-
prev : this.list.find('.btnPrev').click( F.prev ),
|
65
|
-
next : this.list.find('.btnNext').click( F.next ),
|
66
|
-
play : this.list.find('.btnPlay').click( F.play ),
|
67
|
-
toggle : this.list.find('.btnToggle').click( F.toggle ),
|
68
|
-
close : this.list.find('.btnClose').click( F.close )
|
69
|
-
}
|
70
|
-
}
|
71
|
-
|
72
|
-
//Prev
|
73
|
-
if (obj.index > 0 || obj.loop) {
|
74
|
-
buttons.prev.removeClass('btnDisabled');
|
75
|
-
} else {
|
76
|
-
buttons.prev.addClass('btnDisabled');
|
77
|
-
}
|
78
|
-
|
79
|
-
//Next / Play
|
80
|
-
if (obj.loop || obj.index < obj.group.length - 1) {
|
81
|
-
buttons.next.removeClass('btnDisabled');
|
82
|
-
buttons.play.removeClass('btnDisabled');
|
83
|
-
|
84
|
-
} else {
|
85
|
-
buttons.next.addClass('btnDisabled');
|
86
|
-
buttons.play.addClass('btnDisabled');
|
87
|
-
}
|
88
|
-
|
89
|
-
this.buttons = buttons;
|
90
|
-
|
91
|
-
this.onUpdate(opts, obj);
|
92
|
-
},
|
93
|
-
|
94
|
-
onUpdate: function (opts, obj) {
|
95
|
-
var toggle;
|
96
|
-
|
97
|
-
if (!this.buttons) {
|
98
|
-
return;
|
99
|
-
}
|
100
|
-
|
101
|
-
toggle = this.buttons.toggle.removeClass('btnDisabled btnToggleOn');
|
102
|
-
|
103
|
-
//Size toggle button
|
104
|
-
if (obj.canShrink) {
|
105
|
-
toggle.addClass('btnToggleOn');
|
106
|
-
|
107
|
-
} else if (!obj.canExpand) {
|
108
|
-
toggle.addClass('btnDisabled');
|
109
|
-
}
|
110
|
-
},
|
111
|
-
|
112
|
-
beforeClose: function () {
|
113
|
-
if (this.list) {
|
114
|
-
this.list.remove();
|
115
|
-
}
|
116
|
-
|
117
|
-
this.list = null;
|
118
|
-
this.buttons = null;
|
119
|
-
}
|
120
|
-
};
|
121
|
-
|
122
|
-
}(jQuery));
|
1
|
+
/*!
|
2
|
+
* Buttons helper for fancyBox
|
3
|
+
* version: 1.0.5 (Mon, 15 Oct 2012)
|
4
|
+
* @requires fancyBox v2.0 or later
|
5
|
+
*
|
6
|
+
* Usage:
|
7
|
+
* $(".fancybox").fancybox({
|
8
|
+
* helpers : {
|
9
|
+
* buttons: {
|
10
|
+
* position : 'top'
|
11
|
+
* }
|
12
|
+
* }
|
13
|
+
* });
|
14
|
+
*
|
15
|
+
*/
|
16
|
+
;(function ($) {
|
17
|
+
//Shortcut for fancyBox object
|
18
|
+
var F = $.fancybox;
|
19
|
+
|
20
|
+
//Add helper object
|
21
|
+
F.helpers.buttons = {
|
22
|
+
defaults : {
|
23
|
+
skipSingle : false, // disables if gallery contains single image
|
24
|
+
position : 'top', // 'top' or 'bottom'
|
25
|
+
tpl : '<div id="fancybox-buttons"><ul><li><a class="btnPrev" title="Previous" href="javascript:;"></a></li><li><a class="btnPlay" title="Start slideshow" href="javascript:;"></a></li><li><a class="btnNext" title="Next" href="javascript:;"></a></li><li><a class="btnToggle" title="Toggle size" href="javascript:;"></a></li><li><a class="btnClose" title="Close" href="javascript:;"></a></li></ul></div>'
|
26
|
+
},
|
27
|
+
|
28
|
+
list : null,
|
29
|
+
buttons: null,
|
30
|
+
|
31
|
+
beforeLoad: function (opts, obj) {
|
32
|
+
//Remove self if gallery do not have at least two items
|
33
|
+
|
34
|
+
if (opts.skipSingle && obj.group.length < 2) {
|
35
|
+
obj.helpers.buttons = false;
|
36
|
+
obj.closeBtn = true;
|
37
|
+
|
38
|
+
return;
|
39
|
+
}
|
40
|
+
|
41
|
+
//Increase top margin to give space for buttons
|
42
|
+
obj.margin[ opts.position === 'bottom' ? 2 : 0 ] += 30;
|
43
|
+
},
|
44
|
+
|
45
|
+
onPlayStart: function () {
|
46
|
+
if (this.buttons) {
|
47
|
+
this.buttons.play.attr('title', 'Pause slideshow').addClass('btnPlayOn');
|
48
|
+
}
|
49
|
+
},
|
50
|
+
|
51
|
+
onPlayEnd: function () {
|
52
|
+
if (this.buttons) {
|
53
|
+
this.buttons.play.attr('title', 'Start slideshow').removeClass('btnPlayOn');
|
54
|
+
}
|
55
|
+
},
|
56
|
+
|
57
|
+
afterShow: function (opts, obj) {
|
58
|
+
var buttons = this.buttons;
|
59
|
+
|
60
|
+
if (!buttons) {
|
61
|
+
this.list = $(opts.tpl).addClass(opts.position).appendTo('body');
|
62
|
+
|
63
|
+
buttons = {
|
64
|
+
prev : this.list.find('.btnPrev').click( F.prev ),
|
65
|
+
next : this.list.find('.btnNext').click( F.next ),
|
66
|
+
play : this.list.find('.btnPlay').click( F.play ),
|
67
|
+
toggle : this.list.find('.btnToggle').click( F.toggle ),
|
68
|
+
close : this.list.find('.btnClose').click( F.close )
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
//Prev
|
73
|
+
if (obj.index > 0 || obj.loop) {
|
74
|
+
buttons.prev.removeClass('btnDisabled');
|
75
|
+
} else {
|
76
|
+
buttons.prev.addClass('btnDisabled');
|
77
|
+
}
|
78
|
+
|
79
|
+
//Next / Play
|
80
|
+
if (obj.loop || obj.index < obj.group.length - 1) {
|
81
|
+
buttons.next.removeClass('btnDisabled');
|
82
|
+
buttons.play.removeClass('btnDisabled');
|
83
|
+
|
84
|
+
} else {
|
85
|
+
buttons.next.addClass('btnDisabled');
|
86
|
+
buttons.play.addClass('btnDisabled');
|
87
|
+
}
|
88
|
+
|
89
|
+
this.buttons = buttons;
|
90
|
+
|
91
|
+
this.onUpdate(opts, obj);
|
92
|
+
},
|
93
|
+
|
94
|
+
onUpdate: function (opts, obj) {
|
95
|
+
var toggle;
|
96
|
+
|
97
|
+
if (!this.buttons) {
|
98
|
+
return;
|
99
|
+
}
|
100
|
+
|
101
|
+
toggle = this.buttons.toggle.removeClass('btnDisabled btnToggleOn');
|
102
|
+
|
103
|
+
//Size toggle button
|
104
|
+
if (obj.canShrink) {
|
105
|
+
toggle.addClass('btnToggleOn');
|
106
|
+
|
107
|
+
} else if (!obj.canExpand) {
|
108
|
+
toggle.addClass('btnDisabled');
|
109
|
+
}
|
110
|
+
},
|
111
|
+
|
112
|
+
beforeClose: function () {
|
113
|
+
if (this.list) {
|
114
|
+
this.list.remove();
|
115
|
+
}
|
116
|
+
|
117
|
+
this.list = null;
|
118
|
+
this.buttons = null;
|
119
|
+
}
|
120
|
+
};
|
121
|
+
|
122
|
+
}(jQuery));
|