HEX
Server: Apache/2.4.57 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2
System: Linux vmi267337.contaboserver.net 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
User: ohirex (1008)
PHP: 8.2.8
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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec
Upload Files
File: /home/ohirex/web/ohirex.com/public_html/wp-content/plugins/mailster/assets/js/pointer-script.js
jQuery(document).ready(function ($) {
	'use strict';

	var pointers = [],
		init;

	$.each(MailsterPointer.pointers, function (i, e) {
		pointers[i] = $.extend(MailsterPointer.pointers[i], {
			pointerClass: 'wp-pointer mailster-tour-pointer-' + i,
			// Add 'Close' button
			buttons: function (event, t) {
				var button = jQuery(
					'<a id="pointer-close" class="close" style="margin:10px 0 0 13px;float:left;cursor:pointer" >' +
						MailsterPointer.close +
						'</a>'
				);
				button.on('click.pointer', function () {
					t.element.pointer('close');
				});
				return button;
			},
			dissmisstour: function () {
				$.post(ajaxurl, {
					tour: MailsterPointer.tourname,
					action: 'dismiss-wp-pointer',
				});
			},
			close: function (a) {},
		});
	});

	init = function (id) {
		id = id || 0;

		if (!pointers[id]) return;

		$(pointers[id].id).pointer(pointers[id]).pointer('open');

		if (pointers[id].onactive) {
			var f = new Function(pointers[id].onactive);
			f.call(pointers[id]);
		}
		if (pointers[id].button2) {
			$('.mailster-tour-pointer-' + id)
				.on('click.pointer', '#pointer-primary', function () {
					if (pointers[id].onend) {
						var f = new Function(pointers[id].onend);
						f.call(pointers[id]);
					}
					$(pointers[id].id).pointer('close');
					if (pointers[id + 1]) init(id + 1);
				})
				.on('click.pointer', '#pointer-close', function () {
					// Post to admin ajax to disable pointers when user clicks "Close"
					pointers[id].dissmisstour();
				})
				.find('.wp-pointer-buttons')
				.prepend(
					'<a id="pointer-primary" class="button-primary right">' +
						pointers[id].button2 +
						'</a>'
				);
		}
	};

	MailsterPointer.type = function (el, text, speed) {
		speed = speed || 10;

		var el = $(el).val('').focus().select(),
			p = 0,
			t = text.split(''),
			i = setInterval(function () {
				el.val(text.substr(0, Math.round((text.length / 100) * p)));
				p++;
				if (p >= 100) clearInterval(i);
			}, speed);
	};

	MailsterPointer.iframe = $('#mailster_iframe').contents();
	$('#mailster_iframe').on('load', function () {
		MailsterPointer.iframe = $('#mailster_iframe').contents();
	});

	$(window).on('load', function () {
		init();
	});
});