Difference between revisions of "MediaWiki:Gadget-calculator-patients-patientInput.js"

From WikiAnesthesia
Line 3: Line 3:
  */
  */
( function() {
( function() {
     var containerId = 'calculator-patientInput';
     var containerId = 'calculator-patients-patientInput';


     if( !$( '#' + containerId ).length ) {
     if( !$( '#' + containerId ).length ) {

Revision as of 20:53, 19 September 2021

/**
 * @author Chris Rishel
 */
( function() {
    var containerId = 'calculator-patients-patientInput';

    if( !$( '#' + containerId ).length ) {
        var $container = $( '<div>', {
            id: containerId
        } );

        $container.addClass( 'container border-bottom px-0 py-1' );

        $container.append( mw.calculators.createInputGroup( [
            'weight',
            'height',
            'age',
            'gender'
        ], true ) );

        $container.appendTo( $( '#contentHeader' ) );
    }
}() );