var capeone_customizer_sections = function ( $ ) {
'use strict';
$( function () {
var customize = wp.customize;
customize.preview.bind( 'clicked-customizer-footer', function( data ) {
$('html, body').animate({
scrollTop: $(data).offset().top - 100
}, 1000);
} );
customize.preview.bind( 'clicked-customizer-title_tagline', function( data ) {
$('html, body').animate({
scrollTop: $(data).offset().top - 100
}, 1000);
} );
customize.preview.bind( 'topbar_left', function( data ) {
$( '.topbar_left_selective' ).html( data );
$('.topbar_left_selective').prepend('');
} );
customize.preview.bind( 'topbar_icons', function( data ) {
$( '.topbar_icons_selective' ).html( data );
$('.topbar_icons_selective').prepend('');
} );
customize.preview.bind( 'topbar_right', function( data ) {
$( '.topbar_right_selective' ).html( data );
$('.topbar_right_selective' ).prepend('');
} );
customize.preview.bind( 'sticky_header_background_color', function( data ) {
$( 'header .capeone-fixed-header-wrap,header .capeone-fixed-header-wrap .capeone-header' ).css('background-color',data);
} );
customize.preview.bind( 'footer_icons_selective', function( data ) {
$( '.footer_icons_selective' ).html( data );
} );
} );
};
capeone_customizer_sections( jQuery );