A single page resume is nice, but somewhat negates the point of creating a webpage—why not just post the .pdf (which I also do), if it’s not going to add anything else? My resume is one page of things I think will be most relevant to a position I am interested in. During a recent chat with a recruiter, I realized that the skills I chose not to include may be important, too. In this case, my training the Linux/Unix systems, which has been pushed off my resume in favor of an NLP/Machine Learning focus, was just the ticket to show that I had the skills the job required. My goal with my online resume, then, was to highlight certain things —particularly recent projects and things I’m most proud of— while allowing for further exploration and delving into everything I have to offer.
Creating collapsing/expanding lists was mostly a matter of following jasalguero’s tutorial, which works quite admirably. However, the page created by this tutorial loads with all lists collapsed. The “expand all” and “collapse all” buttons provide a detailed view and sparse overview, respectively. I wanted something in the middle, a “one page summary” by default, which could then be expanded or collapsed at will.
To do this, I added a class that I could use to manually mark highlights, or things that would be expanded by default. Since the page doesn’t include any content that might change, it creates lists of “highlights” and “lowlights” (everything but highlights) on loading. Collapsed style is then added to every element of lowlights, and both collapsed and expanded styles are added to highlights. This allows highlights to maintain proper behavior when expanding is toggled. Full code for this can be found in my resume repo.
Because of the way click events are handled by the above tutorial, they must be explicitly re-enabled in the script (which, to jasalguero’s credit, is explained in the tutorial). However, solution provided would cause anchor links to open in a new window/tab without actually focusing the page to the anchor. What I needed was to specify one behavior for anchor links and one behavior for outgoing links. Although I saw plenty of similar questions online, I did not see any answers that fit my specific case. Since I wasn’t able to find a clear answer anywhere, here is my solution (minus aspects needed for collapsing/expanding elements):
Someone with better knowledge of JQuery might be able to produce a more elegant solution, but this seems to work.