const ColorModes = { Dark: 'dark', Light: 'light' }; // Yes this is dumb, but it's an easy way to handle this. const jobModalKey = 'seenJobModal2025'; // Change this to make the modal re-populate const lookingForJob = true && !window.localStorage.getItem(jobModalKey); // Set the current color mode to the default display mode let currentColorMode = window.matchMedia('(prefers-color-scheme: dark)').matches ? ColorModes.Dark : ColorModes.Light; const urls = { '/': 'Home', '/Experience/': 'Experience', '/Education/': 'Education', '/Portfolio/': 'Portfolio', }; const initColorScheme = () => { const setting = localStorage.getItem('color-mode'); if (setting) { if (setting === 'dark') { currentColorMode = 'dark'; } else if (setting === 'light') { currentColorMode = 'light'; } } localStorage.setItem('color-mode', currentColorMode); if (currentColorMode === ColorModes.Dark) { document.body.classList.add('dark'); } else { document.body.classList.remove('dark'); } }; const bootstrapNavbar = () => { const title = urls[location.pathname]; if (!title) { return; } const endpoints = Object.keys(urls).map((url) => `
  • ${urls[url] == title ? `${urls[url]}` : urls[url]}
  • `); document.body.innerHTML = ` ` + document.body.innerHTML; if (title !== 'Home') { const nav = document.querySelector('nav'); document.body.style.marginTop = `${nav.clientHeight}px`; } }; const bootstrapJobModal = () => { if (!lookingForJob) { return; } const modal = document.createElement('div'); modal.className = 'modal fade'; modal.id = 'hireMeModal'; modal.addEventListener('hide.bs.modal', () => { window.localStorage.setItem(jobModalKey, true); }); const modalWr = document.createElement('div'); modalWr.className = 'modal-dialog modal-lg modal-fullscreen-lg-down modal-dialog-centered'; const modalContent = document.createElement('div'); modalContent.className = 'modal-content'; const modalHeader = document.createElement('div'); modalHeader.className = 'modal-header'; modalHeader.innerHTML = ` `; const modalBody = document.createElement('div'); modalBody.className = 'modal-body'; modalBody.innerHTML = `

    Hi there! My name is Jose Stovall and I'm looking for a job! I was previously working for Free Range Games where I learned a lot about Game Development but also Backend & Dev-OPs work, but unfortunately myself and many others were laid off on March 6th, 2025.

    Currently I am located just outside of Nashville, TN, but my wife is an aspiring Paleontologist and is looking to progress her education and career, so we're highly considering relocating to Chicago, IL to take advantage of the several excellent educational and career experiences in the area.

    You can see my knowledge/interests/expertise here on this main page as well as on the Portfolio page (found using the dropdown above). Additionally my work experience can be found using the dropdown, and you can contact me through LinkedIn in the menu or via email!

    Additionally, my current resume can be found here!

    `; modalContent.appendChild(modalHeader); modalContent.appendChild(modalBody); modalWr.appendChild(modalContent); modal.appendChild(modalWr); document.body.appendChild(modal); const modalObj = new bootstrap.Modal(modal); modalObj.show(); document.getElementById('hireMeModalClose').addEventListener('click', () => { modalObj.hide(); }); }; window.addEventListener('load', () => { initColorScheme(); bootstrapNavbar(); bootstrapJobModal(); document.getElementById('displayModeSwitch').addEventListener('click', () => { currentColorMode = currentColorMode === ColorModes.Dark ? ColorModes.Light : ColorModes.Dark; if (currentColorMode === ColorModes.Dark) { document.body.classList.add('dark'); } else { document.body.classList.remove('dark'); } const nav = document.querySelector('#main-nav'); nav.classList.remove('navbar-light'); nav.classList.remove('navbar-dark'); nav.classList.remove('bg-light'); nav.classList.remove('bg-dark'); nav.classList.add(`navbar-${currentColorMode === 'dark' ? 'dark' : 'light'}`); nav.classList.add(`bg-${currentColorMode === 'dark' ? 'dark' : 'light'}`); localStorage.setItem('color-mode', currentColorMode); }); });