From 1c0b7c9bf7900e222da90138148bad8b3cb7ae99 Mon Sep 17 00:00:00 2001 From: sghsri Date: Fri, 31 Aug 2018 19:48:25 -0500 Subject: [PATCH] fixed dropdown arrow in popup --- js/calendar.js | 4 ++-- js/import.js | 13 +++++++++++++ js/popup.js | 8 ++++++-- manifest.json | 8 +++++++- todo | 6 +++--- 5 files changed, 31 insertions(+), 8 deletions(-) create mode 100644 js/import.js diff --git a/js/calendar.js b/js/calendar.js index fdfbabfa..f3f6184a 100644 --- a/js/calendar.js +++ b/js/calendar.js @@ -34,7 +34,7 @@ $(function () { defaultView: "agendaWeek", // Only show week view header: false, // Hide buttons/titles minTime: "08:00:00", // Start time - maxTime: "21:00:00", // End time + maxTime: "21:00:01", // End time columnHeaderFormat: "ddd", // Only show day of the week names displayEventTime: true, // Display event time allDaySlot: false, @@ -72,7 +72,7 @@ $(function () { $("#register").text("Join Waitlist").css("background-color", "#FF9800"); } else { - $("#register").text("register").css("background-color", "#4CAF50"); + $("#register").text("Register").css("background-color", "#4CAF50"); } } }); diff --git a/js/import.js b/js/import.js new file mode 100644 index 00000000..b5c1fa9e --- /dev/null +++ b/js/import.js @@ -0,0 +1,13 @@ +$(function () { + //template https://utdirect.utexas.edu/apps/registrar/course_schedule/20189/51475/ + var sem = $('[name="s_ccyys"]').val(); + $(".tbg").after(""; + var listhtml = "
  • " + department + " " + course_nbr + "" + " with " + profname + " (" + courses[i].unique + ")" + "

  • "; $("#courseList").append(listhtml); } }); @@ -135,8 +135,12 @@ $(document).ready(function () { /* Show the times popout and more info options*/ if ($(this).find("#moreInfo").is(":hidden")) { $(this).find("#moreInfo").fadeIn(200); + $(this).find('#arrow').css('transform','rotate(90deg)'); + } else { $(this).find("#moreInfo").fadeOut(200); + $(this).find('#arrow').css('transform',''); + } }); $("#clear").click(function () { @@ -189,7 +193,7 @@ function makeLine(index) { if (building == "") { building = "Undecided Location"; } - output += `${dayarr[i]}:${timearr[i].split(",")[0]} to ${timearr[i].split(",")[1]}${place}
    `; + output += `${dayarr[i]}:${timearr[i].split(",")[0]} to ${timearr[i].split(",")[1]}${place}
    `; } } return output; diff --git a/manifest.json b/manifest.json index 2eb28b1b..1d75e935 100644 --- a/manifest.json +++ b/manifest.json @@ -15,7 +15,13 @@ "css": ["css/styles.css"], "js": ["js/moment.min.js","js/sql-memory-growth.js","js/highcharts.js","js/jquery-3.3.1.min.js","js/content.js"], "matches": ["https://utdirect.utexas.edu/apps/registrar/course_schedule/*"] - }], + },{ + "css": ["css/styles.css"], + "js": ["js/moment.min.js","js/sql-memory-growth.js","js/highcharts.js","js/jquery-3.3.1.min.js","js/import.js"], + "matches": ["https://utdirect.utexas.edu/registrar/waitlist/wl_see_my_waitlists.WBX"] + } + +], "web_accessible_resources": [ "grades.db","images/disticon.png"], "background": { diff --git a/todo b/todo index 8236fd94..dc01a8b3 100644 --- a/todo +++ b/todo @@ -2,10 +2,9 @@ TODO as of 8/28/18 FEATURES: -- something to fill the space to the rght of the main popup window -- Location in popup extra info -- import into UT registration plus - import calendar +- import into UT registration plus + BUGS TO FIX: @@ -16,3 +15,4 @@ DONE/FIXED: - Textbook button (amber) - Calendar popup - online classes no times in popup link +- Location in popup extra info