12 oct 25

<-- Go back

headache

i have been bashing my head against my desk for the past six hours. sometimes my brain works, and sometimes it doesn't, and right now it doesn't want to work. i'm currently trying to redo the page transition script so that it uses jQuery's AJAX instead of the current static implementation (which works fine, but can flicker if viewing a page for the first time).

what i'm wanting is this:

  • if on the home page, ensure the content panel (the gray overlay) is closed
  • if on any other page and the content panel isn't open, slide it into view and load the page contents
  • if on any other page and the content panel is open, fade out the old contents and fade in the new
  • ensure site title changes with new page
  • ensure page history is set (so you can use the back/forward buttons on your browser)
  • ensure no-js browsing is still possible
  • later: cache page contents for faster viewing

this should be easy enough, i've coded similar stuff in the past, but what i've come up with is far, far too convoluted of a solution. i know that it can be done better, i just. can't. focus.
what i need right now is to take a walk, but it's pitch black outside, and not exactly the safest right now. so i guess i'll just find a game to play or take a nap. either way, i'll tackle this again with a clear head, and hopefully come up with a better solution.