403Webshell
Server IP : 104.21.14.103  /  Your IP : 18.118.0.42
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/dieukhoandaily.bnnagency.com/wp-content/themes/flatsome/inc/admin/panel/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/dieukhoandaily.bnnagency.com/wp-content/themes/flatsome/inc/admin/panel/panel.js
jQuery(function ($) {
  var errorMessage = window.flatsomePanelOptions.errorMessage

  $('.flatsome-registration-form').each(function (i, el) {
    var $code = $('.flatsome-registration-form__code', el)
    var $selector = $('.flatsome-token-migrator__select', el)
    var $errors = $('.flatsome-token-migrator__errors', el)
    var $spinner = $('.spinner')
    var isFetched = false

    $selector.on('click', function () {
      if (isFetched) return

      $spinner.addClass('is-active')

      $.getJSON(window.ajaxurl, {
        action: 'flatsome_purchase_codes'
      })
        .then(function (res) {
          if (Array.isArray(res.available)) {
            $errors.empty()
            $selector.append(
              res.available.map(function (data) {
                var purchasedAt = wp.date.date('F j, Y', data.purchasedAt)
                return $('<option value="' + data.id + '">' + data.code + ' (' + purchasedAt + ')</option>')
              })
            )
            $selector.append($('<option value="">Enter another purchase code</option>'))
          } else {
            $errors.html(
              '<div class="notice notice-error notice-alt inline" style="display:block!important;margin-bottom:15px!important"><p>' + (res.message || errorMessage) + '</p></div>'
            )
          }

          isFetched = Array.isArray(res.available)
          $spinner.removeClass('is-active')
        })
        .catch(function (err) {
          console.error(err)
          $errors.html(
            '<div class="notice notice-error notice-alt inline" style="display:block!important;margin-bottom:15px!important"><p>' + (err.message || errorMessage) + '</p></div>'
          )
          isFetched = false
          $spinner.removeClass('is-active')
        })
    })

    $selector.on('change', function (event) {
      if (event.target.value) {
        $code.slideUp(250)
      } else {
        $code.slideDown(250, function () {
          $code.find('input').trigger('focus')
        })
      }
    })
  })
})

Youez - 2016 - github.com/yon3zu
LinuXploit