diff --git a/css/styles.css b/css/styles.css index d8126f12..b0755001 100644 --- a/css/styles.css +++ b/css/styles.css @@ -161,6 +161,9 @@ left: 50%; bottom: 30px; } +.descriptionli{ + padding: 0px 5px 5px 5px; +} #snackbar.show { visibility: visible; diff --git a/js/calendar.js b/js/calendar.js index a491a129..87d529eb 100644 --- a/js/calendar.js +++ b/js/calendar.js @@ -94,7 +94,7 @@ $(function () { if (building == "") { building = "Undecided Location"; } - output += `

${dayarr[i]}: ${timearr[i].split(",")[0]} to ${timearr[i].split(",")[1]}${place}

`; + output += `

${dayarr[i]}: ${timearr[i].split(",")[0]} to ${timearr[i].split(",")[1]}${place}

`; } return output; } diff --git a/js/content.js b/js/content.js index f3dc1c9f..b104539f 100644 --- a/js/content.js +++ b/js/content.js @@ -37,7 +37,7 @@ $(function () { $('table').find('tr').each(function () { if (!($(this).find('td').hasClass("course_header")) && $(this).has('th').length == 0) { //if a course row, then add the extension button - $(this).append(''); + $(this).append(``); } }); //update the conflicts @@ -55,7 +55,7 @@ $(function () { $("#Syllabi").click(function () { setTimeout(function () { - window.open('https://utdirect.utexas.edu/apps/student/coursedocs/nlogon/?semester=&department=' + department + '&course_number=' + course_nbr + '&course_title=&unique=&instructor_first=&instructor_last=' + profname + '&course_type=In+Residence&search=Search'); + window.open(`https://utdirect.utexas.edu/apps/student/coursedocs/nlogon/?semester=&department=${department}&course_number=${course_nbr}&course_title=&unique=&instructor_first=&instructor_last=${profname}&course_type=In+Residence&search=Search`); }, butdelay); }); $("#rateMyProf").click(function () { @@ -203,7 +203,7 @@ function getCourseInfo(row) { var date = $(this).find('td[data-th="Days"]>span:eq(' + i + ')').text(); var time = $(this).find('td[data-th="Hour"]>span:eq(' + i + ')').text(); var place = $(this).find('td[data-th="Room"]>span:eq(' + i + ')').text(); - $("#topbuttons").before('

' + makeLine(date, time, place) + ''); + $("#topbuttons").before(`

${makeLine(date, time, place)}`); } return false; } @@ -258,7 +258,7 @@ function makeLine(date, time, place) { if (building == "") { building = "Undecided Location"; } - return output + " at " + time.replace(/\./g, '').replace(/\-/g, ' to ') + " in " + "" + building + ""; + return `${output} at ${time.replace(/\./g, '').replace(/\-/g, ' to ')} in ${building}`; } /*Convert time to 24hour format*/ @@ -495,13 +495,13 @@ function getDescription() { object.find('#details > p').each(function () { var sentence = $(this).text(); if (sentence.indexOf("Prerequisite") == 0) { - sentence = "
  • " + sentence + "
  • "; + sentence = "
  • " + sentence + "
  • "; } else if (sentence.indexOf("May be") >= 0) { - sentence = "
  • " + sentence + "
  • "; + sentence = "
  • " + sentence + "
  • "; } else if (sentence.indexOf("Restricted to") == 0) { - sentence = "
  • " + sentence + "
  • "; + sentence = "
  • " + sentence + "
  • "; } else { - sentence = "
  • " + sentence + "
  • "; + sentence = "
  • " + sentence + "
  • "; } output += sentence; @@ -517,11 +517,11 @@ function getDescription() { var first = object.find('td[data-th="Instructor"]').text(); first = first.substring(first.indexOf(", "), first.indexOf(" ", first.indexOf(", ") + 2)); first = first.substring(2); - rmpLink = "http://www.ratemyprofessors.com/search.jsp?queryBy=teacherName&schoolName=university+of+texas+at+austin&queryoption=HEADER&query=" + first + " " + profname + ";&facetSearch=true"; + rmpLink = `http://www.ratemyprofessors.com/search.jsp?queryBy=teacherName&schoolName=university+of+texas+at+austin&queryoption=HEADER&query=${first} ${profname};&facetSearch=true`; if (profname == "") { - eCISLink = "http://utdirect.utexas.edu/ctl/ecis/results/index.WBX?s_in_action_sw=S&s_in_search_type_sw=C&s_in_max_nbr_return=10&s_in_search_course_dept=" + department + "&s_in_search_course_num=" + course_nbr; + eCISLink = `http://utdirect.utexas.edu/ctl/ecis/results/index.WBX?s_in_action_sw=S&s_in_search_type_sw=C&s_in_max_nbr_return=10&s_in_search_course_dept=${department}&s_in_search_course_num=${course_nbr}`; } else { - eCISLink = "http://utdirect.utexas.edu/ctl/ecis/results/index.WBX?&s_in_action_sw=S&s_in_search_type_sw=N&s_in_search_name=" + profname.substring(0, 1) + profname.substring(1).toLowerCase() + "%2C%20" + first.substring(0, 1) + first.substring(1).toLowerCase(); + eCISLink = `http://utdirect.utexas.edu/ctl/ecis/results/index.WBX?&s_in_action_sw=S&s_in_search_type_sw=N&s_in_search_name=${profname.substring(0, 1) + profname.substring(1).toLowerCase()}%2C%20${first.substring(0, 1) + first.substring(1).toLowerCase()}`; } } else { description = "

    You have been logged out. Please refresh the page and log back in using your UT EID and password.

    "