Forked from JuliaZibarieva/gist:20dfcb796c6573916bcf709d9ece3875
Last active
August 1, 2016 13:50
-
-
Save adardesign/4f41079620b00aa9308bebaabc818402 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) return false; | |
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(); | |
if(!invisParam) return false; | |
return invisParam.isLoggedIn; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment