HEX
Server: nginx/1.26.1
System: Linux main-vm 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: root (0)
PHP: 8.2.19
Disabled: NONE
Upload Files
File: /var/www/bellecouture/wp-content/themes/yena/assets/js/customizer.js
(function($) {
    "use strict";

    function liveUpdateCSS(id, css){
        var _tmp_id = id.replace('[', '_').replace(']', '_').replace(/_*$/, '');

        var styleSelector = document.getElementById( _tmp_id );
        if(styleSelector){
            styleSelector.innerHTML = css;
        }
        else{
            var tmpDiv = document.createElement("div");
            tmpDiv.innerHTML = "<style id='"+_tmp_id+"'>" + css + "</style>";
            document.getElementsByTagName("head")[0].appendChild(tmpDiv.childNodes[0])
        }
    }
    wp.customize( 'yena_options[la_custom_css]', function( value ) {
        value.bind( function( new_value ) {
            liveUpdateCSS('yena-custom-css', new_value);
        });
    });

})(jQuery);