From ffd84bbb69e71669a025582a2fd51bb6e0c23d35 Mon Sep 17 00:00:00 2001 From: 10001shh Date: Wed, 11 Jul 2018 04:57:44 -0500 Subject: [PATCH] Minor changes --- content.js | 2 +- popup.js | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/content.js b/content.js index 5250ef6d..7f640e5a 100644 --- a/content.js +++ b/content.js @@ -50,7 +50,7 @@ $(document).ready( function() { $("#saveCourse").text(response.label); $("#snackbar").text(response.done); $("#snackbar").attr("class","show"); - setTimeout(function(){$("#snackbar").attr("class","");}, 1000); + setTimeout(function(){$("#snackbar").attr("class","");}, 3000); }); }); diff --git a/popup.js b/popup.js index 1ba89a60..4e6577c6 100644 --- a/popup.js +++ b/popup.js @@ -36,7 +36,7 @@ chrome.storage.sync.get('savedCourses', function(data) { var department = courses[i].coursename.substring(0,courses[i].coursename.search(/\d/)-2); var course_nbr = courses[i].coursename.substring(courses[i].coursename.search(/\d/),courses[i].coursename.indexOf(" ",courses[i].coursename.search(/\d/))); var profname = courses[i].profname.substring(0,1)+courses[i].profname.substring(1).toLowerCase(); - var listhtml = "
  • "+department + " "+course_nbr+""+" with "+profname+" ("+courses[i].unique+")"+"

    "+makeLine(i)+"

  • "; + var listhtml = "
  • "+department + " "+course_nbr+""+" with "+profname+" ("+courses[i].unique+")"+"

    "+makeLine(i)+"

  • "; $("#courseList").append(listhtml); } }); @@ -53,11 +53,12 @@ $(document).ready(function() { }); $("#courseList li").click(function(){ //makeLine($(this).attr("id")); - if($(this).find("p").not(':visible')){ - $(this).find("p").fadeIn(500); + if($(this).find("p").is(":hidden")){ + $(this).find("p").fadeIn(200); + //alert("hello"); } else{ - $(this).find("p").hide(); + $(this).find("p").fadeOut(200); } // window.open(courses[$(this).attr("id")].link); });