fixed flags page icons
This commit is contained in:
@@ -31,17 +31,19 @@ const butdelay = 75;
|
||||
$(function () {
|
||||
loadDataBase();
|
||||
//make heading and modal
|
||||
$("table thead th:last-child").after('<th scope=col>Plus</th>');
|
||||
var modhtml = '<div class=modal id=myModal><div class=modal-content><span class=close>×</span><div class=card><div class=cardcontainer><h2 class=title id="title">Computer Fluency (C S 302)</h2><h2 class=profname id="profname">with Bruce Porter</h2><div id="topbuttons" class=topbuttons><button class=matbut id="rateMyProf" style="background: #4CAF50;"> RMP </button><button class=matbut id="eCIS" style="background: #CDDC39;"> eCIS </button><button class=matbut id="textbook" style="background: #FFC107;"> Textbook </button><button class=matbut id="Syllabi"> Past Syllabi </button><button class=matbut id="saveCourse" style="background: #F44336;"> Save Course +</button></div></div></div><div class=card><div class=cardcontainer style=""><ul class=description id="description" style="list-style-type:disc"></ul></div></div><div class=card ><div id="chartcontainer" class=cardcontainer><div id=chart></div></div></div>';
|
||||
$("#container").prepend(modhtml);
|
||||
$("#myModal").prepend("<div id='snackbar'>defaultmessage..</div>");
|
||||
//go through all the rows in the list
|
||||
$('table').find('tr').each(function () {
|
||||
if (!($(this).find('td').hasClass("course_header")) && $(this).has('th').length == 0) {
|
||||
//if a course row, then add the extension button
|
||||
$(this).append(`<td data-th="Plus"><input type="image" class="distButton" id="distButton" style="vertical-align: bottom; display:block;" width="20" height="20" src='${chrome.extension.getURL('images/disticon.png')}'/></td>`);
|
||||
}
|
||||
});
|
||||
if(!$("#kw_results_table").length){
|
||||
$("table thead th:last-child").after('<th scope=col>Plus</th>');
|
||||
var modhtml = '<div class=modal id=myModal><div class=modal-content><span class=close>×</span><div class=card><div class=cardcontainer><h2 class=title id="title">Computer Fluency (C S 302)</h2><h2 class=profname id="profname">with Bruce Porter</h2><div id="topbuttons" class=topbuttons><button class=matbut id="rateMyProf" style="background: #4CAF50;"> RMP </button><button class=matbut id="eCIS" style="background: #CDDC39;"> eCIS </button><button class=matbut id="textbook" style="background: #FFC107;"> Textbook </button><button class=matbut id="Syllabi"> Past Syllabi </button><button class=matbut id="saveCourse" style="background: #F44336;"> Save Course +</button></div></div></div><div class=card><div class=cardcontainer style=""><ul class=description id="description" style="list-style-type:disc"></ul></div></div><div class=card ><div id="chartcontainer" class=cardcontainer><div id=chart></div></div></div>';
|
||||
$("#container").prepend(modhtml);
|
||||
$("#myModal").prepend("<div id='snackbar'>defaultmessage..</div>");
|
||||
//go through all the rows in the list
|
||||
$('table').find('tr').each(function () {
|
||||
if (!($(this).find('td').hasClass("course_header")) && $(this).has('th').length == 0) {
|
||||
//if a course row, then add the extension button
|
||||
$(this).append(`<td data-th="Plus"><input type="image" class="distButton" id="distButton" style="vertical-align: bottom; display:block;" width="20" height="20" src='${chrome.extension.getURL('images/disticon.png')}'/></td>`);
|
||||
}
|
||||
});
|
||||
}
|
||||
//update the conflicts
|
||||
update();
|
||||
/*Handle the button clicks*/
|
||||
|
||||
13
popup.html
13
popup.html
@@ -17,7 +17,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<ul id="courseList" style="list-style-type: none;padding: 5px;"></ul>
|
||||
<h2 id="empty" style="font-weight: normal;font-size: large;margin: 60px 30px 40px 30px ;">Doesn't Look Like
|
||||
<h2 id="empty" style="font-weight: normal;font-size: large;margin: 60px 30px 40px 30px ;text-align: center">Doesn't Look Like
|
||||
Anything
|
||||
To Me.
|
||||
<br>
|
||||
@@ -27,16 +27,7 @@
|
||||
<input type="file" id="importOrig" accept=".json" style="display:none"/>
|
||||
|
||||
<div class="settings">
|
||||
<!-- <button title='Import' style="background-color:white;" class="settingsbut" id='import'>
|
||||
<i style='color:#FF9800' class="material-icons">
|
||||
arrow_upward
|
||||
</i></button>
|
||||
<button title='Export' style="background-color:white;" class="settingsbut" id='export'>
|
||||
<i style='color:#FF9800' class="material-icons">
|
||||
arrow_downward
|
||||
</i>
|
||||
</button> -->
|
||||
<button title='Import/Export' style="background-color:white;" class="settingsbut" id='impexp'>
|
||||
<button title='Import/Export' style="background-color:white;" class="settingsbut" id='impexp'>
|
||||
<i style='color:#FF9800' class="material-icons">
|
||||
import_export
|
||||
</i>
|
||||
|
||||
10
todo
10
todo
@@ -1,16 +1,12 @@
|
||||
TODO as of 12/9/18
|
||||
|
||||
FEATURES:
|
||||
|
||||
- Export calendar format
|
||||
- import into and export from UT registration plus
|
||||
- load all courses on first pages
|
||||
- work on UT Planner
|
||||
- work on multiple schedules
|
||||
- import courses from class schedule screen
|
||||
- Easter egg, no course messages
|
||||
|
||||
BUGS TO FIX:
|
||||
- Showing the icon on the flags pages
|
||||
- Fix the update/install bug
|
||||
|
||||
DONE/FIXED:
|
||||
@@ -20,3 +16,7 @@ DONE/FIXED:
|
||||
- Calendar popup
|
||||
- online classes no times in popup link
|
||||
- Location in popup extra info
|
||||
- Export calendar format
|
||||
- import courses from class schedule screen
|
||||
- import into and export from UT registration plus
|
||||
- Showing the icon on the flags pages
|
||||
|
||||
Reference in New Issue
Block a user