1 2YUI({'logExclude': { 'yui': true } }).use('fl-slideshow', function(Y){ 3 4 if( null === Y.one('.fl-node-6876039aa66ac .fl-slideshow-container') ) { 5 return; 6 } 7 8 var oldSlideshow = Y.one('.fl-node-6876039aa66ac .fl-slideshow-container .fl-slideshow'), 9 newSlideshow = new Y.FL.Slideshow({ 10 autoPlay: true, 11 color: 'light', 12 googlePlusButtonEnabled: true, 13 height: 500, 14 imageNavEnabled: true, 15 likeButtonEnabled: true, 16 navPosition: 'bottom', 17 navType: 'none', 18 pinterestButtonEnabled: true, 19 protect: true, 20 randomize: false, 21 responsiveThreshold: 768, 22 source: [{type: "urls", urls:[{ 23thumbURL: "/uploads/co60-100pro1-300x125.jpg",largeURL: "/uploads/co60-100pro1.jpg",x3largeURL: "/uploads/co60-100pro1.jpg",caption: ""},{ 24thumbURL: "/uploads/co60-100pro-1-300x125.jpg",largeURL: "/uploads/co60-100pro-1.jpg",x3largeURL: "/uploads/co60-100pro-1.jpg",caption: ""},{ 25thumbURL: "/uploads/co60-100pro-2-300x125.jpg",largeURL: "/uploads/co60-100pro-2.jpg",x3largeURL: "/uploads/co60-100pro-2.jpg",caption: ""}]}], 26 speed: 3000, 27 tweetButtonEnabled: true, 28 thumbsImageHeight: 50, 29 thumbsImageWidth: 50, 30 transition: 'fade', 31 transitionDuration: 1 }); 32 33 if(oldSlideshow) { 34 oldSlideshow.remove(true); 35 } 36 37 newSlideshow.render('.fl-node-6876039aa66ac .fl-slideshow-container'); 38 39 Y.one('.fl-node-6876039aa66ac .fl-slideshow-container').setStyle( 'height', 'auto' ); 40}); 41 42(function($) { 43 44 $(function() { 45 $('.fl-embed-video').fitVids(); 46 }); 47 48})(jQuery); 49 50 51 52 53 54 55(function($) { 56 57 FLBuilderAccordion = function( settings ) 58 { 59 this.settings = settings; 60 this.nodeClass = '.fl-node-' + settings.id; 61 this._init(); 62 }; 63 64 FLBuilderAccordion.prototype = { 65 66 settings : {}, 67 nodeClass : '', 68 69 _init: function() 70 { 71 $( this.nodeClass + ' .fl-accordion-button' ).on('click', $.proxy( this._buttonClick, this ) ); 72 73 FLBuilderLayout.preloadAudio( this.nodeClass + ' .fl-accordion-content' ); 74 75 this._openDefaultItem(); 76 }, 77 78 _buttonClick: function( e ) 79 { 80 var button = $( e.target ).closest('.fl-accordion-button'), 81 accordion = button.closest('.fl-accordion'), 82 item = button.closest('.fl-accordion-item'), 83 allContent = accordion.find('.fl-accordion-content'), 84 allIcons = accordion.find('.fl-accordion-button i.fl-accordion-button-icon'), 85 content = button.siblings('.fl-accordion-content'), 86 icon = button.find('i.fl-accordion-button-icon'); 87 88 if(accordion.hasClass('fl-accordion-collapse')) { 89 accordion.find( '.fl-accordion-item-active' ).removeClass( 'fl-accordion-item-active' ); 90 allContent.slideUp('normal'); 91 allIcons.removeClass('fa-minus'); 92 allIcons.addClass('fa-plus'); 93 } 94 95 if(content.is(':hidden')) { 96 item.addClass( 'fl-accordion-item-active' ); 97 content.slideDown('normal', this._slideDownComplete); 98 icon.addClass('fa-minus'); 99 icon.removeClass('fa-plus'); 100 } 101 else { 102 item.removeClass( 'fl-accordion-item-active' ); 103 content.slideUp('normal', this._slideUpComplete); 104 icon.addClass('fa-plus'); 105 icon.removeClass('fa-minus'); 106 } 107 }, 108 109 _slideUpComplete: function() 110 { 111 var content = $( this ), 112 accordion = content.closest( '.fl-accordion' ); 113 114 accordion.trigger( 'fl-builder.fl-accordion-toggle-complete' ); 115 }, 116 117 _slideDownComplete: function() 118 { 119 var content = $( this ), 120 accordion = content.closest( '.fl-accordion' ), 121 item = content.parent(), 122 win = $( window ); 123 124 FLBuilderLayout.refreshGalleries( content ); 125 126 // Grid layout support (uses Masonry) 127 FLBuilderLayout.refreshGridLayout( content ); 128 129 // Post Carousel support (uses BxSlider) 130 FLBuilderLayout.reloadSlider( content ); 131 132 // WP audio shortcode support 133 FLBuilderLayout.resizeAudio( content ); 134 135 if ( item.offset().top < win.scrollTop() + 100 ) { 136 $( 'html, body' ).animate({ 137 scrollTop: item.offset().top - 100 138 }, 500, 'swing'); 139 } 140 141 accordion.trigger( 'fl-builder.fl-accordion-toggle-complete' ); 142 }, 143 144 _openDefaultItem: function() 145 { 146 if(typeof this.settings.defaultItem !== 'undefined') { 147 var item = $.isNumeric(this.settings.defaultItem) ? (this.settings.defaultItem - 1) : null; 148 149 if(item !== null) { 150 $( this.nodeClass + ' .fl-accordion-button' ).eq(item).trigger('click'); 151 } 152 } 153 } 154 }; 155 156})(jQuery);(function($) { 157 158 $(function() { 159 160 new FLBuilderAccordion({ 161 id: '650be021439e4', 162 defaultItem: false }); 163 }); 164 165})(jQuery);
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.