# jetpack/16.3-beta/modules/theme-tools/site-logo/js/site-logo-header-text.js

Jetpack – WP Security, Backup, Speed, &amp; Growth, version 16.3-beta. 25 lines.

- Page: https://pluginprobe.com/plugins/jetpack/16.3-beta/code/modules/theme-tools/site-logo/js/site-logo-header-text.js
- Raw: https://pluginprobe.com/plugins/jetpack/16.3-beta/raw/modules/theme-tools/site-logo/js/site-logo-header-text.js
- Modified: 2021-01-05T15:42:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetpack/16.3-beta/code/modules/theme-tools/site-logo/js/site-logo-header-text.js#L10-L20`.

```javascript
/* 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 );

```
