PageSourceSearch

https://www.foodscigroup.us/js/accordionmenu.js

js foodscigroup.us collected 2026-09-28 10:43:19 UTC 616 bytes, 26 lines download raw bytes

1$(function() {
2	var Accordion = function(el, multiple) {
3		this.el = el || {};
4		this.multiple = multiple || false;
5
6		// Variables privadas
7		var links = this.el.find('.link');
8		// Evento
9		links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown)
10	}
11
12	Accordion.prototype.dropdown = function(e) {
13		var $el = e.data.el;
14			$this = $(this),
15			$next = $this.next();
16
17		$next.slideToggle();
18		$this.parent().toggleClass('open');
19
20		if (!e.data.multiple) {
21			$el.find('.submenu').not($next).slideUp().parent().removeClass('open');
22		};
23	}	
24
25	var accordion = new Accordion($('#accordion'), false);
26});

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.