'
$("#container").prepend(modhtml);
-
$('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 and do something if that course has been "saved"
diff --git a/popup.html b/popup.html
index 1ee153b1..dcbf4956 100644
--- a/popup.html
+++ b/popup.html
@@ -1,16 +1,37 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
Saved Courses
+
+
+
diff --git a/popup.js b/popup.js
index e3f3884e..8c4e6155 100644
--- a/popup.js
+++ b/popup.js
@@ -1,6 +1,34 @@
- let changeColor = document.getElementById('changeColor');
+chrome.storage.sync.get('savedCourses', function(data) {
+ var courses = data.savedCourses;
+ console.log(courses);
+ for(var i = 0; i
"+courses[i].coursename+"
";
+ $("#courseList").append(listhtml);
- chrome.storage.sync.get('color', function(data) {
- changeColor.style.backgroundColor = data.color;
- changeColor.setAttribute('value', data.color);
- });
\ No newline at end of file
+ }
+});
+
+$(document).keydown(function(e) {
+ if (e.keyCode == 67) {
+ clear();
+ }
+ });
+function clear(){
+ chrome.storage.sync.set({savedCourses: []});
+ console.log("cleared");
+ $("#courseList").fadeOut(300);
+}
+function update(){
+
+}
\ No newline at end of file
diff --git a/styles.css b/styles.css
index e6e7b12b..b164a3bb 100644
--- a/styles.css
+++ b/styles.css
@@ -49,7 +49,7 @@
.profname {
margin-left: 5px;
- padding-bottom: 0px;
+ padding-bottom: 5px;
font-size: medium;
margin-top: 10px;
}
@@ -69,14 +69,14 @@
.card {
/* Add shadows to create the "card" effect */
- box-shadow: 0 4px 4px 0 rgba(0,0,0,0.2);
transition: 0.3s;
margin-bottom: 10px;
+ box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12)
}
/* On mouse-over, add a deeper shadow */
.card:hover {
- box-shadow: 0 8px 16px 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)
}
/* Add some padding inside the card container */
diff --git a/todo b/todo
index 57d71d45..5ffbc8c0 100644
--- a/todo
+++ b/todo
@@ -1,14 +1,14 @@
TODO:
- undefined prof, show all possible profs from past?
DIFFERENT IF NO PROF
-- popup.html
- Online classes/no location
- Schedule Conflicts
-- fix close button
- save image of modal?
- Degree plan?
- underline Courses maybe? click to go to using the planner link thing
- when almost everything is blank: M 379H as example
+- schedule generator
+- FIX POP UP CARD NOT FILLING FULL LENGTH
CLEAN UP:
Everything lmao
@@ -35,3 +35,4 @@ FIXED/DONE since 7/7/18:
- maybe modal animations?
- Saving courses
- waitlist/closed/open colors
+- popup.html