function isFocused() {
    for (let i = 0; i < contactFormElements.length; i++) {
        let elem = contactFormElements[i];
        elem.focused = false;

        elem.onfocus = function () {
            this.focused = true;
        };
        elem.onblur = function () {
            this.focused = false;
        };

        elem.hasFocus = function () {
            return this.focused;
        };
    }
}
// Sets focused state for the input areas in contact section
Sets focused state for the input areas in contact section
Sets focused state for the input areas in contact section
function isFocused() {
    for (let i = 0; i < contactFormElements.length; i++) {
        let elem = contactFormElements[i];
        elem.focused = false;
        elem.onfocus = function () {
            this.focused = true;
        };
        elem.onblur = function () {
            this.focused = false;
        };
        elem.hasFocus = function () {
            return this.focused;
        };
    }
}
function isFocused ( ) { for ( let i = 0 ; i < contactFormElements . length ; i ++ ) { let elem = contactFormElements [ i ] ; elem . focused = false ; elem . onfocus = function ( ) { this . focused = true ; } ; elem . onblur = function ( ) { this . focused = false ; } ; elem . hasFocus = function ( ) { return this . focused ; } ; } }
Sets focused state for the input areas in contact section
Sets focused state for the input areas in contact section