updated readme
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
# UT Registration Plus
|
# UT Registration Plus
|
||||||
## Try it for yourself:
|
[Try it for yourself on the Chrome Web Store](https://chrome.google.com/webstore/detail/hboadpjkoaieogjimneceaahlppnipaa/publish-accepted?authuser=0&hl=en-US)
|
||||||
[on the chrome web store](https://chrome.google.com/webstore/detail/hboadpjkoaieogjimneceaahlppnipaa/publish-accepted?authuser=0&hl=en-US)
|
|
||||||
|
|
||||||
We've all been there. 20 tabs of Rate My Professor, Catalyst, and the UT Course Catalog open and you still don't know what classes to take.
|
We've all been there. 20 tabs of Rate My Professor, Catalyst, and the UT Course Catalog open and you still don't know what classes to take.
|
||||||
This extension tries to streamline most of the unnecessary steps and headaches of registering for classes at UT Austin.
|
This extension tries to streamline most of the unnecessary steps and headaches of registering for classes at UT Austin.
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
chrome.storage.sync.get('courseConflictHighlight', function(data) {
|
chrome.storage.sync.get('courseConflictHighlight', function(data) {
|
||||||
if(data.courseConflictHighlight){
|
if(data.courseConflictHighlight){
|
||||||
$("#toggleConflictHighlighting").text("Turn Off");
|
off();
|
||||||
$("#toggleConflictHighlighting").css("background","#F44336");
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$("#toggleConflictHighlighting").text("Turn On");
|
on();
|
||||||
$("#toggleConflictHighlighting").css("background","#4CAF50");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -13,13 +11,11 @@ $("#toggleConflictHighlighting").click(function(){
|
|||||||
var action = $("#toggleConflictHighlighting").text();
|
var action = $("#toggleConflictHighlighting").text();
|
||||||
if(action == "Turn Off"){
|
if(action == "Turn Off"){
|
||||||
chrome.storage.sync.set({courseConflictHighlight: false}, function() {
|
chrome.storage.sync.set({courseConflictHighlight: false}, function() {
|
||||||
$("#toggleConflictHighlighting").text("Turn On");
|
on();
|
||||||
$("#toggleConflictHighlighting").css("background","#4CAF50");
|
|
||||||
});
|
});
|
||||||
} else{
|
} else{
|
||||||
chrome.storage.sync.set({courseConflictHighlight: true}, function() {
|
chrome.storage.sync.set({courseConflictHighlight: true}, function() {
|
||||||
$("#toggleConflictHighlighting").text("Turn Off");
|
off();
|
||||||
$("#toggleConflictHighlighting").css("background","#F44336");
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
chrome.tabs.query({}, function(tabs) {
|
chrome.tabs.query({}, function(tabs) {
|
||||||
@@ -27,4 +23,14 @@ $("#toggleConflictHighlighting").click(function(){
|
|||||||
chrome.tabs.sendMessage(tabs[i].id, {command: "updateCourseList"});
|
chrome.tabs.sendMessage(tabs[i].id, {command: "updateCourseList"});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
function on(){
|
||||||
|
$("#toggleConflictHighlighting").text("Turn On");
|
||||||
|
$("#toggleConflictHighlighting").css("background","#4CAF50");
|
||||||
|
}
|
||||||
|
function off(){
|
||||||
|
$("#toggleConflictHighlighting").text("Turn Off");
|
||||||
|
$("#toggleConflictHighlighting").css("background","#F44336");
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user