Rearrange some stuff

This commit is contained in:
3eef8a28f26fb2bcc514e6f1938929a1f931762 2023-02-16 21:02:07 -05:00 committed by powe97
parent 410269025f
commit 9db2effa1e
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ const display_search_results = function(searchable_catalog) {
window.onload = function() {
// smart quotes
document.getElementById("searchTerm").innerHTML = "“" + search_term + "”";
fetch("searchable_catalog.json")
fetch("json/searchable_catalog.json")
.then(r => r.json())
.then(display_search_results);
}

View file

@ -23,7 +23,7 @@ const search_helper = async function(event,from_course_page = true) {
// check if "ABCD-1345" is a real course code
const course_exists = await fetch(
from_course_page ? "../courses_list.json" : "courses_list.json"
from_course_page ? "../json/courses_list.json" : "json/courses_list.json"
)
.then(list => list.json())
.then(list => list.includes(code_str));