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

              
                <div class="container">
  <div class="row" id="basics">
    <div class="checkbox personal col-md-4">
      <h2>I am: </h2>
      <div class="checkbox-success">
        <input type="checkbox" name="checkbox" id="checkbox1" />
        <label for="radio1">Full/Part time faculty at VCU</label>
      </div>
      <div class="checkbox-success">
        <input type="checkbox" name="checkbox" id="checkbox2" />
        <label for="checkbox2">Computer literate & <br>have access to the Internet</label>
      </div>
    </div>
    <div class="checkbox course col-md-4">
      <h2>I'm ready to: </h2>
      <div class="checkbox-success">
        <input type="checkbox" name="radio" id="checkbox3" />
        <label for="checkbox3">Take my course online</label>
      </div>
      <div class="radio-success">
        <input type="checkbox" name="checkbox" id="checkbox4" />
        <label for="checkbox4">Participate in faculty development<br> for online teaching</label>
      </div>
    </div>
    <div class="checkbox course col-md-4">
      <h2>My course: </h2>
      <div class="checkbox-success">
        <input type="checkbox" name="checkbox" id="checkbox5" />
        <label for="checkbox5">is SCHEV approved</label>
      </div>
      <div class="checkbox-success">
        <input type="checkbox" name="checkbox" id="checkbox6" />
        <label for="checkbox6">will be taught online w/in 3 semesters</label>
      </div>
    </div>
  </div>
  <div class="row" id="step2">
    <div class="col-md-8">
      <h2>Prioritizing</h2>
      <p>Because resources are limited we have to prioritize courses that will make the most impact for VCU. We do that by looking at a variety of factors. Filling out the information below will help us better understand how bringing this course online helps
        address issues impacting student success.</p>
    </div>
    <div class="col-md-4">
      <h2>Data</h2>
      <div class="data-level" id="data-scale">scale</div>
      <div class="data-level" id="data-program">program</div>
      <div class="data-level" id="data-something">something</div>
    </div>
    <!--start block-->
    <div class="checkbox course col-md-4">
      <h3>Scale</h3>
      <div class="checkbox-success">
        <input class="scale" type="checkbox" name="checkbox" id="turn-away" />
        <label for="checkbox6">we have to turn students away</label>
      </div>
      <div class="checkbox-success">
        <input type="checkbox" name="checkbox" id="bottleneck" />
        <label for="checkbox7">this is a bottleneck course</label>
      </div>
    </div>
    <!--end-->
    <!--start block-->
    <div class="checkbox course col-md-4">
      <h3>Degree Completion</h3>
      <div class="checkbox-success">
        <input type="checkbox" name="checkbox" id="turn-away" />
        <label for="checkbox8">we have to turn students away</label>
      </div>
      <div class="checkbox-success">
        <input type="checkbox" name="checkbox" id="dfw" />
        <label for="checkbox8">we want to imporve DFW rates</label>
      </div>
    </div>
    <!--end-->
  </div>
</div>
              
            
!

CSS

              
                .checkbox-success {
  margin: 15px 0;
}

input[type=checkbox] {
  border: 3px solid red;  
  font-size: 2em;
}

input[type=checkbox]:checked + label {
  background-color: green;
  font-style: normal;
  color: #fff;
} 

#step2 {
  height: 0px;/*change back to 0*/
  overflow: hidden;
  transition: all .4s
}
              
            
!

JS

              
                let basics = document.getElementById('basics')//first block of choices
let boxes = basics.querySelectorAll('input')//get the checkboxes

boxes.forEach((box) => {
  box.addEventListener('click', () => {
    if(allChecked(boxes)){
      document.getElementById('step2').style.height = '400px'
    }
  });
});

function allChecked(boxes){
  let total = 0;
  boxes.forEach((box) => {
    if(box.checked){
      total = total+1;
    }
  });
  if (total === 6){ //this is where you could change the number needed
     return true;
  }
 
}


let stepTwo = document.getElementById('step2')
let boxesTwo = stepTwo.querySelectorAll('input')

boxesTwo.forEach((box) => {
  box.addEventListener('click', () => {
    let theBox = document.getElementById('data-'+box.classList[0])
    theBox.style.borderLeft = "blue 20px solid"
  });
});
              
            
!
999px

Console