(function($){
    $(document).ready(function(){
        // Initialize color picker for fields with class .DOPW-color-field
        if ($.fn.wpColorPicker) {
            $('.DOPW-color-field').each(function(){
                var $el = $(this);
                if (!$el.data('wpColorPickerInitialized')) {
                    $el.wpColorPicker();
                    $el.data('wpColorPickerInitialized', true);
                }
            });
        }
    });
})(jQuery);
