Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix eslint errors, except no-multi-spaces #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions resources/js/customize-preview/custom-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,32 @@
* This file handles the JavaScript for the live preview of the `custom-header`
* feature in the customizer.
*
* [Mythic Theme](https://themehybrid.com/themes/mythic)
*
* @package Mythic
* @author Justin Tadlock <[email protected]>
* @copyright 2018 Justin Tadlock
* @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0-or-later
* @link https://themehybrid.com/themes/mythic
*/

// Site title.
wp.customize( 'blogname', value => {
value.bind( to => {
wp.customize( 'blogname', ( value ) => {
value.bind( ( to ) => {
document.querySelector( '.app-header__title-link' ).textContent = to;
} );
} );

// Site description.
wp.customize( 'blogdescription', value => {
value.bind( to => {
wp.customize( 'blogdescription', ( value ) => {
value.bind( ( to ) => {
document.querySelector( '.app-header__description' ).textContent = to;
} );
} );

// Header text color.
wp.customize( 'header_textcolor', value => {
value.bind( to => {
var headerItems = document.querySelectorAll(
wp.customize( 'header_textcolor', ( value ) => {
value.bind( ( to ) => {
const headerItems = document.querySelectorAll(
'.app-header__title-link, .app-header__description'
);

Expand Down