- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
21 lines
796 B
JavaScript
Executable File
21 lines
796 B
JavaScript
Executable File
( () => {
|
|
const labels = document.getElementsByClassName( 'advads-ad-positioning-position-wrapper' ),
|
|
options = document.getElementsByClassName( 'advads-ad-positioning-position-option' ),
|
|
marginLeftInput = document.getElementById( 'advads-ad-positioning-spacing-left' ),
|
|
marginRightInput = document.getElementById( 'advads-ad-positioning-spacing-right' );
|
|
|
|
for ( const option of options ) {
|
|
option.addEventListener( 'change', event => {
|
|
for ( let label of labels ) {
|
|
label.classList.remove( 'is-checked' );
|
|
}
|
|
option.parentElement.classList.add( 'is-checked' );
|
|
|
|
const position = event.target.value.split( '_' );
|
|
|
|
marginLeftInput.readOnly = position[0] === 'center';
|
|
marginRightInput.readOnly = position[0] === 'center';
|
|
} );
|
|
}
|
|
} )();
|