Assignment 11

by Ebony McCoy

HTML

<h1>
AS Fire Science Technology Quick Class Advisor 
</h1>
If you have taken a class in this list - or an equivalent to the course, then click the checkbox. Available courses will automatically be enabled.
<br/>
<center>If the class is red you either have not met the prerequisites or you took an alternative couse.</center>If the class is red you either have not met the prerequisites or you took an alternative couse.
<br/>
<div id="box"></div>

CSS

input:enabled + label {
  margin: 20px auto;
}

input:disabled + label {
  background: rgb(255,0,0);
}
input:disabled
{
  display:none;
}
#checkbox:disabled{
  opacity: 0;
}

input:checked + label {
  background: rgb(0, 231, 0);
  font-weight: bold;
}

JavaScript

$(document).ready(function()
{
  createList();
});
var count = 0;
var humanities = 0;
var mathpr = 0;
var courselist = [{
  "Course": "MAT0022",
  "Name": "Integrated Arithmetic and Algebra",
  "PreReq": [ "None"],
  "Group": "Math PreReqs"
}, {
  "Course": "MAT0028C",
  "Name": "Elementary Algebra",
  "PreReq": [ "None"],
  "Group": "Math PreReqs"
}, {
  "Course": "MAT0056L",
  "Name": "Developmental Mathematics II",
  "PreReq": [ "None"],
  "Group": "Math PreReqs"
}, {
  "Course": "MAT1033",
  "Name": "Intermediate Algebra",
  "PreReq": [ "None"],
  "Group": "Math PreReqs"
}, {
  "Course": "ENC1101",
  "Name": "Introduction to Composition",
  "PreReq": [ "None"],
  "Group": "Communications Core"
}, {
  "Course": "SPC2608",
  "Name": "Oral Communications/Research/Presentation Skills",
  "PreReq": [ "None"],
  "Group": "Communications Core"
}, {
  "Course": "MGF2106",
  "Name": "Survey in Mathematics",
  "PreReq": ["MAT0022","MAT0028C","MAT0056L"],
  "Group": "Mathematics Core - [Choose One]"
}, {
  "Course": "MAC1105",
  "Name": "College Algebra",
  "PreReq": ["MAT1033"],
  "Group": "Mathematics Core - [Choose One]"
}, {
  "Course": "DEP2004",
  "Name": "Developmental Psychology",
  "PreReq": [ "None"],
  "Group": "Social Sciences Core - [Choose One]"
}, {
  "Course": "SYG2000",
  "Name": "Intro to Sociology",
  "PreReq": [ "None"],
  "Group": "Social Sciences Core - [Choose One]"
}, {
  "Course": "PSY1012",
  "Name": "General Psychology",
  "PreReq": [ "None"],
  "Group": "Social Sciences Core - [Choose One]"
}, {
  "Course": "AML2050",
  "Name": "Modern American Literature",
  "PreReq": [ "ENC1101"],
  "Group": "Humanities Core - [Choose One]"
},{
  "Course": "AML2060",
  "Name": "Contemporary American Literature",
  "PreReq": [ "ENC1101"],
  "Group": "Humanities Core - [Choose One]"
},{
  "Course": "AML2600",
  "Name": "Into to African American Literature",
  "PreReq": [ "ENC1101"],
  "Group": "Humanities Core - [Choose One]"
},{
  "Course": "ARH1000",
 ...