ClassGuide

by davidjb95

HTML

<h1>
BSIT Quick Class Advisor 
</h1>
<br/>
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/>
<div id="box"></div>

CSS

input:enabled + label {
  margin: 20px auto;
  background: rgb(255, 255, 0);
}

input:disabled + label {
  opacity: 0.5;
  background: rgb(255, 0, 0);
}

input[type="checkbox"]:checked + label {
  background: rgb(153, 204, 102);
  font-weight: bold;
}

JavaScript

$(document).ready(function() {
  // executes when HTML-Document is loaded and DOM is ready
  createList();
});

var courselist = [{
  "Course": "MAC1105",
  "Name": "College Algebra",
}, {
  "Course": "MAC1114",
  "Name": "Trigonometry",
  "PreReq": ["MAC1105"]
},{
	"Course": "MAC2311C",
  "Name": "Calculus 1 and Lab",
  "PreReq": ["MAC1114"]
},{
	"Course": "STA2023",
  "Name": "Elementary Statistics",
  "PreReq": ["MAC1105"]
},{
	"Course": "PHY2048C",
  "Name": "Physics with Calculus1 and Lab",
  "PreReq": ["MAC2311C"]
},{
	"Course": "ETG3541",
  "Name": "Applied Mechanics",
  "PreReq": ["PHY2048C"]
},{
	"Course": "EET3085",
  "Name": "Electricity and Electronics",
  "PreReq": ["MAC1114"]
},{
	"Course": "EET3086",
  "Name": "Principles of Electrical Circuits",
  "PreReq":["MAC1114"]
},{
	"Course": "ETS3542C",
  "Name":"Programmable Logic Applications and Device and Lab",
  "PreReq": ["MAC1105"]
},{
	"Course": "ETS4502C",
  "Name": "Metrology and Instrumentation and Lab",
  "PreReq": ["EET3086","MAC2311C"]
},{
	"Course": "EGN3311",
  "Name": "Statics",
  "PreReq": ["PHY2048C"]
},{
	"Course": "EGN3321",
  "Name": "Dynamics",
  "PreReq": ["EGN3311"]
},{
	"Course": "ETI3116",
  "Name": "Take either Engineering Quality Assurance Or Logistics",
  "PreReq": ["STA2023"]
},{
	"Course": "EGN3046",
  "Name": "Engineering and Calculus II",
  "PreReq": ["MAC2311C"]
},{
	"Course": "EGN3613",
  "Name": "Engineering Economics Analysis",
  "PreReq": ["MAC2311C"]
},{"Name": "Take Either Materials and Processes or Construction Materials and Methods"},{
	"Course": "ETI3421",
  "Name": "Materials and Processes",
  "PreReq": ["MAC1114"],
  "Alternative": ["ETC4241"]
},{
	"Course": "ETC4241",
  "Name": "Construction Materials and Methods w/ Lab",
  "PreReq": ["ETG3541"],
  "Alternative": ["ETI3421"],
},{
	"Course": "ETI4448",
  "Name": "Project Management and Senior Design I"
},{
	"Course": "ETG4950C",
  "Name": "Project Management and Senior Design II and Lab",
  "PreReq":...