add initial findings

This commit is contained in:
garrettmills
2019-11-22 11:57:53 -06:00
commit b550b5d1db
150 changed files with 17496 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
var email, sessionKey, sessionVal;
function onSignIn(googleUser){
var profile = googleUser.getBasicProfile();
email = profile.email;
//
sessionKey = email;
sessionVal = localStorage.getItem(sessionKey);
}
function doAuthCheck(){
if (sessionVal != "in") {
alert("authError!");
} else {alert("auth successful")}
}
$(window).load(function ()
{
var i = setInterval(function ()
{
if ($('#foo').length)
{
clearInterval(i);
// safe to execute your code here
doAuthCheck();
}
}, 2000);
});