var grades;
var coursename;
var profname;
var department;
var course_nbr;
$(document).ready( function() {
loadDataBase();
//make heading
$("table thead th:nth-child(5)").after('
Rating
');
$("table thead th:nth-child(10)").after('
Dist
');
var modhtml = '
×
Computer Fluency (C S 302)
with Bruce Porter
First part of a two-part sequence in programming. Fundamental concepts of structured programming; procedures and data structures with a focus on problem solving strategies and implementation; introduction to concepts of informal specification, informal reasoning about program behavior, debugging, and ad hoc testing.Only one of the following courses may be counted: Computer Science 303E,305J, 312, 312H. Credit for Computer Science 312 may not be earned aftera student has received credit for Computer Science 314 or 314H.Prerequisite: Credit with a grade of at least C- or registration for Mathematics 408C, 408K, or 408N.
'
$("#container").prepend(modhtml);
//console.log(grades);
$('table').find('tr').each(function(){
if($(this).find('td').hasClass("course_header")){
} else if($(this).has('th').length == 0){
var rating;
var profname = $(this).find('td').eq(4).text() + "";
// var profurl = $(this).find('td a').prop('href');
if(profname == ""){
//console.log("No Professor");
rating = "No Prof :(";
} else {
let lastname = profname.split(',')[0];
rating = "Hello";
}
$(this).find('td').eq(4).after('