HEX
Server: LiteSpeed
System: Linux s3.sitechai.com 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User: workzeni (2217)
PHP: 8.1.32
Disabled: mail, show_source, system, shell_exec, passthru, exec, eval, shell
Upload Files
File: /home/workzeni/ecom.workzenix.com/wp-content/themes/woostify/assets/js/elementor-preview.js
/**
 * Elementor preview
 *
 * @package Woostify Pro
 */

'use strict';

// Elementor not print a 'product' class for product item. We add this. Please fix it.
var pleaseFixIt = function() {
	var products = document.querySelectorAll( '.products > li' );
	if ( ! products.length ) {
		return;
	}

	products.forEach(
		function( el ) {
			el.classList.add( 'product' );
		}
	);
}

// DOM loaded.
document.addEventListener(
	'DOMContentLoaded',
	function() {
		// Only for Preview mode.
		if ( 'function' === typeof( onElementorLoaded ) ) {
			onElementorLoaded(
				function() {
					window.elementorFrontend.hooks.addAction(
						'frontend/element_ready/global',
						function() {
							pleaseFixIt();
						}
					);
				}
			);
		}
	}
);