1(function($) { 2 "use strict"; 3 4 UNCODE.collapse = function() { 5 $(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function(e) { 6 var $this = $(this), 7 href 8 var target = $this.attr('data-target') || e.preventDefault() || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7 9 var $target = $(target) 10 var parent = $this.attr('data-parent') 11 var $parent = parent && $(parent) 12 var $title = $(this).parent() 13 var $accordion = $(e.target).closest('.uncode-accordion') 14 var $group = $this.closest('.group') 15 var $panel_group = $this.closest('.panel-group') 16 if ($parent) { 17 $parent.find('[data-toggle="collapse"][data-parent="' + parent + '"]').not($this).addClass('collapsed') 18 if ($title.hasClass('active') && ( $panel_group.attr('data-no-toggle') != true || e.type === 'click' ) ) { 19 $title.removeClass('active'); 20 $group.removeClass('active-group'); 21 } else { 22 if ( $panel_group.attr('data-no-toggle') != true ) { 23 $parent.find('.panel-title').removeClass('active') 24 $parent.find('.group').removeClass('active-group') 25 } 26 $title[!$target.hasClass('in') ? 'addClass' : ( $panel_group.attr('data-no-toggle') != true ) && 'removeClass']('active') 27 $group[!$target.hasClass('in') ? 'addClass' : ( $panel_group.attr('data-no-toggle') != true ) && 'removeClass']('active-group') 28 } 29 } 30 $this[$target.hasClass('in') ? 'addClass' : 'removeClass']('collapsed') 31 requestTimeout(function() { 32 var $accordion = $(e.target).closest('.uncode-accordion'); 33 if ( $accordion.hasClass('tabs-trigger-box-resized') ) { 34 window.dispatchEvent(new CustomEvent('boxResized')); 35 } else if ( $accordion.hasClass('tabs-trigger-window-resize') ) { 36 window.dispatchEvent(new Event('resize')); 37 $(window).trigger('uncode.re-layout'); 38 } 39 40 var $active_panel = $('.panel.active-group', $parent); 41 42 $.each($('.animate_when_almost_visible:not(.start_animation):not(.t-inside):not(.drop-image-separator), .index-scroll .animate_when_almost_visible, .tmb-media .animate_when_almost_visible:not(.start_animation), .animate_when_almost_visible.has-rotating-text, .custom-grid-container .animate_when_almost_visible:not(.start_animation)', $active_panel), function(index, val) { 43 var element = $(val), 44 delayAttr = element.attr('data-delay'); 45 if (delayAttr == undefined) delayAttr = 0; 46 requestTimeout(function() { 47 element.addClass('start_animation'); 48 }, delayAttr); 49 }); 50 51 }, 500); 52 53 $group.find('.panel-title:not(.active) > a').trigger('blur'); 54 55 }); 56 57 $('.uncode-accordion.tabs-no-lazy').each(function(){ 58 var $accordion = $(this), 59 $panes = $('.panel:not(.active-group)', $accordion); 60 $panes.each(function(){ 61 var $pane = $(this), 62 $imgs = $('img[loading="lazy"]', $pane); 63 $imgs.removeAttr('loading'); 64 $imgs.removeAttr('decoding'); 65 }); 66 }); 67}; 68 69 70})(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.