Last active
December 11, 2015 06:38
-
-
Save calebcauthon/4560534 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
// This goes on the signup page | |
$(document).ready(function () { | |
$.cookie('user_is_on_signup', "circle"); | |
}); | |
// This goes on every page | |
$(document).ready(function () { | |
$.cookie('user_is_on_signup', "square"); | |
setInterval(function () { | |
var user_is_on_signup = $.cookie('user_is_on_signup'); | |
if(user_is_on_signup == "circle") { | |
//send them back to the signup page or whateva | |
} else { | |
// do nothing | |
} | |
}, 2000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment