pushStateの履歴

code

$("nav a").click (e) ->
  e.preventDefault()
  href = $(this).attr("href")
  location.hash = href

window.onhashchange = ->
  href = location.hash.substring(1)
  get href

jQuery