1import layout from './layout.js'; 2 3var artist_list_slideshow = { 4 5 init: function() { 6 if (h.element_exists('#artist_list_slideshow') && !$('#artist_list_slideshow').hasClass('no-slideshow')) { 7 8 if ($('#artist_list_slideshow').hasClass('content_follow')) { 9 window.galleries.layout.content_follower('#artist_list_slideshow', '#sidebar'); 10 } 11 12 $('#artist_list_slideshow ul').cycle({ 13 fx: 'fade', 14 speed: 400, 15 timeout: 7000, 16 pause: 0, 17 before: function(cSlide, nSlide, options) { 18 $('#artist_list_slideshow_nav a').removeClass('active'); 19 var link_id = nSlide.id.replace('artist_list_slideshow_', 'artist_list_'); 20 $('#artist_list_slideshow_nav #' + link_id).addClass('active'); 21 }, 22 after: function(cSlide, nSlide, options) { 23 var link_id = nSlide.id.replace('artist_list_slideshow_', 'artist_list_'); 24 $('#artist_list_slideshow_nav #' + link_id).addClass('active'); 25 }, 26 slides: '>', 27 autoHeight: 'calc' 28 }); 29 30 var onfunction = $('#artist_list_slideshow ul').on; 31 if (onfunction) { 32 // Method for jQuery Cycle 2 ONLY 33 34 // Function fired directly before the slide changes 35 $('#artist_list_slideshow ul').on('cycle-before', function(event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag) { 36 $('#artist_list_slideshow_nav a').removeClass('active'); 37 var link_id = $(incomingSlideEl).attr('id').replace('artist_list_slideshow_', 'artist_list_'); 38 $('#artist_list_slideshow_nav #' + link_id).addClass('active'); 39 }); 40 } 41 42 if ($('#artist_list_slideshow.slideshow_pause').length > 0) { 43 $('#artist_list_slideshow ul').cycle('pause'); 44 } 45 46 $('#artist_list_slideshow_nav a').mouseover(function () { 47 if ($('#artist_list_slideshow').is(':visible')) { 48 $('#artist_list_slideshow ul').cycle('pause'); 49 $('#artist_list_slideshow ul').cycle(parseInt($(this).attr('id').split('artist_list_item')[1] - 1)); 50 return false; 51 } 52 }); 53 54 } 55 } 56} 57 58window.galleries = window.galleries || {}; 59window.galleries.artist_list_slideshow = artist_list_slideshow; 60export default artist_list_slideshow;
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.