Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/advanced.../modules/ad-posit.../assets/js
File: ad-positioning.js
( () => {
[0] Fix | Delete
const labels = document.getElementsByClassName( 'advads-ad-positioning-position-wrapper' ),
[1] Fix | Delete
options = document.getElementsByClassName( 'advads-ad-positioning-position-option' ),
[2] Fix | Delete
marginLeftInput = document.getElementById( 'advads-ad-positioning-spacing-left' ),
[3] Fix | Delete
marginRightInput = document.getElementById( 'advads-ad-positioning-spacing-right' );
[4] Fix | Delete
[5] Fix | Delete
for ( const option of options ) {
[6] Fix | Delete
option.addEventListener( 'change', event => {
[7] Fix | Delete
for ( let label of labels ) {
[8] Fix | Delete
label.classList.remove( 'is-checked' );
[9] Fix | Delete
}
[10] Fix | Delete
option.parentElement.classList.add( 'is-checked' );
[11] Fix | Delete
[12] Fix | Delete
const position = event.target.value.split( '_' );
[13] Fix | Delete
[14] Fix | Delete
marginLeftInput.readOnly = position[0] === 'center';
[15] Fix | Delete
marginRightInput.readOnly = position[0] === 'center';
[16] Fix | Delete
} );
[17] Fix | Delete
}
[18] Fix | Delete
} )();
[19] Fix | Delete
[20] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function