<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<h1>BSIT QUICK CLASS PLANNER
<span class="tooltiptext" >
This quick planner is designed to allow students to easily and quickly determine what courses they
need for their program of study.
<br> ←←←←←←← Drag courses left if you have taken them.
<br/>Drag courses courses right to create a schedule. →→→→→→→→
<br/> To print results - click <b style="color:red">What Can I Take</b> and click the Print button.
</span></h1>
<div style="clear:left;">
<div class="greenbox">
Green courses are Draggable indicating pre-requisites are met
<span class="tooltiptext">If you have met the pre-requisite by taking
an equivalent class you should drag the associated class into the
Completed column.</span>
</div>
<div class="yellowbox">
Yellow courses mean pre-requisites are not met.
</div>
<div class="whitebox">
<input type="button" value="What Can I Take?" id="allAvailable" class="button" />
<input type="button" value="Undo" id = "undo" class="button" />
</div>
</div>
<br/>
<br/>
<div style="clear:left">
<table>
<tr>
<th>Drag Completed Courses Here</th>
<th>All Courses</th>
<th>Drag Semester Plan</th>
</tr>
<tr>
<td valign="top">
<div id="completed" class="completed">
<div class="hours">
<div id="CompletedHours"> Hours Completed:</div>
<div id="ProgramHours">Program Hours (48 required): </div>
</div>
<br/>
<div id="completedclasses" class="completedclasses">
<b>Completed Courses</b><br/>
</div>
<br/>
</div>
</td>
<td valign="top">
<div id="all">
</div>
</td>
<td valign="top">
<div id="available"> </div>
<div id="semester1" class="semester">
...
$(document).ready(function() {
// executes when HTML-Document is loaded and DOM is ready
createListAll();
setDropTargets();
//createListAvailable();
});
// taken - has the student taken the course - true/false
// PRMet - Are the pre-requisites met - true/false
// required - Is completion of course required for graduation true/false
// semester - indicates semester course is taken -1 for previous, 1-6 for planned
// program - Is the course part of the program 48 hours
// offered - Text of proposed semester offerings
// details - Details of the course - displays on hover
var courselist = [{
"Course": "MAC1105",
"Name": "College Algebra",
"PRMet": true,
"taken": false,
"semester": 0,
"hours": 3,
"required": true,
"program": false,
"offered": "Spring, Fall, Summer",
"details": "Students should take MAC1105 as a pre-requisite for admission into the program"
}, {
"Course": "MAC1114",
"Name": "Trigonometry",
"PreReq": ["MAC1105"],
"PRMet": false,
"taken": false,
"semester": 0,
"hours": 3,
"required": true,
"program": false,
"offered": "Spring, Fall, Summer",
"details": "Taken as a pre-requisite to the MAC2311 Calculus requirement"
}, {
"Course": "MAC1140",
"Name": "Pre-Calculus",
"PreReq": ["MAC1105"],
"PRMet": false,
"taken": false,
"semester": 0,
"hours": 3,
"required": true,
"program": false,
"offered": "Spring, Fall, Summer",
"details": "Taken as a pre-requisite to the MAC2311 Calculus requirement"
}, {
"Course": "MAC2311",
"Name": "Calculus",
"PreReq": ["MAC1140", "MAC1114"],
"PRMet": false,
"taken": false,
"semester": 0,
"hours": 4,
"required": true,
"program": false,
"offered": "Spring, Fall, Summer",
"details": "MAC2311 C or higher is a graduation requirement, can also sub EGN2045"
}, {
"Course": "STA2023",
"Name": "Statistics",
"PreReq": ["MAC1105"],
"PRMet": false,
"taken": false,
"semester": 0,
"hours": 3,
"required": true,
"program": false,
...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.