HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpprm_old/wp-content/themes/ronneby/assets/js/woo_hack_old_style.js
var add_to_cart_button;

(function($){
	"use strict";
	$(document).ready(function() {
		$('body').on('added_to_cart', function (trigger) {
			if (add_to_cart_button != undefined) {
				var $viewCartText = add_to_cart_button.siblings('.added_to_cart').text();
					add_to_cart_button.siblings('.added_to_cart').text('').append('<span class="cover"><span class="front"><i class="dfd-icon-trolley_check"></i><span>' + $viewCartText + '</span></span><span class="back"><i class="dfd-icon-trolley_check"></i><span>' + $viewCartText + '</span></span></span>');
				add_to_cart_button = null;
			}
		});
		var placeholderCommentform = function() {
			var form = $('.single-product #commentform'),
				nameContainer = form.find('.comment-form-author'),
				mailContainer = form.find('.comment-form-email'),
				textareaContainer = form.find('.comment-form-comment'),
				labelName = nameContainer.find('label'),
				labelMail = mailContainer.find('label'),
				labelTextarea = textareaContainer.find('label'),
				labelNameText = labelName.text(),
				labelMailText = labelMail.text(),
				labelTextareaText = labelTextarea.text();

			if(nameContainer.length > 0) {
				nameContainer.find('input').attr('placeholder', labelNameText);
				labelName.remove();
			}
			if(mailContainer.length > 0) {
				mailContainer.find('input').attr('placeholder', labelMailText);
				labelMail.remove();
			}
			if(textareaContainer.length > 0) {
				textareaContainer.find('textarea').attr('placeholder', labelTextareaText);
				labelTextarea.remove();
			}
		};
		placeholderCommentform();
	});
})(jQuery);