https://t.me/RX1948
Server : Apache
System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64
User : p141464 ( 418825)
PHP Version : 7.4.33.12
Disable Function : NONE
Directory :  /html/KMU-CSR-PLANER/wp-content/themes/betheme/muffin-options/fields/gradient/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /html/KMU-CSR-PLANER/wp-content/themes/betheme/muffin-options/fields/gradient/field_gradient.js
(function($) {

  /* globals jQuery */

  "use strict";

  var MfnFieldGradient = (function() {

    var group = '.gradient-form '; // all field including builder

    /**
     * Prepare pseudo value
     */

    function prepare( $el ){

      var $form = $el.closest( '.gradient-form' ),
        $hidden = $form.find('.mfn-field-value');

      var type = $form.find('.gradient-type').val();
      var color = $form.find('.gradient-color').val();
      var location = $form.find('.gradient-location').val();
      var color2 = $form.find('.gradient-color2').val();
      var location2 = $form.find('.gradient-location2').val();
      var position = $form.find('.gradient-position').val();
      var angle = $form.find('.gradient-angle').val();

      var val = '';

      if( type.length && color.length && location.length && (angle.length || position.length) && color2.length && location2.length ){

        val += type+'(';

        if( type == 'linear-gradient' ){
            val += angle+'deg, ';
        }else{
            val += 'at '+position+', ';
        }

        val += color+' ';
        val += location+'%, ';
        val += color2+' ';
        val += location2+'%)';

      }

      $hidden.val( val ).trigger('change');

    }

    /**
     * Attach events to buttons.
     */

    function bind() {

      $('.mfn-ui').on('change blur', group + '.mfn-form-input', function(e) {
        prepare( $(this) );
      });

    }

    /**
     * Runs whole script.
     */

    function init() {
      bind();
    }

    /**
     * Return
     * Method to start the closure
     */

    return {
      init: init
    };

  })();

  /**
   * $(document).ready
   * Specify a function to execute when the DOM is fully loaded.
   */

  $(function() {
    MfnFieldGradient.init();
  });

})(jQuery);

https://t.me/RX1948 - 2025