Created
September 10, 2015 12:29
-
-
Save addisaden/108cf973df3f91b4554d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.