- WordPress 6.9.4 (es_ES) with Kadence theme - Homepage: Hero, La Asociación, Pilares, Beneficios, Eventos, Miembros, Hazte Miembro, Contacto - Brand identity: #13294b navy, #a12932 burgundy, #c69c48 gold - Fonts: Raleway (headings) + Source Sans 3 (body) + Lato (UI) - Plugins: Kadence Blocks, Polylang, Contact Form 7 - Custom CSS with full brand styling and responsive layout - HTTPS enforced via wp-config.php proxy detection
29 lines
970 B
JavaScript
29 lines
970 B
JavaScript
/**
|
|
* @output wp-includes/js/wp-list-revisions.js
|
|
*/
|
|
|
|
(function(w) {
|
|
var init = function() {
|
|
var pr = document.getElementById('post-revisions'),
|
|
inputs = pr ? pr.getElementsByTagName('input') : [];
|
|
pr.onclick = function() {
|
|
var i, checkCount = 0, side;
|
|
for ( i = 0; i < inputs.length; i++ ) {
|
|
checkCount += inputs[i].checked ? 1 : 0;
|
|
side = inputs[i].getAttribute('name');
|
|
if ( ! inputs[i].checked &&
|
|
( 'left' == side && 1 > checkCount || 'right' == side && 1 < checkCount && ( ! inputs[i-1] || ! inputs[i-1].checked ) ) &&
|
|
! ( inputs[i+1] && inputs[i+1].checked && 'right' == inputs[i+1].getAttribute('name') ) )
|
|
inputs[i].style.visibility = 'hidden';
|
|
else if ( 'left' == side || 'right' == side )
|
|
inputs[i].style.visibility = 'visible';
|
|
}
|
|
};
|
|
pr.onclick();
|
|
};
|
|
if ( w && w.addEventListener )
|
|
w.addEventListener('load', init, false);
|
|
else if ( w && w.attachEvent )
|
|
w.attachEvent('onload', init);
|
|
})(window);
|