Skip to content

Instantly share code, notes, and snippets.

@addisaden
Created September 10, 2015 12:29
Show Gist options
  • Save addisaden/108cf973df3f91b4554d to your computer and use it in GitHub Desktop.
Save addisaden/108cf973df3f91b4554d to your computer and use it in GitHub Desktop.
var handler = {}
handler.decode = function() { return JSON.parse(decodeURIComponent(location.hash.replace(/^#/, ""))); }
handler.encode = function(obj) { location.hash = "#" + encodeURIComponent(JSON.stringify(obj)); return location.hash; }
@madmax911
Copy link

That's brilliant man...

Here's the thing I came up with...

(see attch.,)

I searched the web looking to find if anyone else had the same idea as me. Nice to meet you man. You're the other guy. Peace out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment