Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
453 B
3
Indexable
Never
<script type="text/javascript">
	jQuery(function($) {
		$('.js-accordion-title').on('click', function() {

			$(this).next().slideToggle(200);

			$(this).toggleClass('open', 200);
		});

	});
</script>

<script>
	jQuery(function($) {
		var acc = document.getElementsByClassName(" accordion");
		var i;
		for (i = 0; i < acc.length; i++) {
			acc[i].addEventListener("click", function() {
				$(".panel").toggleClass("active");
			});
		}
	});
</script>