OwlCyberSecurity - MANAGER
Edit File: lovely_admin.js
jQuery(document).ready(function ($) { // Theme options $('#lovely-2 .et-epanel-box:first-of-type').before('<div class="note"><p><strong>Please note:</strong><br/>Any changes made on this page will update your current color settings in Divi Theme Customizer. Use this option only if you want to change theme colors globally.</p></div>'); // Customizer Headings $('#customize-control-primary_nav_border').prepend('<h3 class="c_head">Primary Menu Items</h3>'); $('#customize-control-cta_bg').prepend('<h3 class="c_head">CTA Menu Item</h3>'); $('#customize-control-sec_nav_bg_hover').prepend('<h3 class="c_head">Secondary Menu Bar Items</h3>'); $('#customize-control-lovely_metallic').prepend('<h3 class="c_head">Metallic Elements</h3>'); $('#customize-control-et_divi-custom_font').prepend('<h3 class="c_head">lovely Headings</h3>'); $('#customize-control-use_font_weight').before('<li class="customize-control"><h3 class="c_head">Global Font Weight Settings</h3></li>'); $('#customize-control-lovely_accent').prepend('<h3 class="c_head">Other Miscellaneous Elements</h3>'); $('#customize-control-blurb1_bg_hover').prepend('<h3 class="c_head">Blurbs Style #1</h3>'); $('#customize-control-blurb2_bg_hover').prepend('<h3 class="c_head">Blurbs Style #2</h3>'); $('#customize-control-blurb3_border').prepend('<h3 class="c_head">Blurbs Style #3</h3>'); $('#customize-control-timeline_bg').prepend('<h3 class="c_head">Blurbs Timeline Style</h3>'); $('#customize-control-sec_button_txt').prepend('<h3 class="c_head">Secondary Button Colors</h3>'); $('#customize-control-cta_button_txt').prepend('<h3 class="c_head">CTA Button Colors</h3>'); // Show & Hide Options $('#customize-control-lovely_solid_border').hide(); if($('#_customize-input-lovely_metallic').val() == 'solid'){ $('#customize-control-lovely_solid_border').show(); } $('#_customize-input-lovely_metallic').change(function(){ if($(this).val() == 'solid'){ $('#customize-control-lovely_solid_border').show(); } else{ $('#customize-control-lovely_solid_border').hide(); } }); var divi_preloader = $('#lovely-5 .et-epanel-box-small-1 .et-box-content div.et_pb_yes_no_button'); if ( $(divi_preloader).hasClass('et_pb_on_state')) { $('#lovely-5 div.et-epanel-box:nth-child(2)').show(); $('#lovely-5 div.et-epanel-box:nth-child(3)').show(); $('#lovely-5 div.et-epanel-box:nth-child(4)').show(); $('#lovely-5 div.et-epanel-box:nth-child(5)').show(); $('#lovely-5 div.et-epanel-box:nth-child(6)').show(); $('#lovely-5 div.et-epanel-box:nth-child(7)').show(); $('#lovely-5 div.et-epanel-box:nth-child(8)').show(); $('#lovely-5 div.et-epanel-box:nth-child(9)').show(); $('#lovely-5 div.et-epanel-box:nth-child(10)').show(); }else{ $('#lovely-5 div.et-epanel-box:nth-child(2)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(3)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(4)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(5)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(6)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(7)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(8)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(9)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(10)').hide(); } $('#lovely-5 .et-epanel-box-small-1 .et-box-content div.et_pb_yes_no_button').click(function(){ if ( $(this).hasClass('et_pb_off_state')) { $('#lovely-5 div.et-epanel-box:nth-child(2)').show(); $('#lovely-5 div.et-epanel-box:nth-child(3)').show(); $('#lovely-5 div.et-epanel-box:nth-child(4)').show(); $('#lovely-5 div.et-epanel-box:nth-child(5)').show(); $('#lovely-5 div.et-epanel-box:nth-child(6)').show(); $('#lovely-5 div.et-epanel-box:nth-child(7)').show(); $('#lovely-5 div.et-epanel-box:nth-child(8)').show(); $('#lovely-5 div.et-epanel-box:nth-child(9)').show(); $('#lovely-5 div.et-epanel-box:nth-child(10)').show(); }else{ $('#lovely-5 div.et-epanel-box:nth-child(2)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(3)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(4)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(5)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(6)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(7)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(8)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(9)').hide(); $('#lovely-5 div.et-epanel-box:nth-child(10)').hide(); } }); $('#lovely-3 .et-epanel-box-small-1 .et-box-content div.et_pb_yes_no_button').click(function(){ if ( $(this).hasClass('et_pb_off_state')) { $('#lovely-3 div.et-epanel-box:nth-child(2)').show(); }else{ $('#lovely-3 div.et-epanel-box:nth-child(2)').hide(); } }); $('#lovely-1 div.et-epanel-box:nth-child(5) .et-box-content div.et_pb_yes_no_button').click(function(){ if ( $(this).hasClass('et_pb_off_state')) { $('#lovely-1 div.et-epanel-box:nth-child(6)').show(); }else{ $('#lovely-1 div.et-epanel-box:nth-child(6)').hide(); } }); });