VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/html/libs/absol-acomp/demo/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/libs/absol-acomp/demo/checkbox.js
var _ = absol._;
var __ = (o) => _(o).addTo(document.body);


// document.body.style.backgroundColor = '#F6F4F4';
// document.body.style.backgroundColor = 'rgb(88, 80, 88)';
__(`<h2>CheckBoxInput</h2>`);

var grid = __({
    style: {
        display: 'grid',
        gridTemplateColumns: 'repeat(6, 1fr)',
        gap: '20px'
    },
});

['v0', 'check-box', 'check-circle', 'reject-circle'].forEach(variant => {
    _({
        child: { text: variant },
    }).addTo(grid);
    _({
        child: {
            tag: 'checkboxinput',
            style: { variant: variant },
            props: {
                checked: true
            }
        }
    }).addTo(grid);
    _({
        child: {
            tag: 'checkboxinput',
            style: { variant: variant },
            props: {
                checked: true,
                readOnly: true
            }
        }
    }).addTo(grid);
    _({
        child: {
            tag: 'checkboxinput',
            style: { variant: variant },
            props: {
                checked: true,
                disabled: true
            }
        }
    }).addTo(grid);
    _({
        child: {
            tag: 'checkboxinput',
            style: { variant: variant },
            props: {
                checked: false,
                disabled: false
            }
        }
    }).addTo(grid);
    _({
        child: {
            tag: 'checkboxinput',
            style: { variant: variant },
            props: {
                checked: false,
                disabled: true
            }
        }
    }).addTo(grid);

});

__(`<h2>CheckBox</h2>`);


grid = __({
    style: {
        display: 'grid',
        gridTemplateColumns: 'repeat(6, 1fr)',
        gap: '20px'
    },
});

['v0', 'check-box', 'check-circle', 'reject-circle'].forEach(variant => {
    _({
        child: { text: variant },
    }).addTo(grid);
    _({
        child: {
            tag: 'checkbox',
            style: { variant: variant, checkPosition: 'right' },
            props: {
                text: 'Option',
                checked: true
            }
        }
    }).addTo(grid);
    _({
        child: {
            tag: 'checkbox',
            style: { variant: variant },
            props: {
                text: 'Option',
                checked: true,
                readOnly: true
            }
        }
    }).addTo(grid);
    _({
        child: {
            tag: 'checkbox',
            style: { variant: variant },
            props: {
                text: 'Option',
                checked: true,
                disabled: true
            }
        }
    }).addTo(grid);
    _({
        child: {
            tag: 'checkbox',
            style: { variant: variant },
            props: {
                text: 'Option',
                checked: false,
                disabled: false
            }
        }
    }).addTo(grid);
    _({
        child: {
            tag: 'checkbox',
            style: { variant: variant },
            props: {
                text: 'Option',
                checked: false,
                disabled: true
            }
        }
    }).addTo(grid);
});

__(`<h2>Switch</h2>`);

['v0', 'large', 'regular', 'small'].forEach(size => {
    __({ tag: 'span', child: { text: ' ' + size + ' ' } });
    __({
        tag: 'switch',
        style: {
            size: size
        }
    })
});

__(`<h2>TextInput</h2>`);

['v0', 'large', 'regular', 'small'].forEach(size => {
    __({ tag: 'span', child: { text: ' ' + size + ' ' } });
    __({
        tag: 'textinput',
        style: {
            size: size
        }
    })
});

VaKeR 2022