fixed login/out bug
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* The Close Button */
|
/* The Close Button */
|
||||||
|
|
||||||
.close {
|
.close {
|
||||||
color: #aaaaaa;
|
color: #aaaaaa;
|
||||||
float: right;
|
float: right;
|
||||||
@@ -37,6 +38,7 @@
|
|||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
margin: 5px 0px 5px 0px;
|
margin: 5px 0px 5px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
@@ -58,7 +60,7 @@
|
|||||||
|
|
||||||
#chart {
|
#chart {
|
||||||
min-width: auto;
|
min-width: auto;
|
||||||
max-width: 800px;
|
max-width: 100%;
|
||||||
height: 250px;
|
height: 250px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
@@ -67,13 +69,11 @@
|
|||||||
.card {
|
.card {
|
||||||
transition: 0.3s;
|
transition: 0.3s;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16),
|
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
|
||||||
0 2px 10px 0 rgba(0, 0, 0, 0.12);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card:hover {
|
.card:hover {
|
||||||
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2),
|
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19);
|
||||||
0 4px 20px 0 rgba(0, 0, 0, 0.19);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.cardcontainer {
|
.cardcontainer {
|
||||||
@@ -164,7 +164,6 @@
|
|||||||
|
|
||||||
#snackbar.show {
|
#snackbar.show {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
|
|
||||||
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
||||||
animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ var datetimearr = [];
|
|||||||
var chart;
|
var chart;
|
||||||
var description;
|
var description;
|
||||||
var status;
|
var status;
|
||||||
|
var semesterCode;
|
||||||
|
var isIndividual = false;
|
||||||
|
|
||||||
const days = new Map([
|
const days = new Map([
|
||||||
["M", "Monday"],
|
["M", "Monday"],
|
||||||
@@ -174,6 +176,7 @@ function Course(coursename, unique, profname, datetimearr, status, link) {
|
|||||||
|
|
||||||
/*For a row, get all the course information and add the date-time-lines*/
|
/*For a row, get all the course information and add the date-time-lines*/
|
||||||
function getCourseInfo(row) {
|
function getCourseInfo(row) {
|
||||||
|
semesterCode = new URL(window.location.href).pathname.split('/')[4];
|
||||||
$(".dateTimePlace").remove();
|
$(".dateTimePlace").remove();
|
||||||
$('table').find('tr').each(function () {
|
$('table').find('tr').each(function () {
|
||||||
if ($(this).find('td').hasClass("course_header")) {
|
if ($(this).find('td').hasClass("course_header")) {
|
||||||
@@ -199,11 +202,13 @@ function getCourseInfo(row) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
/*Handle if on the individual course page*/
|
/*Handle if on the individual course page, ie if the textbook button exists*/
|
||||||
if (typeof coursename == 'undefined') {
|
console.log($("#textbook_button").length);
|
||||||
|
if ($("#textbook_button").length) {
|
||||||
coursename = $("#details h2").text();
|
coursename = $("#details h2").text();
|
||||||
profinit = $("table").find("td[data-th='Instructor']").text().split(", ")[1].substring(0, 1);
|
profinit = $("table").find("td[data-th='Instructor']").text().split(", ")[1].substring(0, 1);
|
||||||
profurl = document.URL;
|
profurl = document.URL;
|
||||||
|
console.log(profurl);
|
||||||
}
|
}
|
||||||
getDescription();
|
getDescription();
|
||||||
department = coursename.substring(0, coursename.search(/\d/) - 2);
|
department = coursename.substring(0, coursename.search(/\d/) - 2);
|
||||||
@@ -471,6 +476,8 @@ function prettifyName() {
|
|||||||
|
|
||||||
/*Get the course description from the profurl and highlight the important elements, as well as set the eCIS, and rmp links.*/
|
/*Get the course description from the profurl and highlight the important elements, as well as set the eCIS, and rmp links.*/
|
||||||
function getDescription() {
|
function getDescription() {
|
||||||
|
console.log(window.location.href);
|
||||||
|
console.log(profurl);
|
||||||
chrome.runtime.sendMessage({
|
chrome.runtime.sendMessage({
|
||||||
method: "GET",
|
method: "GET",
|
||||||
action: "xhttp",
|
action: "xhttp",
|
||||||
@@ -524,9 +531,7 @@ function getDescription() {
|
|||||||
eCISLink = "http://utdirect.utexas.edu/ctl/ecis/results/index.WBX?";
|
eCISLink = "http://utdirect.utexas.edu/ctl/ecis/results/index.WBX?";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Load the database*/
|
/* Load the database*/
|
||||||
function loadDataBase() {
|
function loadDataBase() {
|
||||||
sql = window.SQL;
|
sql = window.SQL;
|
||||||
|
|||||||
13
todo
Normal file
13
todo
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
TODO as of 8/24/18
|
||||||
|
|
||||||
|
FEATURES:
|
||||||
|
- Textbook button (amber)
|
||||||
|
- Calendar popup
|
||||||
|
- something to fill the space to the rght of the main popup window
|
||||||
|
|
||||||
|
BUGS TO FIX:
|
||||||
|
- RMP not working on individual course pages
|
||||||
|
|
||||||
|
DONE/FIXED:
|
||||||
|
- unneeded Logout message on individual course pages
|
||||||
|
|
||||||
Reference in New Issue
Block a user