Skip to content

Commit

Permalink
close #233
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrey-wu committed Dec 20, 2023
1 parent ed0b2e9 commit 73efd34
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 15 deletions.
1 change: 0 additions & 1 deletion client/admin/category-reports.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ <h5 class="modal-title">Fix Category</h5>
<option value="Biology">Biology</option>
<option value="Chemistry">Chemistry</option>
<option value="Physics">Physics</option>
<option value="Math">Math</option>
<option value="Other Science">Other Science</option>
<option disabled>──────────</option>
<option value="Visual Fine Arts">Visual Fine Arts</option>
Expand Down
2 changes: 1 addition & 1 deletion client/database/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const paginationShiftLength = screen.width > 992 ? 10 : 5;
const CATEGORY_BUTTONS = [['Literature', 'primary'], ['History', 'success'], ['Science', 'danger'], ['Fine Arts', 'warning'], ['Religion', 'secondary'], ['Mythology', 'secondary'], ['Philosophy', 'secondary'], ['Social Science', 'secondary'], ['Current Events', 'secondary'], ['Geography', 'secondary'], ['Other Academic', 'secondary'], ['Trash', 'secondary']];
const SUBCATEGORY_BUTTONS = [['American Literature', 'primary'], ['British Literature', 'primary'], ['Classical Literature', 'primary'], ['European Literature', 'primary'], ['World Literature', 'primary'], ['Other Literature', 'primary'], ['American History', 'success'], ['Ancient History', 'success'], ['European History', 'success'], ['World History', 'success'], ['Other History', 'success'], ['Biology', 'danger'], ['Chemistry', 'danger'], ['Physics', 'danger'], ['Math', 'danger'], ['Other Science', 'danger'], ['Visual Fine Arts', 'warning'], ['Auditory Fine Arts', 'warning'], ['Other Fine Arts', 'warning']];
const SUBCATEGORY_BUTTONS = [['American Literature', 'primary'], ['British Literature', 'primary'], ['Classical Literature', 'primary'], ['European Literature', 'primary'], ['World Literature', 'primary'], ['Other Literature', 'primary'], ['American History', 'success'], ['Ancient History', 'success'], ['European History', 'success'], ['World History', 'success'], ['Other History', 'success'], ['Biology', 'danger'], ['Chemistry', 'danger'], ['Physics', 'danger'], ['Other Science', 'danger'], ['Visual Fine Arts', 'warning'], ['Auditory Fine Arts', 'warning'], ['Other Fine Arts', 'warning']];
let validCategories = [];
let validSubcategories = [];
function downloadQuestionsAsJSON(tossups, bonuses, filename = 'data.json') {
Expand Down
1 change: 0 additions & 1 deletion client/database/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const SUBCATEGORY_BUTTONS = [
['Biology', 'danger'],
['Chemistry', 'danger'],
['Physics', 'danger'],
['Math', 'danger'],
['Other Science', 'danger'],
['Visual Fine Arts', 'warning'],
['Auditory Fine Arts', 'warning'],
Expand Down
3 changes: 0 additions & 3 deletions client/multiplayer/room.html
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,6 @@ <h5 class="text-center">Subcategories</h5>
<input class="btn-check" id="Physics" type="checkbox" autocomplete="off">
<label class="btn btn-outline-danger w-100 rounded-0 my-1" for="Physics">Physics<br></label>

<input class="btn-check" id="Math" type="checkbox" autocomplete="off">
<label class="btn btn-outline-danger w-100 rounded-0 my-1" for="Math">Math<br></label>

<input class="btn-check" id="Other Science" type="checkbox" autocomplete="off">
<label class="btn btn-outline-danger w-100 rounded-0 my-1" for="Other Science">Other
Science<br></label>
Expand Down
3 changes: 0 additions & 3 deletions client/singleplayer/bonuses.html
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,6 @@ <h5 class="text-center">Subcategories</h5>
<input class="btn-check" id="Physics" type="checkbox" autocomplete="off">
<label class="btn btn-outline-danger w-100 rounded-0 my-1" for="Physics">Physics<br></label>

<input class="btn-check" id="Math" type="checkbox" autocomplete="off">
<label class="btn btn-outline-danger w-100 rounded-0 my-1" for="Math">Math<br></label>

<input class="btn-check" id="Other Science" type="checkbox" autocomplete="off">
<label class="btn btn-outline-danger w-100 rounded-0 my-1" for="Other Science">Other
Science<br></label>
Expand Down
3 changes: 0 additions & 3 deletions client/singleplayer/tossups.html
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,6 @@ <h5 class="text-center">Subcategories</h5>
<input class="btn-check" id="Physics" type="checkbox" autocomplete="off">
<label class="btn btn-outline-danger w-100 rounded-0 my-1" for="Physics">Physics<br></label>

<input class="btn-check" id="Math" type="checkbox" autocomplete="off">
<label class="btn btn-outline-danger w-100 rounded-0 my-1" for="Math">Math<br></label>

<input class="btn-check" id="Other Science" type="checkbox" autocomplete="off">
<label class="btn btn-outline-danger w-100 rounded-0 my-1" for="Other Science">Other
Science<br></label>
Expand Down
2 changes: 1 addition & 1 deletion client/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const SUBCATEGORIES = {
'Literature': ['American Literature', 'British Literature', 'Classical Literature', 'European Literature', 'World Literature', 'Other Literature'],
'History': ['American History', 'Ancient History', 'European History', 'World History', 'Other History'],
'Science': ['Biology', 'Chemistry', 'Physics', 'Math', 'Other Science'],
'Science': ['Biology', 'Chemistry', 'Physics', 'Other Science'],
'Fine Arts': ['Visual Fine Arts', 'Auditory Fine Arts', 'Other Fine Arts'],
'Religion': ['Religion'],
'Mythology': ['Mythology'],
Expand Down
4 changes: 2 additions & 2 deletions constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const DEFAULT_MAX_YEAR = 2023;
const DIFFICULTIES = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

const CATEGORIES = ['Literature', 'History', 'Science', 'Fine Arts', 'Religion', 'Mythology', 'Philosophy', 'Social Science', 'Current Events', 'Geography', 'Other Academic', 'Trash'];
const SUBCATEGORIES_FLATTENED = ['American Literature', 'British Literature', 'Classical Literature', 'European Literature', 'World Literature', 'Other Literature', 'American History', 'Ancient History', 'European History', 'World History', 'Other History', 'Biology', 'Chemistry', 'Physics', 'Math', 'Other Science', 'Visual Fine Arts', 'Auditory Fine Arts', 'Other Fine Arts', 'Religion', 'Mythology', 'Philosophy', 'Social Science', 'Current Events', 'Geography', 'Other Academic', 'Trash'];
const SUBCATEGORIES_FLATTENED = ['American Literature', 'British Literature', 'Classical Literature', 'European Literature', 'World Literature', 'Other Literature', 'American History', 'Ancient History', 'European History', 'World History', 'Other History', 'Biology', 'Chemistry', 'Physics', 'Other Science', 'Visual Fine Arts', 'Auditory Fine Arts', 'Other Fine Arts', 'Religion', 'Mythology', 'Philosophy', 'Social Science', 'Current Events', 'Geography', 'Other Academic', 'Trash'];
const SUBCATEGORY_TO_CATEGORY = {
'American Literature': 'Literature',
'British Literature': 'Literature',
Expand Down Expand Up @@ -69,7 +69,7 @@ const PERMANENT_ROOMS = [
{
name: 'science',
categories: ['Science'],
subcategories: ['Biology', 'Chemistry', 'Physics', 'Math', 'Other Science'],
subcategories: ['Biology', 'Chemistry', 'Physics', 'Other Science'],
},
{
name: 'fine-arts',
Expand Down

0 comments on commit 73efd34

Please sign in to comment.