HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //opt/wpsites/datacloudnow.com/wp-content/themes/salient/nectar/redux-framework/salient-redux.js
(function($){

    "use strict";

    function SalientReduxOptions() {
        
        this.container = $('.redux-container')
        this.events();
    }

    SalientReduxOptions.prototype.events = function() {

      var that = this;

        // Changing header color scheme.
        $('#header-color-select').on('change', function() {
          var val = $(this).val();
          that.colorGrid(val);
        });

        if( $('#header-color-select').length > 0 ) {
          this.colorGrid($('#header-color-select').val());
        }
        
    };

    SalientReduxOptions.prototype.colorGrid = function(val) {

      if( val === 'custom' ) {
        $('.salient-color-grid, .salient-color-grid + table').removeClass('inactive');
      } else {
          $('.salient-color-grid, .salient-color-grid + table').addClass('inactive');
      }

    }

    $(document).ready(function(){
        new SalientReduxOptions();
    });

}(jQuery));