Uname:
Linux webm012.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software:
Apache
PHP version:
8.0.30 [ PHP INFO ] PHP os:
Linux
Server Ip:
145.239.37.162
Your Ip:
216.73.216.190
User:
dreampi (1009562) | Group:
users (100)
Safe Mode:
OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl
/**
* footer.js
*
* Adds a class required to reveal the search in the handheld footer bar.
* Also hides the handheld footer bar when an input is focused.
*/
( function() {
"use strict";
// Wait for DOM to be ready.
document.addEventListener( 'DOMContentLoaded', function() {
if ( 0 === document.getElementsByClassName( 'motiox-handheld-footer-bar' ).length ) {
return;
}
// Add class to footer search when clicked.
[].forEach.call( document.querySelectorAll( '.motiox-handheld-footer-bar .search > a' ), function( anchor ) {
anchor.addEventListener( 'click', function( event ) {
anchor.parentElement.classList.toggle( 'active' );
event.preventDefault();
} );
} );
// Add focus class to body when an input field is focused.
// This is used to hide the Handheld Footer Bar when an input is focused.
var footer_bar = document.getElementsByClassName( 'motiox-handheld-footer-bar' );
var forms = document.forms;
var isFocused = function( focused ) {
return function( event ) {
if ( !! focused && event.target.tabIndex !== -1 ) {
document.body.classList.add( 'sf-input-focused' );
} else {
document.body.classList.remove( 'sf-input-focused' );
}
};
};
if ( footer_bar.length && forms.length ) {
for ( var i = 0; i < forms.length; i++ ) {
if ( footer_bar[0].contains( forms[ i ] ) ) {
continue;
}
forms[ i ].addEventListener( 'focus', isFocused( true ), true );
forms[ i ].addEventListener( 'blur', isFocused( false ), true );
}
}
} );
} )();