");
//go through all the rows in the list
@@ -68,6 +69,11 @@ $(function () {
window.open(eCISLink);
}, butdelay);
});
+ $("#textbook").click(function () {
+ setTimeout(function () {
+ window.open(textbookLink);
+ }, butdelay);
+ });
$(document).keydown(function (e) {
/*Close Modal when hit escape*/
if (e.keyCode == 27) {
@@ -218,6 +224,7 @@ function getCourseInfo(row) {
getDescription();
department = coursename.substring(0, coursename.search(/\d/) - 2);
course_nbr = coursename.substring(coursename.search(/\d/), coursename.indexOf(" ", coursename.search(/\d/)));
+ textbookLink = `https://www.universitycoop.com/adoption-search-results?sn=${semesterCode}__${department}__${course_nbr}__${uniquenum}`
}
/* Make the day-time-arr and make the text for the date-time-line*/