HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/smilepac/public_html/wp-content/plugins/codevz-plus/wpbakery/assets/js/show_more_less.js
! function( $ ) {
	"use strict";

	Codevz_Plus.show_more_less = function() {

		document.querySelectorAll('.cz_sml').forEach(x => {
			if (x.dataset.init) {return;}
			x.dataset.init = '1';

			const inner = x.querySelector('.cz_sml_inner');
			const btn = x.querySelector(':scope > a');

			if (!inner || !btn) {return;}

			const defaultHeight = inner.getAttribute('data-height');

			btn.addEventListener('click', (e) => {
				e.preventDefault();

				const isOpen = x.classList.toggle('cz_sml_open');
				const firstChild = inner.firstElementChild;

				if (isOpen) {
					const fullHeight = firstChild ? firstChild.offsetHeight : inner.scrollHeight;
					inner.style.height = fullHeight + 'px';
				} else {
					inner.style.height = defaultHeight;
				}
			});
		});

	};

	Codevz_Plus.show_more_less();

}( jQuery );