Spade

Mini Shell

Directory:~$ /home/lmsyaran/public_html/joomla4/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/public_html/joomla4/admin.js.tar

home/lmsyaran/public_html/media/plg_system_web357framework/js/admin.js000064400000004411151157371510022153
0ustar00/* ======================================================
 # Web357 Framework for Joomla! - v1.9.1 (free version)
 # -------------------------------------------------------
 # For Joomla! CMS (v3.x)
 # Author: Web357 (Yiannis Christodoulou)
 # Copyright (©) 2014-2022 Web357. All rights reserved.
 # License: GNU/GPLv3, http://www.gnu.org/licenses/gpl-3.0.html
 # Website: https:/www.web357.com
 # Demo: https://demo.web357.com/joomla/
 # Support: support@web357.com
 # Last modified: Wednesday 07 December 2022, 11:05:26 AM
 ========================================================= */
 
jQuery(document).ready(function($) {
    
    var web357_apikey_activate = function () 
	{
        var form = document.getElementById('style-form');

        $.ajax({
			type   : 'POST',
            url:
"index.php?option=com_ajax&plugin=web357framework&format=raw&method=web357ApikeyValidation",
            data: $(form).serialize(),
            cache: false,
			success: function (response) {

               
$('.web357_apikey_activation_html').html(response);
                
			},
			error: function(response) {

               
$('.web357_apikey_activation_html').html(response);
            },
            beforeSend: function () {

                $(".web357-loading-gif").show();
               // $("#w357-not-yet-activated-msg").hide();
                
               $('#w357-activated-successfully-msg').hide();
              
$('#w357-activated-successfully-msg-ajax').hide();

			},
			complete: function () {

                //setTimeout(function() { 
				$(".web357-loading-gif").hide();
               
$('#w357-activated-successfully-msg').css('display',
'none');
               
$('#w357-activated-successfully-msg-ajax').css('display',
'block');
				//}, 500);

			}
		});
	}

    // Do not show the button (activate api key) on typing
    $('#jform_params_apikey').on('input', function() {
        $("#apikey-container").html('<p
style="color: red; margin-top: 15px;">Please, save the plugin
settings.</p>');
        //$("#apikey-container").hide();
    });

	// Restore to Defaults
	$(document).on("click",
".web357-activate-api-key-btn", function(e){
        e.preventDefault();
        web357_apikey_activate();
    });

});