title: Working with single page websites and maintaining state using a URL hash and jQuery
body: <p>I'm working on my portfolio, making it entirely jQuery based. So my problem is when you go to a page, then refresh then it will take you to the home page again. So I have two questions, actually.</p>
  
  <ol>
  <li>How do you (via jQuery/Javascript) get a "hash code" from the url?
  
  <ol>
  <li>E.G. I want the bold part of this: <a href="http://portfolio.theadamgaskins.com/Portfolio/" rel="nofollow noreferrer">http://portfolio.theadamgaskins.com/Portfolio/</a><strong>#graphicsDesign</strong></li>
  </ol></li>
  <li>How do you change the url in the address bar when you navigate to a new page to contain the hash code for that page?
  
  <ol>
  <li>E.G. when you go the the graphicsDesign page, the link in the address bar changes to <a href="http://portfolio.theadamgaskins.com/Portfolio/#graphicsDesign" rel="nofollow noreferrer">http://portfolio.theadamgaskins.com/Portfolio/#graphicsDesign</a></li>
  </ol></li>
  </ol>