403Webshell
Server IP : 89.108.64.180  /  Your IP : 216.73.217.92
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : www-root ( 1010)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/testsite1441.ru/wp-content/plugins/wp-hotelier/assets/js/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/testsite1441.ru/wp-content/plugins/wp-hotelier/assets/js/admin/admin.js
jQuery(function ($) {
	'use strict';
	/* global jQuery, AdminParameters */

	var HTL_Admin = {
		init: function () {
			this.toggle_advanced();
			this.see_pro_features();
		},

		toggle_advanced: function () {
			$(document).on('click', '.htl-ui-text-icon--show-advanced', function () {
				var _this = $(this);
				var show_label = _this.attr('data-show-text');
				var hide_label = _this.attr('data-hide-text');
				var wrapper = _this.parent().find('.htl-ui-advanced-settings-wrapper');

				if (_this.hasClass('open')) {
					_this.text(show_label).removeClass('open');
				} else {
					_this.text(hide_label).addClass('open');
				}

				wrapper.toggleClass('open');
			});
		},

		see_pro_features: function () {
			$('.see-pro-version-features').on('click', function (e) {
				e.preventDefault();

				$('html, body').animate({
					scrollTop: $('.hotelier-settings-pro-features').offset().top
				}, 1000);
			});
		}
	};

	var HTL_Modals = {
		init: function () {
			$('.htl-ui-button--open-modal').on('click', function () {
				var _this = $(this);
				var modal = $('#' + _this.attr('data-open-modal'));
				var obfuscator = document.createElement('div');

				obfuscator.id = 'htl-ui-modal-obfuscator';
				document.documentElement.appendChild(obfuscator);

				obfuscator.addEventListener('click', HTL_Modals.close_modal);
				obfuscator = $('#htl-ui-modal-obfuscator');

				obfuscator.show();
				modal.show();

				modal.find('.htl-ui-modal__cancel').on('click', HTL_Modals.close_modal);
			});
		},

		close_modal: function () {
			$('.htl-ui-modal').hide();
			$('#htl-ui-modal-obfuscator').remove();
		}
	};

	var HTL_Fields_Errors = {
		init: function () {
			this.show_errors();
		},

		show_errors: function () {
			$(document).on('keyup change', '.htl-ui-input--price', function () {
				var _this = $(this);

				// Decimals
				var value = _this.val();
				var parent = _this.parent();
				var regex = new RegExp('[^\-0-9\%\\' + AdminParameters.decimal_point + ']+', 'gi');
				var newvalue = value.replace(regex, '');

				if (value !== newvalue) {
					_this.val(newvalue);
					parent.css('position', 'relative').append('<div class="htl-ui-tooltip htl-ui-tooltip--error htl-ui-tooltip--decimal-error"></div>');
					parent.find('.htl-ui-tooltip--decimal-error').text(AdminParameters.decimal_error);
				} else {
					parent.find('.htl-ui-tooltip--decimal-error').remove();
				}
			});
		}
	};

	$(document).ready(function () {
		HTL_Admin.init();
		HTL_Modals.init();
		HTL_Fields_Errors.init();
	});
});

Youez - 2016 - github.com/yon3zu
LinuXploit