1; 2(function($) { 3 var object; 4 5 /** 6 * initializes the plugin 7 * @param Object the jQuery Object with the Plugin 8 * 9 * @return void 10 */ 11 function init(obj) { 12 if (obj.length > 0) { 13 object = obj; 14 } 15 } 16 17 function initFancybox(fanycboxImages) { 18 if (fanycboxImages.length) { 19 fanycboxImages.fancybox({ 20 openEffect: 'elastic', 21 closeEffect: 'elastic', 22 prevEffect: 'fade', 23 nextEffect: 'fade', 24 closeBtn: false, 25 beforeLoad: function() { 26 var caption = this.element.attr('data-caption'); 27 this.tpl.wrap = '<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer">' + '<p class="titleImage">' + (this.title ? '' + this.title : '') + '</p>' + '<div class="fancybox-inner"></div></div></div></div>' 28 }, 29 helpers: { 30 title: { 31 type: 'inside', 32 position: 'bottom' 33 }, 34 overlay: { 35 locked: false 36 }, 37 buttons: {} 38 }, 39 afterLoad: function() { 40 if(this.group.length>1){ 41 this.title = '<p class="countImage">' + 'Bild ' + (this.index + 1) + ' of ' + this.group.length + '</p>'; 42 }else{ 43 this.title = '<p class="countImage"></p>'; 44 this.inner.parent().parent().addClass('signleImgFB'); 45 } 46 47 }, 48 beforeShow: function() { 49 $(".fancybox-skin").css("backgroundColor", "transparent"); 50 }, 51 afterShow: function() { 52 // wait for the buttons helper 53 var buttons = setTimeout(function() { 54 $("#fancybox-buttons") 55 .clone(true, true) // clone with data and events 56 .attr("class", "clone") // set class "clone" (and remove class "top") 57 .appendTo(".fancybox-title") // append it to the title 58 .fadeIn(); // show it nicely 59 }, 100); //setTimeout 60 } 61 }); 62 } 63 } 64 65 66 $(document).ready(function() { 67 init($(".tx_goteasers_teasers")); 68 initFancybox($(".fancybox")); 69 70 if ($('.tx-indexedsearch').length > 0) { 71 $('a[aria-current="page"]').closest('li').addClass('current'); // Add current class to active page 72 $(document).on('click', '.tx-indexedsearch-browsebox a', function() { $('a[aria-current="page"]').closest('li').addClass('current'); }); // Update on clicks 73 74 // Add less-8 class if less than 8 li elements 75 if ($('.tx-indexedsearch-browsebox li').length < 6) { 76 $('.tx-indexedsearch-browsebox').addClass('less-6'); 77 } 78 } 79 }); 80})(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.