minor changes
This commit is contained in:
10
content.js
10
content.js
@@ -15,8 +15,8 @@ const days = new Map([["M" ,"Monday"],
|
|||||||
$(document).ready( function() {
|
$(document).ready( function() {
|
||||||
loadDataBase();
|
loadDataBase();
|
||||||
//make heading
|
//make heading
|
||||||
$("table thead th:last-child").after('<th scope=col>Dist</th>');
|
$("table thead th:last-child").after('<th scope=col>Plus</th>');
|
||||||
var modhtml = '<div class=modal id=myModal><div class=modal-content><span class=close>×</span><div class=card><div class=cardcontainer><h2 class=title>Computer Fluency (C S 302)</h2><h2 class=profname>with Bruce Porter</h2><div class=topbuttons><button class=matbut id="rateMyProf" style="background: #CDDC39;"> RMP </button><button class=matbut id="eCIS"> Past Syllabi </button><button class=matbut id="saveCourse" style="background: #F44336;"> Save Course </button></div></div></div><div class=card><div class=cardcontainer><h2 class=description></h2></div></div><div class=card><div class=cardcontainer><div id=chart></div></div></div></div>'
|
var modhtml = '<div class=modal id=myModal><div class=modal-content><span class=close>×</span><div class=card><div class=cardcontainer><h2 class=title>Computer Fluency (C S 302)</h2><h2 class=profname>with Bruce Porter</h2><div class=topbuttons><button class=matbut id="rateMyProf" style="background: #CDDC39;"> RMP </button><button class=matbut id="eCIS"> Past Syllabi </button><button class=matbut id="saveCourse" style="background: #F44336;"> Save Course +</button></div></div></div><div class=card><div class=cardcontainer><h2 class=description></h2></div></div><div class=card><div class=cardcontainer><div id=chart></div></div></div></div>'
|
||||||
$("#container").prepend(modhtml);
|
$("#container").prepend(modhtml);
|
||||||
//console.log(grades);
|
//console.log(grades);
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ $(document).ready( function() {
|
|||||||
let lastname = profname.split(',')[0];
|
let lastname = profname.split(',')[0];
|
||||||
rating = "Hello";
|
rating = "Hello";
|
||||||
}
|
}
|
||||||
$(this).append('<td data-th="Dist"><input type="image" class="distButton" style="vertical-align: bottom;" width="30" height="30" src='+chrome.extension.getURL('disticon.png')+' /></td>');
|
$(this).append('<td data-th="Plus"><input type="image" class="distButton" style="vertical-align: bottom;" width="30" height="30" src='+chrome.extension.getURL('disticon.png')+' /></td>');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$(".distButton").click(function(){
|
$(".distButton").click(function(){
|
||||||
@@ -164,7 +164,7 @@ function openDialog(dep,cls,sem,professor,res){
|
|||||||
var name;
|
var name;
|
||||||
if(profname == ""){
|
if(profname == ""){
|
||||||
name = "Undecided Professor ";
|
name = "Undecided Professor ";
|
||||||
console.log(res.values);
|
//console.log(res.values);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
name = profinit+". "+profname.substring(0,1)+profname.substring(1).toLowerCase();
|
name = profinit+". "+profname.substring(0,1)+profname.substring(1).toLowerCase();
|
||||||
@@ -247,7 +247,7 @@ function openDialog(dep,cls,sem,professor,res){
|
|||||||
}]
|
}]
|
||||||
}, function(chart) { // on complete
|
}, function(chart) { // on complete
|
||||||
if(data.length == 0){
|
if(data.length == 0){
|
||||||
chart.renderer.text('Could not find data for this Professor teaching this Course', 100, 120)
|
chart.renderer.text('Could not find distribution for this Professor in this Course', 100, 120)
|
||||||
.css({
|
.css({
|
||||||
fontSize: '20px',
|
fontSize: '20px',
|
||||||
align:'center',
|
align:'center',
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
background-color: #fefefe;
|
background-color: #fefefe;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-height: 85%;
|
max-height: 85%;
|
||||||
|
min-width: 55%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
border: 1px solid #888;
|
border: 1px solid #888;
|
||||||
|
|||||||
4
todo
4
todo
@@ -3,11 +3,15 @@ TODO:
|
|||||||
DIFFERENT IF NO PROF
|
DIFFERENT IF NO PROF
|
||||||
- Saving courses
|
- Saving courses
|
||||||
- popup.html
|
- popup.html
|
||||||
|
- Online classes/no location
|
||||||
- eCIS? link or scrape
|
- eCIS? link or scrape
|
||||||
- Schedule Conflicts
|
- Schedule Conflicts
|
||||||
- waitlist/closed/open colors
|
- waitlist/closed/open colors
|
||||||
|
- maybe modal animations?
|
||||||
|
- fix close button
|
||||||
- underline Courses maybe? click to go to using the planner link thing
|
- underline Courses maybe? click to go to using the planner link thing
|
||||||
- Rate my prof link scraping?
|
- Rate my prof link scraping?
|
||||||
|
- when almost everything is blank: M 379H as example
|
||||||
CLEAN UP:
|
CLEAN UP:
|
||||||
Everything lmao
|
Everything lmao
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user