Difference between revisions of "MediaWiki:Gadget-calculator-patients-patientInput.js"
From WikiAnesthesia
				Chris Rishel (talk | contribs)  | 
				Chris Rishel (talk | contribs)   | 
				||
| Line 3: | Line 3: | ||
  */  |   */  | ||
( function() {  | ( function() {  | ||
     var containerId = 'calculator-patientInput';  |      var containerId = 'calculator-patientInput';  | ||
Revision as of 12:35, 7 August 2021
/**
 * @author Chris Rishel
 */
( function() {
    var containerId = 'calculator-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'
        ] ) );
        $container.appendTo( $( '#contentHeader' ) );
    }
}() );