403Webshell
Server IP : 69.72.244.102  /  Your IP : 216.73.216.164
Web Server : LiteSpeed
System : Linux s3434.fra1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : konzalta ( 1271)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/konzalta/public_html/wp-content/plugins/saasland-core/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/konzalta/public_html/wp-content/plugins/saasland-core/src/admin.js
import $ from 'jquery';
import './admin.scss';

$(function(){

  let isMegaMenu =  $('#drdt_template_type').val();
  
  if(isMegaMenu != 'f0f') {
    $('.active-404-page').css('display', 'none');
  }

  if('mega_menu' == isMegaMenu || 'f0f' == isMegaMenu ) {
      $('#drdt_template_display').parents('.section-block').css('display', 'none');
      $('#drdt_template_notdisplay').parents('.section-block').css('display', 'none');
      $('#drdt_template_role').parents('.section-block').css('display', 'none');
  }
  
  // hide theme on change 
  $('#drdt_template_type').on('change', function(){
    if('mega_menu' == $(this).val() || 'f0f' == $(this).val()) {
        $('#drdt_template_display').parents('.section-block').css('display', 'none');
        $('#drdt_template_notdisplay').parents('.section-block').css('display', 'none');
        $('#drdt_template_role').parents('.section-block').css('display', 'none');
    }else{
        $('#drdt_template_display').parents('.section-block').removeAttr('style');
        $('#drdt_template_notdisplay').parents('.section-block').removeAttr('style');
        $('#drdt_template_role').parents('.section-block').removeAttr('style');
    };
    if('f0f' == $(this).val()) { 
      $('.active-404-page').css('display', 'block');
    }else{
      $('.active-404-page').css('display', 'none');
    }
  });
  // active 404 page 

  $(document).on('change', '.is-active-404', function(){
  
    let ifon = $(this).val();
     var data = {
      'action': 'my_action',
      'post_id': $(this).data('post-id'),
      'status' : ifon
    };

      jQuery.post(ajax_object.ajax_url, data, function(response) {
         $('.droit-error').html(response);
         $('.droit-error').fadeIn('slow').addClass('show');
        console.log('Got this from the server: ' + response);
      });
    
      setTimeout(close_post_box, 3000);
      function close_post_box() {
        if($('.droit-error.show').length > 0 ){
          $('.droit-error').fadeOut('slow');
        }
      }
  });

});

Youez - 2016 - github.com/yon3zu
LinuXploit