Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JuliaZibarieva/20dfcb796c6573916bcf709d9ece3875 to your computer and use it in GitHub Desktop.
Save JuliaZibarieva/20dfcb796c6573916bcf709d9ece3875 to your computer and use it in GitHub Desktop.
adrma.invisibleParameterToJSON = function invisibleParameterToJSON() {
var parsedInvisParam = {},
invisParam = adrma.cookie("InvisibleParameter");
if (invisParam) {
invisParam.split('&').forEach(function(val, i) {
var tempArr = val.split("=");
var value = adrma.ifBoolParse(tempArr[1]);
if (value === '') value = null;
parsedInvisParam[tempArr[0]] = value;
});
}
return parsedInvisParam;
}
adrma.isLoggedIn= function isLoggedIn() {
var invisParam = adrma.invisibleParameterToJSON();
return invisParam.isLoggedIn;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment