minor changes
This commit is contained in:
@@ -72,6 +72,11 @@ $(function () {
|
|||||||
if (!($(this).find('td').hasClass("course_header")) && $(this).has('th').length == 0) {
|
if (!($(this).find('td').hasClass("course_header")) && $(this).has('th').length == 0) {
|
||||||
//if a course row, then add the extension button
|
//if a course row, then add the extension button
|
||||||
$(this).append(`<td data-th="Plus"><input type="image" class="distButton" id="distButton" style="vertical-align: bottom; display:block;" width="20" height="20" src='${chrome.extension.getURL('images/disticon.png')}'/></td>`);
|
$(this).append(`<td data-th="Plus"><input type="image" class="distButton" id="distButton" style="vertical-align: bottom; display:block;" width="20" height="20" src='${chrome.extension.getURL('images/disticon.png')}'/></td>`);
|
||||||
|
// if ($(this).find('td[data-th="Status"]').text().includes('waitlisted')) {
|
||||||
|
// $(this).find('td').each(function () {
|
||||||
|
// $(this).css('background-color', '#E0E0E0');
|
||||||
|
// });
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -151,12 +156,19 @@ function loadNextPages(inHTML) {
|
|||||||
nextpage.find('tbody>tr').each(function () {
|
nextpage.find('tbody>tr').each(function () {
|
||||||
if (!($(this).find('td').hasClass("course_header") && $(this).has('th').length == 0)) {
|
if (!($(this).find('td').hasClass("course_header") && $(this).has('th').length == 0)) {
|
||||||
$(this).append(`<td data-th="Plus"><input type="image" class="distButton" id="distButton" style="vertical-align: bottom; display:block;" width="20" height="20" src='${chrome.extension.getURL('images/disticon.png')}'/></td>`);
|
$(this).append(`<td data-th="Plus"><input type="image" class="distButton" id="distButton" style="vertical-align: bottom; display:block;" width="20" height="20" src='${chrome.extension.getURL('images/disticon.png')}'/></td>`);
|
||||||
|
// if ($(this).find('td[data-th="Status"]').text().includes('waitlisted')) {
|
||||||
|
// $(this).find('td').each(function () {
|
||||||
|
// $(this).css('background-color', '#E0E0E0');
|
||||||
|
// });
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
current.append($(this));
|
current.append($(this));
|
||||||
});
|
});
|
||||||
loadNextPages(response);
|
loadNextPages(response);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -377,7 +389,7 @@ function getDistribution(sem) {
|
|||||||
|
|
||||||
/*Open the modal and show all the data*/
|
/*Open the modal and show all the data*/
|
||||||
function openDialog(dep, cls, sem, professor, res) {
|
function openDialog(dep, cls, sem, professor, res) {
|
||||||
$("#myModal").scrollTop(0);
|
$("#myModal").fadeIn(fadetime);
|
||||||
//initial text on the "save course button"
|
//initial text on the "save course button"
|
||||||
|
|
||||||
|
|
||||||
@@ -560,6 +572,7 @@ function setChart(data) {
|
|||||||
chart.renderer.text('Could not find data for this Instructor teaching this Course.', 100, 120)
|
chart.renderer.text('Could not find data for this Instructor teaching this Course.', 100, 120)
|
||||||
.css({
|
.css({
|
||||||
fontSize: '20px',
|
fontSize: '20px',
|
||||||
|
width: '300px',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
left: '160px'
|
left: '160px'
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ function setCourseList(){
|
|||||||
chrome.storage.sync.get('savedCourses', function (data) {
|
chrome.storage.sync.get('savedCourses', function (data) {
|
||||||
updateConflicts();
|
updateConflicts();
|
||||||
courses = data.savedCourses
|
courses = data.savedCourses
|
||||||
|
console.log(courses.length);
|
||||||
if (courses.length != 0) {
|
if (courses.length != 0) {
|
||||||
$("#empty").hide();
|
$("#empty").hide();
|
||||||
$("#courseList").show();
|
$("#courseList").show();
|
||||||
@@ -49,7 +50,8 @@ function showEmpty(){
|
|||||||
"No Work Happens On PCL 5th Floor.", "Sophomore But Freshman By Credit.", "Pain is temporary, GPA is forever.",
|
"No Work Happens On PCL 5th Floor.", "Sophomore But Freshman By Credit.", "Pain is temporary, GPA is forever.",
|
||||||
"You've Yee'd Your Last Haw.", "lol everything is already waitlisted.", "At Least You're Not At A&M.",
|
"You've Yee'd Your Last Haw.", "lol everything is already waitlisted.", "At Least You're Not At A&M.",
|
||||||
`It's ${moment().format("h:mm")} and OU Still Sucks.`, 'TeXAs iS BaCK GuYZ', "'Academically Challenged'",
|
`It's ${moment().format("h:mm")} and OU Still Sucks.`, 'TeXAs iS BaCK GuYZ', "'Academically Challenged'",
|
||||||
'Does McCombs teach Parseltongue?']
|
'Does McCombs teach Parseltongue?'
|
||||||
|
]
|
||||||
$("#courseList").hide();
|
$("#courseList").hide();
|
||||||
$("#empty").fadeIn(200);
|
$("#empty").fadeIn(200);
|
||||||
$("#main").html(emptyText[Math.floor(Math.random() * emptyText.length)]);
|
$("#main").html(emptyText[Math.floor(Math.random() * emptyText.length)]);
|
||||||
@@ -193,7 +195,9 @@ $(document).ready(function () {
|
|||||||
chrome.storage.sync.get('savedCourses', function (data) {
|
chrome.storage.sync.get('savedCourses', function (data) {
|
||||||
var exportArray = JSON.stringify(data.savedCourses, null, 4);
|
var exportArray = JSON.stringify(data.savedCourses, null, 4);
|
||||||
var exportlink = document.createElement('a');
|
var exportlink = document.createElement('a');
|
||||||
var url = window.URL.createObjectURL(new Blob([exportArray], {type: "octet/stream"}));
|
var url = window.URL.createObjectURL(new Blob([exportArray], {
|
||||||
|
type: "octet/stream"
|
||||||
|
}));
|
||||||
exportlink.setAttribute('href', url);
|
exportlink.setAttribute('href', url);
|
||||||
exportlink.setAttribute('download', 'my_courses.json');
|
exportlink.setAttribute('download', 'my_courses.json');
|
||||||
exportlink.click();
|
exportlink.click();
|
||||||
|
|||||||
2
todo
2
todo
@@ -3,7 +3,6 @@ TODO as of 12/11/18
|
|||||||
FEATURES:
|
FEATURES:
|
||||||
- work on UT Planner
|
- work on UT Planner
|
||||||
- work on multiple schedules
|
- work on multiple schedules
|
||||||
- all semester's grade distribution
|
|
||||||
- polish
|
- polish
|
||||||
- clean upcalendar export and add more options to screen
|
- clean upcalendar export and add more options to screen
|
||||||
- maybe show how many people have a class in their cart
|
- maybe show how many people have a class in their cart
|
||||||
@@ -23,6 +22,7 @@ DONE/FIXED:
|
|||||||
- Location in popup extra info
|
- Location in popup extra info
|
||||||
- Export calendar format
|
- Export calendar format
|
||||||
- import courses from class schedule screen
|
- import courses from class schedule screen
|
||||||
|
- all semester's grade distribution
|
||||||
- import into and export from UT registration plus
|
- import into and export from UT registration plus
|
||||||
- Showing the icon on the flags pages
|
- Showing the icon on the flags pages
|
||||||
- Easter egg, no course messages
|
- Easter egg, no course messages
|
||||||
|
|||||||
Reference in New Issue
Block a user