403Webshell
Server IP : 49.212.180.16  /  Your IP : 18.217.96.88
Web Server : Apache
System : FreeBSD www2606.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
User : utannto ( 1076)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/utannto/www/hironaka.biz/wp-content/plugins/feedzy-rss-feeds/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/utannto/www/hironaka.biz/wp-content/plugins/feedzy-rss-feeds/js//feedzy-setting.js
/**
 * Plugin Name: FEEDZY RSS Feeds
 * Plugin URI: http://themeisle.com/plugins/feedzy-rss-feeds/
 * Author: Themeisle
 *
 * @package feedzy-rss-feeds
 */
/* global feedzy_setting */
/* jshint unused:false */
jQuery( function( $ ) {

  // Snackbar notice.
  var snackbarNotice = function() {
    $( '.fz-snackbar-notice' ).toggleClass( 'open', 1000 );
    if ( $( '.fz-snackbar-notice' ).hasClass( 'open' ) ) {
      setTimeout( function() {
        snackbarNotice();
      }, 3000 );
    }
  };

  // on upload button click
  $( 'body' ).on( 'click', '.feedzy-open-media', function( e ) {
    e.preventDefault();
    var button = $( this ),
    wp_media_uploader = wp.media( {
      title: feedzy_setting.l10n.media_iframe_title,
      library : {
        type : 'image'
      },
      button: {
        text: feedzy_setting.l10n.media_iframe_button
      },
      multiple: false
    } ).on( 'select', function() { // it also has "open" and "close" events
      var attachment = wp_media_uploader.state().get( 'selection' ).first().toJSON();
      var attachmentUrl = attachment.url;
      if ( attachment.sizes.thumbnail ) {
        attachmentUrl = attachment.sizes.thumbnail.url;
      }
      if ( $( '.feedzy-media-preview' ).length ) {
        $( '.feedzy-media-preview' ).find( 'img' ).attr( 'src', attachmentUrl );
      } else {
        $( '<div class="fz-form-group feedzy-media-preview"><img src="' + attachmentUrl + '"></div>' ).insertBefore( button.parent() );
      }
      button.parent().find( '.feedzy-remove-media' ).addClass( 'is-show' );
      button.parent().find( 'input:hidden' ).val( attachment.id ).trigger( 'change' );
      $( '.feedzy-open-media' ).html( feedzy_setting.l10n.action_btn_text_2 );
    } ).open();
  });

  // on remove button click
  $( 'body' ).on( 'click', '.feedzy-remove-media', function( e ) {
    e.preventDefault();
    var button = $( this );
    button.parent().prev( '.feedzy-media-preview' ).remove();
    button.removeClass( 'is-show' );
    button.parent().find( 'input:hidden' ).val( '' ).trigger( 'change' );
    $( '.feedzy-open-media' ).html( feedzy_setting.l10n.action_btn_text_1 );
  });

  // Unsaved form exit confirmation.
  var unsaved = false;
  $( ':input' ).change(function () {         
    unsaved = true;
  });
  $( '#feedzy-settings-submit, #check_wordai_api, #check_spinnerchief_api, #check_aws_api, #check_openai_api' ).on( 'click', function() {
    unsaved = false;
  } );
  window.addEventListener( 'beforeunload', function( e ) {
    if ( unsaved ) {
      e.preventDefault();
      e.returnValue = '';
    }
  });

  // Select cron execution time.
  $( document ).on( 'change', '#fz-event-execution', function() {
      $( '#fz-execution-offset' ).val( new Date().getTimezoneOffset() / 60 );
  } );
  snackbarNotice();
});

Youez - 2016 - github.com/yon3zu
LinuXploit