',
shared: true,
useHTML: true
@@ -208,7 +218,20 @@ function getDescription(){
var output="";
var object = $('').html(response).contents();
object.find('#details > p').each(function(){
- output+=$(this).text()+" >";
+ var sentence = $(this).text();
+ if(sentence.indexOf("Prerequisite") == 0){
+ sentence = ""+sentence+"";
+ }
+ else if(sentence.indexOf("May be") >=0 ){
+ console.log(sentence.indexOf("May be"));
+ sentence = ""+sentence+"";
+ }
+ else if(sentence.indexOf("Restricted to") == 0){
+ console.log(sentence);
+ sentence = ""+sentence+"";
+ }
+ output+=sentence+" >";
+
});
description = output;
$(".description").animate({'opacity': 0}, 400, function(){
diff --git a/todo b/todo
index 445728cb..af2e9944 100644
--- a/todo
+++ b/todo
@@ -3,15 +3,15 @@ TODO:
- location w/ map
- no Data (prof hasn't taught that class before)
- undefined prof, show all possible profs from past?
+ DIFFERENT IF NO PROF
- Saving courses
-- Bolding description (ie Prerequisite, etc)
- popup.html
-- past syllabi
-- only work on registration page, not other
- eCIS? link or scrape
- Schedule Conflicts
- waitlist/closed/open colors
+- underline Courses maybe? click to go to using the planner link thing
- Rate my prof link scraping?
+
CLEAN UP:
Everything lmao
@@ -22,7 +22,13 @@ IN-PROGRESS:
- icon
+
FIXED/DONE since 7/7/18:
- Scrolling Modal :|
- Description
+- past syllabi
+- Bolding description (ie Prerequisite, etc)
- RATE MY PROFESSOR LINK LOL
+- Works on both pages, and is more resilient if the layout changes
+
+https://maps.utexas.edu/buildings/UTM/WAG/
\ No newline at end of file