Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                !!! 5
%head
  %link{rel: "stylesheet", type:"text/css", href:"https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"}
  %link{rel: "stylesheet", type:"text/css", href:"//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.2.0/css/datepicker.min.css"}
  %link{rel: "stylesheet", type:"text/css", href:"//cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/1.8/css/bootstrap-switch.css"}  
  %link{rel: "stylesheet", type:"text/css", href:"https://davidstutz.github.io/bootstrap-multiselect/css/bootstrap-multiselect.css"}
  
  %script{type: "text/javascript",src: "//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"}
  %script{type: "text/javascript",src: "//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.0/js/bootstrap.min.js"}
  %script{type: "text/javascript",src: "//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.2.0/js/bootstrap-datepicker.min.js"}
  %script{type: "text/javascript",src: "//cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/1.8/js/bootstrap-switch.min.js"}
  %script{type: "text/javascript",src: "https://davidstutz.github.io/bootstrap-multiselect/js/bootstrap-multiselect.js"}
%body  
  .container  
    .panel.panel-primary.dialog-panel
      .panel-heading 
        %h5 Almaguin Campground - Reservation
      .panel-body
        %form.form-horizontal{role: "form"}
          .form-group
            %label.control-label.col-md-2.col-md-offset-2{for: "id_accomodation"} Accomodation
            .col-md-2
              %select.form-control{id: "id_accomodation"}
                %option RV
                %option Tent
                %option Cabin/Lodging
          .form-group
            %label.control-label.col-md-2.col-md-offset-2{for: "id_title"} Name
            .col-md-8
              .col-md-2
                .form-group.internal
                  %select.form-control{id: "id_title"}
                    %option Mr
                    %option Ms                    
                    %option Mrs
                    %option Miss
                    %option Dr
              .col-md-3.indent-small
                .form-group.internal
                  %input.form-control{id: "id_first_name", type: "text", placeholder: "First Name"}
              .col-md-3.indent-small
                .form-group.internal
                  %input.form-control{id: "id_last_name", type: "text", placeholder: "Last Name"}
          .form-group    
            %label.control-label.col-md-2.col-md-offset-2{for: "id_adults"} Guests        
            .col-md-8
              .col-md-2
                .form-group.internal
                  %input.form-control.col-md-8{id: "id_adults", type: "number", placeholder: "18+ years"}
              .col-md-3.indent-small
                .form-group.internal
                  %input.form-control{id: "id_children", type: "number", placeholder: "2-17 years"}          
              .col-md-3.indent-small
                .form-group.internal
                  %input.form-control{id: "id_children_free", type: "number", placeholder: "< 2 years"}
          .form-group    
            %label.control-label.col-md-2.col-md-offset-2{for: "id_email"} Contact
            .col-md-6
              .form-group
                .col-md-11
                  %input.form-control{id: "id_email", type: "text", placeholder: "E-mail"}
              .form-group.internal
                .col-md-11
                  %input.form-control{id: "id_phone", type: "text", placeholder: "Phone: (xxx) - xxx xxxx"}
          .form-group 
            %label.control-label.col-md-2.col-md-offset-2{for: "id_checkin"} Checkin
            .col-md-8
              .col-md-3
                .form-group.internal.input-group
                  %input.form-control.datepicker{id: "id_checkin"}  
                  %span.input-group-addon
                    %i.glyphicon.glyphicon-calendar
              %label.control-label.col-md-2{for: "id_checkout"} Checkout
              .col-md-3
                .form-group.internal.input-group
                  %input.form-control.datepicker{id: "id_checkout"}  
                  %span.input-group-addon
                    %i.glyphicon.glyphicon-calendar
          .form-group          
            %label.control-label.col-md-2.col-md-offset-2{for: "id_equipment"} Equipment type
            .col-md-8
              .col-md-3          
                .form-group.internal
                  %select.form-control{id: "id_equipment"}
                    %option Travel trailer
                    %option Fifth wheel
                    %option RV/Motorhome
                    %option Tent trailer
                    %option Pickup camper
                    %option Camper van
              .col-md-9
                .form-group.internal
                  %label.control-label.col-md-3{for:"id_slide"} Slide-outs
                  .make-switch{id:"id_slide_switch","data-on-label" => "YES", "data-off-label"=> "NO"}
                    %input{type:"checkbox", value:"chk_hydro", id: "id_slide"}
          .form-group    
            %label.control-label.col-md-2.col-md-offset-2{for: "id_service"} Required Service
            .col-md-8
              %select.multiselect{multiple:"multiple",id:"id_service"}
                %option{value:"hydro"} Hydro
                %option{value:"water"} Water
                %option{value:"sewer"} Sewer              
          .form-group    
            %label.control-label.col-md-2.col-md-offset-2{for: "id_pets"} Pets
            .col-md-8
              .make-switch{id:"id_pets_switch", "data-on-label" => "YES", "data-off-label"=> "NO"}
                %input{type:"checkbox", value:"chk_hydro", id: "id_pets"}
          .form-group    
            %label.control-label.col-md-2.col-md-offset-2{for: "id_comments"} Comments
            .col-md-6
              %textarea.form-control{id: "id_comments", rows: "3", placeholder: "Additional comments"}      
          .form-group         
            .col-md-offset-4.col-md-3
              %button.btn-lg.btn-primary{type: "submit"} Request Reservation
            .col-md-3
              %button.btn-lg.btn-danger{type: "submit", style: "float:right"} Cancel
              
            
!

CSS

              
                .indent-small {
  margin-left: 5px;
}
.form-group.internal {
  margin-bottom: 0;
}

.dialog-panel {
  margin: 10px;
}

.datepicker-dropdown {
  z-index: 200 !important;
}

.panel-body {  
  
  background: #e5e5e5; /* Old browsers */
  background: -moz-radial-gradient(center, ellipse cover,  #e5e5e5 0%, #ffffff 100%); /* FF3.6+ */
  background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#e5e5e5), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
  background: -webkit-radial-gradient(center, ellipse cover,  #e5e5e5 0%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
  background: -o-radial-gradient(center, ellipse cover,  #e5e5e5 0%,#ffffff 100%); /* Opera 12+ */
  background: -ms-radial-gradient(center, ellipse cover,  #e5e5e5 0%,#ffffff 100%); /* IE10+ */
  background: radial-gradient(ellipse at center,  #e5e5e5 0%,#ffffff 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5e5e5', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */

  font: 600 15px "Open Sans",Arial,sans-serif;
}

label.control-label {
  font-weight: 600;
  color: #777;  
}
              
            
!

JS

              
                $(document).ready(function() {  
  $('.multiselect').multiselect();
  $('.datepicker').datepicker();  
});


              
            
!
999px

Console