Commit inicial - WordPress Análisis de Precios Unitarios

- 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>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
const initCompetitorAnalysis = function() {
jQuery( '#competitor_url' ).on( 'keyup', function( event ) {
if ( 'Enter' === event.key ) {
// If the input is empty, don't do anything.
if ( '' === event.target.value ) {
return
}
event.preventDefault()
document.querySelector( '.rank-math-recheck' ).click()
document.querySelector( '#competitor_url' ).blur()
}
} ).on( 'input', function( event ) {
if ( '' === event.target.value ) {
document.querySelector( '.rank-math-recheck' ).disabled = true
} else {
document.querySelector( '.rank-math-recheck' ).disabled = false
}
} ).trigger( 'input' )
}
jQuery( function() {
if ( jQuery( '#competitor_url' ).length ) {
initCompetitorAnalysis()
}
jQuery( '#rank-math-print-results' ).on( 'click', function( event ) {
let uri = window.location.href
uri = uri.split( '#' )[ 0 ]
if ( -1 === uri.indexOf( '?' ) ) {
uri += '?'
} else {
uri += '&'
}
const classes = this.classList
classes.add( 'print-loading', 'disabled' )
const iframe = document.createElement( 'iframe' )
iframe.style.display = 'none'
iframe.setAttribute( 'src', uri + 'print=1' )
document.body.appendChild( iframe )
iframe.addEventListener( 'load', function() {
setTimeout( function() {
iframe.contentWindow.print()
classes.remove( 'print-loading', 'disabled' )
}, 1000 )
} )
event.preventDefault()
} )
} )