1import thumbnailScroller from '../plugins/thumbnailScroller.js' 2 3var jscroller_start = { 4 5 init: function(element, scroller_type) { 6 7 $(element).thumbnailScroller({ 8 /* scroller type based on mouse interaction 9 values: "hoverPrecise", "hoverAccelerate", "clickButtons" 10 default: "hoverPrecise" */ 11 scrollerType: scroller_type, 12 /* scroller orientation 13 values: "horizontal", "vertical" 14 default: "horizontal" */ 15 scrollerOrientation:"horizontal", 16 /* scroll easing type only for "hoverPrecise" scrollers 17 available values here: http://jqueryui.com/demos/effect/easing.html 18 default: "easeOutCirc" */ 19 scrollEasing:"easeOutCirc", 20 /* scroll easing amount only for "hoverPrecise" and "clickButtons" scrollers (0 for no easing) 21 values: milliseconds 22 default: 800 */ 23 scrollEasingAmount:800, 24 /* acceleration value only for "hoverAccelerate" scrollers 25 values: integer 26 default: 2 */ 27 acceleration:1, 28 /* scrolling speed only for "clickButtons" scrollers 29 values: milliseconds 30 default: 600 */ 31 scrollSpeed:800, 32 /* scroller null scrolling area only for "hoverAccelerate" scrollers 33 0 being the absolute center of the scroller 34 values: pixels 35 default: 0 */ 36 noScrollCenterSpace:80, 37 /* initial auto-scrolling 38 0 equals no auto-scrolling 39 values: amount of auto-scrolling loops (integer) 40 default: 0 */ 41 autoScrolling:0, 42 /* initial auto-scrolling speed 43 values: milliseconds 44 default: 8000 */ 45 autoScrollingSpeed:2000, 46 /* initial auto-scrolling easing type 47 available values here: http://jqueryui.com/demos/effect/easing.html 48 default: "easeInOutQuad" */ 49 autoScrollingEasing:"easeInOutQuad", 50 /* initial auto-scrolling delay for each loop 51 values: milliseconds 52 default: 2500 */ 53 autoScrollingDelay:500, 54 callbacks: { 55 onInit: function() { 56 if ($('#ig_slideshow_thumbnails_container .jTscrollerPrevButton.disabled')) { 57 $('#ig_slideshow_thumbnails_container .jTscrollerPrevButton.disabled').attr('disabled', true); 58 } else { 59 $('#ig_slideshow_thumbnails_container .jTscrollerPrevButton.disabled').removeAttr('disabled'); 60 } 61 if ($('#ig_slideshow_thumbnails_container .jTscrollerNextButton.disabled')) { 62 $('#ig_slideshow_thumbnails_container .jTscrollerNextButton.disabled').attr('disabled', true); 63 } else { 64 $('#ig_slideshow_thumbnails_container .jTscrollerNextButton.disabled').removeAttr('disabled'); 65 } 66 }, 67 onScroll: function() { 68 if ($('#ig_slideshow_thumbnails_container .jTscrollerPrevButton.disabled')) { 69 $('#ig_slideshow_thumbnails_container .jTscrollerPrevButton.disabled').attr('disabled', true); 70 } else { 71 $('#ig_slideshow_thumbnails_container .jTscrollerPrevButton.disabled').removeAttr('disabled'); 72 } 73 if ($('#ig_slideshow_thumbnails_container .jTscrollerNextButton.disabled')) { 74 $('#ig_slideshow_thumbnails_container .jTscrollerNextButton.disabled').attr('disabled', true); 75 } else { 76 $('#ig_slideshow_thumbnails_container .jTscrollerNextButton.disabled').removeAttr('disabled'); 77 } 78 } 79 } 80 }); 81 } 82 83} 84 85window.galleries = window.galleries || {}; 86window.galleries.jscroller_start = jscroller_start; 87export default jscroller_start;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.