HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/www/wp-content/plugins/essential-blocks/src/blocks/social-share/src/frontend.js
document.addEventListener("DOMContentLoaded", function (event) {
	const socialShareLinks = document.querySelectorAll(
		".eb-social-share-wrapper"
	);

	if (!socialShareLinks) return;

	socialShareLinks.forEach(function (socialShareLink) {
		const links = socialShareLink.querySelectorAll("ul.eb-social-shares li a");
		for (let i = 0; i < links.length; i++) {
			links[i].addEventListener("click", function (e) {
				e.preventDefault();
				let link = this.getAttribute("href");
				window.open(
					link,
					"",
					" scrollbars=yes,menubar=no,width=500,height=400,resizable=yes,toolbar=no,location=no,status=no"
				);
			});

			links[i].addEventListener("mouseenter", function (e) {
				e.preventDefault();
				links[i].classList.add("eb-slide-out");
			});

			links[i].addEventListener("mouseleave", function (e) {
				e.preventDefault();
				links[i].classList.remove("eb-slide-out");
			});
		}
	});
});