diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index fa98af4a..00000000 Binary files a/.DS_Store and /dev/null differ diff --git a/css/styles.css b/css/styles.css index e26d0cd4..7f481255 100644 --- a/css/styles.css +++ b/css/styles.css @@ -133,11 +133,23 @@ cursor: pointer; } -.topbuttons .matbut { +.topbuttons .material-button { display: inline-block; } -.matbut { +.rmp-button { + +} + +.ecis-button { + +} + +.textbook-button{ + +} + +.material-button { border: none; outline: none; cursor: pointer; @@ -149,14 +161,11 @@ font-style: bold; box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); background: #ff9800; -} - -.matbut { position: relative; overflow: hidden; } -.matbut:after { +.material-button:after { content: ""; position: absolute; top: 50%; @@ -187,7 +196,7 @@ } } -.matbut:focus:not(:active)::after { +.material-button:focus:not(:active)::after { animation: ripple 1s ease-out; } @@ -271,4 +280,4 @@ bottom: 0; opacity: 0; } -} \ No newline at end of file +} diff --git a/js/Template.js b/js/Template.js index acdac8ff..66bb66d5 100644 --- a/js/Template.js +++ b/js/Template.js @@ -1,194 +1,185 @@ -class Template { - static Main = class Main { - static modal() { - return `
- ${days}: - ${start_time} to ${end_time} - - ${location_full} - -
` - } - static modal() { - return `Prof
-+ ${days}: + ${start_time} to ${end_time} + + ${location_full} + +
` + } + static modal() { + return `Prof
+►
+${line}
+${conflict_message}>`
+ }
+
+ static line(line) {
+ let {
+ days,
+ start_time,
+ end_time,
+ location_link,
+ location_full
+ } = line;
+
+ return `${days}:
+ ${start_time} to ${end_time}
+
+ ${location_full}
+
+ ► ${line}
`
+ }
+}
+Template.Import = class {
+
+ static button_text_default = "Import to UT Reg +";
+ static waitlist_button_text_default = "Import Waitlists to UT Reg +";
+ static button_success = "Courses Saved!";
+ static import_button() {
+ return `
`;
+ }
+
+ static waitlist_import_button() {
+ return `
`;
}
-
- static Popup = class Popup {
- static list_item(i, list_tile_color, unique, department, number, profname, list_sub_color, line) {
- return `
- ${department} ${number} with ${profname} (${unique})
-
-
${conflict_message}>`
- }
-
- static line(line) {
- let {
- days,
- start_time,
- end_time,
- location_link,
- location_full
- } = line;
-
- return `${days}:
- ${start_time} to ${end_time}
-
- ${location_full}
-
-
`
- }
- }
-
-
- static Import = class Import {
-
- static button_text_default = "Import to UT Reg +";
- static waitlist_button_text_default = "Import Waitlists to UT Reg +";
- static button_success = "Courses Saved!";
- static import_button() {
- return `
`;
- }
-
- static waitlist_import_button() {
- return `
`;
- }
- }
-
}
diff --git a/js/config.js b/js/config.js
index 566bf242..448e2aa2 100644
--- a/js/config.js
+++ b/js/config.js
@@ -1,61 +1,56 @@
-class Timing {
- static fade_time = 100;
- static calendar_fade_time = 100;
- static button_delay = 75;
+class Timing{}
+Timing.fade_time = 100;
+Timing.calendar_fade_time = 100;
+Timing.button_delay = 75;
+
+
+class Colors{}
+Colors.material_colors = ['#4CAF50', '#CDDC39',
+ '#FFC107', '#2196F3', '#F57C00', '#9C27B0', '#FF5722', '#673AB7',
+ '#FF5252', '#E91E63', '#009688', '#00BCD4',
+ '#4E342E', '#424242', '#9E9E9E'
+];
+Colors.open = "#4CAF50";
+Colors.waitlisted = "#FF9800";
+Colors.closed = "#FF5722";
+Colors.no_status = "#607D8B";
+
+
+Colors.open_light = "#C8E6C9";
+Colors.waitlisted_light = "#FFE0B2";
+Colors.closed_light = "#FFCCBC";
+Colors.no_status_light = "#CFD8DC";
+
+
+Colors.highlight_conflict = "#F44336";
+Colors.highlight_default = "#333333";
+Colors.highlight_saved = "#4CAF50";
+
+Colors.badge_flash = "#FF5722";
+Colors.badge_default = "#bf5700";
+
+
+class Export{}
+Export.png_options = {
+ foreignObjectRendering: true,
+ logging: true,
+ removeContainer: true,
+ async: true,
}
+class Popup {}
+Popup.num_semesters = 2;
-class Colors {
- static material_colors = ['#4CAF50', '#CDDC39',
- '#FFC107', '#2196F3', '#F57C00', '#9C27B0', '#FF5722', '#673AB7',
- '#FF5252', '#E91E63', '#009688', '#00BCD4',
- '#4E342E', '#424242', '#9E9E9E'
- ];
- static open = "#4CAF50";
- static waitlisted = "#FF9800";
- static closed = "#FF5722";
- static no_status = "#607D8B";
+class Text{}
+Text.emptyText = function(){
+ let arr = ["Doesn't Look Like Anything To Me.", "You Can't Fail Classes You're Not In.", "Pro-Tip: Don't Take O-Chem.",
+ "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.",
+ `It's ${moment().format("h:mm")} and OU Still Sucks.`, 'TeXAs iS BaCK GuYZ', "'Academically Challenged'",
+ 'Does McCombs teach Parseltongue?', 'Lets make Daddy Fenves proud.', 'Feel bad if you say Wampus.', 'No Cruce Enfrente Del Bus.',
+ 'Midterm 1 has been Unmuted', 'Omae Wa Mou Shindeiru...', 'Bevo Bucks are the new Bitcoin', 'Subway Robber > Machete Guy'
+ ]
+ let index = Math.floor(Math.random() * arr.length);
-
- static open_light = "#C8E6C9";
- static waitlisted_light = "#FFE0B2";
- static closed_light = "#FFCCBC";
- static no_status_light = "#CFD8DC";
-
-
- static highlight_conflict = "#F44336";
- static highlight_default = "#333333";
- static highlight_saved = "#4CAF50";
-
- static badge_flash = "#FF5722";
- static badge_default = "#bf5700";
-}
-
-class Export {
- static png_options = {
- foreignObjectRendering: true,
- logging: true,
- removeContainer: true,
- async: true,
- }
-}
-
-class Popup {
- static num_semesters = 2;
-}
-
-
-class Text {
- static emptyText() {
- let arr = ["Doesn't Look Like Anything To Me.", "You Can't Fail Classes You're Not In.", "Pro-Tip: Don't Take O-Chem.",
- "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.",
- `It's ${moment().format("h:mm")} and OU Still Sucks.`, 'TeXAs iS BaCK GuYZ', "'Academically Challenged'",
- 'Does McCombs teach Parseltongue?', 'Lets make Daddy Fenves proud.', 'Feel bad if you say Wampus.', 'No Cruce Enfrente Del Bus.',
- 'Midterm 1 has been Unmuted', 'Omae Wa Mou Shindeiru...', 'Bevo Bucks are the new Bitcoin', 'Subway Robber > Machete Guy'
- ]
- let index = Math.floor(Math.random() * arr.length);
-
- return arr[index];
- }
+ return arr[index];
}
diff --git a/options.html b/options.html
index a7723a92..915f99dc 100644
--- a/options.html
+++ b/options.html
@@ -12,12 +12,12 @@
Conflict
Highlighting
-
Scroll To
Load More Courses
-