Skip to content

Instantly share code, notes, and snippets.

@pcoady
Created September 12, 2014 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcoady/58e2c490e4226f44afa0 to your computer and use it in GitHub Desktop.
Save pcoady/58e2c490e4226f44afa0 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>AWS Cognito App</title>
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.css" />
</head>
<body>
<button id="btnLogin">Login with Facebook</button>
<button id="btnLogout">Logout</button>
<hr/>
<div style="overflow-y : scroll; height:200px"><span id="appConsole" style="color:green; word-wrap: break-word"></span></div>
<hr/>
<div style="overflow-y : scroll; height:200px"><span id="errorConsole" style="color:red; word-wrap: break-word"></span></div>
<script src="http://code.jquery.com/jquery-2.1.1.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.15.min.js"></script>
<script src="js/openfb.js" type="text/javascript"></script>
<script src="js/app.js" type="text/javascript"></script>
</body>
</html>
@pcoady
Copy link
Author

pcoady commented Sep 12, 2014

This is the file from the free tutorial at http://backspace.technology/learn-aws-cognito.html

@pcoady
Copy link
Author

pcoady commented Apr 3, 2015

The blog for this code is now maintained at http://blog.backspace.academy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment