View difference between Paste ID: sBZg7vA2 and
SHOW:
|
|
- or go back to the newest paste.
1 | - | |
1 | + | // Gallerific Custom Settings |
2 | ||
3 | jQuery(document).ready(function($) { | |
4 | var gallery = $('#thumbs').galleriffic({ | |
5 | delay: 1000, // in milliseconds | |
6 | numThumbs: 25, // The number of thumbnails to show page | |
7 | preloadAhead: 40, // Set to -1 to preload all images | |
8 | enableTopPager: true, | |
9 | enableBottomPager: false, | |
10 | maxPagesToShow: 7, // The maximum number of pages to display in either the top or bottom pager | |
11 | imageContainerSel: '#screen', // The CSS selector for the element within which the main slideshow image should be rendered | |
12 | controlsContainerSel: '#controls', // The CSS selector for the element within which the slideshow controls should be rendered | |
13 | captionContainerSel: '#captions', // The CSS selector for the element within which the captions should be rendered | |
14 | loadingContainerSel: '#loading', // The CSS selector for the element within which should be shown when an image is loading | |
15 | renderSSControls: false, // Specifies whether the slideshow's Play and Pause links should be rendered | |
16 | renderNavControls: false, // Specifies whether the slideshow's Next and Previous links should be rendered | |
17 | playLinkText: 'Play', | |
18 | pauseLinkText: 'Pause', | |
19 | prevLinkText: 'Previous', | |
20 | nextLinkText: 'Next', | |
21 | nextPageLinkText: 'Next ›', | |
22 | prevPageLinkText: '‹ Prev', | |
23 | enableHistory: false, // Specifies whether the url's hash and the browser's history cache should update when the current slideshow image changes | |
24 | enableKeyboardNavigation: true, // Specifies whether keyboard navigation is enabled | |
25 | autoStart: false, // Specifies whether the slideshow should be playing or paused when the page first loads | |
26 | syncTransitions: false, // Specifies whether the out and in transitions occur simultaneously or distinctly | |
27 | defaultTransitionDuration: 500, // If using the default transitions, specifies the duration of the transitions | |
28 | onSlideChange: undefined, // accepts a delegate like such: function(prevIndex, nextIndex) { ... } | |
29 | onTransitionOut: undefined, // accepts a delegate like such: function(slide, caption, isSync, callback) { ... } | |
30 | onTransitionIn: undefined, // accepts a delegate like such: function(slide, caption, isSync) { ... } | |
31 | onPageTransitionOut: undefined, // accepts a delegate like such: function(callback) { ... } | |
32 | onPageTransitionIn: undefined, // accepts a delegate like such: function() { ... } | |
33 | onImageAdded: undefined, // accepts a delegate like such: function(imageData, $li) { ... } | |
34 | onImageRemoved: undefined // accepts a delegate like such: function(imageData, $li) { ... } | |
35 | }); | |
36 | }); | |
37 | ||
38 | ||
39 | // toggleSlider function for the displaying/hiding of the doll menu | |
40 | ||
41 | (function($) { | |
42 | $(document).ready(function() { | |
43 | ||
44 | function toggleSlider() { | |
45 | if ($("#doll-menu").is(":visible")) | |
46 | { | |
47 | $("#fade").animate( | |
48 | { | |
49 | opacity: "0" | |
50 | }, | |
51 | 300, | |
52 | function(){ | |
53 | $("#doll-menu").slideUp(300); | |
54 | } | |
55 | ); | |
56 | } | |
57 | else | |
58 | { | |
59 | $("#doll-menu").slideDown(300, function(){ | |
60 | $("#fade").animate( | |
61 | { | |
62 | opacity: "1" | |
63 | }, | |
64 | 300 | |
65 | ); | |
66 | }); | |
67 | } | |
68 | } | |
69 | ||
70 | // Click event to run toggleSlider | |
71 | ||
72 | $('a[title="dolls"]').click(toggleSlider); | |
73 | ||
74 | }); | |
75 | })(jQuery); |