Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <h1 class = "hydraulicMotorConfigurator"; style = "text-align:center; margin-bottom:30px; font-family: 'roboto', sans-serif; font-size:30px" >
  
        Hydraulic Pump Quote Configurator
        </h1>
      <form action="mailto:info@tu.biz" method="post" enctype=”multipart/form-data” id = "pumpQuoteConfigurator">
        
        <h3>
          * Select one checkbox
        </h3>
        
        <input type="radio" name="pumpselect" id= pump1 value="singlePump" onclick = "singlePumpf()" checked>
        <label for="pump1"> Single Pump</label><br>
        
        <input type="radio" name="pumpselect" id= pump2 value="doublePump" onclick = "doublePumpf()">
        <label for="pump2"> Double Pump</label><br>
        
        <input type="radio" name="pumpselect" id = pump3 value="Triplepump" onclick = "triplePumpf()">
        <label for="pump3"> Triple Pump</label><br><br>
        
        

        <div id = fieldsetpump1> 
        
        <h4> <u> Information for single pump. </u></h4>
        
        <label for="gpmPump1" style= "margin-bottom:20px">* GPM (single pump): </label>
        <input type="number" id="gpmPump1" style = "bottom-margin:3px" name="gpmPump1" placeholder = "GPM required" required ><br>
        
        <label for="pressure" style= "margin-bottom:20px"> * Pressure (psi):</label>
        <input type="number" id="pressure" name="pressure" placeholder = "Max Cont. pressure" required> <br>
        
        <label for="rpm" style= "margin-bottom:20px">* RPM: </label>
        <input type="number" id="rpm" name="rpm" placeholder = "Max Cont. RPM" required ><br> <br>

        
        <h4>
          Type of pump
        </h4>
        <input type="radio" name="p1type" value="p1fixed" id = "p1fixedselect" checked>
        <label for="p1fixed"> Fixed displacement </label>
        
        <input type="radio" name="p1type" value="p1variable" id = p1variableselect>
        <label for="p1variable" onlcick = "p1Controlf ()"> Variable displacement</label><br> 
        
        </div>
        
        <div id = p1controlselect>
        <h4>
           Controls for variable displacement pump
        </h4>
        
        <input type="radio" name="p1control" value="p1pressurecomp" checked>
        <label for="p1pressurecomp"> Pressure Compensated </label>
        
        <input type="radio" name="p1control" value="p1loadsensing">
        <label for="p1loadsensing"> Load Sensing</label><br>
        
        <input type="radio" name="p1control" value="p1pressurecompwithremote">
        <label for="p1pressurecompwithremote"> Pressure Compensated with Remote Control </label>
        
        <input type="radio" name="p1control" value="p1hplimiter">
        <label for="p1hplimiter"> HP Limiter </label><br> 
        
         <input type="radio" name="p1control" value="p1other">
        <label for="p1other"> Other (please comment in notes below) </label><br> <br>
          
        </div>
     
           
           <div id = fieldsetpump2>
               <h4> <u>  Second stage pump. </u> </h4> 
        
        <label for="gpmPump2" style= "margin-bottom:20px">* GPM (second stage): </label>
        <input type="number" id="gpmPump2" style = "bottom-margin:3px" name="gpmPump2" placeholder = "GPM required" required ><br>
        
        <label for="pressure2" style= "margin-bottom:20px"> * Pressure (psi):</label>
        <input type="number" id="pressure2" name="pressure2" placeholder = "Max Cont. pressure 2" required> <br>
        
        
        <h4>
          Type for second stage pump.
        </h4>
        
        <input type="radio" name="p2type" value="p2fixed" checked>
        <label for="p2fixed"> Fixed displacement </label>
        
        <input type="radio" name="p2type" value="p2variable">
        <label for="p2variable"> Variable displacement</label><br> 

        </div>
        
        
        <div id = p2controlselect> 
             <h4>
          Controls for variable displacement second stage pump
        </h4>
        
        <input type="radio" name="p2control" value="p2pressurecomp" checked>
        <label for="p2pressurecomp"> Pressure Compensated </label>
        
        <input type="radio" name="p2control" value="p2loadsensing">
        <label for="p2loadsensing"> Load Sensing</label><br>
        
        <input type="radio" name="p2control" value="p2pressurecompwithremote">
        <label for="p2pressurecompwithremote"> Pressure Compensated with Remote Control </label>
        
        <input type="radio" name="p2control" value="p2hplimiter">
        <label for="p2hplimiter"> HP Limiter </label><br> 
        
         <input type="radio" name="p2control" value="p2other">
        <label for="p2other"> Other (please comment in notes below) </label><br> <br>
          
        </div>
           
            
            <div id = fieldsetpump3> 
        
               <h4> <u>  Third stage pump. </u> </h4> 
              
       <label for="gpmPump3" style= "margin-bottom:20px">* GPM (third stage): </label>
        <input type="number" id="gpmPump3" style = "bottom-margin:3px" name="gpmPump3" placeholder = "GPM required" required ><br>
        
        <label for="pressure3" style= "margin-bottom:20px"> * Pressure (psi):</label>
        <input type="number" id="pressure3" name="pressure3" placeholder = "Max Cont. pressure 3" required> <br>
              
              <h4>
          Type for third stage pump.
        </h4> 
        
        <input type="radio" name="p3type" value="p3fixed" checked>
        <label for="p3type"> Fixed displacement </label>
        
        <input type="radio" name="p3type" value="p3variable">
        <label for="p2variable"> Variable displacement</label><br> 
        </div>
        
        <div id = p3controlselect>
        <h4>
          Controls for variable displacement third stage pump
        </h4>
        
        <input type="radio" name="p3control" value="p3pressurecomp" checked>
        <label for="p3pressurecomp"> Pressure Compensated </label>
        
        <input type="radio" name="p3control" value="p3loadsensing">
        <label for="p3loadsensing"> Load Sensing</label><br>
        
        <input type="radio" name="p3control" value="p3pressurecompwithremote">
        <label for="p3pressurecompwithremote"> Pressure Compensated with Remote Control </label>
        
        <input type="radio" name="p3control" value="p3hplimiter">
        <label for="p3hplimiter"> HP Limiter </label><br> 
        
         <input type="radio" name="p3control" value="p3other">
        <label for="p3other"> Other (please comment in notes below) </label><br> <br>
              
        </div> 
        
        <br> <br>
        
        <label for="firstname" style= "margin-bottom:20px">* First Name: </label>
        <input type="text" id="firstname" name="firstname" placeholder = "Name" required> 
        
          <label for="lastname">* Last Name: </label>
        <input type="text" id="lastname" name="firstname" placeholder = "Last Name" required> <br>
        
          <label for="company" style= "margin-bottom:20px"> Company: </label>
        <input type="text" id="company" name="company" placeholder = "Your company"> <br>
        
          <label for="email"> * E-mail: </label>
        <input type="email" id="email" name="email" placeholder = "Your E-mail" required> <br>
        
        <label for="notes" style = "display:block" > Notes: </label>
          
       <textarea type="text" id="notes" name="notes" placeholder = "Include any additional information"
       style= "width:500px; height:300px", "display:block"> </textarea> <br>
        
        <input type="text" name="_honey" style="display:none">
        <br><br>
      <input type="submit" name= "submit" value="Submit">
        
      </form> 
              
            
!

CSS

              
                
              
            
!

JS

              
                console.clear();

function singlePumpf (){
if(document.getElementById ("pump1").checked) {
  document.getElementById ("fieldsetpump2").style.display= "none";
  document.getElementById ("fieldsetpump3").style.display = "none";
}
if(document.getElementById("p1fixedselect").checked){
document.getElementById ("p1controlselect").style.display ="none";

}
}

 function doublePumpf(){ 
   if(document.getElementById ("pump2").checked) {
  document.getElementById("fieldsetpump2").style.display= "block";
  document.getElementById("fieldsetpump3").style.display = "none";
}
}

function triplePumpf(){
  if(document.getElementById ("pump3").checked) {
    document.getElementById("fieldsetpump2").style.display= "block";
    document.getElementById("fieldsetpump3").style.display = "block";
  } 
}

function p1Controlf (){
if( document.getElmentById ("p1variableselect").checked){
document.getElementById("p1controlselect").style.display = "block";
}
}
              
            
!
999px

Console