1+function ($) { 2 3 $(function(){ 4 5 $(document).on('click', '[ui-toggle-class]', function (e) { 6 e.preventDefault(); 7 var $this = $(e.target); 8 $this.attr('ui-toggle-class') || ($this = $this.closest('[ui-toggle-class]')); 9 10 var classes = $this.attr('ui-toggle-class').split(','), 11 targets = ($this.attr('target') && $this.attr('target').split(',')) || Array($this), 12 key = 0; 13 $.each(classes, function( index, value ) { 14 var target = targets[(targets.length && key)]; 15 $( target ).toggleClass(classes[index]); 16 key ++; 17 }); 18 $this.toggleClass('active'); 19 20 }); 21 }); 22}(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.