blob: 37e0d862d128fd0e5b3eef7e3099e8c7b6a9bb26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* global site_logo_header_classes */
/**
* JS for handling the "Display Header Text" setting's realtime preview.
*/
( function ( $ ) {
var api = wp.customize,
$classes = site_logo_header_classes.classes;
api( 'site_logo_header_text', function ( value ) {
value.bind( function ( to ) {
if ( true === to ) {
$( $classes ).css( {
position: 'static',
clip: 'auto',
} );
} else {
$( $classes ).css( {
position: 'absolute',
clip: 'rect(1px 1px 1px 1px)',
} );
}
} );
} );
} )( jQuery );
|