Server IP : 213.176.29.180 / Your IP : 3.135.208.236 Web Server : Apache System : Linux 213.176.29.180.hostiran.name 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64 User : webtaragh ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/webtaragh/public_html/../www/whmcs/assets/js/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
/** * WHMCS core JS library reference * * @copyright Copyright (c) WHMCS Limited 2005-2017 * @license http://www.whmcs.com/license/ WHMCS Eula */ (function (window, factory) { if (typeof window.WHMCS !== 'object') { window.WHMCS = factory; } }( window, { hasModule: function (name) { return (typeof WHMCS[name] !== 'undefined' && Object.getOwnPropertyNames(WHMCS[name]).length > 0); }, loadModule: function (name, module) { if (this.hasModule(name)) { return; } WHMCS[name] = {}; if (typeof module === 'function') { (module).apply(WHMCS[name]); } else { for (var key in module) { if (module.hasOwnProperty(key)) { WHMCS[name][key] = {}; (module[key]).apply(WHMCS[name][key]); } } } } } )); jQuery(document).ready(function() { jQuery(document).on('click', '.disable-on-click', function () { jQuery(this).addClass('disabled'); if (jQuery(this).hasClass('spinner-on-click')) { var icon = $(this).find('i.fas,i.far,i.fal,i.fab'); jQuery(icon) .removeAttr('class') .addClass('fas fa-spinner fa-spin'); } }) .on('click', '#openTicketSubmit.disabled', function () { return false; }); }); function scrollToGatewayInputError() { var displayError = jQuery('.gateway-errors,.assisted-cc-input-feedback').first(), frm = displayError.closest('form'); if (!frm) { frm = jQuery('form').first(); } frm.find('button[type="submit"],input[type="submit"]') .prop('disabled', false) .removeClass('disabled') .find('i.fas,i.far,i.fal,i.fab') .removeAttr('class') .addClass('fas fa-arrow-circle-right') .find('span').toggle(); if (displayError.length) { if (elementOutOfViewPort(displayError[0])) { jQuery('html, body').animate( { scrollTop: displayError.offset().top - 50 }, 500 ); } } } function elementOutOfViewPort(element) { // Get element's bounding var bounding = element.getBoundingClientRect(); // Check if it's out of the viewport on each side var out = {}; out.top = bounding.top < 0; out.left = bounding.left < 0; out.bottom = bounding.bottom > (window.innerHeight || document.documentElement.clientHeight); out.right = bounding.right > (window.innerWidth || document.documentElement.clientWidth); out.any = out.top || out.left || out.bottom || out.right; return out.any; };