Created
August 1, 2016 13:25
-
-
Save JuliaZibarieva/20dfcb796c6573916bcf709d9ece3875 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
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