Last active
June 10, 2016 21:10
-
-
Save jeffbicca/d4c216f01f0cb2a59dd5f5acb4754208 to your computer and use it in GitHub Desktop.
This file contains 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
$(function() { | |
var jsonDec; | |
try { | |
jsonDec = decodeURIComponent(window.atob($.captures().jsonEnc)); | |
} catch(e) { | |
$('#errors').puidialog('show'); | |
alert("This page is just available for those who already added items to the cart!"); | |
location.href = 'shopping.html'; | |
} | |
var cart = JSON.parse(jsonDec); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment