PageSourceSearch

https://09674.us/js/ui-toggle.js

js 09674.us collected 2026-10-09 04:37:18 UTC 630 bytes, 22 lines download raw bytes

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.