Skip to content

Instantly share code, notes, and snippets.

@mtica
Last active December 27, 2015 15:59
Show Gist options
  • Save mtica/7352171 to your computer and use it in GitHub Desktop.
Save mtica/7352171 to your computer and use it in GitHub Desktop.
"Hello world" landing page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello world</title>
<script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.3.1/jquery.cookie.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.1/underscore-min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>
<script type="text/javascript" src="//cdn.worldsecuresystems.com/bcapi/bcapi-0.0.1.min.js"></script>
</head>
<body>
<p class="message"></p>
Hello world sample app. This is the application's landing page.
<br/>Go to the <a href="second_page.html">second page</a>.
<script>
var access_token = BCAPI.Helper.Site.getAccessToken();
console.log('Authorization complete. The token received in hash is ' + access_token + " was saved in the access_token cookie " + $.cookie('access_token'))
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment