`);
// delete the div when the modal is closed
div.on("hidden.bs.modal", function() {
div.remove();
});
div.modal("show");
div.find(".input-job-search").val("");
const jobs = await $.post(`https://${resName}/getAllJobs`, JSON.stringify({}));
let jobListDiv = div.find(".jobs-list")
jobListDiv.empty();
for(const[jobName, jobData] of Object.entries(jobs)) {
let jobDiv = $(`